/vara-skills:sails-ethexe-implementerfrom vara-skills
Implements approved Rust code changes in Sails ethexe workspaces with the ethexe feature enabled, covering ethabi transport, payable methods, and Ethereum-style events.
Ships in vara-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Implement approved tasks in Sails ethexe workspaces where the ethexe feature is enabled and methods may be exported via ethabi transport, accept value (payable), or emit Ethereum-style events.
If the task does NOT need the ethexe feature, use ../sails-rust-implementer/SKILL.md instead.
../../references/sails-ethexe-patterns.md — ethexe diff table, type requirements, transport rules, event patterns../../references/sails-syscall-mapping.md — Syscall::* API (note gated syscalls)../../references/sails-cheatsheet.md — core Sails patterns../../references/sails-rs-imports.md — import paths../../references/sails-idl-v2-syntax.md — IDL v2 annotations../../references/sails-header-wire-format.md — Sails Header routingConsume the approved spec, architecture, and tasks artifacts before changing code.
sails-rs with features = ["ethexe"] in Cargo.toml.#[sails_type] for all custom types. Types used in ethabi-exported methods must also be ABI-encodable as Solidity tuples (SolValue).#[export] — both scale + ethabi (default with ethexe)#[export(scale)] — scale only, no ethabi#[export(ethabi)] — ethabi only#[export(ethabi, payable)] — ethabi with value acceptanceemit_eth_event() for Ethereum-style events, emit_event() for standard Gear events. Do not mix them on the same event type without explicit architecture guidance.#[indexed] on up to 3 event fields per variant for Ethereum topic indexing.Syscall::* for runtime accessors. Three syscalls are unavailable: signal_from, signal_code, system_reserve_gas.| Scenario | Attribute |
|---|---|
| Standard method, both transports | #[export] |
| Method only callable from Gear programs (no EVM) | #[export(scale)] |
| Method only callable from EVM | #[export(ethabi)] |
| Method that accepts value from EVM | #[export(ethabi, payable)] or #[export(scale, ethabi, payable)] |
| Query (read-only) | #[export] (transport flags orthogonal to query semantics) |
Non-payable methods panic at runtime if msg::value() > 0. To accept value:
#[export(payable)]
pub fn deposit(&mut self) -> u64 {
let value = Syscall::message_value();
// handle deposit...
value as u64
}
Constructors can also be payable: #[export(payable)] pub fn create() -> Self { ... }
#[event]
pub enum MyEvent {
Transfer {
#[indexed]
from: ActorId,
#[indexed]
to: ActorId,
value: u64,
},
Paused,
}
// In service method:
self.emit_eth_event(MyEvent::Transfer { from, to, value });
#[indexed] fields per variantsignal_from(), signal_code(), or system_reserve_gas() — they are gated out under ethexe.gcore::*, msg::*, or exec::* calls — use Syscall::*.#[indexed] per event variant.payable works with scale-only transport — it requires ethabi.Syscall::message_source() == Syscall::program_id() for self-message guards.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gear-foundation/vara-skills --plugin vara-skills24 skills in this plugin
/awesome-sails-vftUse when a builder wants to add a fungible token to a standard Gear/Vara Sails app using awesome-sails building blocks, choose the right VFT-related crates, and wire roles, events, tests, and client integration. Do not use for NFT or RMRK work, abstract tokenomics-only analysis, or non-Sails projects./gear-architecture-plannerUse when an approved Gear or Vara spec must be mapped onto program boundaries, services, message flow, and integration surfaces. Do not use when the feature is still undefined or when the task is already reduced to code edits./gear-builtin-actorsUse when a builder needs to design or debug calls from a standard Gear/Vara Sails program into runtime builtin actors such as BLS12-381, staking, proxy, or ETH bridge, including ActorId derivation, request encoding, reply decoding, and gas or ED budgeting. Do not use for regular program-to-program messaging, Vara.eth or ethexe-only work, non-Sails repositories, or runtime-maintenance tasks inside the Gear repo./gear-gstd-api-mapUse when a builder needs to choose the right gstd API for messaging, execution, reservations, async reply flows, or program creation, and trace that API to gcore or gsys when behavior must be confirmed. Do not use for Vara.eth or ethexe-first work, non-Gear repositories, or broad runtime-maintenance tasks./gear-message-executionUse when a builder needs to design or debug Gear message flow, replies, delayed execution, reservations, or waitlist behavior inside a standard Gear/Vara Sails app. Do not use for Vara.eth or ethexe-first work, non-Sails repositories, or broad protocol research./gtest-tdd-loopUse when Gear or Vara behavior changes need a deterministic local gtest loop before the work can be considered complete. Do not use for deploy-only work, live-node-only smoke checks, or features without a local test target.Other plugins' skills for the same job