@btc-vision/walletconnect 1.5.2 → 1.5.4

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/browser/consts.d.ts +1 -1
  3. package/browser/context/WalletConnectContext.d.ts +5 -3
  4. package/browser/index.js +1 -1
  5. package/browser/index.js.LICENSE.txt +2 -0
  6. package/browser/types.d.ts +2 -1
  7. package/browser/wallets/controller.d.ts +6 -4
  8. package/browser/wallets/opwallet/controller.d.ts +5 -3
  9. package/browser/wallets/opwallet/interface.d.ts +1 -1
  10. package/browser/wallets/types.d.ts +6 -4
  11. package/browser/wallets/unisat/controller.d.ts +5 -3
  12. package/browser/wallets/unisat/interface.d.ts +1 -1
  13. package/build/consts.d.ts +1 -1
  14. package/build/consts.js +2 -0
  15. package/build/context/WalletConnectContext.d.ts +5 -3
  16. package/build/context/WalletConnectContext.js +3 -0
  17. package/build/provider/WalletConnectProvider.js +14 -4
  18. package/build/types.d.ts +2 -1
  19. package/build/types.js +2 -1
  20. package/build/wallets/controller.d.ts +6 -4
  21. package/build/wallets/controller.js +19 -8
  22. package/build/wallets/opwallet/controller.d.ts +5 -3
  23. package/build/wallets/opwallet/controller.js +21 -1
  24. package/build/wallets/opwallet/interface.d.ts +1 -1
  25. package/build/wallets/opwallet/interface.js +1 -0
  26. package/build/wallets/types.d.ts +6 -4
  27. package/build/wallets/types.js +4 -1
  28. package/build/wallets/unisat/controller.d.ts +5 -3
  29. package/build/wallets/unisat/controller.js +21 -2
  30. package/build/wallets/unisat/interface.d.ts +1 -1
  31. package/build/wallets/unisat/interface.js +1 -0
  32. package/eslint.config.js +1 -1
  33. package/package.json +3 -3
  34. package/src/consts.ts +2 -1
  35. package/src/context/WalletConnectContext.ts +5 -3
  36. package/src/provider/WalletConnectProvider.tsx +16 -5
  37. package/src/types.ts +2 -1
  38. package/src/wallets/controller.ts +22 -11
  39. package/src/wallets/opwallet/controller.ts +23 -4
  40. package/src/wallets/opwallet/interface.ts +1 -1
  41. package/src/wallets/types.ts +6 -4
  42. package/src/wallets/unisat/controller.ts +23 -4
  43. package/src/wallets/unisat/interface.ts +1 -1
  44. package/tsconfig.base.json +1 -0
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 provider
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,2 +1,2 @@
1
- import { WalletConnectNetwork } from './types';
1
+ import { type WalletConnectNetwork } from './types';
2
2
  export declare const DefaultWalletConnectNetwork: WalletConnectNetwork;
@@ -1,10 +1,12 @@
1
- import { Address, Unisat, UnisatSigner } from '@btc-vision/transaction';
1
+ import { Address, type Unisat, UnisatSigner } from '@btc-vision/transaction';
2
+ import { AbstractRpcProvider } from 'opnet';
2
3
  import type { WalletConnectNetwork, WalletInformation } from '../types.ts';
3
- import { SupportedWallets } from '../wallets';
4
+ import { type SupportedWallets } from '../wallets';
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: Unisat | null;
17
+ provider: AbstractRpcProvider | null;
16
18
  signer: UnisatSigner | null;
17
19
  };
18
20
  export declare const WalletConnectContext: import("react").Context<WalletConnectContextType | undefined>;