Canton Network docsSplice APIs › Splice Daml Packages › splice-token-standard-test
Splice.Testing.TokenStandard.RegistryApi
Updated 16-11-2026
Support for using a token compliant registry API in tests.
These simulate the OpenAPI endpoints that would be served by the backend of the registry implementation.
Typeclasses
class RegistryApi app where
Type-class for simulating calls to the off-ledger API of a registry. The function names match the names of the handlers defined in the OpenAPI specification.getTransferFactory : app -> TransferFactory_Transfer -> Script (EnrichedFactoryChoice TransferFactory TransferFactory_Transfer)getAllocationFactory : app -> AllocationFactory_Allocate -> Script (EnrichedFactoryChoice AllocationFactory AllocationFactory_Allocate)getAllocation_TransferContext : app -> ContractId Allocation -> Metadata -> Script OpenApiChoiceContextgetAllocation_WithdrawContext : app -> ContractId Allocation -> Metadata -> Script OpenApiChoiceContextgetAllocation_CancelContext : app -> ContractId Allocation -> Metadata -> Script OpenApiChoiceContextgetTransferInstruction_AcceptContext : app -> ContractId TransferInstruction -> Metadata -> Script OpenApiChoiceContextgetTransferInstruction_RejectContext : app -> ContractId TransferInstruction -> Metadata -> Script OpenApiChoiceContextgetTransferInstruction_WithdrawContext : app -> ContractId TransferInstruction -> Metadata -> Script OpenApiChoiceContextinstance RegistryApi AmuletRegistry