btc-wallet 0.3.11 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ }
@@ -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 = any>(url: string, options?: RequestOptions<T>): Promise<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
+ }>;