@btc-vision/walletconnect 1.5.2 → 1.5.3
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/CHANGELOG.md +2 -2
- package/browser/context/WalletConnectContext.d.ts +3 -1
- package/browser/index.js +1 -1
- package/browser/index.js.LICENSE.txt +2 -0
- package/browser/wallets/controller.d.ts +3 -1
- package/browser/wallets/opwallet/controller.d.ts +3 -1
- package/browser/wallets/types.d.ts +3 -1
- package/browser/wallets/unisat/controller.d.ts +3 -1
- package/build/context/WalletConnectContext.d.ts +3 -1
- package/build/provider/WalletConnectProvider.js +11 -2
- package/build/wallets/controller.d.ts +3 -1
- package/build/wallets/controller.js +10 -2
- package/build/wallets/opwallet/controller.d.ts +3 -1
- package/build/wallets/opwallet/controller.js +19 -1
- package/build/wallets/types.d.ts +3 -1
- package/build/wallets/unisat/controller.d.ts +3 -1
- package/build/wallets/unisat/controller.js +19 -2
- package/eslint.config.js +1 -1
- package/package.json +1 -1
- package/src/context/WalletConnectContext.ts +3 -1
- package/src/provider/WalletConnectProvider.tsx +14 -3
- package/src/wallets/controller.ts +13 -2
- package/src/wallets/opwallet/controller.ts +20 -1
- package/src/wallets/types.ts +3 -1
- package/src/wallets/unisat/controller.ts +20 -1
package/CHANGELOG.md
CHANGED
|
@@ -23,7 +23,7 @@ Old version --> New version
|
|
|
23
23
|
connect connectToWallet
|
|
24
24
|
disconnect disconnect
|
|
25
25
|
walletType walletType
|
|
26
|
-
walletWindowInstance
|
|
26
|
+
walletWindowInstance walletInstance
|
|
27
27
|
account -
|
|
28
28
|
- isConnected publicKey != null
|
|
29
29
|
- signer signer
|
|
@@ -32,7 +32,7 @@ Old version --> New version
|
|
|
32
32
|
walletAddress (account address)
|
|
33
33
|
- addressTyped
|
|
34
34
|
- network network
|
|
35
|
-
- provider
|
|
35
|
+
- provider provider
|
|
36
36
|
connecting
|
|
37
37
|
} = useWallet() } = useWalletConnect()
|
|
38
38
|
```
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Address, Unisat, UnisatSigner } from '@btc-vision/transaction';
|
|
2
2
|
import type { WalletConnectNetwork, WalletInformation } from '../types.ts';
|
|
3
3
|
import { SupportedWallets } from '../wallets';
|
|
4
|
+
import { AbstractRpcProvider } from 'opnet';
|
|
4
5
|
export type WalletConnectContextType = {
|
|
5
6
|
allWallets: WalletInformation[];
|
|
6
7
|
walletType: string | null;
|
|
7
8
|
walletAddress: string | null;
|
|
9
|
+
walletInstance: Unisat | null;
|
|
8
10
|
network: WalletConnectNetwork;
|
|
9
11
|
publicKey: string | null;
|
|
10
12
|
address: Address | null;
|
|
@@ -12,7 +14,7 @@ export type WalletConnectContextType = {
|
|
|
12
14
|
connectToWallet: (wallet: SupportedWallets) => void;
|
|
13
15
|
connecting: boolean;
|
|
14
16
|
disconnect: () => void;
|
|
15
|
-
provider:
|
|
17
|
+
provider: AbstractRpcProvider | null;
|
|
16
18
|
signer: UnisatSigner | null;
|
|
17
19
|
};
|
|
18
20
|
export declare const WalletConnectContext: import("react").Context<WalletConnectContextType | undefined>;
|