evmtest

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed Storage.abi
	StorageContractABI string

	StorageContractBytecode = common.FromHex(strings.TrimSpace(storageContractBytecodeHex))
)
View Source
var (
	//go:embed ERC20Basic.abi
	ERC20ContractABI string

	ERC20ContractBytecode = common.FromHex(strings.TrimSpace(erc20ContractBytecodeHex))
	//deployed bytecode and runtime bytecode are different, see: https://ethereum.stackexchange.com/questions/13086/whats-the-difference-between-solcs-bin-bytecode-versus-bin-runtime
	//go:embed ERC20Basic.bin-runtime
	ERC20ContractRuntimeBytecodeHex string
	ERC20ContractRuntimeBytecode    = common.FromHex(strings.TrimSpace(ERC20ContractRuntimeBytecodeHex))
)
View Source
var (
	//go:embed EndlessLoop.abi
	LoopContractABI string

	LoopContractBytecode = common.FromHex(strings.TrimSpace(loopContractBytecodeHex))
)
View Source
var (
	FaucetKey, _  = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
	FaucetAddress = crypto.PubkeyToAddress(FaucetKey.PublicKey)
	FaucetSupply  = new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))
)
View Source
var Accounts []*ecdsa.PrivateKey

10 random keys

Functions

func AccountAddress

func AccountAddress(i int) common.Address

func InitGoEthLogger

func InitGoEthLogger(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL