@btc-vision/walletconnect 1.0.1 → 1.0.2
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/browser/WalletConnection.d.ts +2 -2
- package/browser/WalletProvider.d.ts +2 -2
- package/browser/index.js +1 -1
- package/build/WalletConnection.d.ts +2 -2
- package/build/WalletProvider.d.ts +2 -2
- package/package.json +5 -5
- package/src/WalletConnection.ts +3 -3
- package/src/WalletProvider.tsx +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Network } from '@btc-vision/bitcoin';
|
|
2
2
|
import { Address, Unisat, UnisatSigner } from '@btc-vision/transaction';
|
|
3
|
-
import {
|
|
3
|
+
import { AbstractRpcProvider } from 'opnet';
|
|
4
4
|
export declare enum SupportedWallets {
|
|
5
5
|
OP_WALLET = "op_wallet"
|
|
6
6
|
}
|
|
@@ -12,6 +12,6 @@ export declare class WalletConnection {
|
|
|
12
12
|
disconnect(): void;
|
|
13
13
|
getAddress(): Promise<Address>;
|
|
14
14
|
getNetwork(): Promise<Network>;
|
|
15
|
-
getProvider(): Promise<
|
|
15
|
+
getProvider(): Promise<AbstractRpcProvider>;
|
|
16
16
|
}
|
|
17
17
|
export default WalletConnection;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Network } from '@btc-vision/bitcoin';
|
|
2
2
|
import { Address } from '@btc-vision/transaction';
|
|
3
|
-
import {
|
|
3
|
+
import { AbstractRpcProvider } from 'opnet';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Signers, SupportedWallets } from './WalletConnection';
|
|
6
6
|
interface WalletContextType {
|
|
@@ -9,7 +9,7 @@ interface WalletContextType {
|
|
|
9
9
|
address: Address | null;
|
|
10
10
|
signer: Signers | null;
|
|
11
11
|
network: Network | null;
|
|
12
|
-
provider:
|
|
12
|
+
provider: AbstractRpcProvider | null;
|
|
13
13
|
isConnected: boolean;
|
|
14
14
|
}
|
|
15
15
|
export declare const WalletProvider: React.FC<{
|