Documentation ¶
Index ¶
- type Testenv
- func (t *Testenv) BlockNumber(ctx context.Context) (uint64, error)
- func (t *Testenv) Cancel()
- func (t *Testenv) Context() context.Context
- func (t *Testenv) DoWaitDeployed(tx *types.Transaction, printArgs ...string) (common.Address, error)
- func (t *Testenv) DoWaitMined(tx *types.Transaction, printArgs ...string) error
- func (t *Testenv) PK() *ecdsa.PrivateKey
- func (t *Testenv) SendETH(recipient common.Address, value *big.Int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Testenv ¶
type Testenv struct { Auth *bind.TransactOpts *backends.SimulatedBackend // contains filtered or unexported fields }
func NewBlockchain ¶
NewBlockchain is used to generate a simulated blockchain
func (*Testenv) BlockNumber ¶
BlockNumber returns the most recent block number
func (*Testenv) DoWaitDeployed ¶
func (*Testenv) DoWaitMined ¶
func (t *Testenv) DoWaitMined(tx *types.Transaction, printArgs ...string) error
func (*Testenv) PK ¶
func (t *Testenv) PK() *ecdsa.PrivateKey
Click to show internal directories.
Click to hide internal directories.