Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump major module version to 5 #2405

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ https://decred.org/downloads/
to download, build, and install without needing to clone the repo. Run:

```sh
$ go install decred.org/dcrwallet/v4@master
$ go install decred.org/dcrwallet/v5@master
```

to build the latest master branch, or:

```sh
$ go install decred.org/dcrwallet/v3@latest
$ go install decred.org/dcrwallet/v4@latest
```

for the latest released version.
Expand Down
8 changes: 4 additions & 4 deletions chain/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"sync/atomic"
"time"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/rpc/client/dcrd"
"decred.org/dcrwallet/v4/validate"
"decred.org/dcrwallet/v4/wallet"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/rpc/client/dcrd"
"decred.org/dcrwallet/v5/validate"
"decred.org/dcrwallet/v5/wallet"
"github.com/decred/dcrd/blockchain/stake/v5"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/crypto/blake256"
Expand Down
4 changes: 2 additions & 2 deletions cmd/movefunds/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"fmt"
"os"

"decred.org/dcrwallet/v4/rpc/jsonrpc/types"
"decred.org/dcrwallet/v4/wallet/txauthor"
"decred.org/dcrwallet/v5/rpc/jsonrpc/types"
"decred.org/dcrwallet/v5/wallet/txauthor"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/dcrutil/v4"
Expand Down
6 changes: 3 additions & 3 deletions cmd/sweepaccount/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"os"
"path/filepath"

