Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Stellar-contract.x
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ enum SCAddressType
SC_ADDRESS_TYPE_MUXED_ACCOUNT = 2,
SC_ADDRESS_TYPE_CLAIMABLE_BALANCE = 3,
SC_ADDRESS_TYPE_LIQUIDITY_POOL = 4
#ifdef CAP_0084
,
SC_ADDRESS_TYPE_MUXED_CONTRACT = 5
#endif
};

struct MuxedEd25519Account
Expand All @@ -191,6 +195,14 @@ struct MuxedEd25519Account
uint256 ed25519;
};

#ifdef CAP_0084
struct MuxedContract
{
uint64 id;
ContractID contractId;
};
#endif

union SCAddress switch (SCAddressType type)
{
case SC_ADDRESS_TYPE_ACCOUNT:
Expand All @@ -203,6 +215,10 @@ case SC_ADDRESS_TYPE_CLAIMABLE_BALANCE:
ClaimableBalanceID claimableBalanceId;
case SC_ADDRESS_TYPE_LIQUIDITY_POOL:
PoolID liquidityPoolId;
#ifdef CAP_0084
case SC_ADDRESS_TYPE_MUXED_CONTRACT:
MuxedContract muxedContract;
#endif
};

%struct SCVal;
Expand Down
Loading