Skip to content

LeoYeAI/agent-master-skills / skills/aawp

AAWP (AI Agent Wallet Protocol) — the only crypto wallet protocol built exclusively for AI Agents on EVM-compatible blockchains. Not for humans. The signer is the AI Agent itself, cryptographically bound at wallet creation. Supports wallet lifecycle management, token transfers, DEX swaps, cross-chain bridging, arbitrary contract interactions, DCA automation, and price alerts.

FileKindSize
README.mdmarkdown10.9 KB
SKILL.mdskill md20.1 KB
WALLET_SETUP.mdmarkdown4.6 KB
_meta.jsonconfig436 B
bin/install.jsscript7.0 KB
config/chains.jsonconfig4.2 KB
core/index.d.tsscript2.8 KB
core/loader.jsscript1.0 KB
daemon/client.jsscript1.1 KB
daemon/daemon.jsscript606 B
lib/address-book.jsscript1.6 KB
lib/gas-estimator.jsscript1.7 KB
lib/multicall.jsscript2.6 KB
lib/nonce-manager.jsscript1.9 KB
lib/tx-history.jsscript1.3 KB
scripts/bootstrap.shscript1.7 KB
scripts/dca.jsscript9.4 KB
scripts/deploy-clanker.jsscript13.6 KB
scripts/doctor.shscript1.6 KB
scripts/ensure-daemon.shscript2.2 KB
scripts/limit-order.jsscript28.3 KB
scripts/nft.jsscript25.2 KB
scripts/portfolio.jsscript18.0 KB
scripts/price-alert.jsscript12.1 KB
scripts/provision.shscript9.4 KB
scripts/restart-daemon.shscript1.5 KB
scripts/restore-impl.jsscript3.9 KB
scripts/sign-worker.jsscript2.9 KB
scripts/start-daemon.jsscript3.9 KB
scripts/swap.jsscript31.8 KB
scripts/wallet-manager.jsscript70.6 KB
scripts/yield.jsscript34.1 KB

core/index.d.ts

View on GitHub
/* tslint:disable */
/* eslint-disable */

/* auto-generated by NAPI-RS */

/**
 * Encrypt and write a seed into the 4-shard layout.
 * Call this once during initial setup / provisioning.
 *
 * Creates:
 *   <config_dir>/seed.enc    (shard_A: AES-GCM encrypted seed)
 *   /var/lib/aawp/.cache/fonts.idx  (shard_C: 16 random bytes)
 *
 * shard_B is embedded in the binary at link time (.init section).
 * shard_D is computed from the binary hash — no file to write.
 *
 * SECURITY: Seed is generated INSIDE Rust via OS CSPRNG. It never crosses
 * the NAPI boundary, never touches JS memory, and is zeroized immediately
 * after encryption. The only output is shard_B (for ELF injection).
 *
 * To extract the seed, an attacker must:
 * 1. Modify this Rust source → recompile → but binary hash changes → shard_D
 *    changes → old seed.enc becomes undecryptable (self-referential integrity)
 * 3. Read /proc/pid/mem → seed only exists unmasked for <1ms (Layer 2 XOR mask)
 *
 * Returns shard_B bytes so the caller can inject into the ELF build.
 */
export declare function _p0(configDir: string): Buffer
/**
 * Compute a SHA-256 hash of a file's contents.
 *
 * Compute logicHash = SHA256(aawp-core.node || index.js).
 * Covers the skill's runtime: Rust binary + JS loader. Nothing else.
 * Contracts belong to the protocol; scripts belong to the user.
 * Returns `0x` + hex-encoded SHA-256.
 */
export declare function _c0(codePath: string): string
/**
 * Get the SHA-256 hash of the .node native module itself.
 * SHA-256 of the running .node binary. Cached after first call (~450ms → <0.01ms).
 */
export declare function _b0(): string
/**
 * Check if this build has an expected hash baked in (release mode).
 * Returns the expected hash string, or empty string if dev mode.
 */
export declare function _e0(): string
/** _x0: Return the computed socket path (for JS loader to connect). */
export declare function _x0(): string
/**
 * _a0: Return the current AI gate token (hex, 64 chars) for OpenClaw to inject
 * into child processes via AAWP_AI_TOKEN env var. Returns empty string if gate disabled.
 * OpenClaw must call this right before spawning wallet-manager.js.
 * _i0: Lightweight init for wallet-manager.js client mode.
 * Sets config_dir so that _h0 (HMAC) and _x0 (socket path) work correctly.
 * Does NOT start a daemon thread, does NOT acquire locks.
 * wallet-manager.js uses this to connect to the persistent daemon started by OpenClaw.
 */
export declare function _i0(configDir: string, skillDir: string): void
export declare function _a0(): string
/** _h0: Compute HMAC for a given timestamp (for client auth). */
export declare function _h0(ts: number, configDir?: string | undefined | null): string
export declare function _l0(configDir: string, skillDir: string, logPath: string): void
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall