Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.canton.network/llms.txt

Use this file to discover all available pages before exploring further.

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
FieldTypeDescription
registryAmuletRegistry
aliceParty
aliceValidatorParty
bobParty
nowTime
defaultTransferTransfer
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 ()
expectNoBurn : 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 ()