跳到正文
cccskills
免费在 GitHub 公开

deployment

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Best practices for designing CosmWasm smart contract APIs. Use when defining message types, designing execute/query interfaces, or optimizing API ergonomics.

中文简介正在准备中。当前显示原文说明。

axone-protocol/contracts1232026年10月14日 更新

Guide for writing Rust doc comments that produce accurate generated contract documentation. Use when editing Instantiate/Execute/Query/Response types or any public schema-facing API.

中文简介正在准备中。当前显示原文说明。

axone-protocol/contracts1232026年10月14日 更新

Guide for writing conventional commit messages. Use when committing changes, writing commit messages, or reviewing commit history.

中文简介正在准备中。当前显示原文说明。

axone-protocol/contracts1232026年10月14日 更新

Axone contract structure and Abstract SDK patterns. Use when scaffolding or refactoring contracts, deciding layer boundaries, wiring AppContract entrypoints, or adding module metadata and replies.

中文简介正在准备中。当前显示原文说明。

axone-protocol/contracts1232026年10月14日 更新

Guide for regenerating Axone contract schemas and rendered Markdown docs. Use when contract APIs or metadata change, when checking generated-doc drift, or when preparing documentation commits.

中文简介正在准备中。当前显示原文说明。

axone-protocol/contracts1232026年10月14日 更新

Domain-driven modeling patterns for Axone contracts. Use when introducing domain concepts, encoding invariants, or deciding boundaries between domain, handlers, services, gateways, queries, and state.

中文简介正在准备中。当前显示原文说明。

axone-protocol/contracts1232026年10月14日 更新

查看 axone-protocol 的全部技能

报告此技能的问题