naracli 1.0.53 → 1.0.55
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/README.md +69 -169
- package/dist/nara-cli-bundle.cjs +27 -27
- package/package.json +2 -2
- package/src/cli/commands/quest.ts +1 -1
- package/src/cli/commands/wallet.ts +1 -1
- package/src/cli/utils/transaction.ts +1 -1
package/README.md
CHANGED
|
@@ -1,191 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/nara-chain/nara-web/main/public/favicon.png" width="48" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h3 align="center">Nara CLI</h3>
|
|
6
|
+
<p align="center">
|
|
7
|
+
Command-line interface for the Nara network.
|
|
8
|
+
<br />
|
|
9
|
+
<a href="https://nara.build/docs">nara.build/docs</a>
|
|
10
|
+
</p>
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
Wallet management, PoMI mining, agent registration, and network interaction from the terminal.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
6
17
|
|
|
7
18
|
```bash
|
|
8
|
-
|
|
19
|
+
npm install -g naracli
|
|
9
20
|
```
|
|
10
21
|
|
|
11
|
-
|
|
22
|
+
Or run directly with npx:
|
|
12
23
|
|
|
13
24
|
```bash
|
|
14
|
-
|
|
15
|
-
npx naracli wallet create
|
|
16
|
-
|
|
17
|
-
# Or import from mnemonic / private key
|
|
18
|
-
npx naracli wallet import -m "your twelve word mnemonic phrase ..."
|
|
19
|
-
npx naracli wallet import -k "your-private-key"
|
|
25
|
+
npx naracli <command>
|
|
20
26
|
```
|
|
21
27
|
|
|
22
|
-
Wallet is saved to `~/.config/nara/id.json` by default.
|
|
23
|
-
|
|
24
28
|
## Commands
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
| `skills get <name>` | Get skill info (record, description, metadata) |
|
|
64
|
-
| `skills content <name>` | Read skill content (`--hex` for hex output) |
|
|
65
|
-
| `skills set-description <name> <desc>` | Set or update skill description (max 512 bytes) |
|
|
66
|
-
| `skills set-metadata <name> <json>` | Set or update skill JSON metadata (max 800 bytes) |
|
|
67
|
-
| `skills upload <name> <file>` | Upload skill content from a local file (chunked) |
|
|
68
|
-
| `skills transfer <name> <new-authority>` | Transfer skill authority to a new address |
|
|
69
|
-
| `skills close-buffer <name>` | Close a pending upload buffer and reclaim rent |
|
|
70
|
-
| `skills delete <name>` | Delete a skill and reclaim all rent |
|
|
71
|
-
|
|
72
|
-
### Skills Hub — Local Install
|
|
73
|
-
|
|
74
|
-
Pull skill content from the chain and write it to your AI-agent skill directories
|
|
75
|
-
(Claude Code, Cursor, OpenCode, Codex, Amp). Follows the [agentskills.io](https://agentskills.io) layout.
|
|
76
|
-
|
|
77
|
-
| Command | Description |
|
|
78
|
-
| ------- | ----------- |
|
|
79
|
-
| `skills add <name>` | Install a skill from the chain into local agent directories |
|
|
80
|
-
| `skills remove <name>` | Remove a locally installed skill |
|
|
81
|
-
| `skills list` | List skills installed via naracli |
|
|
82
|
-
| `skills check` | Check installed skills for available chain updates |
|
|
83
|
-
| `skills update [names...]` | Update installed skills to the latest chain version |
|
|
84
|
-
|
|
85
|
-
**Options** (add / remove / update): `-g, --global` — install to `~/<agent>/skills/` instead of project-local · `-a, --agent <agents...>` — target specific agents
|
|
86
|
-
|
|
87
|
-
### ZK Identity
|
|
88
|
-
|
|
89
|
-
| Command | Description |
|
|
90
|
-
| ------- | ----------- |
|
|
91
|
-
| `zkid create <name>` | Register a new ZK ID on-chain |
|
|
92
|
-
| `zkid info <name>` | Query ZK ID account info (read-only) |
|
|
93
|
-
| `zkid deposit <name> <amount>` | Deposit NARA into ZK ID (1 / 10 / 100 / 1000 / 10000 / 100000) |
|
|
94
|
-
| `zkid scan [name]` | Scan for claimable deposits (all from config if no name, `-w` auto-withdraw) |
|
|
95
|
-
| `zkid withdraw <name>` | Anonymously withdraw a deposit (`--recipient <addr>`) |
|
|
96
|
-
| `zkid id-commitment <name>` | Output idCommitment hex for this wallet + name |
|
|
97
|
-
| `zkid transfer-owner <name> <commitment>` | Transfer ZK ID ownership to a new commitment holder |
|
|
98
|
-
|
|
99
|
-
### Agent Registry
|
|
100
|
-
|
|
101
|
-
| Command | Description |
|
|
102
|
-
| ------- | ----------- |
|
|
103
|
-
| `agent register <agent-id> [--referral <id>]` | Register a new agent on-chain (one per network) |
|
|
104
|
-
| `agent clear` | Clear saved agent ID from local config (on-chain unchanged) |
|
|
105
|
-
| `agent get <agent-id>` | Get agent info (bio, metadata, version, points) |
|
|
106
|
-
| `agent set-bio <agent-id> <bio>` | Set agent bio (max 512 bytes) |
|
|
107
|
-
| `agent set-metadata <agent-id> <json>` | Set agent JSON metadata (max 800 bytes) |
|
|
108
|
-
| `agent upload-memory <agent-id> <file>` | Upload memory data from file |
|
|
109
|
-
| `agent memory <agent-id>` | Read agent memory content |
|
|
110
|
-
| `agent transfer <agent-id> <new-authority>` | Transfer agent authority |
|
|
111
|
-
| `agent close-buffer <agent-id>` | Close upload buffer, reclaim rent |
|
|
112
|
-
| `agent delete <agent-id>` | Delete agent, reclaim rent |
|
|
113
|
-
| `agent set-referral <agent-id> <referral-id>` | Set referral agent on-chain |
|
|
114
|
-
| `agent log <agent-id> <activity> <log>` | Log activity event on-chain (`--model`, `--referral`) |
|
|
115
|
-
|
|
116
|
-
### Configuration
|
|
117
|
-
|
|
118
|
-
| Command | Description |
|
|
119
|
-
| ------- | ----------- |
|
|
120
|
-
| `config get` | Show current configuration (rpc-url, wallet, network) |
|
|
121
|
-
| `config set <key> <value>` | Set a config value (keys: `rpc-url`, `wallet`) |
|
|
122
|
-
| `config reset [key]` | Reset config to default (omit key for all) |
|
|
123
|
-
|
|
124
|
-
Config is split into global and network-specific files:
|
|
125
|
-
|
|
126
|
-
- `~/.config/nara/config.json` — global: `rpc_url`, `wallet`
|
|
127
|
-
- `~/.config/nara/agent-{network}.json` — per-network: `agent_id`, `zk_ids`
|
|
128
|
-
|
|
129
|
-
Agent registration and ZK IDs are isolated per network. Only one agent ID per network — use `agent clear` to unlink before registering a new one.
|
|
130
|
-
|
|
131
|
-
When `agent_id` is set, `quest answer` automatically logs PoMI activity on-chain.
|
|
132
|
-
|
|
133
|
-
**Naming rules**: Agent IDs and skill names must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens.
|
|
134
|
-
|
|
135
|
-
Run `npx naracli <command> --help` for details.
|
|
136
|
-
|
|
137
|
-
### Global Options
|
|
138
|
-
|
|
139
|
-
Global options override config values for a single command:
|
|
140
|
-
|
|
141
|
-
| Option | Description |
|
|
142
|
-
| --------------------- | --------------------------- |
|
|
143
|
-
| `-r, --rpc-url <url>` | RPC endpoint URL |
|
|
144
|
-
| `-w, --wallet <path>` | Path to wallet keypair JSON |
|
|
145
|
-
| `-j, --json` | Output in JSON format |
|
|
146
|
-
|
|
147
|
-
## Quick Example
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
# Check balance
|
|
151
|
-
npx naracli balance
|
|
152
|
-
|
|
153
|
-
# Answer a quest
|
|
154
|
-
npx naracli quest get
|
|
155
|
-
npx naracli quest answer "your answer" --agent claude-code --model claude-opus-4-6
|
|
156
|
-
|
|
157
|
-
# Publish a skill to the chain
|
|
158
|
-
npx naracli skills register my-skill "Alice"
|
|
159
|
-
npx naracli skills set-description my-skill "What this skill does"
|
|
160
|
-
npx naracli skills upload my-skill ./SKILL.md
|
|
161
|
-
|
|
162
|
-
# Install from the chain into local agent directories
|
|
163
|
-
npx naracli skills add my-skill
|
|
164
|
-
npx naracli skills add my-skill --global --agent claude-code
|
|
165
|
-
npx naracli skills list
|
|
166
|
-
npx naracli skills check
|
|
167
|
-
npx naracli skills update
|
|
168
|
-
|
|
169
|
-
# ZK anonymous transfers
|
|
170
|
-
npx naracli zkid create my-id
|
|
171
|
-
npx naracli zkid deposit my-id 10
|
|
172
|
-
npx naracli zkid scan my-id
|
|
173
|
-
npx naracli zkid withdraw my-id
|
|
174
|
-
|
|
175
|
-
# Agent registry
|
|
176
|
-
npx naracli agent register my-agent
|
|
177
|
-
npx naracli agent set-bio my-agent "My AI agent"
|
|
178
|
-
npx naracli agent get my-agent
|
|
30
|
+
```
|
|
31
|
+
address Show wallet address
|
|
32
|
+
balance [address] Check NARA balance
|
|
33
|
+
token-balance <token-address> [--owner <addr>] Check token balance
|
|
34
|
+
tx-status <signature> Check transaction status
|
|
35
|
+
transfer <to> <amount> [-e] Transfer NARA
|
|
36
|
+
transfer-token <token> <to> <amount> [--decimals 6] [-e] Transfer tokens
|
|
37
|
+
sign <base64-tx> [--send] Sign a base64-encoded transaction
|
|
38
|
+
sign-url <url> Sign a URL with wallet keypair
|
|
39
|
+
wallet create [-o <path>] Create new wallet
|
|
40
|
+
wallet import [-m <mnemonic>] [-k <key>] [-o <path>] Import wallet
|
|
41
|
+
quest get Get current quest info
|
|
42
|
+
quest answer <answer> [--relay] [--agent <name>] [--model <name>] [--stake [amount]] Submit answer with ZK proof
|
|
43
|
+
quest stake <amount> Stake NARA for quests
|
|
44
|
+
quest unstake <amount> Unstake NARA
|
|
45
|
+
quest stake-info Get quest stake info
|
|
46
|
+
skills register <name> <author> Register a skill on-chain
|
|
47
|
+
skills get <name> Get skill info
|
|
48
|
+
skills upload <name> <file> Upload skill content
|
|
49
|
+
skills add <name> [-g] [-a <agents...>] Install skill to local agents
|
|
50
|
+
skills remove <name> Remove installed skill
|
|
51
|
+
skills list [-g] List installed skills
|
|
52
|
+
skills check [-g] Check for updates
|
|
53
|
+
skills update [names...] [-g] Update skills
|
|
54
|
+
zkid create <name> Register a ZK ID
|
|
55
|
+
zkid info <name> Get ZK ID info
|
|
56
|
+
zkid deposit <name> <amount> Deposit NARA
|
|
57
|
+
zkid scan [name] [-w] Scan claimable deposits
|
|
58
|
+
zkid withdraw <name> [--recipient <addr>] Withdraw deposit
|
|
59
|
+
agent register <agent-id> [--referral <agent-id>] Register an agent on-chain
|
|
60
|
+
agent get <agent-id> Get agent info
|
|
61
|
+
agent set-bio <agent-id> <bio> Set agent bio
|
|
62
|
+
agent upload-memory <agent-id> <file> Upload agent memory
|
|
63
|
+
agent log <agent-id> <activity> <log> Log activity on-chain
|
|
64
|
+
config get Show current config
|
|
65
|
+
config set <key> <value> Set config value
|
|
66
|
+
config reset [key] Reset config to default
|
|
179
67
|
```
|
|
180
68
|
|
|
181
|
-
##
|
|
69
|
+
## Global Options
|
|
182
70
|
|
|
183
|
-
|
|
71
|
+
| Option | Description |
|
|
72
|
+
|---|---|
|
|
73
|
+
| `-r, --rpc-url <url>` | RPC endpoint (default: `https://mainnet-api.nara.build/`) |
|
|
74
|
+
| `-w, --wallet <path>` | Wallet keypair JSON |
|
|
75
|
+
| `-j, --json` | JSON output |
|
|
76
|
+
|
|
77
|
+
## Configuration
|
|
184
78
|
|
|
185
79
|
```bash
|
|
186
|
-
|
|
80
|
+
naracli config set rpc-url https://mainnet-api.nara.build/
|
|
81
|
+
naracli config get
|
|
82
|
+
naracli config reset
|
|
187
83
|
```
|
|
188
84
|
|
|
189
85
|
## License
|
|
190
86
|
|
|
191
87
|
MIT
|
|
88
|
+
|
|
89
|
+
## Links
|
|
90
|
+
|
|
91
|
+
[Website](https://nara.build) · [Docs](https://nara.build/docs) · [Explorer](https://explorer.nara.build) · [GitHub](https://github.com/nara-chain) · [X](https://x.com/NaraBuildAI)
|
package/dist/nara-cli-bundle.cjs
CHANGED
|
@@ -60810,21 +60810,21 @@ var require_dist3 = __commonJS({
|
|
|
60810
60810
|
}
|
|
60811
60811
|
});
|
|
60812
60812
|
|
|
60813
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
60813
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/constants.ts
|
|
60814
60814
|
var DEFAULT_RPC_URL, DEFAULT_QUEST_RELAY_URL, DEFAULT_QUEST_PROGRAM_ID, DEFAULT_SKILLS_PROGRAM_ID, DEFAULT_ZKID_PROGRAM_ID, DEFAULT_AGENT_REGISTRY_PROGRAM_ID, DEFAULT_ALT_ADDRESS;
|
|
60815
60815
|
var init_constants2 = __esm({
|
|
60816
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
60816
|
+
"node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/constants.ts"() {
|
|
60817
60817
|
DEFAULT_RPC_URL = process.env.RPC_URL || "https://mainnet-api.nara.build/";
|
|
60818
60818
|
DEFAULT_QUEST_RELAY_URL = process.env.QUEST_RELAY_URL || "https://quest-api.nara.build/";
|
|
60819
60819
|
DEFAULT_QUEST_PROGRAM_ID = process.env.QUEST_PROGRAM_ID || "Quest11111111111111111111111111111111111111";
|
|
60820
60820
|
DEFAULT_SKILLS_PROGRAM_ID = process.env.SKILLS_PROGRAM_ID || "SkiLLHub11111111111111111111111111111111111";
|
|
60821
60821
|
DEFAULT_ZKID_PROGRAM_ID = process.env.ZKID_PROGRAM_ID || "ZKidentity111111111111111111111111111111111";
|
|
60822
60822
|
DEFAULT_AGENT_REGISTRY_PROGRAM_ID = process.env.AGENT_REGISTRY_PROGRAM_ID || "AgentRegistry111111111111111111111111111111";
|
|
60823
|
-
DEFAULT_ALT_ADDRESS = process.env.ALT_ADDRESS || "
|
|
60823
|
+
DEFAULT_ALT_ADDRESS = process.env.ALT_ADDRESS || "3uw7RatGTB4hdHnuVLXjsqcMZ87zXsMSc3XbyoPA8mB7";
|
|
60824
60824
|
}
|
|
60825
60825
|
});
|
|
60826
60826
|
|
|
60827
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
60827
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/tx.ts
|
|
60828
60828
|
function getAltAddress() {
|
|
60829
60829
|
if (_overrideAltAddresses !== null) return _overrideAltAddresses;
|
|
60830
60830
|
if (!DEFAULT_ALT_ADDRESS) return [];
|
|
@@ -60950,7 +60950,7 @@ async function sendTx(connection, payer, instructions, signers, opts) {
|
|
|
60950
60950
|
}
|
|
60951
60951
|
var import_web388, _cachedAlts, _cachedAltKey, _overrideAltAddresses, _globalSkipPreflight;
|
|
60952
60952
|
var init_tx = __esm({
|
|
60953
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
60953
|
+
"node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/tx.ts"() {
|
|
60954
60954
|
import_web388 = __toESM(require_index_cjs(), 1);
|
|
60955
60955
|
init_constants2();
|
|
60956
60956
|
_cachedAlts = [];
|
|
@@ -77205,10 +77205,10 @@ var require_cjs2 = __commonJS({
|
|
|
77205
77205
|
}
|
|
77206
77206
|
});
|
|
77207
77207
|
|
|
77208
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
77208
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/idls/nara_agent_registry.json
|
|
77209
77209
|
var nara_agent_registry_default;
|
|
77210
77210
|
var init_nara_agent_registry = __esm({
|
|
77211
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
77211
|
+
"node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/idls/nara_agent_registry.json"() {
|
|
77212
77212
|
nara_agent_registry_default = {
|
|
77213
77213
|
address: "AgentRegistry111111111111111111111111111111",
|
|
77214
77214
|
metadata: {
|
|
@@ -79967,7 +79967,7 @@ var init_nara_agent_registry = __esm({
|
|
|
79967
79967
|
}
|
|
79968
79968
|
});
|
|
79969
79969
|
|
|
79970
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
79970
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/agent_registry.ts
|
|
79971
79971
|
var agent_registry_exports = {};
|
|
79972
79972
|
__export(agent_registry_exports, {
|
|
79973
79973
|
closeBuffer: () => closeBuffer,
|
|
@@ -80490,7 +80490,7 @@ async function updateActivityConfig(connection, wallet, activityReward, referral
|
|
|
80490
80490
|
}
|
|
80491
80491
|
var import_web389, anchor, import_anchor, DEFAULT_CHUNK_SIZE, BUFFER_HEADER_SIZE, MEMORY_HEADER_SIZE, BIO_META_HEADER_SIZE;
|
|
80492
80492
|
var init_agent_registry = __esm({
|
|
80493
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
80493
|
+
"node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/agent_registry.ts"() {
|
|
80494
80494
|
import_web389 = __toESM(require_index_cjs(), 1);
|
|
80495
80495
|
anchor = __toESM(require_cjs2(), 1);
|
|
80496
80496
|
import_anchor = __toESM(require_cjs2(), 1);
|
|
@@ -124865,7 +124865,7 @@ var esm_default = base;
|
|
|
124865
124865
|
var ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
124866
124866
|
var esm_default2 = esm_default(ALPHABET);
|
|
124867
124867
|
|
|
124868
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
124868
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/client.ts
|
|
124869
124869
|
var import_web387 = __toESM(require_index_cjs(), 1);
|
|
124870
124870
|
var NaraSDK = class {
|
|
124871
124871
|
connection;
|
|
@@ -124880,10 +124880,10 @@ var NaraSDK = class {
|
|
|
124880
124880
|
}
|
|
124881
124881
|
};
|
|
124882
124882
|
|
|
124883
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
124883
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/index.ts
|
|
124884
124884
|
init_constants2();
|
|
124885
124885
|
|
|
124886
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
124886
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/sign.ts
|
|
124887
124887
|
var import_tweetnacl = __toESM(require_nacl_fast(), 1);
|
|
124888
124888
|
function buildSignMessage(params) {
|
|
124889
124889
|
return Object.keys(params).filter((k2) => k2 !== "sign").sort().map((k2) => `${k2}=${params[k2]}`).join("&");
|
|
@@ -124911,10 +124911,10 @@ function signUrl(baseUrl, wallet, params) {
|
|
|
124911
124911
|
return url.toString();
|
|
124912
124912
|
}
|
|
124913
124913
|
|
|
124914
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
124914
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/index.ts
|
|
124915
124915
|
init_tx();
|
|
124916
124916
|
|
|
124917
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
124917
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/quest.ts
|
|
124918
124918
|
var import_web390 = __toESM(require_index_cjs(), 1);
|
|
124919
124919
|
init_esm2();
|
|
124920
124920
|
var anchor2 = __toESM(require_cjs2(), 1);
|
|
@@ -124923,7 +124923,7 @@ var import_bn = __toESM(require_bn(), 1);
|
|
|
124923
124923
|
init_constants2();
|
|
124924
124924
|
init_tx();
|
|
124925
124925
|
|
|
124926
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
124926
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/idls/nara_quest.json
|
|
124927
124927
|
var nara_quest_default = {
|
|
124928
124928
|
address: "Quest11111111111111111111111111111111111111",
|
|
124929
124929
|
metadata: {
|
|
@@ -126610,7 +126610,7 @@ var nara_quest_default = {
|
|
|
126610
126610
|
]
|
|
126611
126611
|
};
|
|
126612
126612
|
|
|
126613
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
126613
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/quest.ts
|
|
126614
126614
|
var import_meta = {};
|
|
126615
126615
|
var BN254_FIELD = 21888242871839275222246405745257275088696311157297823662689037894645226208583n;
|
|
126616
126616
|
async function resolveDefaultZkPaths() {
|
|
@@ -126973,13 +126973,13 @@ async function getStakeInfo(connection, user, options) {
|
|
|
126973
126973
|
}
|
|
126974
126974
|
}
|
|
126975
126975
|
|
|
126976
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
126976
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/skills.ts
|
|
126977
126977
|
var import_web391 = __toESM(require_index_cjs(), 1);
|
|
126978
126978
|
var anchor3 = __toESM(require_cjs2(), 1);
|
|
126979
126979
|
var import_anchor3 = __toESM(require_cjs2(), 1);
|
|
126980
126980
|
init_constants2();
|
|
126981
126981
|
|
|
126982
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
126982
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/idls/nara_skills_hub.json
|
|
126983
126983
|
var nara_skills_hub_default = {
|
|
126984
126984
|
address: "SkiLLHub11111111111111111111111111111111111",
|
|
126985
126985
|
metadata: {
|
|
@@ -128377,7 +128377,7 @@ var nara_skills_hub_default = {
|
|
|
128377
128377
|
]
|
|
128378
128378
|
};
|
|
128379
128379
|
|
|
128380
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
128380
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/skills.ts
|
|
128381
128381
|
init_tx();
|
|
128382
128382
|
var DEFAULT_CHUNK_SIZE2 = 800;
|
|
128383
128383
|
var BUFFER_HEADER_SIZE2 = 144;
|
|
@@ -128612,7 +128612,7 @@ async function uploadSkillContent(connection, wallet, name, content, options) {
|
|
|
128612
128612
|
}
|
|
128613
128613
|
}
|
|
128614
128614
|
|
|
128615
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
128615
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/zkid.ts
|
|
128616
128616
|
var import_web392 = __toESM(require_index_cjs(), 1);
|
|
128617
128617
|
var anchor4 = __toESM(require_cjs2(), 1);
|
|
128618
128618
|
var import_anchor4 = __toESM(require_cjs2(), 1);
|
|
@@ -128622,7 +128622,7 @@ var import_bn2 = __toESM(require_bn(), 1);
|
|
|
128622
128622
|
init_constants2();
|
|
128623
128623
|
init_tx();
|
|
128624
128624
|
|
|
128625
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
128625
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/idls/nara_zk.json
|
|
128626
128626
|
var nara_zk_default = {
|
|
128627
128627
|
address: "ZKidentity111111111111111111111111111111111",
|
|
128628
128628
|
metadata: {
|
|
@@ -129833,7 +129833,7 @@ var nara_zk_default = {
|
|
|
129833
129833
|
]
|
|
129834
129834
|
};
|
|
129835
129835
|
|
|
129836
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
129836
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/zkid.ts
|
|
129837
129837
|
var import_meta2 = {};
|
|
129838
129838
|
var BN254_PRIME = 21888242871839275222246405745257275088696311157297823662689037894645226208583n;
|
|
129839
129839
|
var MERKLE_LEVELS = 64;
|
|
@@ -130180,7 +130180,7 @@ async function transferZkIdByCommitment(connection, payer, name, currentIdSecret
|
|
|
130180
130180
|
return sendTx(connection, payer, [ix]);
|
|
130181
130181
|
}
|
|
130182
130182
|
|
|
130183
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
130183
|
+
// node_modules/.pnpm/nara-sdk@1.0.54_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/index.ts
|
|
130184
130184
|
init_agent_registry();
|
|
130185
130185
|
var import_web393 = __toESM(require_index_cjs(), 1);
|
|
130186
130186
|
var import_bn3 = __toESM(require_bn(), 1);
|
|
@@ -130494,7 +130494,7 @@ function printTransactionResult(result, jsonMode = false) {
|
|
|
130494
130494
|
printSuccess("Transaction successful!");
|
|
130495
130495
|
console.log(`Signature: ${result.signature}`);
|
|
130496
130496
|
console.log(
|
|
130497
|
-
`View on
|
|
130497
|
+
`View on explorer: https://explorer.nara.build/tx/${result.signature}`
|
|
130498
130498
|
);
|
|
130499
130499
|
}
|
|
130500
130500
|
} else if (result.base64) {
|
|
@@ -130682,7 +130682,7 @@ Transaction: ${signature}`);
|
|
|
130682
130682
|
}
|
|
130683
130683
|
console.log(
|
|
130684
130684
|
`
|
|
130685
|
-
View on
|
|
130685
|
+
View on explorer: https://explorer.nara.build/tx/${signature}`
|
|
130686
130686
|
);
|
|
130687
130687
|
}
|
|
130688
130688
|
}
|
|
@@ -131144,7 +131144,7 @@ async function handleReward(connection, txSignature, options) {
|
|
|
131144
131144
|
} catch {
|
|
131145
131145
|
printWarning("Failed to fetch transaction details. Please check manually later.");
|
|
131146
131146
|
console.log(
|
|
131147
|
-
` https://
|
|
131147
|
+
` https://explorer.nara.build/tx/${txSignature}`
|
|
131148
131148
|
);
|
|
131149
131149
|
return;
|
|
131150
131150
|
}
|
|
@@ -134169,7 +134169,7 @@ function registerCommands(program3) {
|
|
|
134169
134169
|
}
|
|
134170
134170
|
|
|
134171
134171
|
// bin/nara-cli.ts
|
|
134172
|
-
var version2 = true ? "1.0.
|
|
134172
|
+
var version2 = true ? "1.0.55" : "dev";
|
|
134173
134173
|
var program2 = new Command();
|
|
134174
134174
|
program2.name("naracli").description("CLI for the Nara chain (Solana-compatible)").version(version2);
|
|
134175
134175
|
program2.option("-r, --rpc-url <url>", "RPC endpoint URL").option("-w, --wallet <path>", "Path to wallet keypair JSON file").option("-j, --json", "Output in JSON format");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naracli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"description": "CLI for the Nara chain (Solana-compatible)",
|
|
5
5
|
"homepage": "https://nara.build",
|
|
6
6
|
"repository": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"bs58": "^6.0.0",
|
|
64
64
|
"commander": "^12.1.0",
|
|
65
65
|
"ed25519-hd-key": "^1.3.0",
|
|
66
|
-
"nara-sdk": "^1.0.
|
|
66
|
+
"nara-sdk": "^1.0.54",
|
|
67
67
|
"picocolors": "^1.1.1"
|
|
68
68
|
},
|
|
69
69
|
"packageManager": "pnpm@10.27.0+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a"
|
|
@@ -334,7 +334,7 @@ async function handleReward(
|
|
|
334
334
|
} catch {
|
|
335
335
|
printWarning("Failed to fetch transaction details. Please check manually later.");
|
|
336
336
|
console.log(
|
|
337
|
-
` https://
|
|
337
|
+
` https://explorer.nara.build/tx/${txSignature}`
|
|
338
338
|
);
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
@@ -304,7 +304,7 @@ export async function handleTxStatus(
|
|
|
304
304
|
console.log(`Error: ${JSON.stringify(output.error)}`);
|
|
305
305
|
}
|
|
306
306
|
console.log(
|
|
307
|
-
`\nView on
|
|
307
|
+
`\nView on explorer: https://explorer.nara.build/tx/${signature}`
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -151,7 +151,7 @@ export function printTransactionResult(
|
|
|
151
151
|
printSuccess("Transaction successful!");
|
|
152
152
|
console.log(`Signature: ${result.signature}`);
|
|
153
153
|
console.log(
|
|
154
|
-
`View on
|
|
154
|
+
`View on explorer: https://explorer.nara.build/tx/${result.signature}`
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
157
|
} else if (result.base64) {
|