mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-26 15:40:18 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
113137c5cd | ||
|
|
33d2ccadd6 |
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "near-intents",
|
||||||
|
"display_name": "Near Intents",
|
||||||
|
"kind": "tool",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"wit_version": "0.3.0",
|
||||||
|
"description": "Token resolution, balance queries, and reverse lookups for NEAR Intents (Defuse protocol)",
|
||||||
|
"keywords": ["near", "intents", "defuse", "defi", "trading", "token"],
|
||||||
|
"source": {
|
||||||
|
"dir": "tools-src/near-intents",
|
||||||
|
"capabilities": "near-intents-tool.capabilities.json",
|
||||||
|
"crate_name": "near-intents-tool"
|
||||||
|
},
|
||||||
|
"artifacts": {},
|
||||||
|
"tags": ["trading"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
[package]
|
||||||
|
name = "near-intents-tool"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
description = "Near Intents tools for token resolution, balance queries, and reverse lookups (WASM component)"
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
serde_json = "1.0"
|
||||||
|
wit-bindgen = "0.41.0"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = "s"
|
||||||
|
lto = true
|
||||||
|
strip = true
|
||||||
|
codegen-units = 1
|
||||||
|
|
||||||
|
[workspace]
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"version": "0.1.0",
|
||||||
|
"wit_version": "0.3.0",
|
||||||
|
"description": "Near Intents tools for token resolution, balance queries, and reverse lookups on the Defuse protocol.",
|
||||||
|
"parameters": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"action": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["resolve_token", "reverse_resolve_token", "get_balance"],
|
||||||
|
"description": "Which action to perform"
|
||||||
|
},
|
||||||
|
"query": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Token reference to resolve (for resolve_token)"
|
||||||
|
},
|
||||||
|
"list_all": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Return all tokens (for resolve_token)",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
|
"asset_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Defuse asset ID (for reverse_resolve_token)"
|
||||||
|
},
|
||||||
|
"account_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "NEAR wallet address (for get_balance)"
|
||||||
|
},
|
||||||
|
"token_ids": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "type": "string" },
|
||||||
|
"description": "Specific defuse asset IDs to query (for get_balance)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["action"]
|
||||||
|
},
|
||||||
|
"capabilities": {
|
||||||
|
"http": {
|
||||||
|
"allowlist": [
|
||||||
|
{
|
||||||
|
"host": "1click.chaindefuser.com",
|
||||||
|
"path_prefix": "/v0/tokens",
|
||||||
|
"methods": ["GET"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "rpc.mainnet.near.org",
|
||||||
|
"path_prefix": "/",
|
||||||
|
"methods": ["POST"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"rate_limit": {
|
||||||
|
"requests_per_minute": 60
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": ["trading", "near", "defi", "intents"]
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user