btc-wallet 0.2.5 → 0.2.7

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.
@@ -1,7 +1,4 @@
1
- import type { SmartAccount, UserOp } from '@particle-network/aa';
2
- import type { AccountInfo } from '../types/accountInfo';
1
+ import type { UserOp } from '@particle-network/aa';
3
2
  export declare const pubKeyToEVMAddress: (pubKey: string) => `0x${string}`;
4
3
  export declare const convertSignature: (signature: string) => string;
5
4
  export declare function caculateNativeFee(userOp: UserOp): bigint;
6
- export declare const getBTCAAAddress: (smartAccount: SmartAccount, btcAddress: string, name: string, version: string) => Promise<string>;
7
- export declare const getBTCAccountInfo: (smartAccount: SmartAccount, btcAddress: string, name: string, version: string) => Promise<AccountInfo>;
@@ -1,10 +1,5 @@
1
1
  import type { AAOptions } from '@particle-network/aa';
2
2
  export declare function shortString(str: any): string;
3
- /**
4
- * 复制到剪贴板
5
- * @param {string} text
6
- * @returns {Promise<void>}
7
- */
8
3
  export declare function copyToClipboard(text: string): Promise<unknown>;
9
4
  export declare const defaultTokenIcon = "https://static.particle.network/token-list/defaultToken/default.png";
10
5
  export declare const ipfsToSrc: (ipfs: string) => string;
@@ -0,0 +1,11 @@
1
+ interface RequestOptions<T> extends RequestInit {
2
+ body?: RequestInit['body'] | any;
3
+ retryCount?: number;
4
+ timeout?: number;
5
+ cacheTimeout?: number;
6
+ pollingInterval?: number;
7
+ maxPollingAttempts?: number;
8
+ shouldStopPolling?: (response: T) => boolean;
9
+ }
10
+ export default function request<T>(url: string, options?: RequestOptions<T>): Promise<T>;
11
+ export {};