← 返回 Skills 市场
masoncags-tech

Abstract Toolkit

作者 Masoncags-tech · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1425
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install abstract-toolkit
功能描述
Deploy smart contracts and bridge assets to Abstract (ZK Stack L2). Use when an agent needs to deploy contracts on Abstract, bridge ETH/tokens to Abstract, trade/swap tokens, check balances, transfer assets, or interact with Abstract mainnet. Covers zksolc compilation, Hardhat deployment, Relay bridging, DEX trading, and key contract addresses.
使用说明 (SKILL.md)

Abstract Onboard

Everything an agent needs to operate on Abstract.

Quick Start

Create Abstract Global Wallet (AGW)

AGW is a smart contract wallet that earns XP on Abstract. Essential for agents!

export WALLET_PRIVATE_KEY=0x...
node scripts/create-agw.js

Your EOA becomes the signer, AGW is a separate smart contract address.

Check Balances

node scripts/check-balances.js \x3Cwallet> all

Bridge ETH to Abstract

export WALLET_PRIVATE_KEY=0x...
node scripts/relay-bridge.js --from base --amount 0.01

Deploy a Contract

export WALLET_PRIVATE_KEY=0x...
node scripts/deploy-abstract.js ./artifacts/MyContract.json "constructor-arg"

Transfer Tokens

export WALLET_PRIVATE_KEY=0x...
node scripts/transfer.js --to 0x... --amount 0.01           # ETH
node scripts/transfer.js --to 0x... --amount 100 --token USDC  # Token

Swap Tokens

export WALLET_PRIVATE_KEY=0x...
export DEX_ROUTER=0x...  # Set DEX router address
node scripts/swap-tokens.js --from ETH --to USDC --amount 0.01

Call Any Contract

# Read
node scripts/call-contract.js --address 0x... --abi ./abi.json --function balanceOf --args 0x1234

# Write
export WALLET_PRIVATE_KEY=0x...
node scripts/call-contract.js --address 0x... --abi ./abi.json --function transfer --args 0x1234,100 --write

Key Information

Item Value
Chain ID 2741
RPC https://api.mainnet.abs.xyz
Explorer https://abscan.org
Bridge https://relay.link/bridge/abstract
USDC 0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1
WETH 0x3439153EB7AF838Ad19d56E1571FBD09333C2809

Scripts

Script Purpose
create-agw.js Create Abstract Global Wallet (earns XP!)
check-balances.js Check ETH and token balances
relay-bridge.js Bridge ETH from other chains
deploy-abstract.js Deploy contracts to Abstract
transfer.js Send ETH or tokens
swap-tokens.js Trade tokens via DEX
call-contract.js Call any contract function

References

File Contents
agw.md Abstract Global Wallet guide (XP, activation)
hardhat.config.js Working Hardhat config for Abstract
addresses.md Key contract addresses
troubleshooting.md Common errors and fixes

Common Issues

  1. Gas estimation fails → Use Hardhat, not foundry-zksync
  2. Compiler errors → Use Solidity 0.8.x with zksolc
  3. TX stuck → Check gas price, verify on abscan.org

See references/troubleshooting.md for detailed solutions.

Dependencies

# Core dependencies
npm install ethers zksync-ethers viem

# For contract deployment
npm install @matterlabs/hardhat-zksync

