Skip to content

Add authMode to simulateTransaction endpoint#2215

Merged
Shaptic merged 1 commit intomainfrom
sim-authMode
Jan 27, 2026
Merged

Add authMode to simulateTransaction endpoint#2215
Shaptic merged 1 commit intomainfrom
sim-authMode

Conversation

@Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Jan 27, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the simulateTransaction RPC method to accept an optional authMode parameter and wires it through the OpenRPC source schema and the generated static spec.

Changes:

  • Add an AuthMode schema defining the allowed authorization modes (enforce, record, record_allow_nonroot) for simulations.
  • Add an AuthMode content descriptor and reference it from the simulateTransaction method’s parameter list.
  • Update the generated static/stellar-rpc.openrpc.json to include the new authMode parameter with matching schema and documentation.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
static/stellar-rpc.openrpc.json Inlines the new optional authMode parameter for simulateTransaction, including enum and descriptions.
openrpc/src/stellar-rpc/schemas/AuthMode.json Defines the AuthMode string enum schema and its documentation for reuse.
openrpc/src/stellar-rpc/methods/simulateTransaction.json Extends the method’s params to include the new AuthMode content descriptor.
openrpc/src/stellar-rpc/contentDescriptors/AuthMode.json Introduces the authMode content descriptor that ties the parameter definition to the AuthMode schema.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Shaptic Shaptic linked an issue Jan 27, 2026 that may be closed by this pull request
@stellar-jenkins
Copy link

@Shaptic Shaptic merged commit 0242ac9 into main Jan 27, 2026
15 checks passed
@Shaptic Shaptic deleted the sim-authMode branch January 27, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simulateTransaction is missing authMode param

4 participants