Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Amount32Eth ¶
Amount32Eth returns 32Eth(in wei) in terms of the big.Int type.
func DeployDepositContract ¶
func DeployDepositContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *deposit.DepositContract, error)
DeployDepositContract deploys a new Ethereum contract, binding an instance of DepositContract to it.
func LessThan1Eth ¶
LessThan1Eth returns less than 1 Eth(in wei) in terms of the big.Int type.
Types ¶
type TestAccount ¶
type TestAccount struct {
Addr common.Address
ContractAddr common.Address
Contract *deposit.DepositContract
Backend *simulated.Backend
TxOpts *bind.TransactOpts
}
TestAccount represents a test account in the simulated backend, through which we can perform actions on the eth1.0 chain.
func Setup ¶
func Setup() (*TestAccount, error)
Setup creates the simulated backend with the deposit contract deployed
Click to show internal directories.
Click to hide internal directories.