Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
soroban-docs: Update simulateTransaction Docs With New resourceConfig…
Browse files Browse the repository at this point in the history
… Parameter (#683)

* Update docs for new resourceConfig param in simulateTransaction

* add examples for `resourceConfig` param

---------

Co-authored-by: Elliot Voris <[email protected]>
  • Loading branch information
stellarsaur and ElliotFriend authored Dec 21, 2023
1 parent a3c4b1d commit e5d0239
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions static/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "20.0.2"
"version": "20.1.0"
},
"servers": [
{
Expand Down Expand Up @@ -1000,6 +1000,24 @@
"description": "A Stellar transaction, serialized as a base64 string",
"type": "string"
}
},
{
"name": "resourceConfig",
"summary": "configuration for how resources will be calculated",
"description": "Contains configuration for how resources will be calculated when simulating transactions.",
"required": false,
"schema": {
"title": "resourceConfig",
"description": "Configuration for how resources will be calculated.",
"type": "object",
"properties": {
"instructionLeeway": {
"title": "instructionLeeway",
"description": "Allow this many extra instructions when budgeting resources.",
"type": "number"
}
}
}
}
],
"result": {
Expand Down Expand Up @@ -1109,6 +1127,14 @@
"summary": "a valid transaction",
"description": "A transaction that will correctly invoke a contract function.",
"value": "AAAAAgAAAAAg4dbAxsGAGICfBG3iT2cKGYQ6hK4sJWzZ6or1C5v6GAAAAGQAJsOiAAAAEQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAAJaW5jcmVtZW50AAAAAAAAAgAAABIAAAAAAAAAACDh1sDGwYAYgJ8EbeJPZwoZhDqEriwlbNnqivULm/oYAAAAAwAAAAMAAAAAAAAAAAAAAAA="
},
{
"name": "resourceConfig",
"summary": "the default resource configuration",
"description": "The default value for the (optional) resource configuration object for transaction simulation.",
"value": {
"instructionLeeway": 3000000
}
}
],
"result": {
Expand Down Expand Up @@ -1143,6 +1169,14 @@
"summary": "an invalid transaction",
"description": "A transaction that attempts to invoke a contract function with the wrong number of arguments.",
"value": "AAAAAgAAAAAg4dbAxsGAGICfBG3iT2cKGYQ6hK4sJWzZ6or1C5v6GAAAAGQAJsOiAAAADwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAAJaW5jcmVtZW50AAAAAAAAAQAAAAMAAAADAAAAAAAAAAAAAAAA"
},
{
"name": "resourceConfig",
"summary": "the default resource configuration",
"description": "The default value for the (optional) resource configuration object for transaction simulation.",
"value": {
"instructionLeeway": 3000000
}
}
],
"result": {
Expand All @@ -1165,4 +1199,4 @@
}
],
"components": {}
}
}

0 comments on commit e5d0239

Please sign in to comment.