Skip to content

Commit

Permalink
Use extension point instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Jun 22, 2023
1 parent 3e302d6 commit 3790741
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -586,37 +586,26 @@ struct InvokeHostFunctionOp
SorobanAuthorizationEntry auth<>;
};

enum BumpFootprintExpirationType
{
BUMP_FOOTPRINT_EXPIRATION_UNIFORM = 0
};

/* Bump the expiration ledger of the entries specified in the readOnly footprint
so they'll expire at least ledgersToExpire ledgers from lcl.
Threshold: med
Result: BumpFootprintExpirationResult
*/
union BumpFootprintExpirationOp switch (BumpFootprintExpirationType type)
struct BumpFootprintExpirationOp
{
case BUMP_FOOTPRINT_EXPIRATION_UNIFORM:
ExtensionPoint ext;
uint32 ledgersToExpire;
};

enum RestoreFootprintType
{
RESTORE_FOOTPRINT_V1 = 0
};

/* Restore the expired or evicted entries specified in the readWrite footprint.
Threshold: med
Result: RestoreFootprintOp
*/
union RestoreFootprintOp switch (RestoreFootprintType type)
struct RestoreFootprintOp
{
case RESTORE_FOOTPRINT_V1:
void;
ExtensionPoint ext;
};

/* An operation is the lowest unit of work that a transaction does */
Expand Down

0 comments on commit 3790741

Please sign in to comment.