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 OpenApiChoiceContext
- getAllocation_WithdrawContext
: app -> ContractId Allocation -> Metadata -> Script OpenApiChoiceContext
- getAllocation_CancelContext
: app -> ContractId Allocation -> Metadata -> Script OpenApiChoiceContext
- getTransferInstruction_AcceptContext
: app -> ContractId TransferInstruction -> Metadata -> Script OpenApiChoiceContext
- getTransferInstruction_RejectContext
: app -> ContractId TransferInstruction -> Metadata -> Script OpenApiChoiceContext
- getTransferInstruction_WithdrawContext
: app -> ContractId TransferInstruction -> Metadata -> Script OpenApiChoiceContext
instance RegistryApi AmuletRegistry
Comments