btc-wallet 0.3.10 → 0.3.12

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
+ }
@@ -1,7 +1,6 @@
1
1
  import type { ProviderService } from '@near-wallet-selector/core/src/lib/services';
2
- import { providers } from 'near-api-js';
3
2
  export declare function nearCallFunction<T>(contractId: string, methodName: string, args: any, options: {
4
3
  network?: string;
5
4
  provider?: ProviderService;
6
5
  }): Promise<T>;
7
- export declare function pollTransactionStatuses(network: string, hashes: string[]): Promise<(providers.FinalExecutionOutcome | undefined)[]>;
6
+ export declare function pollTransactionStatuses(network: string, hashes: string[]): Promise<any[]>;
@@ -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
+ }>;