@spirobel/monero-wallet-api 0.6.0 → 0.6.1

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.
Files changed (38) hide show
  1. package/dist/io/logging.js +1 -1
  2. package/dist/multisig/escrow.js +1 -1
  3. package/dist/scanning-syncing/backgroundWorker.js +1 -1
  4. package/dist/scanning-syncing/blocksbuffer/blocksBufferFetchLoop.d.ts +1 -1
  5. package/dist/scanning-syncing/blocksbuffer/blocksBufferFetchLoop.js +1 -1
  6. package/dist/scanning-syncing/blocksbuffer/blocksbufferCoordination.d.ts +1 -1
  7. package/dist/scanning-syncing/blocksbuffer/blocksbufferCoordination.js +1 -1
  8. package/dist/scanning-syncing/connectionStatus.d.ts +1 -1
  9. package/dist/scanning-syncing/connectionStatus.js +2 -2
  10. package/dist/scanning-syncing/openWallet.js +1 -1
  11. package/dist/scanning-syncing/scanresult/computeKeyImage.d.ts +1 -1
  12. package/dist/scanning-syncing/scanresult/scanCache.d.ts +1 -1
  13. package/dist/scanning-syncing/scanresult/scanCache.js +1 -1
  14. package/dist/scanning-syncing/scanresult/scanCacheOpened.d.ts +1 -1
  15. package/dist/scanning-syncing/scanresult/scanCacheOpened.js +11 -8
  16. package/dist/scanning-syncing/scanresult/scanCoordination.d.ts +2 -2
  17. package/dist/scanning-syncing/scanresult/scanCoordination.js +2 -2
  18. package/dist/scanning-syncing/scanresult/scanLoop.d.ts +1 -1
  19. package/dist/scanning-syncing/scanresult/scanLoop.js +1 -1
  20. package/dist/scanning-syncing/scanresult/scanResult.d.ts +1 -1
  21. package/dist/scanning-syncing/scanresult/scanResult.js +1 -1
  22. package/dist/scanning-syncing/scanresult/scanStats.d.ts +1 -1
  23. package/dist/scanning-syncing/scanresult/scanStats.js +1 -1
  24. package/dist/scanning-syncing/worker-mains/cpubound-main.js +1 -1
  25. package/dist/scanning-syncing/worker-mains/multisig-main.d.ts +1 -1
  26. package/dist/scanning-syncing/worker-mains/multisig-main.js +1 -1
  27. package/dist/scanning-syncing/worker-mains/worker.js +1 -1
  28. package/dist/scansettings/scanSettings.js +1 -1
  29. package/dist/scansettings/scanSettingsOpened.d.ts +1 -1
  30. package/dist/scansettings/scanSettingsOpened.js +1 -1
  31. package/dist/send-functionality/inputSelection.d.ts +1 -1
  32. package/dist/send-functionality/transactionBuilding.d.ts +1 -1
  33. package/dist/tools/content.js +1 -1
  34. package/dist/viewpair/ViewPair.d.ts +3 -3
  35. package/dist/viewpair/ViewPair.js +2 -2
  36. package/package.json +6 -6
  37. /package/dist/{api.d.ts → xmr3.d.ts} +0 -0
  38. /package/dist/{api.js → xmr3.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { getPathPrefix, openScanSettingsFile } from "../api";
1
+ import { getPathPrefix, openScanSettingsFile } from "../xmr3";
2
2
  import { atomicWrite } from "./atomicWrite";
3
3
  /**
4
4
  * logging function names registry.
@@ -1,6 +1,6 @@
1
1
  import { ed25519, x25519 } from "@noble/curves/ed25519.js";
2
2
  import { blake3 } from "@noble/hashes/blake3.js";
3
- import { vk_from_entropy } from "../api";
3
+ import { vk_from_entropy } from "../xmr3";
4
4
  export function makeEscrowContext(context_index) {
5
5
  if (Number.isNaN(parseInt(String(context_index)))) {
6
6
  return { ok: false, error: `invalid context_index: "${context_index}"` };
@@ -1,6 +1,6 @@
1
1
  import { LOCAL_NODE_DEFAULT_URL } from "../node-interaction/nodeUrl";
2
2
  import {} from "./scanresult/scanCache";
3
- import { openScanSettingsFile, SCAN_SETTINGS_STORE_NAME_DEFAULT, sleep, } from "../api";
3
+ import { openScanSettingsFile, SCAN_SETTINGS_STORE_NAME_DEFAULT, sleep, } from "../xmr3";
4
4
  import { log, setupLoggingPath } from "../io/logging";
5
5
  import { workerMainCode } from "./worker-entrypoints/worker";
6
6
  export const CPU_POOL_SIZE = 4;
@@ -1,4 +1,4 @@
1
- import { NodeUrl, type BlockInfo, type CacheRange, type GetBlocksResultMeta } from "../../api";
1
+ import { NodeUrl, type BlockInfo, type CacheRange, type GetBlocksResultMeta } from "../../xmr3";
2
2
  import { type ConnectionSatusLastPacket, type ConnectionStatus, type ConnectionStatusSync } from "../connectionStatus";
3
3
  export type GetBlocksBinBufferItem = {
4
4
  local_uuid: string;
@@ -1,4 +1,4 @@
1
- import { findRange, get_block_headers_range, get_info, mergeRanges, NodeUrl, sleep, } from "../../api";
1
+ import { findRange, get_block_headers_range, get_info, mergeRanges, NodeUrl, sleep, } from "../../xmr3";
2
2
  import {} from "../connectionStatus";
3
3
  import { log } from "../../io/logging";
4
4
  export const MAX_BLOCKS_BUFFER_SIZE = 10;
@@ -1,4 +1,4 @@
1
- import { type GetBlocksBinBufferItem, type ConnectionStatus, type BlocksBufferLoopResult, type CacheRange } from "../../api";
1
+ import { type GetBlocksBinBufferItem, type ConnectionStatus, type BlocksBufferLoopResult, type CacheRange } from "../../xmr3";
2
2
  export type SetupBlocksBufferGeneratorParams = {
3
3
  nodeUrl: string;
4
4
  startHeight: number;
@@ -1,4 +1,4 @@
1
- import { blocksBufferFetchLoop, readWriteConnectionStatusFile, applyLastPacket, CatastrophicReorgError, readOrInitConnectionStatus, } from "../../api";
1
+ import { blocksBufferFetchLoop, readWriteConnectionStatusFile, applyLastPacket, CatastrophicReorgError, readOrInitConnectionStatus, } from "../../xmr3";
2
2
  import { log } from "../../io/logging";
3
3
  export async function setupBlocksBufferGenerator(params) {
4
4
  const blocksBuffer = [];
@@ -1,4 +1,4 @@
1
- import { type CacheRange, type ReorgInfo } from "../api";
1
+ import { type CacheRange, type ReorgInfo } from "../xmr3";
2
2
  export type ConnectionStatusOptions = "OK" | "partial_read" | "connection_failed" | "blocks_buffer_full" | "no_connection_yet" | "catastrophic_reorg";
3
3
  export type ConnectionSatusLastPacket = {
4
4
  status: ConnectionStatusOptions;
@@ -1,5 +1,5 @@
1
- import { atomicWrite, } from "../api";
2
- import { SCAN_SETTINGS_STORE_NAME_DEFAULT } from "../api";
1
+ import { atomicWrite, } from "../xmr3";
2
+ import { SCAN_SETTINGS_STORE_NAME_DEFAULT } from "../xmr3";
3
3
  // wallet progress write: always set scan fields; only replace eta when a new one is provided
4
4
  // so a missing eta does not wipe / flicker the previous value.
5
5
  export function applyWalletScanProgress(cs, progress) {
@@ -1,5 +1,5 @@
1
1
  import { ManyScanCachesOpened, ScanCacheOpened, } from "./scanresult/scanCacheOpened";
2
- import { openScanSettingsFile, writeWalletToScanSettings } from "../api";
2
+ import { openScanSettingsFile, writeWalletToScanSettings } from "../xmr3";
3
3
  /**
4
4
  * Opens all **non halted wallets listed in ScanSettings.json** for scanning.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { Output } from "../../api";
1
+ import type { Output } from "../../xmr3";
2
2
  import { WasmProcessor } from "../../wasm-processing/wasmProcessor";
3
3
  export type KeyImage = string;
4
4
  export declare function computeKeyImage(output: Output, sender_spend_key: string, wasmProcessor?: WasmProcessor): Promise<KeyImage | undefined>;
@@ -1,5 +1,5 @@
1
1
  import { type KeyImage } from "./computeKeyImage";
2
- import { type BlockInfo, type FeeEstimateResponse, type GetBlockHeadersRange, type GetBlockHeadersRangeParams, type Output, type SendRawTransactionResult, type ViewPair } from "../../api";
2
+ import { type BlockInfo, type FeeEstimateResponse, type GetBlockHeadersRange, type GetBlockHeadersRangeParams, type Output, type SendRawTransactionResult, type ViewPair } from "../../xmr3";
3
3
  import type { Payment } from "../../send-functionality/inputSelection";
4
4
  export declare function initScanCache(viewpair: ViewPair, start_height: number, scan_settings_path?: string, pathPrefix?: string): Promise<CacheRange>;
5
5
  export declare function getBlockInfoForHeight(height: number, node_url: string): Promise<BlockInfo>;
@@ -1,5 +1,5 @@
1
1
  import {} from "./computeKeyImage";
2
- import { get_block_headers_range, } from "../../api";
2
+ import { get_block_headers_range, } from "../../xmr3";
3
3
  import { atomicWrite } from "../../io/atomicWrite";
4
4
  import { log } from "../../io/logging";
5
5
  export async function initScanCache(viewpair, start_height, scan_settings_path, pathPrefix) {
@@ -1,4 +1,4 @@
1
- import { ViewPair, type FeeEstimateResponse, type Output, type SendRawTransactionResult } from "../../api";
1
+ import { ViewPair, type FeeEstimateResponse, type Output, type SendRawTransactionResult } from "../../xmr3";
2
2
  import { type Payment } from "../../send-functionality/inputSelection";
3
3
  import { ConnectionStatusOpened } from "../connectionStatusOpened";
4
4
  import { ActionLogOpened, type ActionLogBackendKind, type ExtensionMessageBus } from "../../actionlog/actionLogOpened";
@@ -1,8 +1,8 @@
1
- import { get_info, NodeUrl, signTransaction, ViewPair, } from "../../api";
1
+ import { get_info, NodeUrl, signTransaction, ViewPair, } from "../../xmr3";
2
2
  import { prepareInput, sumPayments, } from "../../send-functionality/inputSelection";
3
3
  import { createWebworker } from "../backgroundWorker";
4
4
  import { spendable } from "./scanResult";
5
- import { getPathPrefix, readPrivateSpendKeyFromEnv, SCAN_SETTINGS_STORE_NAME_DEFAULT, SUB_ADDRESS_INDEX_DEFAULT_VALUE, walletSettingsPlusKeys, } from "../../api";
5
+ import { getPathPrefix, readPrivateSpendKeyFromEnv, SCAN_SETTINGS_STORE_NAME_DEFAULT, SUB_ADDRESS_INDEX_DEFAULT_VALUE, walletSettingsPlusKeys, } from "../../xmr3";
6
6
  import { ScanSettingsOpened } from "../../scansettings/scanSettingsOpened";
7
7
  import { ConnectionStatusOpened } from "../connectionStatusOpened";
8
8
  import { ActionLogOpened, } from "../../actionlog/actionLogOpened";
@@ -846,14 +846,17 @@ export class ScanCacheOpened {
846
846
  * for all primary addresses
847
847
  */
848
848
  async feed(params) {
849
- //TODO update aggregated amount stats + height
849
+ // same wallet must store the new cache before a listener reads transactions
850
+ const sameWallet = this.view_pair.primary_address === params.newCache.primary_address;
851
+ if (sameWallet) {
852
+ this._cache = params.newCache;
853
+ if (!this._no_stats)
854
+ this._stats = await alignScanStatsWithCache(this._cache, this.view_pair, this.primary_address, getPathPrefix(this.scan_settings_path, this.pathPrefix), this.subaddress_index, lastRange(this._cache.scanned_ranges)?.end);
855
+ }
850
856
  if (this.masterCacheChanged)
851
- this.masterCacheChanged(params);
852
- if (this.view_pair.primary_address !== params.newCache.primary_address)
857
+ await this.masterCacheChanged(params);
858
+ if (!sameWallet)
853
859
  return;
854
- this._cache = params.newCache;
855
- if (!this._no_stats)
856
- this._stats = await alignScanStatsWithCache(this._cache, this.view_pair, this.primary_address, getPathPrefix(this.scan_settings_path, this.pathPrefix), this.subaddress_index, lastRange(this._cache.scanned_ranges)?.end);
857
860
  for (const listener of this.notifyListeners) {
858
861
  if (listener)
859
862
  listener(params);
@@ -1,7 +1,7 @@
1
- import { type GetBlocksBinBufferItem, type BlocksBufferLoopResult, type BlocksBufferIteratorResult, type ProcessScanResult, type BlockInfo } from "../../api";
1
+ import { type GetBlocksBinBufferItem, type BlocksBufferLoopResult, type BlocksBufferIteratorResult, type ProcessScanResult, type BlockInfo } from "../../xmr3";
2
2
  import { type ScanLoopYield } from "./scanLoop";
3
3
  import { type WorkItem } from "./scanLoop";
4
- import { type ScanSettings } from "../../api";
4
+ import { type ScanSettings } from "../../xmr3";
5
5
  import { type CacheRange, type ScanCache } from "./scanCache";
6
6
  export type WalletConfig = {
7
7
  primary_address: string;
@@ -1,7 +1,7 @@
1
- import { setupBlocksBufferGenerator, ViewPair, handleConnectionStatusChanges, processScanResult, writeCacheToFile, sleep, findTipIndex, readWriteConnectionStatusFile, applyWalletScanProgress, } from "../../api";
1
+ import { setupBlocksBufferGenerator, ViewPair, handleConnectionStatusChanges, processScanResult, writeCacheToFile, sleep, findTipIndex, readWriteConnectionStatusFile, applyWalletScanProgress, } from "../../xmr3";
2
2
  import {} from "./scanLoop";
3
3
  import { makeWorkItem } from "./scanLoop";
4
- import { cullTooLargeScanHeight, getNonHaltedWallets, getPathPrefix, openScanSettingsFile, SCAN_SETTINGS_STORE_NAME_DEFAULT, walletSettingsPlusKeys, } from "../../api";
4
+ import { cullTooLargeScanHeight, getNonHaltedWallets, getPathPrefix, openScanSettingsFile, SCAN_SETTINGS_STORE_NAME_DEFAULT, walletSettingsPlusKeys, } from "../../xmr3";
5
5
  import { currentScanHeightFromRanges, findRange, initScanCacheFile, lastRange, makeCacheRangeForHeight, mergeRanges, } from "./scanCache";
6
6
  import { sendToCpuWorker } from "../worker-mains/cpubound-main";
7
7
  import { log } from "../../io/logging";
@@ -1,4 +1,4 @@
1
- import { type GetBlocksBinBufferItem, type ScanResult, type WalletConfig, type WalletConfigPlusCache } from "../../api";
1
+ import { type GetBlocksBinBufferItem, type ScanResult, type WalletConfig, type WalletConfigPlusCache } from "../../xmr3";
2
2
  export type WorkItem = {
3
3
  walletConfig: WalletConfigPlusCache;
4
4
  batch: GetBlocksBinBufferItem;
@@ -1,4 +1,4 @@
1
- import { sleep, ViewPair, } from "../../api";
1
+ import { sleep, ViewPair, } from "../../xmr3";
2
2
  export function makeWorkItem(walletConfig, batch, from, to) {
3
3
  if (to && to > batch.get_blocks_result_meta.block_infos.length - 1) {
4
4
  // we could throw here but we dont. Off by one errors shouldnt break the application
@@ -1,4 +1,4 @@
1
- import { type BlockInfo, type Output } from "../../api";
1
+ import { type BlockInfo, type Output } from "../../xmr3";
2
2
  import { type KeyImage } from "./computeKeyImage";
3
3
  import { type ErrorResponse } from "../../node-interaction/binaryEndpoints";
4
4
  import type { CacheChangedCallback, CacheRange, ChangedOutput, ScanCache } from "./scanCache";
@@ -1,4 +1,4 @@
1
- import { CatastrophicReorgError } from "../../api";
1
+ import { CatastrophicReorgError } from "../../xmr3";
2
2
  import { computeKeyImage } from "./computeKeyImage";
3
3
  import { log } from "../../io/logging";
4
4
  import { mergeRanges, findRange, findRangeThrows } from "./scanCache";
@@ -1,4 +1,4 @@
1
- import { ViewPair, type Output } from "../../api";
1
+ import { ViewPair, type Output } from "../../xmr3";
2
2
  import type { ScanCache, Subaddress, TxLog } from "./scanCache";
3
3
  import { type OutputStatus } from "./scanResult";
4
4
  export type WriteStatsFileParams = {
@@ -1,5 +1,5 @@
1
1
  import { stat } from "fs";
2
- import { atomicWrite, ViewPair } from "../../api";
2
+ import { atomicWrite, ViewPair } from "../../xmr3";
3
3
  import { outputStatus } from "./scanResult";
4
4
  export async function writeStatsFileDefaultLocation(params) {
5
5
  let stats = await readStatsFileDefaultLocation(params.primary_address, params.pathPrefix);
@@ -1,4 +1,4 @@
1
- import { sleep, ViewPair } from "../../api";
1
+ import { sleep, ViewPair } from "../../xmr3";
2
2
  import { log } from "../../io/logging";
3
3
  import {} from "../scanresult/scanLoop";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { DistributedKeyGenerator, type DkgParticipateParams, type DkgVerifyParams } from "../../api";
1
+ import { DistributedKeyGenerator, type DkgParticipateParams, type DkgVerifyParams } from "../../xmr3";
2
2
  export type MultiSigParticipateCall = {
3
3
  type: "multisig-call";
4
4
  functionName: "participate";
@@ -1,4 +1,4 @@
1
- import { DistributedKeyGenerator, } from "../../api";
1
+ import { DistributedKeyGenerator, } from "../../xmr3";
2
2
  import { log } from "../../io/logging";
3
3
  export function multisigMainWorkerCall(msg, dkg) {
4
4
  if (!dkg) {
@@ -2,7 +2,7 @@ import { coordinatorMainWorker, requestCoordinatorShutdown, } from "./coordinato
2
2
  import { handleCpuboundScanTry, sendFromCpuWorker } from "./cpubound-main";
3
3
  import { log, setupLoggingPath } from "../../io/logging";
4
4
  import { multisigMainWorkerCall } from "./multisig-main";
5
- import { DistributedKeyGenerator, SCAN_SETTINGS_STORE_NAME_DEFAULT, } from "../../api";
5
+ import { DistributedKeyGenerator, SCAN_SETTINGS_STORE_NAME_DEFAULT, } from "../../xmr3";
6
6
  self.onerror = (e) => self.postMessage({ type: "ERROR", payload: e });
7
7
  self.addEventListener("unhandledrejection", (e) => self.postMessage({ type: "ERROR", payload: e.reason }));
8
8
  let SCAN_SETTINGS_PATH;
@@ -1,4 +1,4 @@
1
- import { get_info } from "../api";
1
+ import { get_info } from "../xmr3";
2
2
  import { atomicWrite } from "../io/atomicWrite";
3
3
  import { refreshEnvIndexedDB } from "../io/indexedDB";
4
4
  import { LOCAL_NODE_DEFAULT_URL } from "../node-interaction/nodeUrl";
@@ -1,5 +1,5 @@
1
1
  import { type LogSetting, type PossibleLogs } from "../io/logging";
2
- import { type ScanSetting, type ScanSettingOpened } from "../api";
2
+ import { type ScanSetting, type ScanSettingOpened } from "../xmr3";
3
3
  export declare class ScanSettingsOpened {
4
4
  private _scan_settings_path;
5
5
  private _pathPrefix;
@@ -1,6 +1,6 @@
1
1
  import { LOCAL_NODE_DEFAULT_URL } from "../node-interaction/nodeUrl";
2
2
  import { LOGGING_FUNCTIONS, } from "../io/logging";
3
- import { getPathPrefix, makeSpendKeyFromSeed, makeViewKey, openScanSettingsFile, parseAddress, SCAN_SETTINGS_STORE_NAME_DEFAULT, SUB_ADDRESS_INDEX_DEFAULT_VALUE, walletSettingsPlusKeys, writeEnvLineToDotEnvRefresh, writeScanSettings, writeViewKeyToDotEnv, } from "../api";
3
+ import { getPathPrefix, makeSpendKeyFromSeed, makeViewKey, openScanSettingsFile, parseAddress, SCAN_SETTINGS_STORE_NAME_DEFAULT, SUB_ADDRESS_INDEX_DEFAULT_VALUE, walletSettingsPlusKeys, writeEnvLineToDotEnvRefresh, writeScanSettings, writeViewKeyToDotEnv, } from "../xmr3";
4
4
  export class ScanSettingsOpened {
5
5
  _scan_settings_path;
6
6
  _pathPrefix;
@@ -1,4 +1,4 @@
1
- import type { GetOutsResponseBuffer, NodeUrl, Output } from "../api";
1
+ import type { GetOutsResponseBuffer, NodeUrl, Output } from "../xmr3";
2
2
  import type { SampledDecoys } from "./transactionBuilding";
3
3
  export type Payment = {
4
4
  address: string;
@@ -1,4 +1,4 @@
1
- import type { GetFeeEstimateResult, Output } from "../api";
1
+ import type { GetFeeEstimateResult, Output } from "../xmr3";
2
2
  import { WasmProcessor } from "../wasm-processing/wasmProcessor";
3
3
  export type Input = string;
4
4
  export type UnsignedTransaction = string;
@@ -1,4 +1,4 @@
1
- // do not import api.ts (indexedDB top-level await). tools/monero-tools.ts is 001+002 only.
1
+ // do not import xmr3.ts (indexedDB top-level await). tools/monero-tools.ts is 001+002 only.
2
2
  import { checkToolInvocationValidity, parseToolInvocation, tools, } from "./monero-tools";
3
3
  import { sendToBackground } from "./globals";
4
4
  if (typeof chrome !== "undefined" && typeof browser === "undefined") {
@@ -6,7 +6,7 @@ import { type ScanCache } from "../scanning-syncing/scanresult/scanCache";
6
6
  import { type MakeTransactionParams, type UnsignedTransaction } from "../send-functionality/transactionBuilding";
7
7
  import { WasmProcessor } from "../wasm-processing/wasmProcessor";
8
8
  import { type NETWORKS } from "../node-interaction/nodeUrl";
9
- import { type GetBlockHeadersRangeParams } from "../api";
9
+ import { type GetBlockHeadersRangeParams } from "../xmr3";
10
10
  /**
11
11
  * This class is useful to interact with Moneros DaemonRpc binary requests in a convenient way.
12
12
  * (similar to how you would interact with a REST api that gives you json back.)
@@ -66,7 +66,7 @@ export declare class ViewPair extends WasmProcessor {
66
66
  * @param getBlocksBinResponseBuffer the raw binary response from the get_blocks.bin endpoint
67
67
  * @returns metadata about the loaded blocks (new_height, daemon_height, status, block_infos)
68
68
  */
69
- loadGetBlocksBinResponse(getBlocksBinResponseBuffer: Uint8Array): Promise<import("../api").GetBlocksResultMeta>;
69
+ loadGetBlocksBinResponse(getBlocksBinResponseBuffer: Uint8Array): Promise<import("../xmr3").GetBlocksResultMeta>;
70
70
  /**
71
71
  * scan one block from a getblocks.bin response that was loaded into wasm memory.
72
72
  * call loadGetBlocksBinResponse first to populate the response in the wasm module.
@@ -134,7 +134,7 @@ export declare class ViewPair extends WasmProcessor {
134
134
  * @param params The parameters including start_height, end_height, and optional fill_pow_hash.
135
135
  * @returns The result object with headers, status, etc. Throws if the range is invalid:(end_height > daemonheight)
136
136
  */
137
- getBlockHeadersRange(params: GetBlockHeadersRangeParams): Promise<import("../api").GetBlockHeadersRange>;
137
+ getBlockHeadersRange(params: GetBlockHeadersRangeParams): Promise<import("../xmr3").GetBlockHeadersRange>;
138
138
  /**
139
139
  * Fetch general information about the Monero daemon.
140
140
  * @link https://docs.getmonero.org/rpc-library/monerod-rpc/#get_info
@@ -7,8 +7,8 @@ import { makeSweepTransaction, makeTransaction, } from "../send-functionality/tr
7
7
  import { monero_wallet_api_wasm } from "../wasm-processing/wasmFile";
8
8
  import { WasmProcessor } from "../wasm-processing/wasmProcessor";
9
9
  import { LOCAL_NODE_DEFAULT_URL, } from "../node-interaction/nodeUrl";
10
- import { get_block_headers_range, get_info, } from "../api";
11
- import { readWalletFromScanSettings } from "../api";
10
+ import { get_block_headers_range, get_info, } from "../xmr3";
11
+ import { readWalletFromScanSettings } from "../xmr3";
12
12
  import { sleep } from "../io/sleep";
13
13
  /**
14
14
  * This class is useful to interact with Moneros DaemonRpc binary requests in a convenient way.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@spirobel/monero-wallet-api",
3
- "version": "0.6.0",
4
- "main": "dist/api.js",
5
- "module": "dist/api.js",
3
+ "version": "0.6.1",
4
+ "main": "dist/xmr3.js",
5
+ "module": "dist/xmr3.js",
6
6
  "devDependencies": {
7
7
  "@types/bun": "latest"
8
8
  },
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./dist/api.d.ts",
15
- "import": "./dist/api.js"
14
+ "types": "./dist/xmr3.d.ts",
15
+ "import": "./dist/xmr3.js"
16
16
  },
17
17
  "./tools": {
18
18
  "types": "./dist/tools/monero-tools.d.ts",
@@ -54,7 +54,7 @@
54
54
  "clean": "rm -rf ./dist"
55
55
  },
56
56
  "type": "module",
57
- "types": "dist/api.d.ts",
57
+ "types": "dist/xmr3.d.ts",
58
58
  "dependencies": {
59
59
  "@noble/curves": "2.2.0",
60
60
  "@noble/hashes": "2.2.0"
File without changes
File without changes