Splice.Tests.TestAmuletTokenTransfer

Daml script tests showing that the token standard can be used to execute free-of-payment transfers of Amulet tokens; and how to do so.

Data Types

data TestSetup

TestSetup

Field

Type

Description

registry

AmuletRegistry

alice

Party

aliceValidator

Party

bob

Party

now

Time

defaultTransfer

Transfer

instance GetField "alice" TestSetup Party

instance GetField "aliceValidator" TestSetup Party

instance GetField "bob" TestSetup Party

instance GetField "defaultTransfer" TestSetup Transfer

instance GetField "now" TestSetup Time

instance GetField "registry" TestSetup AmuletRegistry

instance SetField "alice" TestSetup Party

instance SetField "aliceValidator" TestSetup Party

instance SetField "bob" TestSetup Party

instance SetField "defaultTransfer" TestSetup Transfer

instance SetField "now" TestSetup Time

instance SetField "registry" TestSetup AmuletRegistry

Functions

setupTest

: Script TestSetup

setupTwoStepTransfer

: Script (TestSetup, ContractId TransferInstruction)

assertNoFeaturedRewards

: [Party] -> Script ()

expectBurn

: Metadata -> Script ()

test_happy_path_self

: Script ()

test_happy_path_direct

: Script ()

test_two_step_success

: Script ()

test_two_step_withdraw

: Script ()

test_two_step_withdraw_locked_amulet_gone

: Script ()

test_two_step_reject

: Script ()

test_two_step_reject_locked_amulet_gone

: Script ()

test_no_holdings

: Script ()

test_expired

: Script ()

test_wrong_admin

: Script ()

test_factory_PublicFetch

: Script ()

Comments