ethtest

package
v0.0.0-...-e30b66f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertHashExistence

func AssertHashExistence(t *testing.T, client *utils.Client, hash [32]byte, contract common.Address)

func DeployAssetStore

func DeployAssetStore(t *testing.T, client *utils.Client) common.Address

func DeployMintApproveErc20

func DeployMintApproveErc20(t *testing.T, client *utils.Client, erc20Handler common.Address, amount *big.Int) common.Address

func Erc20AddMinter

func Erc20AddMinter(t *testing.T, client *utils.Client, erc20Contract, handler common.Address)

func Erc20Approve

func Erc20Approve(t *testing.T, client *utils.Client, erc20Contract, recipient common.Address, amount *big.Int)

func Erc20AssertAllowance

func Erc20AssertAllowance(t *testing.T, client *utils.Client, erc20Contract, owner, spender common.Address, expected *big.Int)

func Erc20AssertBalance

func Erc20AssertBalance(t *testing.T, client *utils.Client, amount *big.Int, erc20Contract, account common.Address)

func Erc20AssertResourceMapping

func Erc20AssertResourceMapping(t *testing.T, client *utils.Client, handler common.Address, rId types.ResourceId, expected common.Address)

func Erc20BalanceOf

func Erc20BalanceOf(t *testing.T, client *utils.Client, erc20Contract, acct common.Address) *big.Int

func Erc20DeployMint

func Erc20DeployMint(t *testing.T, client *utils.Client, amount *big.Int) common.Address

func Erc20Mint

func Erc20Mint(t *testing.T, client *utils.Client, erc20Contract, recipient common.Address, amount *big.Int)

func FundErc20Handler

func FundErc20Handler(t *testing.T, client *utils.Client, handlerAddress, erc20Address common.Address, amount *big.Int)

func GetDepositNonce

func GetDepositNonce(t *testing.T, client *utils.Client, bridge common.Address, chain types.ChainId) uint64

func GetLatestBlock

func GetLatestBlock(t *testing.T, client *utils.Client) *big.Int

func LockNonceAndUpdate

func LockNonceAndUpdate(t *testing.T, client *utils.Client)

func NewClient

func NewClient(t *testing.T, endpoint string, kp *secp256k1.Keypair) *utils.Client

func RegisterResource

func RegisterResource(t *testing.T, client *utils.Client, bridge, handler common.Address, rId types.ResourceId, addr common.Address)

func SetBurnable

func SetBurnable(t *testing.T, client *utils.Client, bridge, contract common.Address, resourceId [32]byte)

func WatchEvent

func WatchEvent(client *utils.Client, bridge common.Address, subStr utils.EventSig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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