diff --git a/Stellar-ledger.x b/Stellar-ledger.x index 308e39e..fe1cd59 100644 --- a/Stellar-ledger.x +++ b/Stellar-ledger.x @@ -400,10 +400,27 @@ struct DiagnosticEvent ContractEvent event; }; -struct SorobanTransactionMeta +struct SorobanTransactionMetaExtV1 { ExtensionPoint ext; + int64 totalNonRefundableResourceFeeSpent; + int64 totalRefundableResourceFeeSpent; + int64 rentFeeSpent; +}; + +union SorobanTransactionMetaExt switch (int v) +{ +case 0: + void; +case 1: + SorobanTransactionMetaExtV1 v1; +}; + +struct SorobanTransactionMeta +{ + SorobanTransactionMetaExt ext; + ContractEvent events<>; // custom events populated by the // contracts themselves. SCVal returnValue; // return value of the host fn invocation