test

package module
v0.0.0-...-6ec66e1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Unlicense Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CadenceUFix64

func CadenceUFix64(value string) cadence.Value

CadenceUFix64 returns a UFix64 value

func DeployTokenContracts

func DeployTokenContracts(
	b emulator.Emulator,
	adapter *adapters.SDKAdapter,
	t *testing.T,
	key []*flow.AccountKey,
) (
	fungibleAddr flow.Address,
	tokenAddr flow.Address,
	forwardingAddr flow.Address,
	metadataViewsAddr flow.Address,
	fungibleMetadataViewsAddr flow.Address,
)

Deploys the FungibleToken, ExampleToken, and TokenForwarding contracts to different accounts and returns their addresses

func Submit

func Submit(
	t *testing.T,
	b emulator.Emulator,
	tx *flow.Transaction,
	shouldRevert bool,
)

Submit submits a transaction and checks if it fails or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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