# For AGW (Abstract Global Wallet)
npm install @abstract-foundation/agw-client
安全使用建议
Before installing or running this skill: - Treat WALLET_PRIVATE_KEY as highly sensitive. Do not set your main wallet private key in an environment variable for untrusted code. Prefer a throwaway/test account or hardware-wallet-backed signing. - The skill metadata does not declare required env vars (WALLET_PRIVATE_KEY, DEX_ROUTER). That mismatch is a red flag — expect to supply these to run write operations. - Inspect and, if necessary, pin the npm dependencies locally (ethers, zksync-ethers, @abstract-foundation/agw-client, viem, hardhat plugin). Run npm install in a controlled environment and review package versions. - Test all flows on Abstract testnet (chain ID 11124, test RPC) before using mainnet and bridge only small amounts first. - Verify critical addresses (Relay depositor, DEX router) independently from Abstract docs; the scripts will send on-chain funds to those addresses. - If you lack experience handling private keys securely, do not run the write operations; consider using a read-only mode (balance checks, non-write contract calls) or seek assistance. If you want higher assurance, ask the publisher for declared required env vars and an install script, or request the skill be updated so the registry metadata matches the actual runtime requirements.
功能分析
Type: OpenClaw Skill Name: abstract-toolkit Version: 1.0.0 The skill bundle is classified as suspicious due to its inherent high-risk capabilities, specifically the handling of `WALLET_PRIVATE_KEY` for all write operations and direct interaction with real assets on various blockchains. Scripts like `scripts/create-agw.js`, `scripts/deploy-abstract.js`, `scripts/relay-bridge.js`, `scripts/swap-tokens.js`, and `scripts/transfer.js` require this sensitive credential from environment variables to perform financial transactions (transfers, swaps, bridging) and contract deployments. While these actions are plausibly needed for the stated purpose of interacting with the Abstract blockchain, the direct manipulation of private keys and real funds constitutes a significant security risk, even without clear evidence of malicious intent like exfiltration or unauthorized execution.
能力评估
Purpose & Capability
Name/description match the included scripts: deployment, bridging, token transfer, swaps, AGW creation. The requested runtime behavior (signing transactions, calling RPCs, sending funds) is coherent with a blockchain toolkit. However the registry metadata declares no required env vars/credentials while the SKILL.md and scripts clearly require WALLET_PRIVATE_KEY (and optionally DEX_ROUTER), so the declared requirements do not match what the skill actually needs.
Instruction Scope
SKILL.md and scripts are explicit about actions to take: reading ABI/artifact files, using WALLET_PRIVATE_KEY to sign transactions, calling RPC endpoints, sending transactions to relay depositor and DEX router addresses. All file and network accesses are within the expected domain for on-chain operations (no unrelated filesystem or system-wide config reads).
Install Mechanism
This is instruction-only (no install spec) but includes multiple Node scripts that rely on npm packages (ethers, zksync-ethers, @abstract-foundation/agw-client, viem, Hardhat plugin). The SKILL.md lists the npm dependencies but does not provide an automated install step; users must run npm install themselves. No high-risk URL downloads or extract/install actions are present in the skill bundle.
Credentials
The scripts require WALLET_PRIVATE_KEY (sensitive) for any write/transfer/deploy operations and DEX_ROUTER is required for swaps, but the skill metadata declares no required environment variables or primary credential. Asking for a private key is legitimate for this functionality, but the omission from declared requirements and lack of guidance on secure handling increases the risk of accidental misuse or exposure.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It runs as invoked and relies on environment variables at runtime; autonomous invocation is allowed by default but not excessive here given the purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install abstract-toolkit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /abstract-toolkit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Full Abstract onboarding for agents
元数据
Slug abstract-toolkit
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Abstract Toolkit 是什么?

Deploy smart contracts and bridge assets to Abstract (ZK Stack L2). Use when an agent needs to deploy contracts on Abstract, bridge ETH/tokens to Abstract, trade/swap tokens, check balances, transfer assets, or interact with Abstract mainnet. Covers zksolc compilation, Hardhat deployment, Relay bridging, DEX trading, and key contract addresses. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1425 次。

如何安装 Abstract Toolkit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install abstract-toolkit」即可一键安装,无需额外配置。

Abstract Toolkit 是免费的吗?

是的,Abstract Toolkit 完全免费(开源免费),可自由下载、安装和使用。

Abstract Toolkit 支持哪些平台?

Abstract Toolkit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Abstract Toolkit?

由 Masoncags-tech(@masoncags-tech)开发并维护,当前版本 v1.0.0。

💬 留言讨论