From 1cd1ecf516728c1d759f5daf1e6fc69280aea6c0 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Wed, 20 Mar 2024 14:41:02 -0400 Subject: [PATCH] Add detailed Soroban resource fee info in txmeta --- Stellar-ledger.x | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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