Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Aug 16, 2024
1 parent 81e983e commit 536ee4a
Show file tree
Hide file tree
Showing 31 changed files with 119 additions and 89 deletions.
2 changes: 1 addition & 1 deletion dist/dist/monero_wallet_full.js

Large diffs are not rendered by default.

Binary file modified dist/dist/monero_wallet_full.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/dist/monero_wallet_keys.js

Large diffs are not rendered by default.

Binary file modified dist/dist/monero_wallet_keys.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/dist/monero_web_worker.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ declare function connectToWalletRpc(uriOrConfig: string | Partial<MoneroRpcConne
* @param {MoneroConnectionManager} [config.connectionManager] - manage connections to monerod (optional)
* @param {boolean} [config.rejectUnauthorized] - reject self-signed server certificates if true (defaults to true)
* @param {boolean} [config.proxyToWorker] - proxies wallet operations to a worker in order to not block the main thread (default true)
* @param {any} [config.fs] - Node.js compatible file system to use (defaults to disk or in-memory FS if browser)
* @param {any} [config.fs] - file system compatible with Node.js `fs.promises` API (defaults to disk or in-memory FS if browser)
* @return {Promise<MoneroWalletFull>} the created wallet
*/
declare function createWalletFull(config: Partial<MoneroWalletConfig>): Promise<MoneroWalletFull>;
Expand Down Expand Up @@ -224,7 +224,7 @@ declare function createWalletFull(config: Partial<MoneroWalletConfig>): Promise<
* @param {Uint8Array} [config.keysData] - wallet keys data to open (optional if path provided)
* @param {Uint8Array} [config.cacheData] - wallet cache data to open (optional)
* @param {boolean} [config.proxyToWorker] - proxies wallet operations to a worker in order to not block the main thread (default true)
* @param {any} [config.fs] - Node.js compatible file system to use (defaults to disk or in-memory FS if browser)
* @param {any} [config.fs] - file system compatible with Node.js `fs.promises` API (defaults to disk or in-memory FS if browser)
* @return {Promise<MoneroWalletFull>} the opened wallet
*/
declare function openWalletFull(config: Partial<MoneroWalletConfig>): Promise<MoneroWalletFull>;
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/monero_wallet_full.js

Large diffs are not rendered by default.

Binary file modified dist/monero_wallet_full.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/monero_wallet_keys.js

Large diffs are not rendered by default.

Binary file modified dist/monero_wallet_keys.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/monero_web_worker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/monero_web_worker.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/src/main/ts/common/LibraryUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ThreadPool from "./ThreadPool";
/**
* Collection of helper utilities for the library.
*/
Expand All @@ -8,6 +9,7 @@ export default class LibraryUtils {
static WORKER_OBJECTS: any;
static FULL_LOADED: any;
static REJECT_UNAUTHORIZED_FNS: any;
static readonly MUTEX: ThreadPool;
static WORKER_DIST_PATH_DEFAULT: any;
static WORKER_DIST_PATH: any;
/**
Expand Down Expand Up @@ -96,6 +98,8 @@ export default class LibraryUtils {
static invokeWorker(objectId: any, fnName: any, args: any): Promise<unknown>;
static serializeError(err: any): any;
protected static deserializeError(serializedErr: any): Error;
static queueTask<T>(asyncFn: () => Promise<T>): Promise<T>;
static exists(fs: any, path: string): Promise<boolean>;
protected static initWasmModule(wasmModule: any): void;
protected static prefixWindowsPath(path: any): any;
}
16 changes: 15 additions & 1 deletion dist/src/main/ts/common/LibraryUtils.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/src/main/ts/common/MoneroUtils.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/src/main/ts/daemon/MoneroDaemon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default class MoneroDaemon {
* @param {boolean} [prune] - specifies if the returned tx should be pruned (defaults to false)
* @return {Promise<MoneroTx>} transaction with the given hash or undefined if not found
*/
getTx(txHash?: string, prune?: boolean): Promise<MoneroTx>;
getTx(txHash?: string, prune?: boolean): Promise<MoneroTx | undefined>;
/**
* Get transactions by hashes.
*
Expand Down
2 changes: 1 addition & 1 deletion dist/src/main/ts/daemon/MoneroDaemon.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/src/main/ts/daemon/MoneroDaemonRpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ declare class MoneroDaemonRpc extends MoneroDaemon {
stop(): Promise<void>;
waitForNextBlockHeader(): Promise<MoneroBlockHeader>;
getPollInterval(): number;
getTx(txHash?: string, prune?: boolean): Promise<MoneroTx>;
getTx(txHash?: string, prune?: boolean): Promise<MoneroTx | undefined>;
getTxHex(txHash: string, prune?: boolean): Promise<string>;
getKeyImageSpentStatus(keyImage: string): Promise<MoneroKeyImageSpentStatus>;
setPeerBan(ban: MoneroBan): Promise<void>;
Expand Down
2 changes: 1 addition & 1 deletion dist/src/main/ts/daemon/MoneroDaemonRpc.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/src/main/ts/daemon/model/MoneroTx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ export default class MoneroTx {
/**
* Get full transaction hex. Full hex = pruned hex + prunable hex.
*
* @return {string} full tx hex
* @return {string|undefined} full tx hex
*/
getFullHex(): string;
getFullHex(): string | undefined;
/**
* @param {string} fullHex - full tx hex
* @return {MoneroTx} this tx for chaining
Expand Down
4 changes: 2 additions & 2 deletions dist/src/main/ts/daemon/model/MoneroTx.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/src/main/ts/wallet/MoneroWallet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export default class MoneroWallet {
*
* @return {Promise<number[]>} the number of blocks until the next and last funds unlock in elements 0 and 1, respectively, or undefined if no balance
*/
getNumBlocksToUnlock(): Promise<number[]>;
getNumBlocksToUnlock(): Promise<number[] | undefined>;
/**
* Get accounts with a given tag.
*
Expand Down Expand Up @@ -373,7 +373,7 @@ export default class MoneroWallet {
* @param {string} txHash - hash of a transaction to get
* @return {Promise<MoneroTxWallet> } the identified transaction or undefined if not found
*/
getTx(txHash: string): Promise<MoneroTxWallet>;
getTx(txHash: string): Promise<MoneroTxWallet | undefined>;
/**
* <p>Get wallet transactions. Wallet transactions contain one or more
* transfers that are either incoming or outgoing to the wallet.<p>
Expand Down
2 changes: 1 addition & 1 deletion dist/src/main/ts/wallet/MoneroWallet.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/src/main/ts/wallet/MoneroWalletFull.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export default class MoneroWalletFull extends MoneroWalletKeys {
* Check if a wallet exists at a given path.
*
* @param {string} path - path of the wallet on the file system
* @param {fs} - Node.js compatible file system to use (optional, defaults to disk if nodejs)
* @param {any} fs - file system compatible with Node.js `fs.promises` API (defaults to disk or in-memory FS if browser)
* @return {boolean} true if a wallet exists at the given path, false otherwise
*/
static walletExists(path: any, fs: any): any;
static walletExists(path: any, fs: any): Promise<boolean>;
static openWallet(config: Partial<MoneroWalletConfig>): Promise<any>;
static createWallet(config: MoneroWalletConfig): Promise<MoneroWalletFull>;
protected static createWalletFromSeed(config: MoneroWalletConfig): Promise<MoneroWalletFull>;
Expand Down Expand Up @@ -221,8 +221,8 @@ export default class MoneroWalletFull extends MoneroWalletKeys {
changePassword(oldPassword: string, newPassword: string): Promise<void>;
save(): Promise<void>;
close(save?: boolean): Promise<void>;
getNumBlocksToUnlock(): Promise<number[]>;
getTx(txHash: string): Promise<MoneroTxWallet>;
getNumBlocksToUnlock(): Promise<number[] | undefined>;
getTx(txHash: string): Promise<MoneroTxWallet | undefined>;
getIncomingTransfers(query: Partial<MoneroTransferQuery>): Promise<MoneroIncomingTransfer[]>;
getOutgoingTransfers(query: Partial<MoneroTransferQuery>): Promise<import("./model/MoneroOutgoingTransfer").default[]>;
createTx(config: Partial<MoneroTxConfig>): Promise<MoneroTxWallet>;
Expand All @@ -246,7 +246,7 @@ export default class MoneroWalletFull extends MoneroWalletKeys {
* @param {string} browserMainPath - path of the wallet on the browser main thread
*/
protected setBrowserMainPath(browserMainPath: any): void;
static moveTo(path: any, wallet: any): Promise<void>;
static moveTo(path: any, wallet: any): Promise<any>;
static save(wallet: any): Promise<void>;
}
/**
Expand Down Expand Up @@ -357,7 +357,7 @@ declare class MoneroWalletFullProxy extends MoneroWalletKeysProxy {
signMultisigTxHex(multisigTxHex: any): Promise<MoneroMultisigSignResult>;
submitMultisigTxHex(signedMultisigTxHex: any): Promise<any>;
getData(): Promise<any>;
moveTo(path: any): Promise<void>;
moveTo(path: any): Promise<any>;
changePassword(oldPassword: any, newPassword: any): Promise<void>;
save(): Promise<void>;
close(save: any): Promise<void>;
Expand Down
105 changes: 57 additions & 48 deletions dist/src/main/ts/wallet/MoneroWalletFull.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/src/main/ts/wallet/MoneroWalletKeys.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/src/main/ts/wallet/MoneroWalletRpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ export default class MoneroWalletRpc extends MoneroWallet {
* @return {Promise<void>}
*/
stop(): Promise<void>;
getNumBlocksToUnlock(): Promise<number[]>;
getTx(txHash: string): Promise<MoneroTxWallet>;
getNumBlocksToUnlock(): Promise<number[] | undefined>;
getTx(txHash: string): Promise<MoneroTxWallet | undefined>;
getIncomingTransfers(query: Partial<MoneroTransferQuery>): Promise<MoneroIncomingTransfer[]>;
getOutgoingTransfers(query: Partial<MoneroTransferQuery>): Promise<MoneroOutgoingTransfer[]>;
createTx(config: Partial<MoneroTxConfig>): Promise<MoneroTxWallet>;
Expand Down
2 changes: 1 addition & 1 deletion dist/src/main/ts/wallet/MoneroWalletRpc.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/src/main/ts/wallet/model/MoneroWalletConfig.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class MoneroWalletConfig {
saveCurrent: boolean;
/** Proxies wallet operations to a worker in order to not block the main thread (default true). */
proxyToWorker: boolean;
/** Node.js compatible file system to use (defaults to disk or in-memory FS if browser). */
/** File system compatible with Node.js `fs.promises` API (defaults to disk or in-memory FS if browser). */
fs: any;
/** Wallet keys data to open. */
keysData: Uint8Array;
Expand Down Expand Up @@ -70,7 +70,7 @@ export default class MoneroWalletConfig {
* @param {Uint8Array} [config.keysData] - wallet keys data to open (optional)
* @param {Uint8Array} [config.cacheData] - wallet cache data to open (optional)
* @param {boolean} [config.proxyToWorker] - proxies wallet operations to a worker in order to not block the main thread (default true)
* @param {fs} [config.fs] - Node.js compatible file system to use (defaults to disk or in-memory FS if browser)
* @param {any} [config.fs] - file system compatible with Node.js `fs.promises` API (defaults to disk or in-memory FS if browser)
* @param {boolean} [config.saveCurrent] - specifies if the current RPC wallet should be saved before being closed
* @param {number} [config.accountLookahead] - number of accounts to scan (optional)
* @param {number} [config.subaddressLookahead] - number of subaddresses to scan per account (optional)
Expand Down
6 changes: 3 additions & 3 deletions dist/src/main/ts/wallet/model/MoneroWalletConfig.js

Large diffs are not rendered by default.

0 comments on commit 536ee4a

Please sign in to comment.