btc-wallet 0.2.5 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +60 -6
- package/dist/components/signModal/index.d.ts +1 -1
- package/dist/config.d.ts +14 -0
- package/dist/context/index.d.ts +0 -2
- package/dist/core/bridgeSupplyUtils.d.ts +10 -0
- package/dist/{components → core}/btcWalletSelectorContext.d.ts +4 -1
- package/dist/{utils → core}/setupBTCWallet.d.ts +1 -1
- package/dist/evmSigner/index.d.ts +2737 -817
- package/dist/index.d.ts +3 -3
- package/dist/index.js +395 -228
- package/dist/index.js.map +4 -4
- package/dist/utils/ethereumUtils.d.ts +1 -4
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/request.d.ts +11 -0
- package/esm/index.js +391 -218
- package/esm/index.js.map +4 -4
- package/package.json +9 -7
- package/dist/components/hook.d.ts +0 -1
@@ -1,7 +1,4 @@
|
|
1
|
-
import type {
|
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>;
|
package/dist/utils/index.d.ts
CHANGED
@@ -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 {};
|