Skip to content

Commit 0242ac9

Browse files
authored
Add authMode to simulateTransaction (#2215)
1 parent 13fc2d7 commit 0242ac9

4 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"AuthMode": {
3+
"name": "authMode",
4+
"summary": "selects the authorization mode for simulation",
5+
"required": false,
6+
"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).",
7+
"schema": {
8+
"$ref": "#/components/schemas/AuthMode"
9+
}
10+
}
11+
}

openrpc/src/stellar-rpc/methods/simulateTransaction.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
},
1616
{
1717
"$ref": "#/components/contentDescriptors/Format"
18+
},
19+
{
20+
"$ref": "#/components/contentDescriptors/AuthMode"
1821
}
1922
],
2023
"result": {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"AuthMode": {
3+
"title": "authMode",
4+
"type": "string",
5+
"enum": ["enforce", "record", "record_allow_nonroot"],
6+
"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."
7+
}
8+
}

static/stellar-rpc.openrpc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,6 +2194,22 @@
21942194
"type": "string",
21952195
"description": "Specifies whether XDR should be encoded as Base64 (default or 'base64') or JSON ('json')."
21962196
}
2197+
},
2198+
{
2199+
"name": "authMode",
2200+
"summary": "selects the authorization mode for simulation",
2201+
"required": false,
2202+
"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).",
2203+
"schema": {
2204+
"title": "authMode",
2205+
"type": "string",
2206+
"enum": [
2207+
"enforce",
2208+
"record",
2209+
"record_allow_nonroot"
2210+
],
2211+
"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."
2212+
}
21972213
}
21982214
],
21992215
"result": {

0 commit comments

Comments
 (0)