diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:31:08 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 16:57:29 +0800 |
commit | ac088de6322fc16ebe75c2e5554be73754bf1fe2 (patch) | |
tree | 086b7827d46a4d07b834cd94be73beaabb77b734 /signer/core | |
parent | 67d565f3f0e398e99bef96827f729e3e4b0edf31 (diff) | |
download | go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.gz go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.zst go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.zip |
Rebrand as tangerine-network/go-tangerine
Diffstat (limited to 'signer/core')
-rw-r--r-- | signer/core/abihelper.go | 4 | ||||
-rw-r--r-- | signer/core/abihelper_test.go | 4 | ||||
-rw-r--r-- | signer/core/api.go | 20 | ||||
-rw-r--r-- | signer/core/api_test.go | 14 | ||||
-rw-r--r-- | signer/core/auditlog.go | 10 | ||||
-rw-r--r-- | signer/core/cliui.go | 6 | ||||
-rw-r--r-- | signer/core/stdioui.go | 6 | ||||
-rw-r--r-- | signer/core/types.go | 8 | ||||
-rw-r--r-- | signer/core/validation.go | 4 | ||||
-rw-r--r-- | signer/core/validation_test.go | 4 |
10 files changed, 40 insertions, 40 deletions
diff --git a/signer/core/abihelper.go b/signer/core/abihelper.go index e1980979b..6274de1f5 100644 --- a/signer/core/abihelper.go +++ b/signer/core/abihelper.go @@ -22,8 +22,8 @@ import ( "io/ioutil" "strings" - "github.com/dexon-foundation/dexon/accounts/abi" - "github.com/dexon-foundation/dexon/common" + "github.com/tangerine-network/go-tangerine/accounts/abi" + "github.com/tangerine-network/go-tangerine/common" "bytes" "os" diff --git a/signer/core/abihelper_test.go b/signer/core/abihelper_test.go index a37cd2794..36427dbce 100644 --- a/signer/core/abihelper_test.go +++ b/signer/core/abihelper_test.go @@ -25,8 +25,8 @@ import ( "math/big" "reflect" - "github.com/dexon-foundation/dexon/accounts/abi" - "github.com/dexon-foundation/dexon/common" + "github.com/tangerine-network/go-tangerine/accounts/abi" + "github.com/tangerine-network/go-tangerine/common" ) func verify(t *testing.T, jsondata, calldata string, exp []interface{}) { diff --git a/signer/core/api.go b/signer/core/api.go index d76b89a8d..ef05e5a2a 100644 --- a/signer/core/api.go +++ b/signer/core/api.go @@ -25,15 +25,15 @@ import ( "math/big" "reflect" - "github.com/dexon-foundation/dexon/accounts" - "github.com/dexon-foundation/dexon/accounts/keystore" - "github.com/dexon-foundation/dexon/accounts/usbwallet" - "github.com/dexon-foundation/dexon/common" - "github.com/dexon-foundation/dexon/common/hexutil" - "github.com/dexon-foundation/dexon/crypto" - "github.com/dexon-foundation/dexon/internal/ethapi" - "github.com/dexon-foundation/dexon/log" - "github.com/dexon-foundation/dexon/rlp" + "github.com/tangerine-network/go-tangerine/accounts" + "github.com/tangerine-network/go-tangerine/accounts/keystore" + "github.com/tangerine-network/go-tangerine/accounts/usbwallet" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/common/hexutil" + "github.com/tangerine-network/go-tangerine/crypto" + "github.com/tangerine-network/go-tangerine/internal/ethapi" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/rlp" ) // numberOfAccountsToDerive For hardware wallets, the number of accounts to derive @@ -518,7 +518,7 @@ func (api *SignerAPI) SignTransaction(ctx context.Context, args SendTxArgs, meth // // The key used to calculate the signature is decrypted with the given password. // -// https://github.com/dexon-foundation/dexon/wiki/Management-APIs#personal_sign +// https://github.com/tangerine-network/go-tangerine/wiki/Management-APIs#personal_sign func (api *SignerAPI) Sign(ctx context.Context, addr common.MixedcaseAddress, data hexutil.Bytes) (hexutil.Bytes, error) { sighash, msg := SignHash(data) // We make the request prior to looking up if we actually have the account, to prevent diff --git a/signer/core/api_test.go b/signer/core/api_test.go index 885a59f47..3e6cfc97c 100644 --- a/signer/core/api_test.go +++ b/signer/core/api_test.go @@ -28,13 +28,13 @@ import ( "testing" "time" - "github.com/dexon-foundation/dexon/accounts/keystore" - "github.com/dexon-foundation/dexon/cmd/utils" - "github.com/dexon-foundation/dexon/common" - "github.com/dexon-foundation/dexon/common/hexutil" - "github.com/dexon-foundation/dexon/core/types" - "github.com/dexon-foundation/dexon/internal/ethapi" - "github.com/dexon-foundation/dexon/rlp" + "github.com/tangerine-network/go-tangerine/accounts/keystore" + "github.com/tangerine-network/go-tangerine/cmd/utils" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/common/hexutil" + "github.com/tangerine-network/go-tangerine/core/types" + "github.com/tangerine-network/go-tangerine/internal/ethapi" + "github.com/tangerine-network/go-tangerine/rlp" ) //Used for testing diff --git a/signer/core/auditlog.go b/signer/core/auditlog.go index 142e794f5..b2eafc89e 100644 --- a/signer/core/auditlog.go +++ b/signer/core/auditlog.go @@ -21,11 +21,11 @@ import ( "encoding/json" - "github.com/dexon-foundation/dexon/accounts" - "github.com/dexon-foundation/dexon/common" - "github.com/dexon-foundation/dexon/common/hexutil" - "github.com/dexon-foundation/dexon/internal/ethapi" - "github.com/dexon-foundation/dexon/log" + "github.com/tangerine-network/go-tangerine/accounts" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/common/hexutil" + "github.com/tangerine-network/go-tangerine/internal/ethapi" + "github.com/tangerine-network/go-tangerine/log" ) type AuditLogger struct { diff --git a/signer/core/cliui.go b/signer/core/cliui.go index dc970519e..9e5d98c5c 100644 --- a/signer/core/cliui.go +++ b/signer/core/cliui.go @@ -25,9 +25,9 @@ import ( "sync" "github.com/davecgh/go-spew/spew" - "github.com/dexon-foundation/dexon/common/hexutil" - "github.com/dexon-foundation/dexon/internal/ethapi" - "github.com/dexon-foundation/dexon/log" + "github.com/tangerine-network/go-tangerine/common/hexutil" + "github.com/tangerine-network/go-tangerine/internal/ethapi" + "github.com/tangerine-network/go-tangerine/log" "golang.org/x/crypto/ssh/terminal" ) diff --git a/signer/core/stdioui.go b/signer/core/stdioui.go index 342488a70..b7d0641d8 100644 --- a/signer/core/stdioui.go +++ b/signer/core/stdioui.go @@ -21,9 +21,9 @@ import ( "context" "sync" - "github.com/dexon-foundation/dexon/internal/ethapi" - "github.com/dexon-foundation/dexon/log" - "github.com/dexon-foundation/dexon/rpc" + "github.com/tangerine-network/go-tangerine/internal/ethapi" + "github.com/tangerine-network/go-tangerine/log" + "github.com/tangerine-network/go-tangerine/rpc" ) type StdIOUI struct { diff --git a/signer/core/types.go b/signer/core/types.go index 2e433094d..66a606f41 100644 --- a/signer/core/types.go +++ b/signer/core/types.go @@ -23,10 +23,10 @@ import ( "math/big" - "github.com/dexon-foundation/dexon/accounts" - "github.com/dexon-foundation/dexon/common" - "github.com/dexon-foundation/dexon/common/hexutil" - "github.com/dexon-foundation/dexon/core/types" + "github.com/tangerine-network/go-tangerine/accounts" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/common/hexutil" + "github.com/tangerine-network/go-tangerine/core/types" ) type Accounts []Account diff --git a/signer/core/validation.go b/signer/core/validation.go index f3ccfb1c7..cc9c6c3c1 100644 --- a/signer/core/validation.go +++ b/signer/core/validation.go @@ -23,7 +23,7 @@ import ( "math/big" "regexp" - "github.com/dexon-foundation/dexon/common" + "github.com/tangerine-network/go-tangerine/common" ) // The validation package contains validation checks for transactions @@ -118,7 +118,7 @@ func (v *Validator) validate(msgs *ValidationMessages, txargs *SendTxArgs, metho if txargs.To == nil { //Contract creation should contain sufficient data to deploy a contract // A typical error is omitting sender due to some quirk in the javascript call - // e.g. https://github.com/dexon-foundation/dexon/issues/16106 + // e.g. https://github.com/tangerine-network/go-tangerine/issues/16106 if len(data) == 0 { if txargs.Value.ToInt().Cmp(big.NewInt(0)) > 0 { // Sending ether into black hole diff --git a/signer/core/validation_test.go b/signer/core/validation_test.go index 2afc28bea..f0ecede17 100644 --- a/signer/core/validation_test.go +++ b/signer/core/validation_test.go @@ -21,8 +21,8 @@ import ( "math/big" "testing" - "github.com/dexon-foundation/dexon/common" - "github.com/dexon-foundation/dexon/common/hexutil" + "github.com/tangerine-network/go-tangerine/common" + "github.com/tangerine-network/go-tangerine/common/hexutil" ) func hexAddr(a string) common.Address { return common.BytesToAddress(common.FromHex(a)) } |