‹ 首页

deployment

@axone-protocol · 收录于 昨天 · 上游提交 1 周前

Axone deployment workflows with cargo-make, cw-orch, and Abstract. Use when publishing modules, installing them on accounts, running local chain tasks, or inspecting deployments.

适合你,如果你需要频繁部署和管理 CosmWasm 模块

/ 通过 npx 安装 校验哈希
npx oh-my-skill add axone-protocol/contracts/deployment
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- axone-protocol/contracts/deployment
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify axone-protocol/contracts/deployment
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
124GitHub stars
~721上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 7a14fd6 · 表述以原文为准
它做什么

引导你使用 cargo-make、cw-orch 和 Abstract 完成 Axone 链的模块发布、安装、本地链操作和部署检查。

什么时候触发

当你需要发布模块、安装模块到账户、运行本地链任务或检查部署状态时触发。

装好后可以这样说
返回具体的 cargo make 命令
自动执行本地链初始化和 Abstract 部署
运行 deploy-abstract-info 任务
技能原文 SKILL.md作者撰写 · BSD-3-Clause · 7a14fd6

Deployment

Rule

Prefer repository tasks over ad hoc deployment commands.

Environment Setup
Configure Credentials
cp .env.example .env

Then set the relevant mnemonic values in .env.

The repository already defines:

  • LOCAL_MNEMONIC for local development
  • TEST_MNEMONIC for testnet deployment
  • MAIN_MNEMONIC for mainnet deployment
Supported Network IDs

Primary repository aliases:

  • local
  • testnet
  • mainnet
  • axone-localnet
  • axone-dendrite-2
  • axone-1

Other cw-orch-supported networks may also work when the scripts support them.

Local Chain Operations

Use these tasks for local chain lifecycle:

cargo make chain-initialize
cargo make chain-start
cargo make chain-logs
cargo make chain-stop
cargo make clean-chain

Repository note:

  • many deployment and inspection tasks already call chain-start automatically for local targets
  • do not duplicate that manually unless you specifically need the chain running ahead of time
Abstract Infrastructure

Deploy Abstract core contracts with:

cargo make deploy-abstract local
cargo make deploy-abstract testnet

Inspect the resulting deployment info with:

cargo make deploy-abstract-info local
cargo make deploy-abstract-info testnet

Treat deploy-abstract-info as the normal post-deploy verification step for infrastructure.

Publishing a Contract

Publish a module with:

cargo make deploy-contract axone-gov local
cargo make deploy-contract axone-gov testnet

Repository behavior of deploy-contract:

  • builds WASM if no suitable artifact is found
  • copies built .wasm files into artifacts/ for cw-orch lookup
  • runs the contract publish script through cargo make deploy-script publish ...

Use cargo make release-wasm only when you explicitly need optimized production artifacts and checksums. The normal publish flow uses cargo make wasm when it needs to build.

Installing a Module

Install a module on an Abstract account with:

cargo make deploy-install axone-gov local
cargo make deploy-install axone-gov testnet

The repository task also supports additional CLI-style arguments after the contract name. Keep using cargo make deploy-install ... instead of calling the binary directly unless you have a reason to bypass the task wrapper.

Inspection and Debugging

Use the repository inspection tasks instead of raw chain commands when possible:

cargo make contract-list
cargo make contract-inspect <code_id>
cargo make contract-query <address> '{"query_msg": {}}'
cargo make contract-execute <address> '{"execute_msg": {}}'

For lower-level chain access:

cargo make chain status
cargo make chain query bank balances <address>
Custom Deployment Scripts

The repository keeps publish and install entrypoints in each contract:

contracts/<name>/src/bin/publish.rs
contracts/<name>/src/bin/install.rs

Use the wrapper task when running them:

cargo make deploy-script publish axone-gov local
cargo make deploy-script install axone-gov local
Practical Order Of Operations

For a normal local flow:

  1. cargo make deploy-abstract local
  2. cargo make deploy-abstract-info local
  3. cargo make deploy-contract <contract> local
  4. cargo make deploy-install <contract> local
  5. verify with contract-query, contract-inspect, or targeted chain queries
按 BSD-3-Clause 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。