testutils

package
v0.0.0-...-fdc2919 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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) Burn

func (b *Blockchain) Burn(xmr *reserve.Reserve, amount *big.Int, destAddressHash [32]byte) error

func (*Blockchain) DeployReserve

func (b *Blockchain) DeployReserve() (common.Address, *reserve.Reserve, error)

DeployReserve is used to deploy the wXMR reserve contract on a test blockchain

func (*Blockchain) Mint

func (b *Blockchain) Mint(xmr *reserve.Reserve, recipient common.Address, amount *big.Int) error

Mint is used to mint wXMR tokens

Jump to

Keyboard shortcuts

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