Skip to content

Commit

Permalink
Update to dcrwallet v5 module
Browse files Browse the repository at this point in the history
dcrwallet master branch has an incompatible JSON-RPC API with the latest 2.0.x
release.  This updates to the latest module that includes the breaking type
changes, which changes the arguments to the 'purchaseticket' method, and
removes the 'stakepooluserinfo' and 'ticketsforaddress' methods from the
supported wallet commands.
  • Loading branch information
jrick authored and davecgh committed Sep 19, 2024
1 parent 45551c2 commit ca66da6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 257 deletions.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/decred/dcrd/dcrjson/v4"
"github.com/decred/dcrd/dcrutil/v4"

wallettypes "decred.org/dcrwallet/v4/rpc/jsonrpc/types"
wallettypes "decred.org/dcrwallet/v5/rpc/jsonrpc/types"
dcrdtypes "github.com/decred/dcrd/rpc/jsonrpc/types/v4"

flags "github.com/jessevdk/go-flags"
Expand Down
2 changes: 1 addition & 1 deletion dcrctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"path/filepath"
"strings"

wallettypes "decred.org/dcrwallet/v4/rpc/jsonrpc/types"
wallettypes "decred.org/dcrwallet/v5/rpc/jsonrpc/types"
"github.com/decred/dcrd/dcrjson/v4"
dcrdtypes "github.com/decred/dcrd/rpc/jsonrpc/types/v4"
)
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module decred.org/dcrctl

go 1.17
go 1.22

require (
decred.org/dcrwallet/v4 v4.1.3
decred.org/dcrwallet/v5 v5.0.0-20240919142439-4b3ccac3c01b
github.com/decred/dcrd/dcrjson/v4 v4.1.0
github.com/decred/dcrd/dcrutil/v4 v4.0.2
github.com/decred/dcrd/rpc/jsonrpc/types/v4 v4.3.0
Expand All @@ -25,6 +25,6 @@ require (
github.com/decred/dcrd/wire v1.7.0 // indirect
github.com/decred/slog v1.2.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
golang.org/x/sys v0.23.0 // indirect
golang.org/x/sys v0.25.0 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
)
Loading

0 comments on commit ca66da6

Please sign in to comment.