Skip to content

Add contract deployment script for testnet and mainnet #284

@ogazboiz

Description

@ogazboiz

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

Description

There is no automated script to build, deploy, and initialize the stream contract. Developers must manually run multiple stellar CLI commands in sequence, which is error-prone.

What Needs to Happen

  • Create scripts/deploy.sh:
    1. cargo build --target wasm32-unknown-unknown --release
    2. stellar contract optimize
    3. stellar contract deploy --wasm ...
    4. stellar contract invoke ... initialize --admin ... --treasury ... --fee_rate_bps ...
    5. Save contract ID to deployment-info.json
  • Support --network testnet|mainnet flag
  • 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
  • README documents the deployment steps

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