Skip to content

Architect Deterministic Contract Address Derivation for Template DeFi Deployments #613

@temma02

Description

@temma02

Description

Implement deterministic contract address derivation so that template DeFi deployments produce predictable contract addresses, enabling pre-deployment address computation and verification.

Requirements and Context

  • Correctness: Derived addresses must match actual deployed addresses
  • Testing: Test address derivation against known deployments
  • Documentation: Document the derivation algorithm

Suggested Execution

Branch: feat/issue-077-deterministic-contract-address-derivation

Implement Changes

  • Implement contract address derivation in packages/stellar/src/soroban.ts
  • Derive the address from deployer, salt, and WASM hash per Soroban rules
  • Add a pre-deployment address preview to the deployment flow
  • Verify the derived address matches the actual address after deployment

Test and Commit

  • Test address derivation against known-good fixtures
  • Test that derived addresses match post-deployment addresses
  • Document the derivation algorithm

Example Commit Message

feat(soroban): add deterministic contract address derivation

- Derive contract address from deployer, salt, and WASM hash
- Add pre-deployment address preview
- Verify derived address matches deployed address

Guidelines

  • Follow the official Soroban address derivation specification
  • Validate derivation against testnet deployments
  • Surface the derived address in the deployment preview

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions