|
|
@ -289,7 +289,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -297,7 +297,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy an interaction tester contract and call a transaction on it
|
|
|
|
// Deploy an interaction tester contract and call a transaction on it
|
|
|
@ -345,7 +345,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -353,7 +353,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a tuple tester contract and execute a structured call on it
|
|
|
|
// Deploy a tuple tester contract and execute a structured call on it
|
|
|
@ -391,7 +391,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -399,7 +399,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a tuple tester contract and execute a structured call on it
|
|
|
|
// Deploy a tuple tester contract and execute a structured call on it
|
|
|
@ -449,7 +449,7 @@ var bindTests = []struct { |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -457,7 +457,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a slice tester contract and execute a n array call on it
|
|
|
|
// Deploy a slice tester contract and execute a n array call on it
|
|
|
@ -497,7 +497,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -505,7 +505,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a default method invoker contract and execute its default method
|
|
|
|
// Deploy a default method invoker contract and execute its default method
|
|
|
@ -564,7 +564,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -572,7 +572,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a structs method invoker contract and execute its default method
|
|
|
|
// Deploy a structs method invoker contract and execute its default method
|
|
|
@ -610,12 +610,12 @@ var bindTests = []struct { |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
|
// Create a simulator and wrap a non-deployed contract
|
|
|
|
// Create a simulator and wrap a non-deployed contract
|
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{}, uint64(10000000000)) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{}, uint64(10000000000)) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
nonexistent, err := NewNonExistent(common.Address{}, sim) |
|
|
|
nonexistent, err := NewNonExistent(common.Address{}, sim) |
|
|
@ -649,12 +649,12 @@ var bindTests = []struct { |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
|
// Create a simulator and wrap a non-deployed contract
|
|
|
|
// Create a simulator and wrap a non-deployed contract
|
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{}, uint64(10000000000)) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{}, uint64(10000000000)) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
nonexistent, err := NewNonExistentStruct(common.Address{}, sim) |
|
|
|
nonexistent, err := NewNonExistentStruct(common.Address{}, sim) |
|
|
@ -696,7 +696,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -704,7 +704,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a funky gas pattern contract
|
|
|
|
// Deploy a funky gas pattern contract
|
|
|
@ -746,7 +746,7 @@ var bindTests = []struct { |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -754,7 +754,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a sender tester contract and execute a structured call on it
|
|
|
|
// Deploy a sender tester contract and execute a structured call on it
|
|
|
@ -821,7 +821,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -829,7 +829,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a underscorer tester contract and execute a structured call on it
|
|
|
|
// Deploy a underscorer tester contract and execute a structured call on it
|
|
|
@ -915,7 +915,7 @@ var bindTests = []struct { |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -923,7 +923,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy an eventer contract
|
|
|
|
// Deploy an eventer contract
|
|
|
@ -1105,7 +1105,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -1113,7 +1113,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
//deploy the test contract
|
|
|
|
//deploy the test contract
|
|
|
@ -1240,7 +1240,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
|
|
|
|
|
|
|
@ -1248,7 +1248,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
_, _, contract, err := DeployTuple(auth, sim) |
|
|
|
_, _, contract, err := DeployTuple(auth, sim) |
|
|
@ -1382,7 +1382,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -1390,7 +1390,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
//deploy the test contract
|
|
|
|
//deploy the test contract
|
|
|
@ -1448,14 +1448,14 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
|
// Initialize test accounts
|
|
|
|
// Initialize test accounts
|
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// deploy the test contract
|
|
|
|
// deploy the test contract
|
|
|
@ -1537,7 +1537,7 @@ var bindTests = []struct { |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
|
// Initialize test accounts
|
|
|
|
// Initialize test accounts
|
|
|
@ -1545,7 +1545,7 @@ var bindTests = []struct { |
|
|
|
addr := crypto.PubkeyToAddress(key.PublicKey) |
|
|
|
addr := crypto.PubkeyToAddress(key.PublicKey) |
|
|
|
|
|
|
|
|
|
|
|
// Deploy registrar contract
|
|
|
|
// Deploy registrar contract
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{addr: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
transactOpts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
transactOpts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
@ -1600,14 +1600,14 @@ var bindTests = []struct { |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
addr := crypto.PubkeyToAddress(key.PublicKey) |
|
|
|
addr := crypto.PubkeyToAddress(key.PublicKey) |
|
|
|
|
|
|
|
|
|
|
|
// Deploy registrar contract
|
|
|
|
// Deploy registrar contract
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{addr: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
transactOpts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
transactOpts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
@ -1661,7 +1661,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
@ -1669,7 +1669,7 @@ var bindTests = []struct { |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000000000)}}, 10000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
// Deploy a tester contract and execute a structured call on it
|
|
|
|
// Deploy a tester contract and execute a structured call on it
|
|
|
@ -1722,14 +1722,14 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
`, |
|
|
|
`, |
|
|
|
` |
|
|
|
` |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
key, _ := crypto.GenerateKey() |
|
|
|
addr := crypto.PubkeyToAddress(key.PublicKey) |
|
|
|
addr := crypto.PubkeyToAddress(key.PublicKey) |
|
|
|
|
|
|
|
|
|
|
|
sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(10000000000000000)}}, 1000000) |
|
|
|
sim := backends.NewSimulatedBackend(types.GenesisAlloc{addr: {Balance: big.NewInt(10000000000000000)}}, 1000000) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
|
opts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
opts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
@ -1810,7 +1810,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
`, |
|
|
|
`, |
|
|
@ -1818,7 +1818,7 @@ var bindTests = []struct { |
|
|
|
var ( |
|
|
|
var ( |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
sim = backends.NewSimulatedBackend(core.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
sim = backends.NewSimulatedBackend(types.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
) |
|
|
|
) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
@ -1881,7 +1881,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
`, |
|
|
|
`, |
|
|
@ -1889,7 +1889,7 @@ var bindTests = []struct { |
|
|
|
var ( |
|
|
|
var ( |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
sim = backends.NewSimulatedBackend(core.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
sim = backends.NewSimulatedBackend(types.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
) |
|
|
|
) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
@ -1934,7 +1934,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
`, |
|
|
|
`, |
|
|
@ -1942,7 +1942,7 @@ var bindTests = []struct { |
|
|
|
var ( |
|
|
|
var ( |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
sim = backends.NewSimulatedBackend(core.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
sim = backends.NewSimulatedBackend(types.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
) |
|
|
|
) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
@ -1983,7 +1983,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
`, |
|
|
|
`, |
|
|
@ -1991,7 +1991,7 @@ var bindTests = []struct { |
|
|
|
var ( |
|
|
|
var ( |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
sim = backends.NewSimulatedBackend(core.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
sim = backends.NewSimulatedBackend(types.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
) |
|
|
|
) |
|
|
|
defer sim.Close() |
|
|
|
defer sim.Close() |
|
|
|
|
|
|
|
|
|
|
@ -2024,7 +2024,7 @@ var bindTests = []struct { |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" |
|
|
|
"github.com/ethereum/go-ethereum/core" |
|
|
|
"github.com/ethereum/go-ethereum/core/types" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
"github.com/ethereum/go-ethereum/eth/ethconfig" |
|
|
|
`, |
|
|
|
`, |
|
|
@ -2032,7 +2032,7 @@ var bindTests = []struct { |
|
|
|
var ( |
|
|
|
var ( |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
key, _ = crypto.GenerateKey() |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
user, _ = bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) |
|
|
|
sim = backends.NewSimulatedBackend(core.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
sim = backends.NewSimulatedBackend(types.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, ethconfig.Defaults.Miner.GasCeil) |
|
|
|
) |
|
|
|
) |
|
|
|
_, tx, _, err := DeployRangeKeyword(user, sim) |
|
|
|
_, tx, _, err := DeployRangeKeyword(user, sim) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|