Skip to content

Add Stellar write max resource fee setting - #2347

Open
Krish-vemula wants to merge 2 commits into
mainfrom
fix/stellar-write-resource-fee-cap-common
Open

Add Stellar write max resource fee setting#2347
Krish-vemula wants to merge 2 commits into
mainfrom
fix/stellar-write-resource-fee-cap-common

Conversation

@Krish-vemula

Copy link
Copy Markdown
Contributor

Adds Stellar ChainWrite settings for ReportSizeLimit and MaxResourceFee, and exposes MaxResourceFee on Stellar SubmitTransactionRequest so downstream relayers can enforce a per-request Soroban resource-fee ceiling before submit.

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

✅ API Diff Results - github.com/smartcontractkit/chainlink-common

✅ Compatible Changes (4)

pkg/chains/stellar.(*SubmitTransactionRequest) (1)
  • GetMaxResourceFee — ➕ Added
pkg/chains/stellar.SubmitTransactionRequest (1)
  • MaxResourceFee — ➕ Added
pkg/settings/cresettings.chainWrite (1)
  • Stellar — ➕ Added
pkg/types/chains/stellar.SubmitTransactionRequest (1)
  • MaxResourceFee — ➕ Added

📄 View full apidiff report

@Krish-vemula
Krish-vemula marked this pull request as ready for review August 28, 2026 06:17
Copilot AI lite review requested due to automatic review settings August 28, 2026 06:17
@Krish-vemula
Krish-vemula requested a review from a team as a code owner August 28, 2026 06:17
@Krish-vemula
Krish-vemula requested a review from ilija42 August 28, 2026 06:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds new Stellar write-time configuration and a per-request Soroban resource-fee ceiling to support enforcing a maximum resource fee prior to transaction submission.

Changes:

  • Extend stellar.SubmitTransactionRequest with a MaxResourceFee field (stroops) intended as a per-request Soroban resource-fee ceiling.
  • Add CRE settings schema support for PerWorkflow.ChainWrite.Stellar including ReportSizeLimit and MaxResourceFee.
  • Update generated/default settings artifacts (defaults.toml, defaults.json) and settings documentation flowchart.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/types/chains/stellar/stellar.go Adds MaxResourceFee to the domain submit-tx request type.
pkg/settings/cresettings/settings.go Extends the settings schema and default values with ChainWrite.Stellar and MaxResourceFee.
pkg/settings/cresettings/README.md Documents the new Stellar ChainWrite settings in the mermaid flowchart.
pkg/settings/cresettings/defaults.toml Adds default TOML values for PerWorkflow.ChainWrite.Stellar and MaxResourceFee.
pkg/settings/cresettings/defaults.json Adds default JSON values for PerWorkflow.ChainWrite.Stellar and MaxResourceFee.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pkg/types/chains/stellar/stellar.go Outdated
silaslenihan
silaslenihan previously approved these changes Aug 28, 2026
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.

4 participants