Skip to content

Commit

Permalink
all: update the go import with v5 suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
fanbsb committed Oct 20, 2022
1 parent 87103af commit 40b849f
Show file tree
Hide file tree
Showing 538 changed files with 2,438 additions and 2,426 deletions.
4 changes: 2 additions & 2 deletions accounts/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"fmt"
"io"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/crypto"
)

// The ABI holds information about a contract's context and available
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"strings"
"testing"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/common/math"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/common/math"
"github.com/FusionFoundation/efsn/v5/crypto"
)

const jsondata = `
Expand Down
12 changes: 6 additions & 6 deletions accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ import (
"io"
"math/big"

"github.com/FusionFoundation/efsn/v4/accounts"
"github.com/FusionFoundation/efsn/v4/accounts/keystore"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v4/log"
"github.com/FusionFoundation/efsn/v5/accounts"
"github.com/FusionFoundation/efsn/v5/accounts/keystore"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/crypto"
"github.com/FusionFoundation/efsn/v5/log"
)

// ErrNoChainID is returned whenever the user failed to specify a chain id.
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"

ethereum "github.com/FusionFoundation/efsn/v4"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/core/types"
ethereum "github.com/FusionFoundation/efsn/v5"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/core/types"
)

var (
Expand Down
34 changes: 17 additions & 17 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ import (
"context"
"errors"
"fmt"
"github.com/FusionFoundation/efsn/v4/consensus/datong"
"github.com/FusionFoundation/efsn/v5/consensus/datong"
"math/big"
"sync"
"time"

"github.com/FusionFoundation/efsn/v4"
"github.com/FusionFoundation/efsn/v4/accounts/abi"
"github.com/FusionFoundation/efsn/v4/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/common/math"
"github.com/FusionFoundation/efsn/v4/core"
"github.com/FusionFoundation/efsn/v4/core/bloombits"
"github.com/FusionFoundation/efsn/v4/core/rawdb"
"github.com/FusionFoundation/efsn/v4/core/state"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/core/vm"
"github.com/FusionFoundation/efsn/v4/eth/filters"
"github.com/FusionFoundation/efsn/v4/ethdb"
"github.com/FusionFoundation/efsn/v4/event"
"github.com/FusionFoundation/efsn/v4/params"
"github.com/FusionFoundation/efsn/v4/rpc"
"github.com/FusionFoundation/efsn/v5"
"github.com/FusionFoundation/efsn/v5/accounts/abi"
"github.com/FusionFoundation/efsn/v5/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/common/math"
"github.com/FusionFoundation/efsn/v5/core"
"github.com/FusionFoundation/efsn/v5/core/bloombits"
"github.com/FusionFoundation/efsn/v5/core/rawdb"
"github.com/FusionFoundation/efsn/v5/core/state"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/core/vm"
"github.com/FusionFoundation/efsn/v5/eth/filters"
"github.com/FusionFoundation/efsn/v5/ethdb"
"github.com/FusionFoundation/efsn/v5/event"
"github.com/FusionFoundation/efsn/v5/params"
"github.com/FusionFoundation/efsn/v5/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 @@ -24,12 +24,12 @@ import (
"strings"
"sync"

ethereum "github.com/FusionFoundation/efsn/v4"
"github.com/FusionFoundation/efsn/v4/accounts/abi"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v4/event"
ethereum "github.com/FusionFoundation/efsn/v5"
"github.com/FusionFoundation/efsn/v5/accounts/abi"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/crypto"
"github.com/FusionFoundation/efsn/v5/event"
)

// SignerFn is a signer function callback when a contract requires a method to
Expand Down
16 changes: 8 additions & 8 deletions accounts/abi/bind/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ import (
"strings"
"testing"

ethereum "github.com/FusionFoundation/efsn/v4"
"github.com/FusionFoundation/efsn/v4/accounts/abi"
"github.com/FusionFoundation/efsn/v4/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/common/hexutil"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v4/rlp"
ethereum "github.com/FusionFoundation/efsn/v5"
"github.com/FusionFoundation/efsn/v5/accounts/abi"
"github.com/FusionFoundation/efsn/v5/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/common/hexutil"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/crypto"
"github.com/FusionFoundation/efsn/v5/rlp"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/bind/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"text/template"
"unicode"

"github.com/FusionFoundation/efsn/v4/accounts/abi"
"github.com/FusionFoundation/efsn/v4/log"
"github.com/FusionFoundation/efsn/v5/accounts/abi"
"github.com/FusionFoundation/efsn/v5/log"
)

// Lang is a target programming language selector to generate bindings for.
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 @@ -25,7 +25,7 @@ import (
"strings"
"testing"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v5/common"
)

var bindTests = []struct {
Expand Down
14 changes: 7 additions & 7 deletions 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/FusionFoundation/efsn/v4/accounts/abi"
import "github.com/FusionFoundation/efsn/v5/accounts/abi"

// tmplData is the data structure required to fill the binding template.
type tmplData struct {
Expand Down Expand Up @@ -92,12 +92,12 @@ import (
"strings"
"errors"
ethereum "github.com/FusionFoundation/efsn/v4"
"github.com/FusionFoundation/efsn/v4/accounts/abi"
"github.com/FusionFoundation/efsn/v4/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/event"
ethereum "github.com/FusionFoundation/efsn/v5"
"github.com/FusionFoundation/efsn/v5/accounts/abi"
"github.com/FusionFoundation/efsn/v5/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/event"
)
// Reference imports to suppress errors if they are not otherwise used.
Expand Down
8 changes: 4 additions & 4 deletions accounts/abi/bind/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"errors"
"time"

ethereum "github.com/FusionFoundation/efsn/v4"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/log"
ethereum "github.com/FusionFoundation/efsn/v5"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/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 @@ -23,12 +23,12 @@ import (
"testing"
"time"

"github.com/FusionFoundation/efsn/v4/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v4/accounts/abi/bind/backends"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/core"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/accounts/abi/bind"
"github.com/FusionFoundation/efsn/v5/accounts/abi/bind/backends"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/core"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/crypto"
)

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

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/crypto"
)

type Error struct {
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/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/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/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/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/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/crypto"
)

// FunctionType represents different types of functions a contract might have.
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"math/big"
"reflect"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/common/math"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/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 @@ -27,7 +27,7 @@ import (
"strings"
"testing"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v5/common"
)

// TestPack tests the general pack/unpack tests in packing_test.go
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/packing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package abi
import (
"math/big"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v5/common"
)

type packUnpackTest struct {
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"math/big"
"reflect"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/crypto"
)

// MakeTopics converts a filter query argument list into a filter topic set.
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/topics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"reflect"
"testing"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/crypto"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/crypto"
)

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

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v5/common"
)

// Type enumerator
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 @@ -21,7 +21,7 @@ import (
"reflect"
"testing"

"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/davecgh/go-spew/spew"
)

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/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v5/common"
)

var (
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/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/stretchr/testify/require"
)

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

ethereum "github.com/FusionFoundation/efsn/v4"
"github.com/FusionFoundation/efsn/v4/common"
"github.com/FusionFoundation/efsn/v4/core/types"
"github.com/FusionFoundation/efsn/v4/event"
ethereum "github.com/FusionFoundation/efsn/v5"
"github.com/FusionFoundation/efsn/v5/common"
"github.com/FusionFoundation/efsn/v5/core/types"
"github.com/FusionFoundation/efsn/v5/event"
"golang.org/x/crypto/sha3"
)

Expand Down Expand Up @@ -177,7 +177,8 @@ type Backend interface {
// safely used to calculate a signature from.
//
// The hash is calculated as
// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
//
// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
//
// This gives context to the signed message and prevents signing of transactions.
func TextHash(data []byte) []byte {
Expand All @@ -189,7 +190,8 @@ func TextHash(data []byte) []byte {
// safely used to calculate a signature from.
//
// The hash is calculated as
// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
//
// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
//
// This gives context to the signed message and prevents signing of transactions.
func TextAndHash(data []byte) ([]byte, string) {
Expand Down
Loading

0 comments on commit 40b849f

Please sign in to comment.