subtest

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestTimeout = time.Second * 15

Functions

func AddRelayer

func AddRelayer(t *testing.T, client *utils.Client, relayer types.AccountID)

func AssertBalanceOf

func AssertBalanceOf(t *testing.T, client *utils.Client, publicKey []byte, expected *big.Int)

func AssertErc721Metadata

func AssertErc721Metadata(t *testing.T, client *utils.Client, id *big.Int, expected types.Bytes)

func AssertErc721NonExistence

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

func AssertOwnerOf

func AssertOwnerOf(t *testing.T, client *utils.Client, tokenId *big.Int, expected types.AccountID)

func BalanceOf

func BalanceOf(t *testing.T, client *utils.Client, publicKey []byte) *big.Int

func CreateClient

func CreateClient(t *testing.T, key *signature.KeyringPair, endpoint string) *utils.Client

func EnsureInitializedChain

func EnsureInitializedChain(t *testing.T, client *utils.Client, relayers []types.AccountID, chains []msg.ChainId, resources map[msg.ResourceId]utils.Method, threshold uint32)

WARNING: THIS METHOD IS UNSAFE AND MAY PANIC

func GetDepositNonce

func GetDepositNonce(t *testing.T, client *utils.Client, chain msg.ChainId) uint64

func InitiateHashTransfer

func InitiateHashTransfer(t *testing.T, client *utils.Client, hash types.Hash, destId msg.ChainId)

func InitiateNativeTransfer

func InitiateNativeTransfer(t *testing.T, client *utils.Client, amount types.U128, recipient []byte, destId msg.ChainId)

func InitiateNonFungibleTransfer

func InitiateNonFungibleTransfer(t *testing.T, client *utils.Client, tokenId types.U256, recipient []byte, destId msg.ChainId)

func MintErc721

func MintErc721(t *testing.T, client *utils.Client, tokenId *big.Int, metadata []byte, recipient *signature.KeyringPair)

func NewNativeTransferCall

func NewNativeTransferCall(t *testing.T, client *utils.Client, amount types.U128, recipient []byte, destId msg.ChainId) types.Call

func QueryConst

func QueryConst(t *testing.T, client *utils.Client, prefix, name string, res interface{})

func QueryStorage

func QueryStorage(t *testing.T, client *utils.Client, prefix, method string, arg1, arg2 []byte, result interface{}) bool

func RegisterResource

func RegisterResource(t *testing.T, client *utils.Client, id msg.ResourceId, method string)

func WaitForRemarkEvent

func WaitForRemarkEvent(t *testing.T, client *utils.Client, hash types.Hash)

func WhitelistChain

func WhitelistChain(t *testing.T, client *utils.Client, id msg.ChainId)

Types

This section is empty.

Jump to

Keyboard shortcuts

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