-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soroban-rpc: simulateTransaction: automatically detect ledger entries…
… which require restoring (#865) This change incorporates a new field to the simulateTransactionResponse: ``` RestorePreamble RestorePreamble `json:"restorePreamble,omitempty"` ``` where: ``` type RestorePreamble struct { TransactionData string `json:"transactionData"` // SorobanTransactionData XDR in base64 MinResourceFee int64 `json:"minResourceFee,string"` } ``` When preflighting an InvokeHostFunction operation, soroban-rpc will now detect ledger entries which require restoring prior to the invocation for it to succeed. If any such entries are detected, the simulateTransaction response will provide the Soroban Transaction Data and minimum resource fee needed to restore those entries. The user is then now expected to: 1. Submit a RestoreFootprint operation using the new fields above, if present. 2. Submit the InvokeHostFunction operation normally.
- Loading branch information
Showing
11 changed files
with
384 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.