Skip to content

[Deploy] Add Vault to CLI Deployment Orchestrator - #852

Open
Trovic1 wants to merge 1 commit into
BCPathway:mainfrom
Trovic1:feature/746-cli-vault-deploy
Open

[Deploy] Add Vault to CLI Deployment Orchestrator#852
Trovic1 wants to merge 1 commit into
BCPathway:mainfrom
Trovic1:feature/746-cli-vault-deploy

Conversation

@Trovic1

@Trovic1 Trovic1 commented Aug 27, 2026

Copy link
Copy Markdown

closes #746

…hway#746)

Add bc-forge deploy command that deploys the yield-bearing vault contract
alongside the ecosystem and optionally links a fee contract:

- New cli/src/commands/deploy.ts:
  - deployVault() orchestrates 4 steps:
    1. Upload vault WASM -> get vault WASM hash
    2. Deploy vault from hash -> get vault contract ID
    3. Initialize vault (admin, underlying token, decimals, name, symbol)
    4. (Optional) Upload fee WASM, deploy fee contract, call set_fee_contract
       on the vault to link the fee contract
  - createDeployCommand() wires Commander options: --vault-wasm, --fee-wasm,
    --admin, --source, --underlying-token, --name, --symbol, --decimals,
    --dry-run, and all standard network flags
  - Dry-run mode prints stellar CLI commands without executing them
- Register the deploy command in cli/src/parseArgs.ts
- Unit tests in cli/src/__tests__/deploy.test.ts:
  - Happy paths: vault-only deploy, vault + fee contract deploy, dry-run
  - Error paths: missing vault WASM, missing fee WASM, stellar CLI failure

closes BCPathway#746
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@Trovic1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Deploy] Add Vault to CLI Deployment Orchestrator

1 participant