@awaken-finance/agent-kit 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/openclaw.json +11 -11
  2. package/package.json +1 -1
package/openclaw.json CHANGED
@@ -4,67 +4,67 @@
4
4
  "name": "awaken-query-quote",
5
5
  "command": "bun run awaken_query_skill.ts quote --symbol-in {{symbolIn}} --symbol-out {{symbolOut}} --amount-in {{amountIn}}",
6
6
  "description": "Query the best swap route and price quote on Awaken DEX. Use this when you need to know how much tokenOut you'll receive for a given tokenIn amount. Parameters: --symbol-in (input token, e.g. ELF), --symbol-out (output token, e.g. USDT), --amount-in (human-readable amount, e.g. 100). Optionally use --amount-out instead of --amount-in for reverse quote. Returns: amountIn, amountOut, route splits, fee rates. Network: defaults to mainnet, override with --network testnet.",
7
- "cwd": "scripts/skills"
7
+ "cwd": "."
8
8
  },
9
9
  {
10
10
  "name": "awaken-query-pair",
11
11
  "command": "bun run awaken_query_skill.ts pair --token0 {{token0}} --token1 {{token1}} --fee-rate {{feeRate}}",
12
12
  "description": "Get detailed trade pair information from Awaken DEX. Use this to find pair ID, price, TVL, volume, and reserve data. Parameters: --token0 (first token symbol), --token1 (second token symbol), --fee-rate (fee tier: 0.05, 0.1, 0.3, 3, or 5, default 0.3). The returned pair ID is needed for K-line queries and other operations.",
13
- "cwd": "scripts/skills"
13
+ "cwd": "."
14
14
  },
15
15
  {
16
16
  "name": "awaken-query-balance",
17
17
  "command": "bun run awaken_query_skill.ts balance --address {{address}} --symbol {{symbol}}",
18
18
  "description": "Query the token balance of an aelf address on-chain. Parameters: --address (aelf wallet address), --symbol (token symbol, e.g. ELF, USDT). Returns human-readable balance.",
19
- "cwd": "scripts/skills"
19
+ "cwd": "."
20
20
  },
21
21
  {
22
22
  "name": "awaken-query-allowance",
23
23
  "command": "bun run awaken_query_skill.ts allowance --owner {{owner}} --spender {{spender}} --symbol {{symbol}}",
24
24
  "description": "Query the token spending allowance between an owner and a spender contract. Parameters: --owner (token holder address), --spender (approved contract address), --symbol (token symbol). Returns human-readable allowance amount.",
25
- "cwd": "scripts/skills"
25
+ "cwd": "."
26
26
  },
27
27
  {
28
28
  "name": "awaken-query-liquidity",
29
29
  "command": "bun run awaken_query_skill.ts liquidity --address {{address}}",
30
30
  "description": "Query all liquidity positions for an aelf address on Awaken DEX, including USD value. Use this when you need to know how much liquidity a user has provided, the underlying token amounts, and the total value in USD. Parameters: --address (wallet address, required), --token0 (filter by token symbol, optional), --token1 (filter by token symbol, optional). Returns: list of positions with lpTokenAmount, token0Amount, token1Amount, assetUSD, pairPrice, feeRate. Also returns portfolio detail with positionValueUSD, feeEarnedUSD, estimatedAPR, dynamicAPR, impermanentLossUSD when available.",
31
- "cwd": "scripts/skills"
31
+ "cwd": "."
32
32
  },
33
33
  {
34
34
  "name": "awaken-trade-swap",
35
35
  "command": "bun run awaken_trade_skill.ts swap --symbol-in {{symbolIn}} --symbol-out {{symbolOut}} --amount-in {{amountIn}} --slippage {{slippage}}",
36
36
  "description": "Execute a token swap on Awaken DEX. REQUIRES AELF_PRIVATE_KEY env var. This sends a real on-chain transaction. Parameters: --symbol-in (token to sell), --symbol-out (token to buy), --amount-in (human-readable amount to sell), --slippage (tolerance, default 0.005 = 0.5%). The tool auto-queries the best route, approves if needed, and executes the swap. Returns: transactionId, estimated amounts, explorer URL.",
37
- "cwd": "scripts/skills"
37
+ "cwd": "."
38
38
  },
39
39
  {
40
40
  "name": "awaken-trade-add-liquidity",
41
41
  "command": "bun run awaken_trade_skill.ts add-liquidity --token-a {{tokenA}} --token-b {{tokenB}} --amount-a {{amountA}} --amount-b {{amountB}} --fee-rate {{feeRate}}",
42
42
  "description": "Add liquidity to an Awaken DEX trading pair. REQUIRES AELF_PRIVATE_KEY env var. Parameters: --token-a and --token-b (token symbols), --amount-a and --amount-b (human-readable amounts), --fee-rate (pool fee tier, default 0.3), --slippage (tolerance, default 0.005). Auto-approves both tokens before adding.",
43
- "cwd": "scripts/skills"
43
+ "cwd": "."
44
44
  },
45
45
  {
46
46
  "name": "awaken-trade-remove-liquidity",
47
47
  "command": "bun run awaken_trade_skill.ts remove-liquidity --token-a {{tokenA}} --token-b {{tokenB}} --lp-amount {{lpAmount}} --fee-rate {{feeRate}}",
48
48
  "description": "Remove liquidity from an Awaken DEX trading pair. REQUIRES AELF_PRIVATE_KEY env var. Parameters: --token-a and --token-b (token symbols), --lp-amount (LP token amount to burn), --fee-rate (pool fee tier, default 0.3). Returns the underlying tokens to your wallet.",
49
- "cwd": "scripts/skills"
49
+ "cwd": "."
50
50
  },
51
51
  {
52
52
  "name": "awaken-trade-approve",
53
53
  "command": "bun run awaken_trade_skill.ts approve --symbol {{symbol}} --spender {{spender}} --amount {{amount}}",
54
54
  "description": "Approve a contract to spend your tokens. REQUIRES AELF_PRIVATE_KEY env var. Parameters: --symbol (token to approve), --spender (contract address), --amount (human-readable amount). Use this before swap/liquidity if you need manual control over approvals.",
55
- "cwd": "scripts/skills"
55
+ "cwd": "."
56
56
  },
57
57
  {
58
58
  "name": "awaken-kline-fetch",
59
59
  "command": "bun run awaken_kline_skill.ts fetch --pair-id {{pairId}} --interval {{interval}} --from {{from}} --to {{to}}",
60
60
  "description": "Fetch historical K-line (candlestick) data for a trading pair via SignalR. Use 'awaken-query-pair' first to get the pair ID. Parameters: --pair-id (UUID from pair query), --interval (1m, 15m, 30m, 1h, 4h, 1D, 1W; default 1D), --from (start date ISO or unix ms), --to (end date ISO or unix ms). Returns array of OHLCV bars with time, open, high, low, close, volume.",
61
- "cwd": "scripts/skills"
61
+ "cwd": "."
62
62
  },
63
63
  {
64
64
  "name": "awaken-kline-intervals",
65
65
  "command": "bun run awaken_kline_skill.ts intervals",
66
66
  "description": "List all supported K-line time intervals with their period in seconds. Use this to discover valid --interval values for the kline fetch command.",
67
- "cwd": "scripts/skills"
67
+ "cwd": "."
68
68
  }
69
69
  ]
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awaken-finance/agent-kit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "AI Agent toolkit for Awaken DEX on aelf blockchain — swap tokens, manage liquidity, fetch K-line data. Supports MCP, CLI, and SDK usage.",
5
5
  "type": "module",
6
6
  "main": "index.ts",