Skip to content

Commit

Permalink
change go-tomochain to tomochain
Browse files Browse the repository at this point in the history
  • Loading branch information
pqv199x authored and thanhnguyennguyen committed Nov 11, 2019
1 parent 82ae3a4 commit 53a8a47
Show file tree
Hide file tree
Showing 636 changed files with 2,431 additions and 2,431 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: required
language: go
go_import_path: github.com/tomochain/go-tomochain
go_import_path: github.com/tomochain/tomochain

env:
global:
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (

"reflect"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/crypto"
)

const jsondata = `
Expand Down
8 changes: 4 additions & 4 deletions accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"io"
"io/ioutil"

"github.com/tomochain/go-tomochain/accounts/keystore"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/accounts/keystore"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/core/types"
"github.com/tomochain/tomochain/crypto"
)

// NewTransactor is a utility method to easily create a transaction signer from
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"errors"
"math/big"

"github.com/tomochain/go-tomochain"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/tomochain"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/core/types"
)

var (
Expand Down
30 changes: 15 additions & 15 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ import (
"sync"
"time"

"github.com/tomochain/go-tomochain"
"github.com/tomochain/go-tomochain/accounts/abi/bind"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/common/math"
"github.com/tomochain/go-tomochain/consensus/ethash"
"github.com/tomochain/go-tomochain/core"
"github.com/tomochain/go-tomochain/core/bloombits"
"github.com/tomochain/go-tomochain/core/state"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/go-tomochain/core/vm"
"github.com/tomochain/go-tomochain/eth/filters"
"github.com/tomochain/go-tomochain/ethdb"
"github.com/tomochain/go-tomochain/event"
"github.com/tomochain/go-tomochain/params"
"github.com/tomochain/go-tomochain/rpc"
"github.com/tomochain/tomochain"
"github.com/tomochain/tomochain/accounts/abi/bind"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/common/math"
"github.com/tomochain/tomochain/consensus/ethash"
"github.com/tomochain/tomochain/core"
"github.com/tomochain/tomochain/core/bloombits"
"github.com/tomochain/tomochain/core/state"
"github.com/tomochain/tomochain/core/types"
"github.com/tomochain/tomochain/core/vm"
"github.com/tomochain/tomochain/eth/filters"
"github.com/tomochain/tomochain/ethdb"
"github.com/tomochain/tomochain/event"
"github.com/tomochain/tomochain/params"
"github.com/tomochain/tomochain/rpc"
)

// This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend.
Expand Down
12 changes: 6 additions & 6 deletions accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import (
"fmt"
"math/big"

"github.com/tomochain/go-tomochain"
"github.com/tomochain/go-tomochain/accounts/abi"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/go-tomochain/event"
"github.com/tomochain/tomochain"
"github.com/tomochain/tomochain/accounts/abi"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/core/types"
"github.com/tomochain/tomochain/crypto"
"github.com/tomochain/tomochain/event"
)

// SignerFn is a signer function callback when a contract requires a method to
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"text/template"
"unicode"

"github.com/tomochain/go-tomochain/accounts/abi"
"github.com/tomochain/tomochain/accounts/abi"
"golang.org/x/tools/imports"
)

Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"strings"
"testing"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/common"
"golang.org/x/tools/imports"
)

Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package bind

import "github.com/tomochain/go-tomochain/accounts/abi"
import "github.com/tomochain/tomochain/accounts/abi"

// tmplData is the data structure required to fill the binding template.
type tmplData struct {
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"math/big"
"reflect"

"github.com/tomochain/go-tomochain/accounts/abi"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/accounts/abi"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/crypto"
)

// makeTopics converts a filter query argument list into a filter topic set.
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"fmt"
"time"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/go-tomochain/log"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/core/types"
"github.com/tomochain/tomochain/log"
)

// WaitMined waits for tx to be mined on the blockchain.
Expand Down
12 changes: 6 additions & 6 deletions accounts/abi/bind/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import (
"testing"
"time"

"github.com/tomochain/go-tomochain/accounts/abi/bind"
"github.com/tomochain/go-tomochain/accounts/abi/bind/backends"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/core"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/accounts/abi/bind"
"github.com/tomochain/tomochain/accounts/abi/bind/backends"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/core"
"github.com/tomochain/tomochain/core/types"
"github.com/tomochain/tomochain/crypto"
)

var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"strings"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/crypto"
)

// Event is an event potentially triggered by the EVM's LOG mechanism. The Event
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"strings"
"testing"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"strings"

"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/crypto"
)

// Method represents a callable given a `Name` and whether the method is a constant.
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"math/big"
"reflect"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/common/math"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/common/math"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"math/big"
"reflect"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/common/math"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/common/math"
)

// packBytesSlice packs the given bytes as [L, V] as the canonical representation
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"
"testing"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/common"
)

func TestPack(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"

"github.com/davecgh/go-spew/spew"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/common"
)

// typeWithoutStringer is a alias for the Type type which simply doesn't implement
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/unpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"math/big"
"reflect"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/common"
)

// reads the integer based on its kind
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/unpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"strings"
"testing"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/common"
"github.com/stretchr/testify/require"
)

Expand Down
8 changes: 4 additions & 4 deletions accounts/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ package accounts
import (
"math/big"

ethereum "github.com/tomochain/go-tomochain"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/go-tomochain/event"
ethereum "github.com/tomochain/tomochain"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/core/types"
"github.com/tomochain/tomochain/event"
)

// Account represents an Ethereum account located at a specific location defined
Expand Down
6 changes: 3 additions & 3 deletions accounts/keystore/account_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"sync"
"time"

"github.com/tomochain/go-tomochain/accounts"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/log"
"github.com/tomochain/tomochain/accounts"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/log"
mapset "github.com/deckarep/golang-set"
)

Expand Down
4 changes: 2 additions & 2 deletions accounts/keystore/account_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (

"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
"github.com/tomochain/go-tomochain/accounts"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/accounts"
"github.com/tomochain/tomochain/common"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion accounts/keystore/file_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"sync"
"time"

"github.com/tomochain/go-tomochain/log"
"github.com/tomochain/tomochain/log"
mapset "github.com/deckarep/golang-set"
)

Expand Down
6 changes: 3 additions & 3 deletions accounts/keystore/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"strings"
"time"

"github.com/tomochain/go-tomochain/accounts"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/accounts"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/crypto"
"github.com/pborman/uuid"
)

Expand Down
10 changes: 5 additions & 5 deletions accounts/keystore/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (
"sync"
"time"

"github.com/tomochain/go-tomochain/accounts"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/core/types"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/go-tomochain/event"
"github.com/tomochain/tomochain/accounts"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/core/types"
"github.com/tomochain/tomochain/crypto"
"github.com/tomochain/tomochain/event"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions accounts/keystore/keystore_passphrase.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ import (
"io/ioutil"
"path/filepath"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/common/math"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/go-tomochain/crypto/randentropy"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/common/math"
"github.com/tomochain/tomochain/crypto"
"github.com/tomochain/tomochain/crypto/randentropy"
"github.com/pborman/uuid"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt"
Expand Down
2 changes: 1 addition & 1 deletion accounts/keystore/keystore_passphrase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"io/ioutil"
"testing"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/common"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion accounts/keystore/keystore_plain.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"os"
"path/filepath"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/tomochain/common"
)

type keyStorePlain struct {
Expand Down
4 changes: 2 additions & 2 deletions accounts/keystore/keystore_plain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"strings"
"testing"

"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/crypto"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/crypto"
)

func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) {
Expand Down
6 changes: 3 additions & 3 deletions accounts/keystore/keystore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"testing"
"time"

"github.com/tomochain/go-tomochain/accounts"
"github.com/tomochain/go-tomochain/common"
"github.com/tomochain/go-tomochain/event"
"github.com/tomochain/tomochain/accounts"
"github.com/tomochain/tomochain/common"
"github.com/tomochain/tomochain/event"
)

var testSigData = make([]byte, 32)
Expand Down
Loading

0 comments on commit 53a8a47

Please sign in to comment.