Skip to content

feat: add cross-chain bridge payment helpers#433

Merged
Kingsman-99 merged 1 commit into
Stellar-split:mainfrom
obedebuka41-dotcom:feat/bridge-payment-helpers
Jul 22, 2026
Merged

feat: add cross-chain bridge payment helpers#433
Kingsman-99 merged 1 commit into
Stellar-split:mainfrom
obedebuka41-dotcom:feat/bridge-payment-helpers

Conversation

@obedebuka41-dotcom

Copy link
Copy Markdown
Contributor
  • Add ChainId, BridgeFeeEstimate, BridgePaymentParams, BridgePaymentRequest, SignedBridgeProof types to src/types.ts
  • Create src/bridge.ts with estimateBridgeFee (live relayer + static fallback), buildBridgePayment (unsigned relay proof builder), and submitBridgePayment (bridge_pay contract entry point)
  • Support Ethereum mainnet and Solana mainnet as source chains
  • Add estimateBridgeFee, buildBridgePayment, submitBridgePayment methods to StellarSplitClient in src/client.ts
  • Export all bridge types and functions from src/index.ts
  • Add 29-test suite in test/bridge.test.ts with mock bridge fee APIs and mock contract responses (29/29 passing)
  • TypeScript compiles with zero errors
  • Update .gitignore with editor/IDE and temp file patterns
    close Implement cross-chain payment routing helpers with bridge fee estimation #426

- Add ChainId, BridgeFeeEstimate, BridgePaymentParams,
  BridgePaymentRequest, SignedBridgeProof types to src/types.ts
- Create src/bridge.ts with estimateBridgeFee (live relayer + static
  fallback), buildBridgePayment (unsigned relay proof builder), and
  submitBridgePayment (bridge_pay contract entry point)
- Support Ethereum mainnet and Solana mainnet as source chains
- Add estimateBridgeFee, buildBridgePayment, submitBridgePayment
  methods to StellarSplitClient in src/client.ts
- Export all bridge types and functions from src/index.ts
- Add 29-test suite in test/bridge.test.ts with mock bridge fee APIs
  and mock contract responses (29/29 passing)
- TypeScript compiles with zero errors
- Update .gitignore with editor/IDE and temp file patterns
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.

Implement cross-chain payment routing helpers with bridge fee estimation

2 participants