Documentation ¶
Index ¶
- Variables
- type Blockchain
- func (b *Blockchain) Auth() *bind.TransactOpts
- func (b *Blockchain) Burn(xmr *reserve.Reserve, amount *big.Int, destAddressHash [32]byte) error
- func (b *Blockchain) DeployReserve() (common.Address, *reserve.Reserve, error)
- func (b *Blockchain) Mint(xmr *reserve.Reserve, recipient common.Address, amount *big.Int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OneEthInWei = big.NewInt(1000000000000000000)
)
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type Blockchain struct { *backends.SimulatedBackend // contains filtered or unexported fields }
func NewBlockchain ¶
func NewBlockchain(t *testing.T) *Blockchain
NewBlockchain is used to generate a simulated blockchain
func (*Blockchain) Auth ¶
func (b *Blockchain) Auth() *bind.TransactOpts
func (*Blockchain) DeployReserve ¶
DeployReserve is used to deploy the wXMR reserve contract on a test blockchain
Click to show internal directories.
Click to hide internal directories.