一键导入
deploy
Deploy an actor (smart contract) to the Convex network. Use when the user wants to create a new on-chain actor with exported functions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deploy an actor (smart contract) to the Convex network. Use when the user wants to create a new on-chain actor with exported functions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build the Convex project from source. Use when a contributor wants to compile, test, or package Convex.
Use Convex DB — a lattice-backed SQL database. Use when helping users write queries, connect via JDBC or PostgreSQL clients, create tables, insert/query data, or use the direct lattice API.
Create or inspect Convex accounts. Use when the user wants to set up a new account, check account details, or manage keys.
Resolve or register Convex Name System (CNS) names. Use when the user wants to look up a CNS name, register a new name, or update a name's target.
Execute a read-only CVM query on the Convex network. Use when reading on-chain state, checking balances, looking up accounts, or evaluating Convex Lisp expressions.
Create and manage fungible tokens on Convex. Use when the user wants to create a new token, check token balances, or manage token supply.
| name | deploy |
| description | Deploy an actor (smart contract) to the Convex network. Use when the user wants to create a new on-chain actor with exported functions. |
| argument-hint | <description-of-actor> |
Actors are autonomous on-chain programs with their own address, state, and exported functions.
A typical actor deployment:
(deploy
'(do
;; Internal state (private to the actor)
(def counter 0)
;; Callable functions: mark each with ^:callable so it can be
;; invoked from outside the actor via (call ...)
(defn ^:callable increment []
(set! counter (+ counter 1))
counter)
(defn ^:callable get-count []
counter)))
deploy returns the new actor's address (e.g. #12345)^:callable metadata can be called from outside (there is no export form). The equivalent map form is ^{:callable true}set! to update an existing def from inside a function; plain defs declared in the actor body are private state*address* and *balance*(set-controller #ADDR) inside the actor to set who can upgrade it(call #9 (cns-update 'my.actor.name *address*))^:callable function: (call #NEW-ADDR (get-count))$ARGUMENTStransact with the (deploy ...) expression