.. _module-splice-testing-tokenstandard-registryapi-14184: 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-splice-testing-tokenstandard-registryapi-registryapi-36771: **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\. .. _function-splice-testing-tokenstandard-registryapi-gettransferfactory-16733: `getTransferFactory `_ \: app \-\> TransferFactory\_Transfer \-\> Script (:ref:`EnrichedFactoryChoice ` TransferFactory TransferFactory\_Transfer) .. _function-splice-testing-tokenstandard-registryapi-getallocationfactory-44546: `getAllocationFactory `_ \: app \-\> AllocationFactory\_Allocate \-\> Script (:ref:`EnrichedFactoryChoice ` AllocationFactory AllocationFactory\_Allocate) .. _function-splice-testing-tokenstandard-registryapi-getallocationtransfercontext-86176: `getAllocation_TransferContext `_ \: app \-\> `ContractId `_ Allocation \-\> Metadata \-\> Script :ref:`OpenApiChoiceContext ` .. _function-splice-testing-tokenstandard-registryapi-getallocationwithdrawcontext-92853: `getAllocation_WithdrawContext `_ \: app \-\> `ContractId `_ Allocation \-\> Metadata \-\> Script :ref:`OpenApiChoiceContext ` .. _function-splice-testing-tokenstandard-registryapi-getallocationcancelcontext-26663: `getAllocation_CancelContext `_ \: app \-\> `ContractId `_ Allocation \-\> Metadata \-\> Script :ref:`OpenApiChoiceContext ` .. _function-splice-testing-tokenstandard-registryapi-gettransferinstructionacceptcontext-72301: `getTransferInstruction_AcceptContext `_ \: app \-\> `ContractId `_ TransferInstruction \-\> Metadata \-\> Script :ref:`OpenApiChoiceContext ` .. _function-splice-testing-tokenstandard-registryapi-gettransferinstructionrejectcontext-89866: `getTransferInstruction_RejectContext `_ \: app \-\> `ContractId `_ TransferInstruction \-\> Metadata \-\> Script :ref:`OpenApiChoiceContext ` .. _function-splice-testing-tokenstandard-registryapi-gettransferinstructionwithdrawcontext-233: `getTransferInstruction_WithdrawContext `_ \: app \-\> `ContractId `_ TransferInstruction \-\> Metadata \-\> Script :ref:`OpenApiChoiceContext ` **instance** `RegistryApi `_ :ref:`AmuletRegistry `