Skip to content
Draft
Show file tree
Hide file tree
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_MUXED_CONTRACT
,
SC_ADDRESS_TYPE_MUXED_CONTRACT = 5
#endif
};

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

#ifdef CAP_0084_MUXED_CONTRACT
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_MUXED_CONTRACT
case SC_ADDRESS_TYPE_MUXED_CONTRACT:
MuxedContract muxedContract;
#endif
};

%struct SCVal;
Expand Down
2 changes: 1 addition & 1 deletion Stellar-ledger.x
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ struct SorobanTransactionMetaExtV1
// transactions, this will be `0` for failed transactions.
int64 totalRefundableResourceFeeCharged;
// Amount (in stroops) that has been charged for rent.
// This is a part of `totalRefundableResourceFeeCharged`.
// This is a part of `totalNonRefundableResourceFeeCharged`.
int64 rentFeeCharged;
};

Expand Down
Loading