Splice.Testing.TokenStandard.RegistryApi
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