aboutsummaryrefslogtreecommitdiffstats
path: root/signer
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:38 +0800
commit21cbe9d5b1630be351329a5715fd599030a00122 (patch)
treed595b8cceb54662497d44b102b6ddbbd60ec0a01 /signer
parent2ba220653fdf945844896458821808f2edd8f4af (diff)
downloadgo-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar.gz
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar.bz2
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar.lz
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar.xz
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.tar.zst
go-tangerine-21cbe9d5b1630be351329a5715fd599030a00122.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'signer')
-rw-r--r--signer/core/abihelper.go4
-rw-r--r--signer/core/abihelper_test.go4
-rw-r--r--signer/core/api.go20
-rw-r--r--signer/core/api_test.go14
-rw-r--r--signer/core/auditlog.go10
-rw-r--r--signer/core/cliui.go6
-rw-r--r--signer/core/stdioui.go6
-rw-r--r--signer/core/types.go8
-rw-r--r--signer/core/validation.go4
-rw-r--r--signer/core/validation_test.go4
-rw-r--r--signer/rules/rules.go12
-rw-r--r--signer/rules/rules_test.go14
-rw-r--r--signer/storage/aes_gcm_storage.go2
-rw-r--r--signer/storage/aes_gcm_storage_test.go4
14 files changed, 56 insertions, 56 deletions
diff --git a/signer/core/abihelper.go b/signer/core/abihelper.go
index 0fef24939..e1980979b 100644
--- a/signer/core/abihelper.go
+++ b/signer/core/abihelper.go
@@ -22,8 +22,8 @@ import (
"io/ioutil"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/dexon-foundation/dexon/accounts/abi"
+ "github.com/dexon-foundation/dexon/common"
"bytes"
"os"
diff --git a/signer/core/abihelper_test.go b/signer/core/abihelper_test.go
index 878210be1..a37cd2794 100644
--- a/signer/core/abihelper_test.go
+++ b/signer/core/abihelper_test.go
@@ -25,8 +25,8 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/dexon-foundation/dexon/accounts/abi"
+ "github.com/dexon-foundation/dexon/common"
)
func verify(t *testing.T, jsondata, calldata string, exp []interface{}) {
diff --git a/signer/core/api.go b/signer/core/api.go
index e9a335785..d76b89a8d 100644
--- a/signer/core/api.go
+++ b/signer/core/api.go
@@ -25,15 +25,15 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/accounts/usbwallet"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "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"
)
// 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/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
+// https://github.com/dexon-foundation/dexon/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 a8aa23896..885a59f47 100644
--- a/signer/core/api_test.go
+++ b/signer/core/api_test.go
@@ -28,13 +28,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/rlp"
+ "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"
)
//Used for testing
diff --git a/signer/core/auditlog.go b/signer/core/auditlog.go
index 1f9c90918..142e794f5 100644
--- a/signer/core/auditlog.go
+++ b/signer/core/auditlog.go
@@ -21,11 +21,11 @@ import (
"encoding/json"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
+ "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"
)
type AuditLogger struct {
diff --git a/signer/core/cliui.go b/signer/core/cliui.go
index 940f1f43a..dc970519e 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/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/common/hexutil"
+ "github.com/dexon-foundation/dexon/internal/ethapi"
+ "github.com/dexon-foundation/dexon/log"
"golang.org/x/crypto/ssh/terminal"
)
diff --git a/signer/core/stdioui.go b/signer/core/stdioui.go
index 64032386f..342488a70 100644
--- a/signer/core/stdioui.go
+++ b/signer/core/stdioui.go
@@ -21,9 +21,9 @@ import (
"context"
"sync"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/dexon-foundation/dexon/internal/ethapi"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/rpc"
)
type StdIOUI struct {
diff --git a/signer/core/types.go b/signer/core/types.go
index 128055774..2e433094d 100644
--- a/signer/core/types.go
+++ b/signer/core/types.go
@@ -23,10 +23,10 @@ import (
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "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"
)
type Accounts []Account
diff --git a/signer/core/validation.go b/signer/core/validation.go
index 7c3ec4274..f3ccfb1c7 100644
--- a/signer/core/validation.go
+++ b/signer/core/validation.go
@@ -23,7 +23,7 @@ import (
"math/big"
"regexp"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/dexon-foundation/dexon/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/ethereum/go-ethereum/issues/16106
+ // e.g. https://github.com/dexon-foundation/dexon/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 155b25e92..2afc28bea 100644
--- a/signer/core/validation_test.go
+++ b/signer/core/validation_test.go
@@ -21,8 +21,8 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/common/hexutil"
)
func hexAddr(a string) common.Address { return common.BytesToAddress(common.FromHex(a)) }
diff --git a/signer/rules/rules.go b/signer/rules/rules.go
index 07c34db22..ce1f3e001 100644
--- a/signer/rules/rules.go
+++ b/signer/rules/rules.go
@@ -22,12 +22,12 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/signer/core"
- "github.com/ethereum/go-ethereum/signer/rules/deps"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/internal/ethapi"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/signer/core"
+ "github.com/dexon-foundation/dexon/signer/rules/deps"
+ "github.com/dexon-foundation/dexon/signer/storage"
"github.com/robertkrimen/otto"
)
diff --git a/signer/rules/rules_test.go b/signer/rules/rules_test.go
index 0b520a15b..20887e5b7 100644
--- a/signer/rules/rules_test.go
+++ b/signer/rules/rules_test.go
@@ -22,13 +22,13 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/signer/core"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "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/dexon-foundation/dexon/internal/ethapi"
+ "github.com/dexon-foundation/dexon/signer/core"
+ "github.com/dexon-foundation/dexon/signer/storage"
)
const JS = `
diff --git a/signer/storage/aes_gcm_storage.go b/signer/storage/aes_gcm_storage.go
index 900831867..4fa1ba136 100644
--- a/signer/storage/aes_gcm_storage.go
+++ b/signer/storage/aes_gcm_storage.go
@@ -26,7 +26,7 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/log"
)
type storedCredential struct {
diff --git a/signer/storage/aes_gcm_storage_test.go b/signer/storage/aes_gcm_storage_test.go
index a421a8449..45bb07e27 100644
--- a/signer/storage/aes_gcm_storage_test.go
+++ b/signer/storage/aes_gcm_storage_test.go
@@ -23,8 +23,8 @@ import (
"io/ioutil"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/log"
"github.com/mattn/go-colorable"
)