@ant-design/web3-wagmi 0.0.0-alpha-20260209094036
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 +517 -0
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/esm/chains.d.ts +16 -0
- package/dist/esm/chains.js +83 -0
- package/dist/esm/global.d.ts +3 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/interface.d.ts +26 -0
- package/dist/esm/interface.js +1 -0
- package/dist/esm/utils.d.ts +3 -0
- package/dist/esm/utils.js +8 -0
- package/dist/esm/wagmi-provider/__mocks__/wagmiBaseMock.d.ts +76 -0
- package/dist/esm/wagmi-provider/__mocks__/wagmiBaseMock.js +36 -0
- package/dist/esm/wagmi-provider/config-provider.d.ts +23 -0
- package/dist/esm/wagmi-provider/config-provider.js +243 -0
- package/dist/esm/wagmi-provider/index.d.ts +32 -0
- package/dist/esm/wagmi-provider/index.js +102 -0
- package/dist/esm/wagmi-provider/methods/getNFTMetadata.d.ts +3 -0
- package/dist/esm/wagmi-provider/methods/getNFTMetadata.js +25 -0
- package/dist/esm/wagmi-provider/methods/index.d.ts +1 -0
- package/dist/esm/wagmi-provider/methods/index.js +1 -0
- package/dist/esm/wallets/coinbase-wallet.d.ts +4 -0
- package/dist/esm/wallets/coinbase-wallet.js +19 -0
- package/dist/esm/wallets/eip6963.d.ts +3 -0
- package/dist/esm/wallets/eip6963.js +27 -0
- package/dist/esm/wallets/im-token.d.ts +2 -0
- package/dist/esm/wallets/im-token.js +11 -0
- package/dist/esm/wallets/index.d.ts +10 -0
- package/dist/esm/wallets/index.js +10 -0
- package/dist/esm/wallets/meta-mask.d.ts +2 -0
- package/dist/esm/wallets/meta-mask.js +11 -0
- package/dist/esm/wallets/mobile-wallet.d.ts +2 -0
- package/dist/esm/wallets/mobile-wallet.js +8 -0
- package/dist/esm/wallets/okx-wallet.d.ts +2 -0
- package/dist/esm/wallets/okx-wallet.js +11 -0
- package/dist/esm/wallets/rainbow-wallet.d.ts +2 -0
- package/dist/esm/wallets/rainbow-wallet.js +11 -0
- package/dist/esm/wallets/safeheron.d.ts +2 -0
- package/dist/esm/wallets/safeheron.js +19 -0
- package/dist/esm/wallets/token-pocket.d.ts +2 -0
- package/dist/esm/wallets/token-pocket.js +13 -0
- package/dist/esm/wallets/universal-wallet.d.ts +11 -0
- package/dist/esm/wallets/universal-wallet.js +66 -0
- package/dist/esm/wallets/wallet-connect.d.ts +6 -0
- package/dist/esm/wallets/wallet-connect.js +42 -0
- package/dist/lib/chains.d.ts +16 -0
- package/dist/lib/chains.js +89 -0
- package/dist/lib/global.d.ts +3 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.js +71 -0
- package/dist/lib/interface.d.ts +26 -0
- package/dist/lib/interface.js +5 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +14 -0
- package/dist/lib/wagmi-provider/__mocks__/wagmiBaseMock.d.ts +76 -0
- package/dist/lib/wagmi-provider/__mocks__/wagmiBaseMock.js +42 -0
- package/dist/lib/wagmi-provider/config-provider.d.ts +23 -0
- package/dist/lib/wagmi-provider/config-provider.js +251 -0
- package/dist/lib/wagmi-provider/index.d.ts +32 -0
- package/dist/lib/wagmi-provider/index.js +110 -0
- package/dist/lib/wagmi-provider/methods/getNFTMetadata.d.ts +3 -0
- package/dist/lib/wagmi-provider/methods/getNFTMetadata.js +31 -0
- package/dist/lib/wagmi-provider/methods/index.d.ts +1 -0
- package/dist/lib/wagmi-provider/methods/index.js +16 -0
- package/dist/lib/wallets/coinbase-wallet.d.ts +4 -0
- package/dist/lib/wallets/coinbase-wallet.js +26 -0
- package/dist/lib/wallets/eip6963.d.ts +3 -0
- package/dist/lib/wallets/eip6963.js +34 -0
- package/dist/lib/wallets/im-token.d.ts +2 -0
- package/dist/lib/wallets/im-token.js +18 -0
- package/dist/lib/wallets/index.d.ts +10 -0
- package/dist/lib/wallets/index.js +115 -0
- package/dist/lib/wallets/meta-mask.d.ts +2 -0
- package/dist/lib/wallets/meta-mask.js +18 -0
- package/dist/lib/wallets/mobile-wallet.d.ts +2 -0
- package/dist/lib/wallets/mobile-wallet.js +15 -0
- package/dist/lib/wallets/okx-wallet.d.ts +2 -0
- package/dist/lib/wallets/okx-wallet.js +18 -0
- package/dist/lib/wallets/rainbow-wallet.d.ts +2 -0
- package/dist/lib/wallets/rainbow-wallet.js +18 -0
- package/dist/lib/wallets/safeheron.d.ts +2 -0
- package/dist/lib/wallets/safeheron.js +27 -0
- package/dist/lib/wallets/token-pocket.d.ts +2 -0
- package/dist/lib/wallets/token-pocket.js +20 -0
- package/dist/lib/wallets/universal-wallet.d.ts +11 -0
- package/dist/lib/wallets/universal-wallet.js +73 -0
- package/dist/lib/wallets/wallet-connect.d.ts +6 -0
- package/dist/lib/wallets/wallet-connect.js +49 -0
- package/package.json +73 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
# @ant-design/web3-wagmi
|
|
2
|
+
|
|
3
|
+
## 0.0.0-alpha-20260209094036
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [01dc595]
|
|
8
|
+
- @ant-design/web3-common@0.0.0-alpha-20260209094036
|
|
9
|
+
- @ant-design/web3-assets@0.0.0-alpha-20260209094036
|
|
10
|
+
|
|
11
|
+
## 2.13.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 2ae483c: feat: support ignoreConfig for support multiple chain better
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [dfa67c5]
|
|
20
|
+
- Updated dependencies [2ae483c]
|
|
21
|
+
- @ant-design/web3-common@1.22.0
|
|
22
|
+
- @ant-design/web3-assets@1.14.3
|
|
23
|
+
|
|
24
|
+
## 2.12.2
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- @ant-design/web3-assets@1.14.2
|
|
29
|
+
|
|
30
|
+
## 2.12.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- @ant-design/web3-assets@1.14.1
|
|
35
|
+
|
|
36
|
+
## 2.12.0
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- 640bce9: feat: support base chain
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies [640bce9]
|
|
45
|
+
- Updated dependencies [3d6d7c6]
|
|
46
|
+
- @ant-design/web3-assets@1.14.0
|
|
47
|
+
- @ant-design/web3-common@1.21.0
|
|
48
|
+
|
|
49
|
+
## 2.11.0
|
|
50
|
+
|
|
51
|
+
### Minor Changes
|
|
52
|
+
|
|
53
|
+
- 98dc8ef: feat: Support wallet Rainbow
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Updated dependencies [98dc8ef]
|
|
58
|
+
- Updated dependencies [b309635]
|
|
59
|
+
- Updated dependencies [d9629ed]
|
|
60
|
+
- @ant-design/web3-assets@1.13.0
|
|
61
|
+
- @ant-design/web3-common@1.20.0
|
|
62
|
+
|
|
63
|
+
## 2.10.3
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [0f83657]
|
|
68
|
+
- @ant-design/web3-common@1.19.0
|
|
69
|
+
- @ant-design/web3-assets@1.12.1
|
|
70
|
+
|
|
71
|
+
## 2.10.2
|
|
72
|
+
|
|
73
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- Updated dependencies [b6f1f1d]
|
|
76
|
+
- @ant-design/web3-assets@1.12.0
|
|
77
|
+
- @ant-design/web3-common@1.18.0
|
|
78
|
+
|
|
79
|
+
## 2.10.1
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- Updated dependencies [f896044]
|
|
84
|
+
- @ant-design/web3-common@1.17.0
|
|
85
|
+
- @ant-design/web3-assets@1.11.8
|
|
86
|
+
|
|
87
|
+
## 2.10.0
|
|
88
|
+
|
|
89
|
+
### Minor Changes
|
|
90
|
+
|
|
91
|
+
- ad278cd: feat: wagmi add siwe config
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- 8b857d3: chore: update wagmi version
|
|
96
|
+
- Updated dependencies [ad278cd]
|
|
97
|
+
- Updated dependencies [8b857d3]
|
|
98
|
+
- @ant-design/web3-common@1.16.0
|
|
99
|
+
- @ant-design/web3-assets@1.11.7
|
|
100
|
+
|
|
101
|
+
## 2.9.5
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- @ant-design/web3-assets@1.11.6
|
|
106
|
+
|
|
107
|
+
## 2.9.4
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- e0db15a: chore: upgrade pnpm version from 8.9.0 to 9.14.4
|
|
112
|
+
- Updated dependencies [14fae53]
|
|
113
|
+
- Updated dependencies [e0db15a]
|
|
114
|
+
- @ant-design/web3-assets@1.11.5
|
|
115
|
+
- @ant-design/web3-common@1.15.1
|
|
116
|
+
|
|
117
|
+
## 2.9.3
|
|
118
|
+
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- Updated dependencies [0b2a19d]
|
|
122
|
+
- @ant-design/web3-common@1.15.0
|
|
123
|
+
- @ant-design/web3-assets@1.11.4
|
|
124
|
+
|
|
125
|
+
## 2.9.2
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- @ant-design/web3-assets@1.11.3
|
|
130
|
+
|
|
131
|
+
## 2.9.1
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- @ant-design/web3-assets@1.11.2
|
|
136
|
+
|
|
137
|
+
## 2.9.0
|
|
138
|
+
|
|
139
|
+
### Minor Changes
|
|
140
|
+
|
|
141
|
+
- c32f8e2: feat: support useWalletConnectOfficialModal for wagmi provider and add customQrCodePanel for wallet
|
|
142
|
+
- 613b265: feat: add addresses when multi address connected in onConnected
|
|
143
|
+
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- Updated dependencies [c32f8e2]
|
|
147
|
+
- Updated dependencies [613b265]
|
|
148
|
+
- @ant-design/web3-common@1.14.0
|
|
149
|
+
- @ant-design/web3-assets@1.11.1
|
|
150
|
+
|
|
151
|
+
## 2.8.0
|
|
152
|
+
|
|
153
|
+
### Minor Changes
|
|
154
|
+
|
|
155
|
+
- c22eb4d: feat: @ant-design/web3-wagmi support auto generate config, and add @ant-design/web3-assets/wallets export
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- Updated dependencies [c22eb4d]
|
|
160
|
+
- @ant-design/web3-assets@1.11.0
|
|
161
|
+
|
|
162
|
+
## 2.7.4
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- efbd948: fix(web3-wagmi): Correct spelling of "Factories"
|
|
167
|
+
- Updated dependencies [9bb1ea1]
|
|
168
|
+
- @ant-design/web3-common@1.13.0
|
|
169
|
+
- @ant-design/web3-assets@1.10.2
|
|
170
|
+
|
|
171
|
+
## 2.7.3
|
|
172
|
+
|
|
173
|
+
### Patch Changes
|
|
174
|
+
|
|
175
|
+
- 615d403: fix(web3-wagmi): Ensure AntDesignWeb3ConfigProvider component renders correctly when Wagmi config ssr is true
|
|
176
|
+
- 8760a03: feat(web3-wagmi): Add 'initialState' and 'reconnectOnMount' props to WagmiWeb3ConfigProviderProps
|
|
177
|
+
|
|
178
|
+
## 2.7.2
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- 3f7d7a6: build: set targets chrome 100
|
|
183
|
+
- Updated dependencies [3f7d7a6]
|
|
184
|
+
- @ant-design/web3-assets@1.10.1
|
|
185
|
+
- @ant-design/web3-common@1.12.1
|
|
186
|
+
|
|
187
|
+
## 2.7.1
|
|
188
|
+
|
|
189
|
+
### Patch Changes
|
|
190
|
+
|
|
191
|
+
- 3727e20: chore: code style format
|
|
192
|
+
- Updated dependencies [8f3430b]
|
|
193
|
+
- Updated dependencies [d663c3b]
|
|
194
|
+
- @ant-design/web3-assets@1.10.0
|
|
195
|
+
|
|
196
|
+
## 2.7.0
|
|
197
|
+
|
|
198
|
+
### Minor Changes
|
|
199
|
+
|
|
200
|
+
- f1b85b9: feat: auto display ens avatar
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- Updated dependencies [f1b85b9]
|
|
205
|
+
- Updated dependencies [66aaab4]
|
|
206
|
+
- Updated dependencies [9321e7d]
|
|
207
|
+
- @ant-design/web3-common@1.12.0
|
|
208
|
+
- @ant-design/web3-assets@1.9.0
|
|
209
|
+
|
|
210
|
+
## 2.6.0
|
|
211
|
+
|
|
212
|
+
### Minor Changes
|
|
213
|
+
|
|
214
|
+
- 4abe7c0: feat: onConnected callback support provider account
|
|
215
|
+
|
|
216
|
+
### Patch Changes
|
|
217
|
+
|
|
218
|
+
- 61c17c5: chore(wagmi): use wagmi/actions instead of wagmi/core
|
|
219
|
+
- Updated dependencies [0d33add]
|
|
220
|
+
- Updated dependencies [4abe7c0]
|
|
221
|
+
- @ant-design/web3-assets@1.8.1
|
|
222
|
+
- @ant-design/web3-common@1.11.0
|
|
223
|
+
|
|
224
|
+
## 2.5.0
|
|
225
|
+
|
|
226
|
+
### Minor Changes
|
|
227
|
+
|
|
228
|
+
- 8a6d1c7: feat: add mobile wallet
|
|
229
|
+
|
|
230
|
+
### Patch Changes
|
|
231
|
+
|
|
232
|
+
- 752dddd: refactor(wagmi): use ens hook instead of low-level api
|
|
233
|
+
- 6511134: refactor: remove useless proxyConnectorName
|
|
234
|
+
- Updated dependencies [6511134]
|
|
235
|
+
- Updated dependencies [8a6d1c7]
|
|
236
|
+
- @ant-design/web3-assets@1.8.0
|
|
237
|
+
- @ant-design/web3-common@1.10.1
|
|
238
|
+
|
|
239
|
+
## 2.4.5
|
|
240
|
+
|
|
241
|
+
### Patch Changes
|
|
242
|
+
|
|
243
|
+
- 518fd83: fix(wagmi): react max depth update exceeded
|
|
244
|
+
- 518fd83: chore: add storage props to config
|
|
245
|
+
- Updated dependencies [dd6366c]
|
|
246
|
+
- @ant-design/web3-common@1.10.0
|
|
247
|
+
- @ant-design/web3-assets@1.7.2
|
|
248
|
+
|
|
249
|
+
## 2.4.4
|
|
250
|
+
|
|
251
|
+
### Patch Changes
|
|
252
|
+
|
|
253
|
+
- 1270c95: chore(ethers): adjusted the compatibility form of the old version of etherjs
|
|
254
|
+
- 02e74aa: fix: set sideEffects false for enable treeshaking
|
|
255
|
+
- Updated dependencies [02e74aa]
|
|
256
|
+
- @ant-design/web3-assets@1.7.1
|
|
257
|
+
- @ant-design/web3-common@1.9.1
|
|
258
|
+
|
|
259
|
+
## 2.4.3
|
|
260
|
+
|
|
261
|
+
### Patch Changes
|
|
262
|
+
|
|
263
|
+
- a90c674: refactor: remove unused code
|
|
264
|
+
- b9977a2: fix: useCallback for getNFTMetadata for avoid `Error: Maximum update depth exceeded`
|
|
265
|
+
- Updated dependencies [994ead5]
|
|
266
|
+
- @ant-design/web3-assets@1.7.0
|
|
267
|
+
- @ant-design/web3-common@1.9.0
|
|
268
|
+
|
|
269
|
+
## 2.4.2
|
|
270
|
+
|
|
271
|
+
### Patch Changes
|
|
272
|
+
|
|
273
|
+
- b1b8a46: feat: supoort ethers adapter
|
|
274
|
+
- 6ac3c69: fix: Correct typos for connect
|
|
275
|
+
- f4f80a7: chore: Optimize if-else statements
|
|
276
|
+
- 176299c: fix: move @tanstack/react-query to peerDependencies for fix react-query context error
|
|
277
|
+
- Updated dependencies [7fb2d02]
|
|
278
|
+
- Updated dependencies [dfef374]
|
|
279
|
+
- Updated dependencies [71d281a]
|
|
280
|
+
- Updated dependencies [b1b8a46]
|
|
281
|
+
- Updated dependencies [ab3eac4]
|
|
282
|
+
- Updated dependencies [b950d50]
|
|
283
|
+
- @ant-design/web3-common@1.8.0
|
|
284
|
+
- @ant-design/web3-assets@1.6.0
|
|
285
|
+
|
|
286
|
+
## 2.4.1
|
|
287
|
+
|
|
288
|
+
### Patch Changes
|
|
289
|
+
|
|
290
|
+
- 813ec32: chore: modify NFTCard className prefix
|
|
291
|
+
- Updated dependencies [b5eccf9]
|
|
292
|
+
- Updated dependencies [cb0a288]
|
|
293
|
+
- Updated dependencies [6f4c55f]
|
|
294
|
+
- @ant-design/web3-assets@1.5.0
|
|
295
|
+
- @ant-design/web3-common@1.7.0
|
|
296
|
+
|
|
297
|
+
## 2.4.0
|
|
298
|
+
|
|
299
|
+
### Minor Changes
|
|
300
|
+
|
|
301
|
+
- 52d58e5: feat: Add ConnectType for wallet connect
|
|
302
|
+
|
|
303
|
+
### Patch Changes
|
|
304
|
+
|
|
305
|
+
- 8d71a6d: fix: The button status is incorrect when requesting ENS information
|
|
306
|
+
- 6eaee12: chore: adjust the display dom structure of wallet icon in eip6963 mode
|
|
307
|
+
- Updated dependencies [52d58e5]
|
|
308
|
+
- Updated dependencies [201c2ec]
|
|
309
|
+
- Updated dependencies [d273651]
|
|
310
|
+
- @ant-design/web3-common@1.6.0
|
|
311
|
+
- @ant-design/web3-assets@1.4.1
|
|
312
|
+
|
|
313
|
+
## 2.3.0
|
|
314
|
+
|
|
315
|
+
### Minor Changes
|
|
316
|
+
|
|
317
|
+
- e5b4fe9: feat: add imToken wallet info.
|
|
318
|
+
|
|
319
|
+
### Patch Changes
|
|
320
|
+
|
|
321
|
+
- 935b2e2: fix: prop name of error message is wrong
|
|
322
|
+
- 0673036: fix: cache WalletConnect qrcode uri for fix qrcode display bug
|
|
323
|
+
- 8731741: fix: UniversalWallet getQrCode bug on the second times
|
|
324
|
+
- Updated dependencies [e5b4fe9]
|
|
325
|
+
- @ant-design/web3-assets@1.4.0
|
|
326
|
+
|
|
327
|
+
## 2.2.5
|
|
328
|
+
|
|
329
|
+
### Patch Changes
|
|
330
|
+
|
|
331
|
+
- Updated dependencies [21a3e3b]
|
|
332
|
+
- @ant-design/web3-common@1.5.0
|
|
333
|
+
- @ant-design/web3-assets@1.3.1
|
|
334
|
+
|
|
335
|
+
## 2.2.4
|
|
336
|
+
|
|
337
|
+
### Patch Changes
|
|
338
|
+
|
|
339
|
+
- Updated dependencies [d601345]
|
|
340
|
+
- @ant-design/web3-assets@1.3.0
|
|
341
|
+
|
|
342
|
+
## 2.2.3
|
|
343
|
+
|
|
344
|
+
### Patch Changes
|
|
345
|
+
|
|
346
|
+
- Updated dependencies [dead69b]
|
|
347
|
+
- @ant-design/web3-common@1.4.0
|
|
348
|
+
- @ant-design/web3-assets@1.2.3
|
|
349
|
+
|
|
350
|
+
## 2.2.2
|
|
351
|
+
|
|
352
|
+
### Patch Changes
|
|
353
|
+
|
|
354
|
+
- f1b0b17: fix: use esm import as the default import way for fix use in Remix and NextJS
|
|
355
|
+
- eca5578: feat: upgrade antd to 5.13.2 & @ant-design/cssinjs to 1.18.2
|
|
356
|
+
- Updated dependencies [f1b0b17]
|
|
357
|
+
- @ant-design/web3-assets@1.2.2
|
|
358
|
+
- @ant-design/web3-common@1.3.3
|
|
359
|
+
|
|
360
|
+
## 2.2.1
|
|
361
|
+
|
|
362
|
+
### Patch Changes
|
|
363
|
+
|
|
364
|
+
- 30f43b0: fix: Show wallet which not config connector when eip6963 is true
|
|
365
|
+
|
|
366
|
+
## 2.2.0
|
|
367
|
+
|
|
368
|
+
### Minor Changes
|
|
369
|
+
|
|
370
|
+
- fe1ec95: feat: support EIP6963 wallet
|
|
371
|
+
|
|
372
|
+
### Patch Changes
|
|
373
|
+
|
|
374
|
+
- 1e663c3: chore: Optimize import type
|
|
375
|
+
|
|
376
|
+
## 2.1.1
|
|
377
|
+
|
|
378
|
+
### Patch Changes
|
|
379
|
+
|
|
380
|
+
- cf6c520: fix: Add exports field for fix require bug in nextjs
|
|
381
|
+
- Updated dependencies [cf6c520]
|
|
382
|
+
- @ant-design/web3-assets@1.2.1
|
|
383
|
+
- @ant-design/web3-common@1.3.2
|
|
384
|
+
|
|
385
|
+
## 2.1.0
|
|
386
|
+
|
|
387
|
+
### Minor Changes
|
|
388
|
+
|
|
389
|
+
- 77615f9: feat: Add OKX wallet info
|
|
390
|
+
|
|
391
|
+
### Patch Changes
|
|
392
|
+
|
|
393
|
+
- Updated dependencies [f135178]
|
|
394
|
+
- Updated dependencies [77615f9]
|
|
395
|
+
- @ant-design/web3-common@1.3.1
|
|
396
|
+
- @ant-design/web3-assets@1.2.0
|
|
397
|
+
|
|
398
|
+
## 2.0.1
|
|
399
|
+
|
|
400
|
+
### Patch Changes
|
|
401
|
+
|
|
402
|
+
- 47a879d: chore: release @ant-design/web3-wagmi 2.x for wagmi 2.x
|
|
403
|
+
|
|
404
|
+
## 2.0.0
|
|
405
|
+
|
|
406
|
+
### Major Changes
|
|
407
|
+
|
|
408
|
+
- 337971f: feat: upgrade wagmi to 2.0
|
|
409
|
+
|
|
410
|
+
### Patch Changes
|
|
411
|
+
|
|
412
|
+
- Updated dependencies [879548d]
|
|
413
|
+
- @ant-design/web3-common@1.3.0
|
|
414
|
+
- @ant-design/web3-assets@1.1.4
|
|
415
|
+
|
|
416
|
+
## 1.2.0
|
|
417
|
+
|
|
418
|
+
### Minor Changes
|
|
419
|
+
|
|
420
|
+
- e5db9b7: feat: Add UniversalWallet for support TokenPocket and more wallets
|
|
421
|
+
|
|
422
|
+
### Patch Changes
|
|
423
|
+
|
|
424
|
+
- 17ca201: perf: Modify import type
|
|
425
|
+
- Updated dependencies [e5db9b7]
|
|
426
|
+
- Updated dependencies [18def13]
|
|
427
|
+
- Updated dependencies [17ca201]
|
|
428
|
+
- @ant-design/web3-common@1.2.0
|
|
429
|
+
- @ant-design/web3-assets@1.1.3
|
|
430
|
+
|
|
431
|
+
## 1.1.2
|
|
432
|
+
|
|
433
|
+
### Patch Changes
|
|
434
|
+
|
|
435
|
+
- d6a5339: chore: release 1.1.2 for republish
|
|
436
|
+
- Updated dependencies [d6a5339]
|
|
437
|
+
- @ant-design/web3-assets@1.1.2
|
|
438
|
+
- @ant-design/web3-common@1.1.2
|
|
439
|
+
|
|
440
|
+
## 1.1.1
|
|
441
|
+
|
|
442
|
+
### Patch Changes
|
|
443
|
+
|
|
444
|
+
- 32f276a: chore: 1.1.1
|
|
445
|
+
- Updated dependencies [32f276a]
|
|
446
|
+
- @ant-design/web3-assets@1.1.1
|
|
447
|
+
- @ant-design/web3-common@1.1.1
|
|
448
|
+
|
|
449
|
+
## 1.1.0
|
|
450
|
+
|
|
451
|
+
### Minor Changes
|
|
452
|
+
|
|
453
|
+
- b00a377: feat: add TokenPocket wallet icon and metadata
|
|
454
|
+
- b3e95c2: feat: support safeheron browser wallet
|
|
455
|
+
- 3547f6b: feat: ConnectButton support internationalization
|
|
456
|
+
|
|
457
|
+
### Patch Changes
|
|
458
|
+
|
|
459
|
+
- 69a3597: fix: Improve the package.json information and add a main field to accommodate more projects.
|
|
460
|
+
- Updated dependencies [73e8e32]
|
|
461
|
+
- Updated dependencies [69a3597]
|
|
462
|
+
- Updated dependencies [b00a377]
|
|
463
|
+
- Updated dependencies [b3e95c2]
|
|
464
|
+
- Updated dependencies [3547f6b]
|
|
465
|
+
- Updated dependencies [9de319c]
|
|
466
|
+
- @ant-design/web3-common@1.1.0
|
|
467
|
+
- @ant-design/web3-assets@1.1.0
|
|
468
|
+
|
|
469
|
+
## 1.0.0
|
|
470
|
+
|
|
471
|
+
### Major Changes
|
|
472
|
+
|
|
473
|
+
- f330908: docs: Update new logo and prepare release 1.0.0
|
|
474
|
+
|
|
475
|
+
### Patch Changes
|
|
476
|
+
|
|
477
|
+
- Updated dependencies [f330908]
|
|
478
|
+
- @ant-design/web3-assets@1.0.0
|
|
479
|
+
- @ant-design/web3-common@1.0.0
|
|
480
|
+
|
|
481
|
+
## 0.2.0
|
|
482
|
+
|
|
483
|
+
### Minor Changes
|
|
484
|
+
|
|
485
|
+
- a2119bf: refactor: rename hasBrowserExtensionInstalled to hasWalletReady and rename onSelectWallet to onWalletSelected
|
|
486
|
+
|
|
487
|
+
### Patch Changes
|
|
488
|
+
|
|
489
|
+
- f74fb2c: fix: switch chain bug when use with wagmi
|
|
490
|
+
- Updated dependencies [a2119bf]
|
|
491
|
+
- @ant-design/web3-common@0.2.0
|
|
492
|
+
- @ant-design/web3-assets@0.1.2
|
|
493
|
+
|
|
494
|
+
## 0.1.1
|
|
495
|
+
|
|
496
|
+
### Patch Changes
|
|
497
|
+
|
|
498
|
+
- 2d7ae4f: refactor: auto config wagmi provider chains
|
|
499
|
+
- 39782e4: feat: ethereum adapter support show balance
|
|
500
|
+
- e4535ff: feat: add new wallet CoinbaseWallet
|
|
501
|
+
- Updated dependencies [2d7ae4f]
|
|
502
|
+
- Updated dependencies [0df085f]
|
|
503
|
+
- Updated dependencies [3fbd1eb]
|
|
504
|
+
- Updated dependencies [39782e4]
|
|
505
|
+
- Updated dependencies [c15bfdf]
|
|
506
|
+
- Updated dependencies [e4535ff]
|
|
507
|
+
- @ant-design/web3-assets@0.1.1
|
|
508
|
+
- @ant-design/web3-common@0.1.1
|
|
509
|
+
|
|
510
|
+
## 0.1.0
|
|
511
|
+
|
|
512
|
+
### Patch Changes
|
|
513
|
+
|
|
514
|
+
- Release new alpha version
|
|
515
|
+
- Updated dependencies
|
|
516
|
+
- @ant-design/web3-assets@0.1.0
|
|
517
|
+
- @ant-design/web3-common@0.1.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Ant Design Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChainAssetWithWagmiChain } from './interface';
|
|
2
|
+
export declare const Mainnet: ChainAssetWithWagmiChain;
|
|
3
|
+
export declare const Goerli: ChainAssetWithWagmiChain;
|
|
4
|
+
export declare const Sepolia: ChainAssetWithWagmiChain;
|
|
5
|
+
export declare const Holesky: ChainAssetWithWagmiChain;
|
|
6
|
+
export declare const Polygon: ChainAssetWithWagmiChain;
|
|
7
|
+
export declare const BSC: ChainAssetWithWagmiChain;
|
|
8
|
+
export declare const Arbitrum: ChainAssetWithWagmiChain;
|
|
9
|
+
export declare const Optimism: ChainAssetWithWagmiChain;
|
|
10
|
+
export declare const Avalanche: ChainAssetWithWagmiChain;
|
|
11
|
+
export declare const Base: ChainAssetWithWagmiChain;
|
|
12
|
+
export declare const X1Testnet: ChainAssetWithWagmiChain;
|
|
13
|
+
export declare const Scroll: ChainAssetWithWagmiChain;
|
|
14
|
+
export declare const ScrollSepolia: ChainAssetWithWagmiChain;
|
|
15
|
+
export declare const Hardhat: ChainAssetWithWagmiChain;
|
|
16
|
+
export declare const Localhost: ChainAssetWithWagmiChain;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Arbitrum as ArbitrumAsset, Avalanche as AvalancheAsset, Base as BaseAsset, BSC as BSCAsset, Goerli as GoerliAsset, Hardhat as HardhatAsset, Holesky as HoleskyAsset, Localhost as LocalhostAsset, Mainnet as MainnetAsset, Optimism as OptimismAsset, Polygon as PolygonAsset, Scroll as ScrollAsset, ScrollSepolia as ScrollSepoliaAsset, Sepolia as SepoliaAsset, X1Testnet as X1TestnetAsset } from '@ant-design/web3-assets';
|
|
2
|
+
import { arbitrum, avalanche, base, bsc, goerli, hardhat, holesky, localhost, mainnet, optimism, polygon, scroll, scrollSepolia, sepolia } from 'wagmi/chains';
|
|
3
|
+
export const Mainnet = {
|
|
4
|
+
...MainnetAsset,
|
|
5
|
+
wagmiChain: mainnet
|
|
6
|
+
};
|
|
7
|
+
export const Goerli = {
|
|
8
|
+
...GoerliAsset,
|
|
9
|
+
wagmiChain: goerli
|
|
10
|
+
};
|
|
11
|
+
export const Sepolia = {
|
|
12
|
+
...SepoliaAsset,
|
|
13
|
+
wagmiChain: sepolia
|
|
14
|
+
};
|
|
15
|
+
export const Holesky = {
|
|
16
|
+
...HoleskyAsset,
|
|
17
|
+
wagmiChain: holesky
|
|
18
|
+
};
|
|
19
|
+
export const Polygon = {
|
|
20
|
+
...PolygonAsset,
|
|
21
|
+
wagmiChain: polygon
|
|
22
|
+
};
|
|
23
|
+
export const BSC = {
|
|
24
|
+
...BSCAsset,
|
|
25
|
+
wagmiChain: bsc
|
|
26
|
+
};
|
|
27
|
+
export const Arbitrum = {
|
|
28
|
+
...ArbitrumAsset,
|
|
29
|
+
wagmiChain: arbitrum
|
|
30
|
+
};
|
|
31
|
+
export const Optimism = {
|
|
32
|
+
...OptimismAsset,
|
|
33
|
+
wagmiChain: optimism
|
|
34
|
+
};
|
|
35
|
+
export const Avalanche = {
|
|
36
|
+
...AvalancheAsset,
|
|
37
|
+
wagmiChain: avalanche
|
|
38
|
+
};
|
|
39
|
+
export const Base = {
|
|
40
|
+
...BaseAsset,
|
|
41
|
+
wagmiChain: base
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// OKX X1: https://www.okx.com/cn/x1/docs/developer/build-on-x1/quickstart
|
|
45
|
+
export const X1Testnet = {
|
|
46
|
+
...X1TestnetAsset,
|
|
47
|
+
wagmiChain: {
|
|
48
|
+
id: X1TestnetAsset.id,
|
|
49
|
+
name: X1TestnetAsset.name,
|
|
50
|
+
nativeCurrency: {
|
|
51
|
+
name: 'OKB',
|
|
52
|
+
symbol: 'OKB',
|
|
53
|
+
decimals: 18
|
|
54
|
+
},
|
|
55
|
+
rpcUrls: {
|
|
56
|
+
default: {
|
|
57
|
+
http: ['https://testrpc.x1.tech']
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
blockExplorers: {
|
|
61
|
+
default: {
|
|
62
|
+
name: 'X1TestnetScan',
|
|
63
|
+
url: 'https://www.okx.com/explorer/x1-test'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
export const Scroll = {
|
|
69
|
+
...ScrollAsset,
|
|
70
|
+
wagmiChain: scroll
|
|
71
|
+
};
|
|
72
|
+
export const ScrollSepolia = {
|
|
73
|
+
...ScrollSepoliaAsset,
|
|
74
|
+
wagmiChain: scrollSepolia
|
|
75
|
+
};
|
|
76
|
+
export const Hardhat = {
|
|
77
|
+
...HardhatAsset,
|
|
78
|
+
wagmiChain: hardhat
|
|
79
|
+
};
|
|
80
|
+
export const Localhost = {
|
|
81
|
+
...LocalhostAsset,
|
|
82
|
+
wagmiChain: localhost
|
|
83
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Chain, ConnectOptions, UniversalEIP6963Config, Wallet, WalletMetadata } from '@ant-design/web3-common';
|
|
2
|
+
import type { Chain as WagmiChain } from 'viem';
|
|
3
|
+
import type { CreateSiweMessageParameters } from 'viem/siwe';
|
|
4
|
+
import type { Connector, CreateConnectorFn } from 'wagmi';
|
|
5
|
+
export interface WalletUseInWagmiAdapter extends Wallet {
|
|
6
|
+
getWagmiConnector?: (options?: ConnectOptions) => Promise<Connector | undefined>;
|
|
7
|
+
}
|
|
8
|
+
export type EthereumWallet = (metadata?: Partial<WalletMetadata>) => WalletFactory;
|
|
9
|
+
export interface CreateWalletOptions {
|
|
10
|
+
useWalletConnectOfficialModal?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface WalletFactory {
|
|
13
|
+
name?: string;
|
|
14
|
+
connectors: Connector['name'][];
|
|
15
|
+
create: (connector?: readonly Connector[], options?: CreateWalletOptions) => WalletUseInWagmiAdapter;
|
|
16
|
+
createWagmiConnector?: () => CreateConnectorFn;
|
|
17
|
+
}
|
|
18
|
+
export type EIP6963Config = boolean | UniversalEIP6963Config;
|
|
19
|
+
export type ChainAssetWithWagmiChain = Chain & {
|
|
20
|
+
wagmiChain?: WagmiChain;
|
|
21
|
+
};
|
|
22
|
+
export interface SIWEConfig {
|
|
23
|
+
getNonce: (address: string, chainId?: number) => Promise<string>;
|
|
24
|
+
createMessage: (args: CreateSiweMessageParameters) => string;
|
|
25
|
+
verifyMessage: (message: string, signature: string) => Promise<boolean>;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|