"decred.org/dcrwallet/v4/rpc/jsonrpc/types"
"decred.org/dcrwallet/v4/wallet/txauthor"
"decred.org/dcrwallet/v4/wallet/txrules"
"decred.org/dcrwallet/v5/rpc/jsonrpc/types"
"decred.org/dcrwallet/v5/wallet/txauthor"
"decred.org/dcrwallet/v5/wallet/txrules"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/dcrutil/v4"
Expand Down
14 changes: 7 additions & 7 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import (
"strings"

"decred.org/cspp/v2/solverrpc"
"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/internal/cfgutil"
"decred.org/dcrwallet/v4/internal/loggers"
"decred.org/dcrwallet/v4/internal/netparams"
"decred.org/dcrwallet/v4/version"
"decred.org/dcrwallet/v4/wallet"
"decred.org/dcrwallet/v4/wallet/txrules"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/internal/cfgutil"
"decred.org/dcrwallet/v5/internal/loggers"
"decred.org/dcrwallet/v5/internal/netparams"
"decred.org/dcrwallet/v5/version"
"decred.org/dcrwallet/v5/wallet"
"decred.org/dcrwallet/v5/wallet/txrules"
"github.com/decred/dcrd/connmgr/v3"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrd/txscript/v4/stdaddr"
Expand Down
24 changes: 12 additions & 12 deletions dcrwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ import (
"runtime/pprof"
"time"

"decred.org/dcrwallet/v4/chain"
"decred.org/dcrwallet/v4/errors"
ldr "decred.org/dcrwallet/v4/internal/loader"
"decred.org/dcrwallet/v4/internal/loggers"
"decred.org/dcrwallet/v4/internal/prompt"
"decred.org/dcrwallet/v4/internal/rpc/rpcserver"
"decred.org/dcrwallet/v4/p2p"
"decred.org/dcrwallet/v4/spv"
"decred.org/dcrwallet/v4/ticketbuyer"
"decred.org/dcrwallet/v4/version"
"decred.org/dcrwallet/v4/vsp"
"decred.org/dcrwallet/v4/wallet"
"decred.org/dcrwallet/v5/chain"
"decred.org/dcrwallet/v5/errors"
ldr "decred.org/dcrwallet/v5/internal/loader"
"decred.org/dcrwallet/v5/internal/loggers"
"decred.org/dcrwallet/v5/internal/prompt"
"decred.org/dcrwallet/v5/internal/rpc/rpcserver"
"decred.org/dcrwallet/v5/p2p"
"decred.org/dcrwallet/v5/spv"
"decred.org/dcrwallet/v5/ticketbuyer"
"decred.org/dcrwallet/v5/version"
"decred.org/dcrwallet/v5/vsp"
"decred.org/dcrwallet/v5/wallet"
"github.com/decred/dcrd/addrmgr/v2"
"github.com/decred/dcrd/wire"
)
Expand Down
2 changes: 1 addition & 1 deletion deployments/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package deployments
import (
"context"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
"github.com/decred/dcrd/chaincfg/v3"
dcrdtypes "github.com/decred/dcrd/rpc/jsonrpc/types/v4"
"github.com/decred/dcrd/wire"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module decred.org/dcrwallet/v4
module decred.org/dcrwallet/v5

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion internal/cfgutil/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package cfgutil

import (
"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
"github.com/decred/dcrd/txscript/v4/stdaddr"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cfgutil/curve.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"io"
"time"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
"github.com/decred/dcrd/certgen"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"path/filepath"
"sync"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/wallet"
_ "decred.org/dcrwallet/v4/wallet/drivers/bdb" // driver loaded during init
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/wallet"
_ "decred.org/dcrwallet/v5/wallet/drivers/bdb" // driver loaded during init
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrd/txscript/v4/stdaddr"
Expand Down
6 changes: 3 additions & 3 deletions internal/loader/vsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package loader
import (
"sync"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/internal/loggers"
"decred.org/dcrwallet/v4/vsp"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/internal/loggers"
"decred.org/dcrwallet/v5/vsp"
)

var vspClients = struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"time"
"unicode"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/walletseed"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/walletseed"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/hdkeychain/v3"
"golang.org/x/term"
Expand Down
2 changes: 1 addition & 1 deletion internal/rpc/jsonrpc/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package jsonrpc
import (
"fmt"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
"github.com/decred/dcrd/dcrjson/v4"
"github.com/jrick/wsrpc/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/rpc/jsonrpc/marshaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"

"decred.org/dcrwallet/v4/wallet"
"decred.org/dcrwallet/v5/wallet"
)

type marshalJSONFunc func() ([]byte, error)
Expand Down
28 changes: 14 additions & 14 deletions internal/rpc/jsonrpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ import (
"sync"
"time"

"decred.org/dcrwallet/v4/chain"
"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/internal/loader"
"decred.org/dcrwallet/v4/p2p"
"decred.org/dcrwallet/v4/rpc/client/dcrd"
"decred.org/dcrwallet/v4/rpc/jsonrpc/types"
"decred.org/dcrwallet/v4/spv"
"decred.org/dcrwallet/v4/version"
"decred.org/dcrwallet/v4/vsp"
"decred.org/dcrwallet/v4/wallet"
"decred.org/dcrwallet/v4/wallet/txauthor"
"decred.org/dcrwallet/v4/wallet/txrules"
"decred.org/dcrwallet/v4/wallet/txsizes"
"decred.org/dcrwallet/v4/wallet/udb"
"decred.org/dcrwallet/v5/chain"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/internal/loader"
"decred.org/dcrwallet/v5/p2p"
"decred.org/dcrwallet/v5/rpc/client/dcrd"
"decred.org/dcrwallet/v5/rpc/jsonrpc/types"
"decred.org/dcrwallet/v5/spv"
"decred.org/dcrwallet/v5/version"
"decred.org/dcrwallet/v5/vsp"
"decred.org/dcrwallet/v5/wallet"
"decred.org/dcrwallet/v5/wallet/txauthor"
"decred.org/dcrwallet/v5/wallet/txrules"
"decred.org/dcrwallet/v5/wallet/txsizes"
"decred.org/dcrwallet/v5/wallet/udb"
"github.com/decred/dcrd/blockchain/stake/v5"
blockchain "github.com/decred/dcrd/blockchain/standalone/v2"
"github.com/decred/dcrd/chaincfg/chainhash"
Expand Down
4 changes: 2 additions & 2 deletions internal/rpc/jsonrpc/rpchelp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"strings"
"testing"

"decred.org/dcrwallet/v4/internal/rpchelp"
"decred.org/dcrwallet/v4/rpc/jsonrpc/types"
"decred.org/dcrwallet/v5/internal/rpchelp"
"decred.org/dcrwallet/v5/rpc/jsonrpc/types"
"github.com/decred/dcrd/dcrjson/v4"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/rpc/jsonrpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"sync/atomic"
"time"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/internal/loader"
"decred.org/dcrwallet/v4/rpc/jsonrpc/types"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/internal/loader"
"decred.org/dcrwallet/v5/rpc/jsonrpc/types"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/dcrjson/v4"
dcrdtypes "github.com/decred/dcrd/rpc/jsonrpc/types/v4"
Expand Down
30 changes: 15 additions & 15 deletions internal/rpc/rpcserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"decred.org/dcrwallet/v4/chain"
"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/internal/cfgutil"
"decred.org/dcrwallet/v4/internal/loader"
"decred.org/dcrwallet/v4/internal/netparams"
"decred.org/dcrwallet/v4/p2p"
pb "decred.org/dcrwallet/v4/rpc/walletrpc"
"decred.org/dcrwallet/v4/spv"
"decred.org/dcrwallet/v4/ticketbuyer"
"decred.org/dcrwallet/v4/vsp"
"decred.org/dcrwallet/v4/wallet"
"decred.org/dcrwallet/v4/wallet/txauthor"
"decred.org/dcrwallet/v4/wallet/txrules"
"decred.org/dcrwallet/v4/wallet/udb"
"decred.org/dcrwallet/v4/walletseed"
"decred.org/dcrwallet/v5/chain"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/internal/cfgutil"
"decred.org/dcrwallet/v5/internal/loader"
"decred.org/dcrwallet/v5/internal/netparams"
"decred.org/dcrwallet/v5/p2p"
pb "decred.org/dcrwallet/v5/rpc/walletrpc"
"decred.org/dcrwallet/v5/spv"
"decred.org/dcrwallet/v5/ticketbuyer"
"decred.org/dcrwallet/v5/vsp"
"decred.org/dcrwallet/v5/wallet"
"decred.org/dcrwallet/v5/wallet/txauthor"
"decred.org/dcrwallet/v5/wallet/txrules"
"decred.org/dcrwallet/v5/wallet/udb"
"decred.org/dcrwallet/v5/walletseed"
"github.com/decred/dcrd/addrmgr/v2"
"github.com/decred/dcrd/blockchain/stake/v5"
"github.com/decred/dcrd/chaincfg/chainhash"
Expand Down
4 changes: 2 additions & 2 deletions internal/rpchelp/genrpcserverhelp.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"os"
"strings"

"decred.org/dcrwallet/v4/internal/rpchelp"
"decred.org/dcrwallet/v4/rpc/jsonrpc/types"
"decred.org/dcrwallet/v5/internal/rpchelp"
"decred.org/dcrwallet/v5/rpc/jsonrpc/types"
"github.com/decred/dcrd/dcrjson/v4"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/rpchelp/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
package rpchelp

import (
"decred.org/dcrwallet/v4/rpc/jsonrpc/types"
"decred.org/dcrwallet/v5/rpc/jsonrpc/types"
dcrdtypes "github.com/decred/dcrd/rpc/jsonrpc/types/v4"
)

Expand Down
2 changes: 1 addition & 1 deletion ipc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"io"
"os"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
)

// Messages sent over a pipe are encoded using a simple binary message format:
Expand Down
20 changes: 10 additions & 10 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ package main
import (
"os"

"decred.org/dcrwallet/v4/chain"
"decred.org/dcrwallet/v4/internal/loader"
"decred.org/dcrwallet/v4/internal/loggers"
"decred.org/dcrwallet/v4/internal/rpc/jsonrpc"
"decred.org/dcrwallet/v4/internal/rpc/rpcserver"
"decred.org/dcrwallet/v4/p2p"
"decred.org/dcrwallet/v4/spv"
"decred.org/dcrwallet/v4/ticketbuyer"
"decred.org/dcrwallet/v4/wallet"
"decred.org/dcrwallet/v4/wallet/udb"
"decred.org/dcrwallet/v5/chain"
"decred.org/dcrwallet/v5/internal/loader"
"decred.org/dcrwallet/v5/internal/loggers"
"decred.org/dcrwallet/v5/internal/rpc/jsonrpc"
"decred.org/dcrwallet/v5/internal/rpc/rpcserver"
"decred.org/dcrwallet/v5/p2p"
"decred.org/dcrwallet/v5/spv"
"decred.org/dcrwallet/v5/ticketbuyer"
"decred.org/dcrwallet/v5/wallet"
"decred.org/dcrwallet/v5/wallet/udb"
"github.com/decred/dcrd/connmgr/v3"
"github.com/decred/dcrd/mixing/mixpool"
"github.com/decred/slog"
Expand Down
6 changes: 3 additions & 3 deletions p2p/peering.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"sync/atomic"
"time"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/lru"
"decred.org/dcrwallet/v4/version"
"decred.org/dcrwallet/v5/errors"
"decred.org/dcrwallet/v5/lru"
"decred.org/dcrwallet/v5/version"
"github.com/decred/dcrd/addrmgr/v2"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/chaincfg/v3"
Expand Down
2 changes: 1 addition & 1 deletion params.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

package main

import "decred.org/dcrwallet/v4/internal/netparams"
import "decred.org/dcrwallet/v5/internal/netparams"

var activeNet = &netparams.MainNetParams
2 changes: 1 addition & 1 deletion pgpwordlist/pgpwordlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package pgpwordlist
import (
"strings"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
)

// ByteToMnemonic returns the PGP word list encoding of b when found at index.
Expand Down
2 changes: 1 addition & 1 deletion rpc/client/dcrd/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"fmt"
"strings"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrd/gcs/v4"
Expand Down
2 changes: 1 addition & 1 deletion rpc/client/dcrd/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"io"
"strings"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v5/errors"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/gcs/v4"
blockcf "github.com/decred/dcrd/gcs/v4/blockcf2"
Expand Down
Loading
Loading