naracli 1.0.87 → 1.0.88

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.
@@ -275196,6 +275196,7 @@ async function handlePools(token, options) {
275196
275196
  ]);
275197
275197
  const amountX = reserves[0] ? Number(reserves[0].value.uiAmount ?? 0) : 0;
275198
275198
  const amountY = reserves[1] ? Number(reserves[1].value.uiAmount ?? 0) : 0;
275199
+ const uiPrice = Number(dlmm.fromPricePerLamport(Number(activeBin.price)));
275199
275200
  results.push({
275200
275201
  type: "DLMM",
275201
275202
  pool: dlmm.pubkey.toBase58(),
@@ -275203,7 +275204,7 @@ async function handlePools(token, options) {
275203
275204
  tokenB: dlmm.tokenY.publicKey.toBase58(),
275204
275205
  amountA: amountX,
275205
275206
  amountB: amountY,
275206
- price: Number(activeBin.price)
275207
+ price: uiPrice
275207
275208
  });
275208
275209
  } catch {
275209
275210
  }
@@ -276733,7 +276734,7 @@ function registerCommands(program3) {
276733
276734
  }
276734
276735
 
276735
276736
  // bin/nara-cli.ts
276736
- var version2 = true ? "1.0.87" : "dev";
276737
+ var version2 = true ? "1.0.88" : "dev";
276737
276738
  var program2 = new Command();
276738
276739
  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);
276739
276740
  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.87",
3
+ "version": "1.0.88",
4
4
  "description": "CLI for the Nara chain (Solana-compatible)",
5
5
  "homepage": "https://nara.build",
6
6
  "repository": {
@@ -177,6 +177,8 @@ async function handlePools(token: string, options: GlobalOptions) {
177
177
  ]);
178
178
  const amountX = reserves[0] ? Number(reserves[0].value.uiAmount ?? 0) : 0;
179
179
  const amountY = reserves[1] ? Number(reserves[1].value.uiAmount ?? 0) : 0;
180
+ // activeBin.price is price-per-lamport; convert to UI price (Y per X)
181
+ const uiPrice = Number(dlmm.fromPricePerLamport(Number(activeBin.price)));
180
182
  results.push({
181
183
  type: "DLMM",
182
184
  pool: dlmm.pubkey.toBase58(),
@@ -184,7 +186,7 @@ async function handlePools(token: string, options: GlobalOptions) {
184
186
  tokenB: dlmm.tokenY.publicKey.toBase58(),
185
187
  amountA: amountX,
186
188
  amountB: amountY,
187
- price: Number(activeBin.price),
189
+ price: uiPrice,
188
190
  });
189
191
  } catch {}
190
192
  }