Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions openrpc/src/stellar-rpc/contentDescriptors/AuthMode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"AuthMode": {
"name": "authMode",
"summary": "selects the authorization mode for simulation",
"required": false,
"description": "Specifies the authorization mode to use when simulating the transaction. The options are 'enforce' (default, enforces all authorization checks), 'record' (records authorization without enforcement), and 'record_allow_nonroot' (records authorization while allowing non-root invocations).",
"schema": {
"$ref": "#/components/schemas/AuthMode"
}
}
}
3 changes: 3 additions & 0 deletions openrpc/src/stellar-rpc/methods/simulateTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
},
{
"$ref": "#/components/contentDescriptors/Format"
},
{
"$ref": "#/components/contentDescriptors/AuthMode"
}
],
"result": {
Expand Down
8 changes: 8 additions & 0 deletions openrpc/src/stellar-rpc/schemas/AuthMode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"AuthMode": {
"title": "authMode",
"type": "string",
"enum": ["enforce", "record", "record_allow_nonroot"],
"description": "Specifies the authorization mode to use when simulating the transaction. 'enforce' (default) enforces authorization checks, 'record' records authorization without enforcing, and 'record_allow_nonroot' records authorization while allowing non-root invocations."
}
}
16 changes: 16 additions & 0 deletions static/stellar-rpc.openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2194,6 +2194,22 @@
"type": "string",
"description": "Specifies whether XDR should be encoded as Base64 (default or 'base64') or JSON ('json')."
}
},
{
"name": "authMode",
"summary": "selects the authorization mode for simulation",
"required": false,
"description": "Specifies the authorization mode to use when simulating the transaction. The options are 'enforce' (default, enforces all authorization checks), 'record' (records authorization without enforcement), and 'record_allow_nonroot' (records authorization while allowing non-root invocations).",
"schema": {
"title": "authMode",
"type": "string",
"enum": [
"enforce",
"record",
"record_allow_nonroot"
],
"description": "Specifies the authorization mode to use when simulating the transaction. 'enforce' (default) enforces authorization checks, 'record' records authorization without enforcing, and 'record_allow_nonroot' records authorization while allowing non-root invocations."
}
}
],
"result": {
Expand Down