diff --git a/coins/bitcoin/go.mod b/coins/bitcoin/go.mod index d3876cf..2dd3fb4 100644 --- a/coins/bitcoin/go.mod +++ b/coins/bitcoin/go.mod @@ -8,9 +8,9 @@ require ( github.com/btcsuite/btcd/btcutil v1.1.3 github.com/btcsuite/btcd/btcutil/psbt v1.1.8 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 - github.com/stretchr/testify v1.8.4 github.com/okx/go-wallet-sdk/crypto v0.0.1 github.com/okx/go-wallet-sdk/util v0.0.1 + github.com/stretchr/testify v1.8.4 ) require ( diff --git a/coins/cosmos/go.mod b/coins/cosmos/go.mod index c2d35d1..75864be 100644 --- a/coins/cosmos/go.mod +++ b/coins/cosmos/go.mod @@ -6,9 +6,9 @@ require ( github.com/btcsuite/btcd/btcec/v2 v2.3.2 github.com/btcsuite/btcd/btcutil v1.1.3 github.com/ethereum/go-ethereum v1.12.2 + github.com/okx/go-wallet-sdk/crypto v0.0.1 github.com/stretchr/testify v1.8.4 github.com/tyler-smith/go-bip39 v1.1.0 - github.com/okx/go-wallet-sdk/crypto v0.0.1 golang.org/x/crypto v0.12.0 ) diff --git a/coins/ethereum/eth.go b/coins/ethereum/eth.go index 0038179..bc89565 100644 --- a/coins/ethereum/eth.go +++ b/coins/ethereum/eth.go @@ -3,6 +3,7 @@ package ethereum import ( "encoding/hex" "fmt" + "github.com/btcsuite/btcd/btcec/v2" "math/big" "github.com/btcsuite/btcd/btcec/v2/ecdsa" diff --git a/coins/ethereum/eth_test.go b/coins/ethereum/eth_test.go index 3d6aba4..b50c8fa 100644 --- a/coins/ethereum/eth_test.go +++ b/coins/ethereum/eth_test.go @@ -3,6 +3,7 @@ package ethereum import ( "encoding/hex" "fmt" + "github.com/btcsuite/btcd/btcec/v2" "math/big" "testing" diff --git a/coins/ethereum/go.mod b/coins/ethereum/go.mod index 151ab86..eb377b0 100644 --- a/coins/ethereum/go.mod +++ b/coins/ethereum/go.mod @@ -5,9 +5,9 @@ go 1.19 require ( github.com/btcsuite/btcd/btcec/v2 v2.3.2 github.com/ethereum/go-ethereum v1.12.2 - github.com/stretchr/testify v1.8.1 github.com/okx/go-wallet-sdk/crypto v0.0.1 github.com/okx/go-wallet-sdk/util v0.0.1 + github.com/stretchr/testify v1.8.1 golang.org/x/crypto v0.12.0 ) @@ -20,5 +20,3 @@ require ( golang.org/x/sys v0.11.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -replace github.com/okx/go-wallet-sdk/util => ../../util diff --git a/coins/filecoin/go.mod b/coins/filecoin/go.mod index 538448f..8d0f484 100644 --- a/coins/filecoin/go.mod +++ b/coins/filecoin/go.mod @@ -7,8 +7,8 @@ require ( github.com/dchest/blake2b v1.0.0 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 github.com/fxamacker/cbor v1.5.1 - github.com/stretchr/testify v1.8.4 github.com/okx/go-wallet-sdk/util v0.0.1 + github.com/stretchr/testify v1.8.4 ) require ( diff --git a/coins/near/go.mod b/coins/near/go.mod index 0793d10..0be38c8 100644 --- a/coins/near/go.mod +++ b/coins/near/go.mod @@ -3,10 +3,10 @@ module github.com/okx/go-wallet-sdk/coins/near go 1.19 require ( - github.com/shopspring/decimal v1.3.1 - github.com/stretchr/testify v1.8.4 github.com/okx/go-wallet-sdk/crypto v0.0.1 github.com/okx/go-wallet-sdk/util v0.0.1 + github.com/shopspring/decimal v1.3.1 + github.com/stretchr/testify v1.8.4 ) require ( diff --git a/coins/solana/go.mod b/coins/solana/go.mod index dedd637..3b75b11 100644 --- a/coins/solana/go.mod +++ b/coins/solana/go.mod @@ -3,8 +3,8 @@ module github.com/okx/go-wallet-sdk/coins/solana go 1.19 require ( - github.com/tyler-smith/go-bip39 v1.1.0 github.com/okx/go-wallet-sdk/crypto v0.0.1 + github.com/tyler-smith/go-bip39 v1.1.0 ) require ( diff --git a/coins/stacks/go.mod b/coins/stacks/go.mod index c78ff7c..d68526d 100644 --- a/coins/stacks/go.mod +++ b/coins/stacks/go.mod @@ -5,8 +5,8 @@ go 1.19 require ( github.com/btcsuite/btcd/btcec/v2 v2.3.2 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 - github.com/stretchr/testify v1.8.4 github.com/okx/go-wallet-sdk/crypto v0.0.1 + github.com/stretchr/testify v1.8.4 golang.org/x/crypto v0.12.0 ) diff --git a/coins/sui/go.mod b/coins/sui/go.mod index f3005ff..d8e3c25 100644 --- a/coins/sui/go.mod +++ b/coins/sui/go.mod @@ -4,8 +4,8 @@ go 1.19 require ( github.com/dchest/blake2b v1.0.0 - github.com/stretchr/testify v1.8.4 github.com/okx/go-wallet-sdk/crypto v0.0.1 + github.com/stretchr/testify v1.8.4 ) require ( diff --git a/go.mod b/go.mod index 663c9d5..a36a323 100644 --- a/go.mod +++ b/go.mod @@ -1,39 +1,3 @@ module github.com/okx/go-wallet-sdk go 1.19 - -require ( - github.com/btcsuite/btcd v0.23.4 - github.com/btcsuite/btcd/btcec/v2 v2.3.2 - github.com/btcsuite/btcd/btcutil v1.1.3 - github.com/btcsuite/btcd/btcutil/psbt v1.1.8 - github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 - github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d - github.com/dchest/blake2b v1.0.0 - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 - github.com/ethereum/go-ethereum v1.12.0 - github.com/fxamacker/cbor v1.5.1 - github.com/golang/protobuf v1.5.3 - github.com/shopspring/decimal v1.3.1 - github.com/stretchr/testify v1.8.1 - github.com/tyler-smith/go-bip32 v1.0.0 - github.com/tyler-smith/go-bip39 v1.1.0 - golang.org/x/crypto v0.1.0 -) - -require ( - github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e // indirect - github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec // indirect - golang.org/x/sys v0.7.0 // indirect -) - -require ( - github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect - github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/x448/float16 v0.8.4 // indirect - google.golang.org/protobuf v1.28.1 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect -)