Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ce965a9
ci: update Unified CI configuration (#78)
web3-bot Jul 19, 2023
c6bc3a9
Remove autobump and update version.json (#122)
xinaxu Jul 26, 2023
70b67c0
chore(version): update for v0.3.0
hannahhoward Aug 25, 2023
863a574
Fix version file not matching latest release
masih Sep 5, 2023
988735c
Update version.json to v0.4.0 (#279)
xinaxu Sep 8, 2023
823eb5e
Update version to v0.4.1 (#288)
xinaxu Sep 8, 2023
76c2cff
Bump version to v0.5.0 (#343)
xinaxu Sep 21, 2023
40f0e61
new version (#380)
gammazero Oct 12, 2023
f62d16b
Update version.json to v0.5.2 (#390)
xinaxu Oct 17, 2023
61cbf00
Update version.json to v0.5.3 (#397)
xinaxu Oct 19, 2023
11e97c9
Update version.json (#400)
xinaxu Oct 23, 2023
9366e9f
Update version.json to v0.5.5 (#403)
xinaxu Oct 24, 2023
0a6da58
Update version (#407)
gammazero Oct 27, 2023
7f17436
Update version.json to v0.5.7 (#409)
xinaxu Oct 31, 2023
a2c690b
Update version (#414)
gammazero Nov 3, 2023
0ea2f9f
New release version (#422)
gammazero Nov 9, 2023
a37855f
Update version.json to 0.5.10 (#424)
xinaxu Nov 17, 2023
b84c5cb
Update version.json (#426)
xinaxu Dec 6, 2023
b6c2b9f
bump version to v0.5.12 (#429)
xinaxu Feb 7, 2024
07d8037
Bump version to v0.5.13 (#432)
xinaxu Mar 7, 2024
d13955c
Update version.json (#435)
xinaxu Apr 29, 2024
e526ee8
Update version.json to v0.5.15 (#442)
ianconsolata Jul 24, 2024
361d5d8
Bump version.json to 0.5.16 (#445)
ianconsolata Jul 27, 2024
6933f9e
v0.5.17 release
parkan Feb 14, 2025
0f385a8
retry workflow
parkan Feb 14, 2025
5d4db47
Add create wallet handler, cmd, and API #469
zachfedor Apr 4, 2025
6cea590
Run linter
zachfedor Apr 4, 2025
6dc6249
Refactor create wallet handler for offline key generation
zachfedor Apr 23, 2025
85658ff
Run fmt
zachfedor Apr 23, 2025
c270986
Generate swagger docs
zachfedor Apr 24, 2025
2e0b01f
Create versioned migration process
zachfedor May 12, 2025
02da1c7
Fix versioned migration schemas
zachfedor May 20, 2025
2754a0d
Generate docs
zachfedor May 20, 2025
cfd293b
feat: add `admin migrate which` command
zachfedor May 22, 2025
3bedb0a
fix: tests
zachfedor Jun 6, 2025
2abc31a
feat: better documentation of create cmd
zachfedor Jun 6, 2025
b0f3861
fix: lint errors
zachfedor Jun 6, 2025
6de93d6
Update generated storage types file
zachfedor Jun 6, 2025
ff85805
chore: fix go check (#518)
zachfedor Jun 17, 2025
24e14f8
Redact private key from CreateWallet response and add test for redaction
Jun 19, 2025
a720b55
Fix: Add space after comment slashes for gocritic
Jun 19, 2025
b590e52
Wallet create and migration (#517)
Sankara-Jefferson Jun 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: Automerge
on: [ pull_request ]

jobs:
automerge:
uses: protocol/.github/.github/workflows/automerge.yml@master
with:
job: 'automerge'
2 changes: 1 addition & 1 deletion .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ concurrency:

jobs:
release-check:
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@v0.0
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@v1.0.22
2 changes: 1 addition & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ concurrency:

jobs:
releaser:
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0.22
2 changes: 1 addition & 1 deletion .github/workflows/tagpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ concurrency:

jobs:
releaser:
uses: ipdxco/unified-github-workflows/.github/workflows/tagpush.yml@v0.0
uses: ipdxco/unified-github-workflows/.github/workflows/tagpush.yml@v1.0.22
3 changes: 2 additions & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (s *Server) toEchoHandler(handlerFunc any) echo.HandlerFunc {

var j int
// Get path parameters
for i := 0; i < handlerFuncType.NumIn(); i++ {
for i := range handlerFuncType.NumIn() {
paramType := handlerFuncType.In(i)
if paramType.String() == "context.Context" {
inputParams = append(inputParams, reflect.ValueOf(c.Request().Context()))
Expand Down Expand Up @@ -346,6 +346,7 @@ func (s *Server) setupRoutes(e *echo.Echo) {
e.POST("/api/preparation/:id/piece", s.toEchoHandler(s.dataprepHandler.AddPieceHandler))

// Wallet
e.POST("/api/wallet/create", s.toEchoHandler(s.walletHandler.CreateHandler))
e.POST("/api/wallet", s.toEchoHandler(s.walletHandler.ImportHandler))
e.GET("/api/wallet", s.toEchoHandler(s.walletHandler.ListHandler))
e.DELETE("/api/wallet/:address", s.toEchoHandler(s.walletHandler.RemoveHandler))
Expand Down
11 changes: 11 additions & 0 deletions api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ func setupMockWallet() wallet.Handler {
m := new(wallet.MockWallet)
m.On("AttachHandler", mock.Anything, mock.Anything, "id", "wallet").
Return(&model.Preparation{}, nil)
m.On("CreateHandler", mock.Anything, mock.Anything, mock.Anything).
Return(&model.Wallet{}, nil)
m.On("DetachHandler", mock.Anything, mock.Anything, "id", "wallet").
Return(&model.Preparation{}, nil)
m.On("ImportHandler", mock.Anything, mock.Anything, mock.Anything, mock.Anything).
Expand Down Expand Up @@ -301,6 +303,15 @@ func TestAllAPIs(t *testing.T) {
})

t.Run("wallet", func(t *testing.T) {
t.Run("CreateWallet", func(t *testing.T) {
resp, err := client.Wallet.CreateWallet(&wallet2.CreateWalletParams{
Request: &models.WalletCreateRequest{},
Context: ctx,
})
require.NoError(t, err)
require.True(t, resp.IsSuccess())
require.NotNil(t, resp.Payload)
})
t.Run("ImportWallet", func(t *testing.T) {
resp, err := client.Wallet.ImportWallet(&wallet2.ImportWalletParams{
Request: &models.WalletImportRequest{},
Expand Down
153 changes: 153 additions & 0 deletions client/swagger/http/wallet/create_wallet_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading