Skip to content

Commit

Permalink
Add detailed Soroban resource fee info in txmeta
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkozh committed Mar 20, 2024
1 parent 38ad361 commit 1cd1ecf
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Stellar-ledger.x
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cd1ecf

Please sign in to comment.