Skip to content

Creation of Transfer choice type and TransferBase type. #4513

@Oscar-Twomey

Description

@Oscar-Twomey

Background

ScheduledTransfer, UnscheduledTransfer, and ContingentTransfer all exists inTransferExpression. They each share a number of attributes in Transfer which could be contained in a base type, and this base type is what extends AssetFlowBase

settlementOrigin should only be on scheduled & contingent transfers, as this tells you the payout which generated the transfer.

Task Details

  1. Create a new type called TransferBase which contains the identifier and payerReceiver attributes in Transfer. This type extends AssetFlowBase.
Image



  1. Make ScheduledTransfer, UnscheduledTransfer, and ContingentTransfer extend TransferBase.
Image



  1. Add settlementOrigin as an attribute to ScheduledTransfer and ContingentTransfer



Image

Parent Feature

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

backward-incompatibleLikely to be backward-incompatible; must be on Steering WG roadmap; 2 maintainers to approve

Type

Projects

Status

PR Ready

Status

Approved

Relationships

None yet

Development

No branches or pull requests

Issue actions