@reown/appkit 1.5.1 → 1.5.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/dist/esm/exports/constants.js +1 -1
- package/dist/esm/package.json +2 -2
- package/dist/esm/src/adapters/ChainAdapterBlueprint.js +8 -4
- package/dist/esm/src/adapters/ChainAdapterBlueprint.js.map +1 -1
- package/dist/esm/src/client.js +11 -5
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/networks/bitcoin.js +16 -0
- package/dist/esm/src/networks/bitcoin.js.map +1 -0
- package/dist/esm/src/networks/index.js +1 -0
- package/dist/esm/src/networks/index.js.map +1 -1
- package/dist/esm/src/store/ProviderUtil.js +10 -4
- package/dist/esm/src/store/ProviderUtil.js.map +1 -1
- package/dist/esm/src/utils/HelpersUtil.js +2 -0
- package/dist/esm/src/utils/HelpersUtil.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/exports/constants.d.ts +1 -1
- package/dist/types/src/client.d.ts +1 -1
- package/dist/types/src/library/vue/index.d.ts +1 -1
- package/dist/types/src/networks/bitcoin.d.ts +47 -0
- package/dist/types/src/networks/index.d.ts +1 -0
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.5.
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.5.2";
|
|
@@ -83,7 +83,7 @@ export declare class AppKit {
|
|
|
83
83
|
setAllAccounts: (typeof AccountController)['setAllAccounts'];
|
|
84
84
|
addAddressLabel: (typeof AccountController)['addAddressLabel'];
|
|
85
85
|
removeAddressLabel: (typeof AccountController)['removeAddressLabel'];
|
|
86
|
-
getCaipAddress: (chainNamespace?: ChainNamespace) => `eip155:${string}:${string}` | `eip155:${number}:${string}` | `solana:${string}:${string}` | `solana:${number}:${string}` | `polkadot:${string}:${string}` | `polkadot:${number}:${string}` | undefined;
|
|
86
|
+
getCaipAddress: (chainNamespace?: ChainNamespace) => `eip155:${string}:${string}` | `eip155:${number}:${string}` | `solana:${string}:${string}` | `solana:${number}:${string}` | `polkadot:${string}:${string}` | `polkadot:${number}:${string}` | `bip122:${string}:${string}` | `bip122:${number}:${string}` | undefined;
|
|
87
87
|
getAddressByChainNamespace: (chainNamespace: ChainNamespace) => string | undefined;
|
|
88
88
|
getAddress: (chainNamespace?: ChainNamespace) => string | undefined;
|
|
89
89
|
getProvider: () => Provider | UniversalProvider | import("@reown/appkit-core").CombinedProvider | undefined;
|
|
@@ -57,6 +57,6 @@ export declare function useWalletInfo(): {
|
|
|
57
57
|
};
|
|
58
58
|
export declare function useAppKitState(): {
|
|
59
59
|
open: boolean;
|
|
60
|
-
selectedNetworkId: `eip155:${string}` | `eip155:${number}` | `solana:${string}` | `solana:${number}` | `polkadot:${string}` | `polkadot:${number}` | undefined;
|
|
60
|
+
selectedNetworkId: `eip155:${string}` | `eip155:${number}` | `solana:${string}` | `solana:${number}` | `polkadot:${string}` | `polkadot:${number}` | `bip122:${string}` | `bip122:${number}` | undefined;
|
|
61
61
|
};
|
|
62
62
|
export declare function useAppKitEvents(): AppKitEvent;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const bitcoin: {
|
|
2
|
+
blockExplorers?: {
|
|
3
|
+
[key: string]: {
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
apiUrl?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
default: {
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
apiUrl?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
} | undefined;
|
|
14
|
+
contracts?: {
|
|
15
|
+
[x: string]: import("viem").ChainContract | {
|
|
16
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
19
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
20
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
21
|
+
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
name: "Bitcoin";
|
|
24
|
+
nativeCurrency: {
|
|
25
|
+
readonly name: "Bitcoin";
|
|
26
|
+
readonly symbol: "BTC";
|
|
27
|
+
readonly decimals: 8;
|
|
28
|
+
};
|
|
29
|
+
rpcUrls: {
|
|
30
|
+
readonly default: {
|
|
31
|
+
readonly http: readonly ["https://rpc.walletconnect.org/v1"];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
sourceId?: number | undefined;
|
|
35
|
+
testnet?: boolean | undefined;
|
|
36
|
+
custom?: Record<string, unknown> | undefined;
|
|
37
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
38
|
+
formatters?: undefined;
|
|
39
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
40
|
+
id: "000000000019d6689c085ae165831e93";
|
|
41
|
+
chainNamespace: "bip122";
|
|
42
|
+
caipNetworkId: "bip122:000000000019d6689c085ae165831e93";
|
|
43
|
+
assets?: {
|
|
44
|
+
imageId: string | undefined;
|
|
45
|
+
imageUrl: string | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -95,13 +95,14 @@
|
|
|
95
95
|
"bs58": "6.0.0",
|
|
96
96
|
"valtio": "1.11.2",
|
|
97
97
|
"viem": "2.x",
|
|
98
|
-
"@reown/appkit-common": "1.5.
|
|
99
|
-
"@reown/appkit-core": "1.5.
|
|
100
|
-
"@reown/appkit-polyfills": "1.5.
|
|
101
|
-
"@reown/appkit-scaffold-ui": "1.5.
|
|
102
|
-
"@reown/appkit-
|
|
103
|
-
"@reown/appkit-
|
|
104
|
-
"@reown/appkit-
|
|
98
|
+
"@reown/appkit-common": "1.5.2",
|
|
99
|
+
"@reown/appkit-core": "1.5.2",
|
|
100
|
+
"@reown/appkit-polyfills": "1.5.2",
|
|
101
|
+
"@reown/appkit-scaffold-ui": "1.5.2",
|
|
102
|
+
"@reown/appkit-siwe": "1.5.2",
|
|
103
|
+
"@reown/appkit-ui": "1.5.2",
|
|
104
|
+
"@reown/appkit-utils": "1.5.2",
|
|
105
|
+
"@reown/appkit-wallet": "1.5.2"
|
|
105
106
|
},
|
|
106
107
|
"devDependencies": {
|
|
107
108
|
"@types/react": "18.3.1",
|
|
@@ -113,8 +114,7 @@
|
|
|
113
114
|
"react": "18.3.1",
|
|
114
115
|
"react-dom": "18.3.1",
|
|
115
116
|
"vitest": "2.1.3",
|
|
116
|
-
"vue": "3.x"
|
|
117
|
-
"@reown/appkit-siwe": "1.5.1"
|
|
117
|
+
"vue": "3.x"
|
|
118
118
|
},
|
|
119
119
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
120
120
|
"license": "Apache-2.0",
|