@agentlayer.tech/wallet 0.1.65 → 0.1.67
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.
- package/.openclaw/extensions/agent-wallet/index.ts +82 -0
- package/.openclaw/extensions/agent-wallet/openclaw.plugin.json +7 -1
- package/.openclaw/extensions/agent-wallet/package.json +1 -1
- package/VERSION +1 -1
- package/agent-wallet/README.md +6 -0
- package/agent-wallet/agent_wallet/__init__.py +1 -1
- package/agent-wallet/agent_wallet/openclaw_adapter.py +485 -4
- package/agent-wallet/agent_wallet/providers/kamino.py +169 -3
- package/agent-wallet/agent_wallet/providers/x402.py +229 -148
- package/agent-wallet/agent_wallet/transaction_policy.py +60 -0
- package/agent-wallet/agent_wallet/wallet_layer/base.py +124 -0
- package/agent-wallet/agent_wallet/wallet_layer/solana.py +563 -0
- package/agent-wallet/agent_wallet/wallet_layer/wdk_evm.py +16 -0
- package/agent-wallet/openclaw.plugin.json +2 -2
- package/agent-wallet/pyproject.toml +1 -1
- package/agent-wallet/scripts/install_openclaw_local_config.py +6 -0
- package/agent-wallet/skills/wallet-operator/SKILL.md +6 -4
- package/claude-code/plugins/agent-wallet/.claude-plugin/plugin.json +1 -1
- package/claude-code/plugins/agent-wallet/skills/wallet-operator/SKILL.md +1 -1
- package/codex/plugins/agent-wallet/.codex-plugin/plugin.json +1 -1
- package/codex/plugins/agent-wallet/server.py +52 -3
- package/codex/plugins/agent-wallet/skills/wallet-operator/SKILL.md +1 -1
- package/hermes/plugins/agent_wallet/plugin.yaml +1 -1
- package/install-from-github.sh +6 -0
- package/package.json +1 -1
- package/wdk-btc-wallet/package.json +1 -1
- package/wdk-evm-wallet/package.json +1 -1
- package/wdk-evm-wallet/src/wdk_evm_wallet.js +126 -19
|
@@ -984,6 +984,54 @@ const solanaToolDefinitions = [
|
|
|
984
984
|
additionalProperties: false,
|
|
985
985
|
},
|
|
986
986
|
},
|
|
987
|
+
{
|
|
988
|
+
name: "get_kamino_portfolio",
|
|
989
|
+
description:
|
|
990
|
+
"Get the unified Kamino portfolio view for a Solana wallet on mainnet across lending, multiply, leverage, liquidity, earn, and staking.",
|
|
991
|
+
parameters: {
|
|
992
|
+
type: "object",
|
|
993
|
+
properties: {
|
|
994
|
+
user: {
|
|
995
|
+
type: "string",
|
|
996
|
+
description: "Optional Solana wallet address override.",
|
|
997
|
+
},
|
|
998
|
+
},
|
|
999
|
+
additionalProperties: false,
|
|
1000
|
+
},
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
name: "get_kamino_vaults",
|
|
1004
|
+
description: "List Kamino Earn vaults currently available on Solana mainnet.",
|
|
1005
|
+
parameters: { type: "object", properties: {}, additionalProperties: false },
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
name: "get_kamino_earn_positions",
|
|
1009
|
+
description: "Get Kamino Earn vault positions for a Solana wallet on mainnet.",
|
|
1010
|
+
parameters: {
|
|
1011
|
+
type: "object",
|
|
1012
|
+
properties: {
|
|
1013
|
+
user: {
|
|
1014
|
+
type: "string",
|
|
1015
|
+
description: "Optional Solana wallet address override.",
|
|
1016
|
+
},
|
|
1017
|
+
},
|
|
1018
|
+
additionalProperties: false,
|
|
1019
|
+
},
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
name: "get_kamino_liquidity_positions",
|
|
1023
|
+
description: "Get Kamino Liquidity strategy positions for a Solana wallet on mainnet.",
|
|
1024
|
+
parameters: {
|
|
1025
|
+
type: "object",
|
|
1026
|
+
properties: {
|
|
1027
|
+
user: {
|
|
1028
|
+
type: "string",
|
|
1029
|
+
description: "Optional Solana wallet address override.",
|
|
1030
|
+
},
|
|
1031
|
+
},
|
|
1032
|
+
additionalProperties: false,
|
|
1033
|
+
},
|
|
1034
|
+
},
|
|
987
1035
|
{
|
|
988
1036
|
name: "get_kamino_lend_markets",
|
|
989
1037
|
description: "List Kamino lending markets currently available on Solana mainnet.",
|
|
@@ -1277,6 +1325,40 @@ const solanaToolDefinitions = [
|
|
|
1277
1325
|
additionalProperties: false,
|
|
1278
1326
|
},
|
|
1279
1327
|
},
|
|
1328
|
+
{
|
|
1329
|
+
name: "kamino_earn_deposit",
|
|
1330
|
+
description: "Preview, prepare, or execute a Kamino Earn vault deposit using a decimal token amount. Preview or prepare first. After the user explicitly confirms the shown summary in chat, call execute; the OpenClaw plugin handles the internal execution authorization automatically.",
|
|
1331
|
+
optional: true,
|
|
1332
|
+
parameters: {
|
|
1333
|
+
type: "object",
|
|
1334
|
+
properties: {
|
|
1335
|
+
kvault: { type: "string" },
|
|
1336
|
+
amount_ui: { type: "string" },
|
|
1337
|
+
mode: { type: "string", enum: ["preview", "prepare", "execute"] },
|
|
1338
|
+
purpose: { type: "string" },
|
|
1339
|
+
user_intent: { type: "boolean" },
|
|
1340
|
+
},
|
|
1341
|
+
required: ["kvault", "amount_ui", "mode", "purpose"],
|
|
1342
|
+
additionalProperties: false,
|
|
1343
|
+
},
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
name: "kamino_earn_withdraw",
|
|
1347
|
+
description: "Preview, prepare, or execute a Kamino Earn vault withdraw using a decimal token amount. Preview or prepare first. After the user explicitly confirms the shown summary in chat, call execute; the OpenClaw plugin handles the internal execution authorization automatically.",
|
|
1348
|
+
optional: true,
|
|
1349
|
+
parameters: {
|
|
1350
|
+
type: "object",
|
|
1351
|
+
properties: {
|
|
1352
|
+
kvault: { type: "string" },
|
|
1353
|
+
amount_ui: { type: "string" },
|
|
1354
|
+
mode: { type: "string", enum: ["preview", "prepare", "execute"] },
|
|
1355
|
+
purpose: { type: "string" },
|
|
1356
|
+
user_intent: { type: "boolean" },
|
|
1357
|
+
},
|
|
1358
|
+
required: ["kvault", "amount_ui", "mode", "purpose"],
|
|
1359
|
+
additionalProperties: false,
|
|
1360
|
+
},
|
|
1361
|
+
},
|
|
1280
1362
|
{
|
|
1281
1363
|
name: "flash_trade_open_position",
|
|
1282
1364
|
description: "Preview, prepare, or execute a Flash Trade perpetual open on Solana mainnet using a supported Flash collateral.",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "agent-wallet",
|
|
3
3
|
"name": "Agent Wallet",
|
|
4
4
|
"description": "Official OpenClaw plugin bridge for the agent-wallet backends, including Solana, local BTC, and local EVM.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.67",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"agentlayer_autonomous_approve",
|
|
@@ -32,11 +32,15 @@
|
|
|
32
32
|
"get_evm_transaction_receipt",
|
|
33
33
|
"get_flash_trade_markets",
|
|
34
34
|
"get_flash_trade_positions",
|
|
35
|
+
"get_kamino_earn_positions",
|
|
35
36
|
"get_kamino_lend_market_reserves",
|
|
36
37
|
"get_kamino_lend_markets",
|
|
38
|
+
"get_kamino_liquidity_positions",
|
|
37
39
|
"get_kamino_open_positions",
|
|
40
|
+
"get_kamino_portfolio",
|
|
38
41
|
"get_kamino_lend_user_obligations",
|
|
39
42
|
"get_kamino_lend_user_rewards",
|
|
43
|
+
"get_kamino_vaults",
|
|
40
44
|
"get_lifi_quote",
|
|
41
45
|
"get_lifi_supported_chains",
|
|
42
46
|
"get_lifi_transfer_status",
|
|
@@ -45,6 +49,8 @@
|
|
|
45
49
|
"get_wallet_balance",
|
|
46
50
|
"get_wallet_capabilities",
|
|
47
51
|
"get_wallet_portfolio",
|
|
52
|
+
"kamino_earn_deposit",
|
|
53
|
+
"kamino_earn_withdraw",
|
|
48
54
|
"kamino_lend_borrow",
|
|
49
55
|
"kamino_lend_deposit",
|
|
50
56
|
"kamino_lend_repay",
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.67
|
package/agent-wallet/README.md
CHANGED
|
@@ -90,6 +90,10 @@ Current safe tools:
|
|
|
90
90
|
- `transfer_spl_token`
|
|
91
91
|
- `swap_solana_tokens` - Solana Jupiter swaps; prefer `intent_preview` -> chat confirmation -> `intent_execute` so execution refreshes the quote inside approved limits.
|
|
92
92
|
- `get_kamino_lend_markets`
|
|
93
|
+
- `get_kamino_portfolio`
|
|
94
|
+
- `get_kamino_vaults`
|
|
95
|
+
- `get_kamino_earn_positions`
|
|
96
|
+
- `get_kamino_liquidity_positions`
|
|
93
97
|
- `get_kamino_lend_market_reserves`
|
|
94
98
|
- `get_kamino_lend_user_obligations`
|
|
95
99
|
- `get_kamino_lend_user_rewards`
|
|
@@ -98,6 +102,8 @@ Current safe tools:
|
|
|
98
102
|
- `kamino_lend_withdraw`
|
|
99
103
|
- `kamino_lend_borrow`
|
|
100
104
|
- `kamino_lend_repay`
|
|
105
|
+
- `kamino_earn_deposit`
|
|
106
|
+
- `kamino_earn_withdraw`
|
|
101
107
|
- `close_empty_token_accounts`
|
|
102
108
|
- `deactivate_solana_stake`
|
|
103
109
|
- `withdraw_solana_stake`
|