btc-wallet 0.5.11-beta → 0.5.13-beta
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.
- package/dist/config.d.ts +4 -1
- package/dist/core/btcUtils.d.ts +17 -9
- package/dist/index.js +270 -146
- package/dist/index.js.map +2 -2
- package/dist/utils/nearUtils.d.ts +7 -1
- package/dist/utils/request.d.ts +1 -0
- package/esm/index.js +270 -146
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
@@ -1,7 +1,13 @@
|
|
1
1
|
import type { ProviderService } from '@near-wallet-selector/core/src/lib/services';
|
2
2
|
import { providers } from 'near-api-js';
|
3
|
-
export declare function
|
3
|
+
export declare function getNearProvider(option: {
|
4
4
|
network?: string;
|
5
5
|
provider?: ProviderService;
|
6
|
+
}): ProviderService | providers.FailoverRpcProvider;
|
7
|
+
export declare function nearCallFunction<T>(contractId: string, methodName: string, args: any, options?: {
|
8
|
+
network?: string;
|
9
|
+
provider?: ProviderService;
|
10
|
+
cacheTimeout?: number;
|
11
|
+
skipCache?: boolean;
|
6
12
|
}): Promise<T>;
|
7
13
|
export declare function pollTransactionStatuses(network: string, hashes: string[]): Promise<providers.FinalExecutionOutcome[]>;
|
package/dist/utils/request.d.ts
CHANGED
@@ -7,5 +7,6 @@ interface RequestOptions<T> extends RequestInit {
|
|
7
7
|
maxPollingAttempts?: number;
|
8
8
|
shouldStopPolling?: (response: T) => boolean;
|
9
9
|
}
|
10
|
+
export declare function withCache<T>(key: string, fetcher: () => Promise<T>, timeout?: number): Promise<T>;
|
10
11
|
export default function request<T>(url: string, options?: RequestOptions<T>): Promise<T>;
|
11
12
|
export {};
|