testenv

package
v0.0.0-...-c2006ba Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployDateTime

func DeployDateTime(testenv *Testenv) (common.Address, *datetime.Datetime, error)

func DeployLevToken

func DeployLevToken(testenv *Testenv, supply *big.Int) (common.Address, *levtoken.Levtoken, error)

DeployLevToken is used to deploy the leverage token

func DeployVestingContract

func DeployVestingContract(testenv *Testenv, levToken common.Address, dateTime common.Address, receiver common.Address) (common.Address, *vesting.Vesting, error)

DeployVestingContract is used to deploy the vesting contract

Types

type Testenv

type Testenv struct {
	Auth *bind.TransactOpts
	*backends.SimulatedBackend
}

func NewBlockchain

func NewBlockchain() (*Testenv, error)

NewBlockchain is used to generate a simulated blockchain

func (*Testenv) DoWaitDeployed

func (t *Testenv) DoWaitDeployed(tx *types.Transaction, printArgs ...string) (common.Address, error)

func (*Testenv) DoWaitMined

func (t *Testenv) DoWaitMined(tx *types.Transaction, printArgs ...string) error

Jump to

Keyboard shortcuts

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