btc-wallet 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/core/btcUtils.d.ts +1 -7
- package/dist/index.js +576 -323
- package/dist/index.js.map +4 -4
- package/dist/utils/Dialog.d.ts +13 -0
- package/dist/utils/request.d.ts +1 -1
- package/dist/utils/satoshi.d.ts +18 -0
- package/esm/index.js +574 -321
- package/esm/index.js.map +4 -4
- package/package.json +1 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare class Dialog {
|
2
|
+
private static template;
|
3
|
+
private static style;
|
4
|
+
private static injectStyles;
|
5
|
+
static confirm(options: {
|
6
|
+
title?: string;
|
7
|
+
message: string;
|
8
|
+
}): Promise<boolean>;
|
9
|
+
static alert(options: {
|
10
|
+
title?: string;
|
11
|
+
message: string;
|
12
|
+
}): Promise<void>;
|
13
|
+
}
|
package/dist/utils/request.d.ts
CHANGED
@@ -7,5 +7,5 @@ interface RequestOptions<T> extends RequestInit {
|
|
7
7
|
maxPollingAttempts?: number;
|
8
8
|
shouldStopPolling?: (response: T) => boolean;
|
9
9
|
}
|
10
|
-
export default function request<T
|
10
|
+
export default function request<T>(url: string, options?: RequestOptions<T>): Promise<T>;
|
11
11
|
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare function getNonce(url: string, accountId: string): Promise<string>;
|
2
|
+
export declare function getNearNonce(url: string, accountId: string): Promise<string>;
|
3
|
+
export declare function receiveTransaction(url: string, data: any): Promise<any>;
|
4
|
+
export declare function receiveDepositMsg(url: string, { btcPublicKey, txHash, depositType, postActions, extraMsg, }: {
|
5
|
+
btcPublicKey: string;
|
6
|
+
txHash: string;
|
7
|
+
depositType?: number;
|
8
|
+
postActions: string;
|
9
|
+
extraMsg?: string;
|
10
|
+
}): Promise<any>;
|
11
|
+
export declare function checkBridgeTransactionStatus(url: string, txHash: string): Promise<{
|
12
|
+
status: number;
|
13
|
+
ToTxHash: string;
|
14
|
+
}>;
|
15
|
+
export declare function checkBtcTransactionStatus(url: string, sig: string): Promise<{
|
16
|
+
status: number;
|
17
|
+
NearHashList: string[];
|
18
|
+
}>;
|