naracli 1.0.44 → 1.0.45
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/dist/nara-cli-bundle.cjs +14 -3
- package/package.json +1 -1
package/dist/nara-cli-bundle.cjs
CHANGED
|
@@ -125906,7 +125906,14 @@ var BN254_FIELD = 21888242871839275222246405745257275088696311157297823662689037
|
|
|
125906
125906
|
async function resolveDefaultZkPaths() {
|
|
125907
125907
|
const { fileURLToPath } = await import("url");
|
|
125908
125908
|
const { dirname: dirname2, join: join5 } = await import("path");
|
|
125909
|
-
|
|
125909
|
+
let dir;
|
|
125910
|
+
if (import_meta.url) {
|
|
125911
|
+
dir = dirname2(fileURLToPath(import_meta.url));
|
|
125912
|
+
} else {
|
|
125913
|
+
const { createRequire } = await import("module");
|
|
125914
|
+
const req = createRequire(process.cwd() + "/");
|
|
125915
|
+
dir = dirname2(req.resolve("nara-sdk/package.json")) + "/src";
|
|
125916
|
+
}
|
|
125910
125917
|
return {
|
|
125911
125918
|
wasm: join5(dir, "zk", "answer_proof.wasm"),
|
|
125912
125919
|
zkey: join5(dir, "zk", "answer_proof_final.zkey")
|
|
@@ -126137,7 +126144,11 @@ async function submitAnswer(connection, wallet, proof, agent = "", model = "", o
|
|
|
126137
126144
|
);
|
|
126138
126145
|
ixs.push(logIx);
|
|
126139
126146
|
}
|
|
126140
|
-
const signature = await sendTx(connection, wallet, ixs, [], {
|
|
126147
|
+
const signature = await sendTx(connection, wallet, ixs, [], {
|
|
126148
|
+
skipPreflight: true,
|
|
126149
|
+
computeUnitLimit: 5e5,
|
|
126150
|
+
computeUnitPrice: "auto"
|
|
126151
|
+
});
|
|
126141
126152
|
return { signature };
|
|
126142
126153
|
}
|
|
126143
126154
|
async function submitAnswerViaRelay(relayUrl, userPubkey, proof, agent = "", model = "") {
|
|
@@ -133218,7 +133229,7 @@ function registerCommands(program3) {
|
|
|
133218
133229
|
}
|
|
133219
133230
|
|
|
133220
133231
|
// bin/nara-cli.ts
|
|
133221
|
-
var version2 = true ? "1.0.
|
|
133232
|
+
var version2 = true ? "1.0.45" : "dev";
|
|
133222
133233
|
var program2 = new Command();
|
|
133223
133234
|
program2.name("naracli").description("CLI for the Nara chain (Solana-compatible)").version(version2);
|
|
133224
133235
|
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");
|