naracli 1.0.95 → 1.0.97
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
CHANGED
|
@@ -66867,10 +66867,10 @@ var init_esm6 = __esm({
|
|
|
66867
66867
|
}
|
|
66868
66868
|
});
|
|
66869
66869
|
|
|
66870
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
66870
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
66871
66871
|
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, DEFAULT_BRIDGE_FEE_BPS, BRIDGE_FEE_BPS_DENOMINATOR, DEFAULT_BRIDGE_FEE_RECIPIENT_SOLANA, DEFAULT_BRIDGE_FEE_RECIPIENT_NARA;
|
|
66872
66872
|
var init_constants2 = __esm({
|
|
66873
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
66873
|
+
"node_modules/.pnpm/nara-sdk@1.0.86_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"() {
|
|
66874
66874
|
DEFAULT_RPC_URL = process.env.RPC_URL || "https://mainnet-api.nara.build/";
|
|
66875
66875
|
DEFAULT_QUEST_RELAY_URL = process.env.QUEST_RELAY_URL || "https://quest-api.nara.build/";
|
|
66876
66876
|
DEFAULT_QUEST_PROGRAM_ID = process.env.QUEST_PROGRAM_ID || "Quest11111111111111111111111111111111111111";
|
|
@@ -66885,7 +66885,7 @@ var init_constants2 = __esm({
|
|
|
66885
66885
|
}
|
|
66886
66886
|
});
|
|
66887
66887
|
|
|
66888
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
66888
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
66889
66889
|
function getAltAddress() {
|
|
66890
66890
|
if (_overrideAltAddresses !== null) return _overrideAltAddresses;
|
|
66891
66891
|
if (!DEFAULT_ALT_ADDRESS) return [];
|
|
@@ -67007,7 +67007,7 @@ async function sendTx(connection, payer, instructions, signers, opts) {
|
|
|
67007
67007
|
}
|
|
67008
67008
|
var import_web394, _cachedAlts, _cachedAltKey, _overrideAltAddresses, _globalSkipPreflight;
|
|
67009
67009
|
var init_tx = __esm({
|
|
67010
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
67010
|
+
"node_modules/.pnpm/nara-sdk@1.0.86_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"() {
|
|
67011
67011
|
import_web394 = __toESM(require_index_cjs(), 1);
|
|
67012
67012
|
init_constants2();
|
|
67013
67013
|
_cachedAlts = [];
|
|
@@ -83262,10 +83262,10 @@ var require_cjs2 = __commonJS({
|
|
|
83262
83262
|
}
|
|
83263
83263
|
});
|
|
83264
83264
|
|
|
83265
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
83265
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
83266
83266
|
var nara_quest_default;
|
|
83267
83267
|
var init_nara_quest = __esm({
|
|
83268
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
83268
|
+
"node_modules/.pnpm/nara-sdk@1.0.86_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"() {
|
|
83269
83269
|
nara_quest_default = {
|
|
83270
83270
|
address: "Quest11111111111111111111111111111111111111",
|
|
83271
83271
|
metadata: {
|
|
@@ -85335,15 +85335,15 @@ var init_nara_quest = __esm({
|
|
|
85335
85335
|
type: "u64"
|
|
85336
85336
|
},
|
|
85337
85337
|
{
|
|
85338
|
-
name: "
|
|
85338
|
+
name: "boost_reward_count",
|
|
85339
85339
|
type: "u32"
|
|
85340
85340
|
},
|
|
85341
85341
|
{
|
|
85342
|
-
name: "
|
|
85342
|
+
name: "boost_reward_per_winner",
|
|
85343
85343
|
type: "u64"
|
|
85344
85344
|
},
|
|
85345
85345
|
{
|
|
85346
|
-
name: "
|
|
85346
|
+
name: "boost_winner_count",
|
|
85347
85347
|
type: "u32"
|
|
85348
85348
|
},
|
|
85349
85349
|
{
|
|
@@ -85453,10 +85453,10 @@ var init_nara_quest = __esm({
|
|
|
85453
85453
|
}
|
|
85454
85454
|
});
|
|
85455
85455
|
|
|
85456
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
85456
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
85457
85457
|
var nara_agent_registry_default;
|
|
85458
85458
|
var init_nara_agent_registry = __esm({
|
|
85459
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
85459
|
+
"node_modules/.pnpm/nara-sdk@1.0.86_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"() {
|
|
85460
85460
|
nara_agent_registry_default = {
|
|
85461
85461
|
address: "AgentRegistry111111111111111111111111111111",
|
|
85462
85462
|
metadata: {
|
|
@@ -90973,7 +90973,7 @@ var init_nara_agent_registry = __esm({
|
|
|
90973
90973
|
}
|
|
90974
90974
|
});
|
|
90975
90975
|
|
|
90976
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
90976
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
90977
90977
|
var agent_registry_exports = {};
|
|
90978
90978
|
__export(agent_registry_exports, {
|
|
90979
90979
|
approveRejectedTwitter: () => approveRejectedTwitter,
|
|
@@ -91897,7 +91897,7 @@ async function rejectTweet(connection, wallet, agentId, options) {
|
|
|
91897
91897
|
}
|
|
91898
91898
|
var import_web395, anchor, import_anchor, import_bn, DEFAULT_CHUNK_SIZE, BUFFER_HEADER_SIZE, MEMORY_HEADER_SIZE, BIO_META_HEADER_SIZE, AGENT_STATE_DISCRIMINATOR;
|
|
91899
91899
|
var init_agent_registry = __esm({
|
|
91900
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
91900
|
+
"node_modules/.pnpm/nara-sdk@1.0.86_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"() {
|
|
91901
91901
|
import_web395 = __toESM(require_index_cjs(), 1);
|
|
91902
91902
|
anchor = __toESM(require_cjs2(), 1);
|
|
91903
91903
|
import_anchor = __toESM(require_cjs2(), 1);
|
|
@@ -171660,7 +171660,7 @@ var init_main3 = __esm({
|
|
|
171660
171660
|
}
|
|
171661
171661
|
});
|
|
171662
171662
|
|
|
171663
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
171663
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
171664
171664
|
var quest_exports = {};
|
|
171665
171665
|
__export(quest_exports, {
|
|
171666
171666
|
adjustBoostCredits: () => adjustBoostCredits,
|
|
@@ -171851,18 +171851,18 @@ async function getQuestInfo(connection, wallet, options) {
|
|
|
171851
171851
|
decayMs,
|
|
171852
171852
|
nowMs
|
|
171853
171853
|
);
|
|
171854
|
-
const
|
|
171855
|
-
const
|
|
171854
|
+
const boostRewardCount = pool.boostRewardCount;
|
|
171855
|
+
const boostWinnerCount = pool.boostWinnerCount;
|
|
171856
171856
|
return {
|
|
171857
171857
|
active,
|
|
171858
171858
|
round: pool.round.toString(),
|
|
171859
171859
|
question: pool.question,
|
|
171860
171860
|
answerHash: Array.from(pool.answerHash),
|
|
171861
171861
|
totalReward: pool.rewardAmount.toNumber() / import_web396.LAMPORTS_PER_SOL,
|
|
171862
|
-
|
|
171863
|
-
|
|
171864
|
-
|
|
171865
|
-
|
|
171862
|
+
boostRewardCount,
|
|
171863
|
+
boostWinnerCount,
|
|
171864
|
+
boostRewardPerWinner: pool.boostRewardPerWinner.toNumber() / import_web396.LAMPORTS_PER_SOL,
|
|
171865
|
+
boostRemainingSlots: Math.max(0, boostRewardCount - boostWinnerCount),
|
|
171866
171866
|
difficulty: pool.difficulty,
|
|
171867
171867
|
deadline,
|
|
171868
171868
|
timeRemaining: secsLeft,
|
|
@@ -172175,7 +172175,7 @@ async function setAirdropConfig(connection, wallet, airdropAmount, maxAirdropCou
|
|
|
172175
172175
|
}
|
|
172176
172176
|
var import_web396, anchor2, import_anchor2, import_bn2, import_meta, BN254_FIELD, WSOL_MINT;
|
|
172177
172177
|
var init_quest = __esm({
|
|
172178
|
-
"node_modules/.pnpm/nara-sdk@1.0.
|
|
172178
|
+
"node_modules/.pnpm/nara-sdk@1.0.86_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"() {
|
|
172179
172179
|
import_web396 = __toESM(require_index_cjs(), 1);
|
|
172180
172180
|
init_esm4();
|
|
172181
172181
|
anchor2 = __toESM(require_cjs2(), 1);
|
|
@@ -266687,7 +266687,7 @@ var import_node_os3 = require("node:os");
|
|
|
266687
266687
|
var import_promises = require("node:fs/promises");
|
|
266688
266688
|
init_esm6();
|
|
266689
266689
|
|
|
266690
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
266690
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
266691
266691
|
var import_web393 = __toESM(require_index_cjs(), 1);
|
|
266692
266692
|
var NaraSDK = class {
|
|
266693
266693
|
connection;
|
|
@@ -266702,10 +266702,10 @@ var NaraSDK = class {
|
|
|
266702
266702
|
}
|
|
266703
266703
|
};
|
|
266704
266704
|
|
|
266705
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
266705
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/index.ts
|
|
266706
266706
|
init_constants2();
|
|
266707
266707
|
|
|
266708
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
266708
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
266709
266709
|
var import_tweetnacl = __toESM(require_nacl_fast(), 1);
|
|
266710
266710
|
init_esm6();
|
|
266711
266711
|
function buildSignMessage(params) {
|
|
@@ -266734,17 +266734,17 @@ function signUrl(baseUrl, wallet, params) {
|
|
|
266734
266734
|
return url.toString();
|
|
266735
266735
|
}
|
|
266736
266736
|
|
|
266737
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
266737
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/index.ts
|
|
266738
266738
|
init_tx();
|
|
266739
266739
|
init_quest();
|
|
266740
266740
|
|
|
266741
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
266741
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
266742
266742
|
var import_web397 = __toESM(require_index_cjs(), 1);
|
|
266743
266743
|
var anchor3 = __toESM(require_cjs2(), 1);
|
|
266744
266744
|
var import_anchor3 = __toESM(require_cjs2(), 1);
|
|
266745
266745
|
init_constants2();
|
|
266746
266746
|
|
|
266747
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
266747
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
266748
266748
|
var nara_skills_hub_default = {
|
|
266749
266749
|
address: "SkiLLHub11111111111111111111111111111111111",
|
|
266750
266750
|
metadata: {
|
|
@@ -268142,7 +268142,7 @@ var nara_skills_hub_default = {
|
|
|
268142
268142
|
]
|
|
268143
268143
|
};
|
|
268144
268144
|
|
|
268145
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
268145
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
268146
268146
|
init_tx();
|
|
268147
268147
|
var DEFAULT_CHUNK_SIZE2 = 800;
|
|
268148
268148
|
var BUFFER_HEADER_SIZE2 = 144;
|
|
@@ -268372,7 +268372,7 @@ async function uploadSkillContent(connection, wallet, name, content, options) {
|
|
|
268372
268372
|
}
|
|
268373
268373
|
}
|
|
268374
268374
|
|
|
268375
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
268375
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
268376
268376
|
var import_web398 = __toESM(require_index_cjs(), 1);
|
|
268377
268377
|
var anchor4 = __toESM(require_cjs2(), 1);
|
|
268378
268378
|
var import_anchor4 = __toESM(require_cjs2(), 1);
|
|
@@ -268382,7 +268382,7 @@ var import_bn3 = __toESM(require_bn(), 1);
|
|
|
268382
268382
|
init_constants2();
|
|
268383
268383
|
init_tx();
|
|
268384
268384
|
|
|
268385
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
268385
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
268386
268386
|
var nara_zk_default = {
|
|
268387
268387
|
address: "ZKidentity111111111111111111111111111111111",
|
|
268388
268388
|
metadata: {
|
|
@@ -269593,7 +269593,7 @@ var nara_zk_default = {
|
|
|
269593
269593
|
]
|
|
269594
269594
|
};
|
|
269595
269595
|
|
|
269596
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
269596
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_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
|
|
269597
269597
|
var import_meta2 = {};
|
|
269598
269598
|
var BN254_PRIME = 21888242871839275222246405745257275088696311157297823662689037894645226208583n;
|
|
269599
269599
|
var MERKLE_LEVELS = 64;
|
|
@@ -269955,10 +269955,10 @@ async function transferZkIdByCommitment(connection, payer, name, currentIdSecret
|
|
|
269955
269955
|
return sendTx(connection, payer, [ix]);
|
|
269956
269956
|
}
|
|
269957
269957
|
|
|
269958
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
269958
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/index.ts
|
|
269959
269959
|
init_agent_registry();
|
|
269960
269960
|
|
|
269961
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
269961
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/bridge.ts
|
|
269962
269962
|
var import_web399 = __toESM(require_index_cjs(), 1);
|
|
269963
269963
|
init_esm4();
|
|
269964
269964
|
init_constants2();
|
|
@@ -270450,7 +270450,7 @@ async function scanValidator(folder, messageId, maxScan) {
|
|
|
270450
270450
|
};
|
|
270451
270451
|
}
|
|
270452
270452
|
|
|
270453
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
270453
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/src/tx_parser.ts
|
|
270454
270454
|
var import_web3100 = __toESM(require_index_cjs(), 1);
|
|
270455
270455
|
init_esm4();
|
|
270456
270456
|
init_constants2();
|
|
@@ -270574,7 +270574,7 @@ function buildAnchorDiscriminators() {
|
|
|
270574
270574
|
}
|
|
270575
270575
|
var anchorDiscs = buildAnchorDiscriminators();
|
|
270576
270576
|
|
|
270577
|
-
// node_modules/.pnpm/nara-sdk@1.0.
|
|
270577
|
+
// node_modules/.pnpm/nara-sdk@1.0.86_bufferutil@4.1.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@5.9.3_utf-8-validate@6.0.6/node_modules/nara-sdk/index.ts
|
|
270578
270578
|
var import_web3101 = __toESM(require_index_cjs(), 1);
|
|
270579
270579
|
var import_bn4 = __toESM(require_bn(), 1);
|
|
270580
270580
|
|
|
@@ -271414,9 +271414,9 @@ async function handleQuestGet(options) {
|
|
|
271414
271414
|
question: quest.question,
|
|
271415
271415
|
difficulty: quest.difficulty,
|
|
271416
271416
|
totalReward: `${quest.totalReward} NARA`,
|
|
271417
|
-
rewardPerWinner: `${quest.
|
|
271418
|
-
rewardSlots: `${quest.
|
|
271419
|
-
remainingSlots: quest.
|
|
271417
|
+
rewardPerWinner: `${quest.boostRewardPerWinner} NARA`,
|
|
271418
|
+
rewardSlots: `${quest.boostWinnerCount}/${quest.boostRewardCount}`,
|
|
271419
|
+
remainingSlots: quest.boostRemainingSlots,
|
|
271420
271420
|
deadline: new Date(quest.deadline * 1e3).toLocaleString(),
|
|
271421
271421
|
timeRemaining: formatTimeRemaining(quest.timeRemaining),
|
|
271422
271422
|
expired: quest.expired,
|
|
@@ -271431,7 +271431,7 @@ async function handleQuestGet(options) {
|
|
|
271431
271431
|
console.log(` Difficulty: ${quest.difficulty}`);
|
|
271432
271432
|
console.log(` Total reward: ${quest.totalReward} NARA`);
|
|
271433
271433
|
console.log(
|
|
271434
|
-
` Boost PoMI reward: ${quest.
|
|
271434
|
+
` Boost PoMI reward: ${quest.boostRewardPerWinner} NARA/winner, ${quest.boostWinnerCount}/${quest.boostRewardCount} (${quest.boostRemainingSlots} remaining)`
|
|
271435
271435
|
);
|
|
271436
271436
|
console.log(` Boost credits: ${boostCredits}${boostCredits === 0 ? " (required to answer \u2014 acquire credits first)" : ""}`);
|
|
271437
271437
|
console.log(` Deadline: ${new Date(quest.deadline * 1e3).toLocaleString()}`);
|
|
@@ -274352,7 +274352,6 @@ async function handleAgentGet(agentId, options) {
|
|
|
274352
274352
|
console.log(` Link: ${submitTweetIntent}`);
|
|
274353
274353
|
console.log(` Then run: npx naracli agent submit-tweet <tweet-url>`);
|
|
274354
274354
|
console.log(` Credits are based on likes, bookmarks, retweets, and quotes.`);
|
|
274355
|
-
console.log(` Submit daily without breaking the streak to multiply your rewards!`);
|
|
274356
274355
|
console.log("");
|
|
274357
274356
|
} else {
|
|
274358
274357
|
const tweetText = randomBindTweet(agentId);
|
|
@@ -277032,7 +277031,7 @@ function registerCommands(program3) {
|
|
|
277032
277031
|
}
|
|
277033
277032
|
|
|
277034
277033
|
// bin/nara-cli.ts
|
|
277035
|
-
var version2 = true ? "1.0.
|
|
277034
|
+
var version2 = true ? "1.0.97" : "dev";
|
|
277036
277035
|
var program2 = new Command();
|
|
277037
277036
|
program2.name("naracli").description("CLI for the Nara chain. Native coin is NARA (not SOL). Mine NARA for free via PoMI quests, manage wallets, register agents, and more. Run 'naracli <command> --help' for details on any command.").version(version2);
|
|
277038
277037
|
program2.option("-r, --rpc-url <url>", "RPC endpoint (default: https://mainnet-api.nara.build/)").option("-w, --wallet <path>", "Path to wallet keypair JSON file (default: ~/.config/nara/id.json)").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.97",
|
|
4
4
|
"description": "CLI for the Nara chain (Solana-compatible)",
|
|
5
5
|
"homepage": "https://nara.build",
|
|
6
6
|
"repository": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"bs58": "^6.0.0",
|
|
68
68
|
"commander": "^12.1.0",
|
|
69
69
|
"ed25519-hd-key": "^1.3.0",
|
|
70
|
-
"nara-sdk": "^1.0.
|
|
70
|
+
"nara-sdk": "^1.0.86",
|
|
71
71
|
"picocolors": "^1.1.1"
|
|
72
72
|
},
|
|
73
73
|
"packageManager": "pnpm@10.27.0+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a"
|
|
@@ -279,7 +279,6 @@ async function handleAgentGet(agentId: string, options: GlobalOptions) {
|
|
|
279
279
|
console.log(` Link: ${submitTweetIntent}`);
|
|
280
280
|
console.log(` Then run: npx naracli agent submit-tweet <tweet-url>`);
|
|
281
281
|
console.log(` Credits are based on likes, bookmarks, retweets, and quotes.`);
|
|
282
|
-
console.log(` Submit daily without breaking the streak to multiply your rewards!`);
|
|
283
282
|
console.log("");
|
|
284
283
|
} else {
|
|
285
284
|
// Not bound — show bind tip
|
|
@@ -126,9 +126,9 @@ async function handleQuestGet(options: GlobalOptions) {
|
|
|
126
126
|
question: quest.question,
|
|
127
127
|
difficulty: quest.difficulty,
|
|
128
128
|
totalReward: `${quest.totalReward} NARA`,
|
|
129
|
-
rewardPerWinner: `${quest.
|
|
130
|
-
rewardSlots: `${quest.
|
|
131
|
-
remainingSlots: quest.
|
|
129
|
+
rewardPerWinner: `${quest.boostRewardPerWinner} NARA`,
|
|
130
|
+
rewardSlots: `${quest.boostWinnerCount}/${quest.boostRewardCount}`,
|
|
131
|
+
remainingSlots: quest.boostRemainingSlots,
|
|
132
132
|
deadline: new Date(quest.deadline * 1000).toLocaleString(),
|
|
133
133
|
timeRemaining: formatTimeRemaining(quest.timeRemaining),
|
|
134
134
|
expired: quest.expired,
|
|
@@ -144,7 +144,7 @@ async function handleQuestGet(options: GlobalOptions) {
|
|
|
144
144
|
console.log(` Difficulty: ${quest.difficulty}`);
|
|
145
145
|
console.log(` Total reward: ${quest.totalReward} NARA`);
|
|
146
146
|
console.log(
|
|
147
|
-
` Boost PoMI reward: ${quest.
|
|
147
|
+
` Boost PoMI reward: ${quest.boostRewardPerWinner} NARA/winner, ${quest.boostWinnerCount}/${quest.boostRewardCount} (${quest.boostRemainingSlots} remaining)`
|
|
148
148
|
);
|
|
149
149
|
console.log(` Boost credits: ${boostCredits}${boostCredits === 0 ? " (required to answer — acquire credits first)" : ""}`);
|
|
150
150
|
console.log(` Deadline: ${new Date(quest.deadline * 1000).toLocaleString()}`);
|