Labels: dx, scripts, good first issue
Problem:
The three contracts have a strict deployment dependency order: eco-token must be deployed first (its address is passed to reward-engine), then task-registry, then reward-engine. The current deploy.sh deploys only a single contract with no knowledge of this order. Contributors and CI have no turnkey way to do a full deployment.
Scope:
- Create
scripts/deploy-all.sh that:
- Deploys
eco-token, captures the contract ID
- Deploys
task-registry, captures the contract ID
- Deploys
reward-engine passing the two IDs
- Calls
initialize on each contract in sequence
- Writes the resulting contract IDs to a
.env.deployed file
- Add usage docs to the README's "Deploy to Testnet" section
Labels:
dx,scripts,good first issueProblem:
The three contracts have a strict deployment dependency order:
eco-tokenmust be deployed first (its address is passed toreward-engine), thentask-registry, thenreward-engine. The currentdeploy.shdeploys only a single contract with no knowledge of this order. Contributors and CI have no turnkey way to do a full deployment.Scope:
scripts/deploy-all.shthat:eco-token, captures the contract IDtask-registry, captures the contract IDreward-enginepassing the two IDsinitializeon each contract in sequence.env.deployedfile