btc-wallet 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/btcWalletSelectorContext.d.ts +4 -1
- package/dist/config.d.ts +14 -0
- package/dist/evmSigner/index.d.ts +2737 -817
- package/dist/index.d.ts +1 -0
- package/dist/index.js +278 -62
- package/dist/index.js.map +4 -4
- package/dist/utils/bridgeSupplyUtils.d.ts +1 -0
- package/dist/utils/request.d.ts +11 -0
- package/esm/index.js +278 -62
- package/esm/index.js.map +4 -4
- package/package.json +9 -7
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare function BtcWalletSelectorContextProvider({ children, autoConnect }: {
|
2
|
+
export declare function BtcWalletSelectorContextProvider({ children, autoConnect, }: {
|
3
3
|
children: React.ReactNode;
|
4
4
|
autoConnect?: boolean;
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -12,4 +12,7 @@ export declare function useBtcWalletSelector(): {
|
|
12
12
|
signMessage: (msg: string) => any;
|
13
13
|
getContext: () => any;
|
14
14
|
getBalance: () => Promise<any>;
|
15
|
+
sendBitcoin: (toAddress: string, satoshis: number, options?: {
|
16
|
+
feeRate: number;
|
17
|
+
}) => Promise<string>;
|
15
18
|
};
|
package/dist/config.d.ts
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare const walletConfig: Record<string, {
|
2
|
+
base_url: string;
|
3
|
+
token: string;
|
4
|
+
contractId: string;
|
5
|
+
walletUrl: string;
|
6
|
+
}>;
|
7
|
+
export declare const nearRpcUrls: {
|
8
|
+
mainnet: string[];
|
9
|
+
testnet: string[];
|
10
|
+
};
|
11
|
+
export declare const btcRpcUrls: {
|
12
|
+
mainnet: string;
|
13
|
+
testnet: string;
|
14
|
+
};
|