btc-wallet 0.5.11-beta → 0.5.13-beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 nearCallFunction<T>(contractId: string, methodName: string, args: any, options: {
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[]>;
@@ -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 {};