Skip to content

Add contract deployment script for testnet and mainnet #345

@ogazboiz

Description

@ogazboiz

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Description

No automated deployment script exists. Developers must manually run multiple stellar CLI commands in sequence, which is error-prone and not repeatable.

What Needs to Happen

  • Create scripts/deploy.sh:
    1. Build WASM: cargo build --target wasm32-unknown-unknown --release
    2. Optimize: stellar contract optimize
    3. Deploy: stellar contract deploy
    4. Initialize: stellar contract invoke ... initialize --admin ... --treasury ... --fee_rate_bps ...
    5. Save contract ID to deployment-info.json
  • Support --network testnet|mainnet flag
  • Validate required env vars before running
  • Document in README under "Deployment"

Files

  • scripts/deploy.sh (create)

Acceptance Criteria

  • Single command deploys and initializes to testnet
  • Contract ID saved to deployment-info.json
  • Missing env vars cause a clear error before any action

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programgood first issueGood for newcomersinfraCI/CD and infrastructure

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