Documentation ¶
Index ¶
- Variables
- func AddRelayer(t *testing.T, client *utils.Client, relayer types.AccountID)
- func AssertBalanceOf(t *testing.T, client *utils.Client, publicKey []byte, expected *big.Int)
- func AssertErc721Metadata(t *testing.T, client *utils.Client, id *big.Int, expected types.Bytes)
- func AssertErc721NonExistence(t *testing.T, client *utils.Client, id *big.Int)
- func AssertOwnerOf(t *testing.T, client *utils.Client, tokenId *big.Int, expected types.AccountID)
- func BalanceOf(t *testing.T, client *utils.Client, publicKey []byte) *big.Int
- func CreateClient(t *testing.T, key *signature.KeyringPair, endpoint string) *utils.Client
- func EnsureInitializedChain(t *testing.T, client *utils.Client, relayers []types.AccountID, ...)
- func GetDepositNonce(t *testing.T, client *utils.Client, chain msg.ChainId) uint64
- func InitiateHashTransfer(t *testing.T, client *utils.Client, hash types.Hash, destId msg.ChainId)
- func InitiateNativeTransfer(t *testing.T, client *utils.Client, amount types.U128, recipient []byte, ...)
- func InitiateNonFungibleTransfer(t *testing.T, client *utils.Client, tokenId types.U256, recipient []byte, ...)
- func MintErc721(t *testing.T, client *utils.Client, tokenId *big.Int, metadata []byte, ...)
- func NewNativeTransferCall(t *testing.T, client *utils.Client, amount types.U128, recipient []byte, ...) types.Call
- func QueryConst(t *testing.T, client *utils.Client, prefix, name string, res interface{})
- func QueryStorage(t *testing.T, client *utils.Client, prefix, method string, arg1, arg2 []byte, ...) bool
- func RegisterResource(t *testing.T, client *utils.Client, id msg.ResourceId, method string)
- func WaitForRemarkEvent(t *testing.T, client *utils.Client, hash types.Hash)
- func WhitelistChain(t *testing.T, client *utils.Client, id msg.ChainId)
Constants ¶
This section is empty.
Variables ¶
View Source
var TestTimeout = time.Second * 15
Functions ¶
func AssertBalanceOf ¶
func AssertErc721Metadata ¶
func AssertOwnerOf ¶
func CreateClient ¶
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 InitiateHashTransfer ¶
func InitiateNativeTransfer ¶
func MintErc721 ¶
func NewNativeTransferCall ¶
func QueryConst ¶
func QueryStorage ¶
func RegisterResource ¶
func WaitForRemarkEvent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.