Skip to content

[codex] Use dynamic Stellar fee bumps - #437

Open
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-stellar-fee-bump-22
Open

[codex] Use dynamic Stellar fee bumps#437
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-stellar-fee-bump-22

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

  • Add shared/stellar-fee.ts with Horizon /fee_stats p90 targeting, capped fallback behavior, and tx_insufficient_fee detection.
  • Submit bill payments and setup trustlines through signed Stellar fee-bump envelopes, doubling the inner fee for up to 3 bumps.
  • Expose stellar_fee_bumps_total and add regression tests for fee selection, fee-bump submission, and metrics output.

Notes

  • The issue requested stellar.fee.bumps_total; Prometheus metric names do not allow dots, so this exports the conventional stellar_fee_bumps_total name.

Validation

  • npm test -- shared/__tests__/stellar-fee.test.ts shared/__tests__/metrics.test.ts agent/__tests__/dynamic-fee.test.ts
  • npm test -- scripts/__tests__/setup-wallets.test.ts
  • npx tsc --noEmit --target ES2022 --module ESNext --moduleResolution bundler --allowImportingTsExtensions --esModuleInterop --allowSyntheticDefaultImports --strict --skipLibCheck --types node,vitest shared/stellar-fee.ts shared/__tests__/stellar-fee.test.ts shared/metrics.ts shared/__tests__/metrics.test.ts agent/__tests__/dynamic-fee.test.ts scripts/setup-wallets.ts
  • git diff --cached --check

Known existing issue: including agent/tools.ts in targeted typecheck still hits the pre-existing x402 scheme template literal errors at agent/tools.ts:160 and agent/tools.ts:162.

Closes #22

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Dreamstore2046 is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Hardcoded fee: "100" in payBill and setup-wallets.ts — fails under Stellar congestion

1 participant