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
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
Suggested Execution
Branch:
feat/issue-077-deterministic-contract-address-derivationImplement Changes
packages/stellar/src/soroban.tsTest and Commit
Example Commit Message
Guidelines