- Overview
- Setup
- Tutorials
- How Tos
- Reference
Utility.Registry.V0.Rule.Transfer¶
Templates¶
template TransferRule
Choice TransferRule_DirectTransfer
Used for executing a direct transfer. This choice was added as of version
0.5.0of this package.Controller: (DA.Internal.Record.getField @”sender” transfer), (DA.Internal.Record.getField @”receiver” transfer)
Returns: TransferRule_DirectTransfer_Result
Field
Type
Description
transfer
Transfer details.
extraArgs
Extra args.
expectedOperator
Expected operator.
expectedProvider
Expected provider.
Choice TransferRule_ExecuteAllocation
Used for executing an allocation. This choice was added as of version
0.6.0of this package.Controller: (DA.Internal.Record.getField @”executor” (DA.Internal.Record.getField @”settlement” (DA.Internal.Record.getField @”allocation” allocation))), (DA.Internal.Record.getField @”sender” (DA.Internal.Record.getField @”transferLeg” (DA.Internal.Record.getField @”allocation” allocation))), (DA.Internal.Record.getField @”receiver” (DA.Internal.Record.getField @”transferLeg” (DA.Internal.Record.getField @”allocation” allocation)))
Returns: TransferRule_ExecuteAllocation_Result
Field
Type
Description
allocation
Allocation view.
extraArgs
Extra args.
expectedOperator
Expected operator.
expectedProvider
Expected provider.
Choice TransferRule_Transfer
Executes a transfer. Disabled as of version
0.5.0of this package.Controller: (DA.Internal.Record.getField @”sender” transfer), (DA.Internal.Record.getField @”receiver” transfer)
Returns: TransferRule_Transfer_Result
Field
Type
Description
transfer
Transfer details.
instrumentConfigurationCid
Instrument configuration.
senderCredentialCids
Sender credentials.
receiverCredentialCids
Receiver credentials.
appRewardConfigurationCid
App reward configuration. This field was added as of version
0.3.0of this package.featuredAppRightCid
Featured app right. This field was added as of version
0.3.0of this package.
Choice TransferRule_TwoStepTransfer
Used for executing a two-step transfer. This choice was added as of version
0.6.0of this package.Controller: (DA.Internal.Record.getField @”sender” transfer), (DA.Internal.Record.getField @”receiver” transfer)
Returns: TransferRule_AcceptTransferOffer_Result
Field
Type
Description
transfer
Transfer details.
extraArgs
Extra args.
expectedOperator
Expected operator.
expectedProvider
Expected provider.
Data Types¶
data TransferRule_AcceptTransferOffer_Result
Result of
TransferRule_AcceptTransferOffer.
TransferRule_AcceptTransferOffer_Result
Field
Type
Description
receiverHoldingCid
Receiver holding cid.
senderHoldingCid
Sender holding cid.
data TransferRule_DirectTransfer_Result
Result of
TransferRule_DirectTransfer.
TransferRule_DirectTransfer_Result
Field
Type
Description
receiverHoldingCid
Receiver holding cid.
senderHoldingCid
Sender holding cid.
data TransferRule_ExecuteAllocation_Result
Result of
TransferRule_ExecuteAllocation.
TransferRule_ExecuteAllocation_Result
Field
Type
Description
receiverHoldingCid
Receiver holding cid.
senderHoldingCid
Sender holding cid.