replace ethereum/accounts with harmony/accounts

Signed-off-by: Leo Chen <leo@harmony.one>
pull/832/head
Leo Chen 6 years ago
parent 7f783e50ea
commit 91516b2498
  1. 2
      accounts/abi/bind/auth.go
  2. 2
      accounts/abi/bind/backends/simulated.go
  3. 4
      accounts/abi/bind/backends/simulated_test.go
  4. 2
      accounts/abi/bind/base.go
  5. 4
      accounts/abi/bind/base_test.go
  6. 2
      accounts/abi/bind/bind.go
  7. 44
      accounts/abi/bind/bind_test.go
  8. 6
      accounts/abi/bind/template.go
  9. 2
      accounts/abi/bind/topics.go
  10. 2
      accounts/abi/bind/topics_test.go
  11. 4
      accounts/abi/bind/util_test.go
  12. 2
      accounts/external/backend.go
  13. 2
      accounts/keystore/account_cache.go
  14. 2
      accounts/keystore/account_cache_test.go
  15. 2
      accounts/keystore/key.go
  16. 2
      accounts/keystore/keystore.go
  17. 2
      accounts/keystore/keystore_test.go
  18. 2
      accounts/keystore/passphrase.go
  19. 2
      accounts/keystore/presale.go
  20. 2
      accounts/keystore/wallet.go

@ -22,7 +22,7 @@ import (
"io"
"io/ioutil"
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/harmony-one/harmony/accounts/keystore"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"

@ -25,7 +25,7 @@ import (
"time"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/consensus/ethash"

@ -22,8 +22,8 @@ import (
"testing"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"

@ -23,7 +23,7 @@ import (
"math/big"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/harmony-one/harmony/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"

@ -24,8 +24,8 @@ import (
"testing"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"

@ -29,7 +29,7 @@ import (
"text/template"
"unicode"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/harmony-one/harmony/accounts/abi"
)
// Lang is a target programming language selector to generate bindings for.

@ -249,8 +249,8 @@ var bindTests = []struct {
`
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
`,
@ -298,8 +298,8 @@ var bindTests = []struct {
`
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
`,
@ -338,8 +338,8 @@ var bindTests = []struct {
`
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
`,
@ -389,8 +389,8 @@ var bindTests = []struct {
"math/big"
"reflect"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
@ -432,8 +432,8 @@ var bindTests = []struct {
`
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
`,
@ -473,8 +473,8 @@ var bindTests = []struct {
`6060604052609f8060106000396000f3606060405260e060020a6000350463f97a60058114601a575b005b600060605260c0604052600d60809081527f4920646f6e27742065786973740000000000000000000000000000000000000060a052602060c0908152600d60e081905281906101009060a09080838184600060046012f15050815172ffffffffffffffffffffffffffffffffffffff1916909152505060405161012081900392509050f3`,
`[{"constant":true,"inputs":[],"name":"String","outputs":[{"name":"","type":"string"}],"type":"function"}]`,
`
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
`,
`
@ -514,8 +514,8 @@ var bindTests = []struct {
`
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
`,
@ -557,8 +557,8 @@ var bindTests = []struct {
`
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
@ -627,8 +627,8 @@ var bindTests = []struct {
"fmt"
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
`,
@ -714,8 +714,8 @@ var bindTests = []struct {
"math/big"
"time"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
@ -899,8 +899,8 @@ var bindTests = []struct {
`
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
`,

@ -16,7 +16,7 @@
package bind
import "github.com/ethereum/go-ethereum/accounts/abi"
import "github.com/harmony-one/harmony/accounts/abi"
// tmplData is the data structure required to fill the binding template.
type tmplData struct {
@ -69,8 +69,8 @@ import (
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"

@ -23,7 +23,7 @@ import (
"math/big"
"reflect"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/harmony-one/harmony/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
)

@ -20,7 +20,7 @@ import (
"reflect"
"testing"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/harmony-one/harmony/accounts/abi"
"github.com/ethereum/go-ethereum/common"
)

@ -22,8 +22,8 @@ import (
"testing"
"time"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/harmony-one/harmony/accounts/abi/bind"
"github.com/harmony-one/harmony/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"

@ -22,7 +22,7 @@ import (
"sync"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"

@ -28,7 +28,7 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
)

@ -29,7 +29,7 @@ import (
"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/common"
)

@ -29,7 +29,7 @@ import (
"strings"
"time"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pborman/uuid"

@ -33,7 +33,7 @@ import (
"sync"
"time"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"

@ -26,7 +26,7 @@ import (
"testing"
"time"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/event"
)

@ -38,7 +38,7 @@ import (
"os"
"path/filepath"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/crypto"

@ -25,7 +25,7 @@ import (
"errors"
"fmt"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pborman/uuid"
"golang.org/x/crypto/pbkdf2"

@ -20,7 +20,7 @@ import (
"math/big"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts"
"github.com/harmony-one/harmony/accounts"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
)

Loading…
Cancel
Save