@openzeppelin/ui-builder-adapter-evm 0.11.1 → 0.12.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openzeppelin/ui-builder-adapter-evm",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "private": false,
5
5
  "description": "EVM Adapter for UI Builder",
6
6
  "keywords": [
@@ -39,13 +39,14 @@
39
39
  "@openzeppelin/relayer-sdk": "1.4.0",
40
40
  "@wagmi/connectors": "5.7.13",
41
41
  "@wagmi/core": "^2.20.3",
42
+ "@web3icons/react": "^4.0.19",
42
43
  "lodash": "^4.17.21",
43
44
  "lucide-react": "^0.510.0",
44
45
  "react-hook-form": "^7.62.0",
45
- "@openzeppelin/ui-builder-react-core": "^0.10.0",
46
- "@openzeppelin/ui-builder-types": "^0.10.1",
47
- "@openzeppelin/ui-builder-utils": "^0.10.1",
48
- "@openzeppelin/ui-builder-ui": "^0.10.1"
46
+ "@openzeppelin/ui-builder-react-core": "^0.12.0",
47
+ "@openzeppelin/ui-builder-types": "^0.12.0",
48
+ "@openzeppelin/ui-builder-ui": "^0.12.0",
49
+ "@openzeppelin/ui-builder-utils": "^0.12.0"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@rainbow-me/rainbowkit": "^2.2.8",
@@ -1,3 +1,15 @@
1
+ import {
2
+ NetworkArbitrumOne,
3
+ NetworkAvalanche,
4
+ NetworkBase,
5
+ NetworkBinanceSmartChain,
6
+ NetworkEthereum,
7
+ NetworkLinea,
8
+ NetworkOptimism,
9
+ NetworkPolygon,
10
+ NetworkScroll,
11
+ NetworkZksync,
12
+ } from '@web3icons/react';
1
13
  import {
2
14
  arbitrum as viemArbitrum,
3
15
  avalanche as viemAvalanche,
@@ -28,7 +40,7 @@ export const ethereumMainnet: TypedEvmNetworkConfig = {
28
40
  apiUrl: 'https://api.etherscan.io/v2/api',
29
41
  primaryExplorerApiIdentifier: 'etherscan-v2',
30
42
  supportsEtherscanV2: true,
31
- icon: 'ethereum',
43
+ iconComponent: NetworkEthereum,
32
44
  nativeCurrency: {
33
45
  name: 'Ether',
34
46
  symbol: 'ETH',
@@ -51,7 +63,7 @@ export const arbitrumMainnet: TypedEvmNetworkConfig = {
51
63
  apiUrl: 'https://api.etherscan.io/v2/api',
52
64
  primaryExplorerApiIdentifier: 'etherscan-v2',
53
65
  supportsEtherscanV2: true,
54
- icon: 'arbitrum',
66
+ iconComponent: NetworkArbitrumOne,
55
67
  nativeCurrency: {
56
68
  name: 'Ether',
57
69
  symbol: 'ETH',
@@ -74,7 +86,7 @@ export const polygonMainnet: TypedEvmNetworkConfig = {
74
86
  apiUrl: 'https://api.etherscan.io/v2/api',
75
87
  primaryExplorerApiIdentifier: 'etherscan-v2',
76
88
  supportsEtherscanV2: true,
77
- icon: 'polygon',
89
+ iconComponent: NetworkPolygon,
78
90
  nativeCurrency: {
79
91
  name: 'MATIC',
80
92
  symbol: 'MATIC',
@@ -97,7 +109,7 @@ export const polygonZkEvmMainnet: TypedEvmNetworkConfig = {
97
109
  apiUrl: 'https://api.etherscan.io/v2/api',
98
110
  primaryExplorerApiIdentifier: 'etherscan-v2',
99
111
  supportsEtherscanV2: true,
100
- icon: 'polygon',
112
+ iconComponent: NetworkPolygon,
101
113
  nativeCurrency: {
102
114
  name: 'Ether',
103
115
  symbol: 'ETH',
@@ -120,7 +132,7 @@ export const baseMainnet: TypedEvmNetworkConfig = {
120
132
  apiUrl: 'https://api.etherscan.io/v2/api',
121
133
  primaryExplorerApiIdentifier: 'etherscan-v2',
122
134
  supportsEtherscanV2: true,
123
- icon: 'base',
135
+ iconComponent: NetworkBase,
124
136
  nativeCurrency: {
125
137
  name: 'Ether',
126
138
  symbol: 'ETH',
@@ -143,7 +155,7 @@ export const bscMainnet: TypedEvmNetworkConfig = {
143
155
  apiUrl: 'https://api.etherscan.io/v2/api',
144
156
  primaryExplorerApiIdentifier: 'etherscan-v2',
145
157
  supportsEtherscanV2: true,
146
- icon: 'bsc',
158
+ iconComponent: NetworkBinanceSmartChain,
147
159
  nativeCurrency: {
148
160
  name: 'BNB',
149
161
  symbol: 'BNB',
@@ -166,7 +178,7 @@ export const optimismMainnet: TypedEvmNetworkConfig = {
166
178
  apiUrl: 'https://api.etherscan.io/v2/api',
167
179
  primaryExplorerApiIdentifier: 'etherscan-v2',
168
180
  supportsEtherscanV2: true,
169
- icon: 'optimism',
181
+ iconComponent: NetworkOptimism,
170
182
  nativeCurrency: {
171
183
  name: 'Ether',
172
184
  symbol: 'ETH',
@@ -189,7 +201,7 @@ export const avalancheMainnet: TypedEvmNetworkConfig = {
189
201
  apiUrl: 'https://api.etherscan.io/v2/api',
190
202
  primaryExplorerApiIdentifier: 'etherscan-v2',
191
203
  supportsEtherscanV2: true,
192
- icon: 'avalanche',
204
+ iconComponent: NetworkAvalanche,
193
205
  nativeCurrency: {
194
206
  name: 'Avalanche',
195
207
  symbol: 'AVAX',
@@ -213,7 +225,7 @@ export const zkSyncEraMainnet: TypedEvmNetworkConfig = {
213
225
  apiUrl: 'https://block-explorer-api.mainnet.zksync.io/api',
214
226
  primaryExplorerApiIdentifier: 'zksync-era-mainnet',
215
227
  supportsEtherscanV2: false,
216
- icon: 'zksync',
228
+ iconComponent: NetworkZksync,
217
229
  nativeCurrency: {
218
230
  name: 'Ether',
219
231
  symbol: 'ETH',
@@ -236,7 +248,7 @@ export const scrollMainnet: TypedEvmNetworkConfig = {
236
248
  apiUrl: 'https://api.etherscan.io/v2/api',
237
249
  primaryExplorerApiIdentifier: 'etherscan-v2',
238
250
  supportsEtherscanV2: true,
239
- icon: 'scroll',
251
+ iconComponent: NetworkScroll,
240
252
  nativeCurrency: {
241
253
  name: 'Ether',
242
254
  symbol: 'ETH',
@@ -259,7 +271,7 @@ export const lineaMainnet: TypedEvmNetworkConfig = {
259
271
  apiUrl: 'https://api.etherscan.io/v2/api',
260
272
  primaryExplorerApiIdentifier: 'etherscan-v2',
261
273
  supportsEtherscanV2: true,
262
- icon: 'linea',
274
+ iconComponent: NetworkLinea,
263
275
  nativeCurrency: {
264
276
  name: 'Ether',
265
277
  symbol: 'ETH',
@@ -1,3 +1,16 @@
1
+ import {
2
+ NetworkArbitrumOne,
3
+ NetworkAvalanche,
4
+ NetworkBase,
5
+ NetworkBinanceSmartChain,
6
+ NetworkEthereum,
7
+ NetworkLinea,
8
+ NetworkMonad,
9
+ NetworkOptimism,
10
+ NetworkPolygon,
11
+ NetworkScroll,
12
+ NetworkZksync,
13
+ } from '@web3icons/react';
1
14
  import {
2
15
  arbitrumSepolia as viemArbitrumSepolia,
3
16
  avalancheFuji as viemAvalancheFuji,
@@ -29,7 +42,7 @@ export const ethereumSepolia: TypedEvmNetworkConfig = {
29
42
  apiUrl: 'https://api.etherscan.io/v2/api',
30
43
  primaryExplorerApiIdentifier: 'etherscan-v2',
31
44
  supportsEtherscanV2: true,
32
- icon: 'ethereum',
45
+ iconComponent: NetworkEthereum,
33
46
  nativeCurrency: {
34
47
  name: 'Sepolia Ether',
35
48
  symbol: 'ETH',
@@ -52,7 +65,7 @@ export const arbitrumSepolia: TypedEvmNetworkConfig = {
52
65
  apiUrl: 'https://api.etherscan.io/v2/api',
53
66
  primaryExplorerApiIdentifier: 'etherscan-v2',
54
67
  supportsEtherscanV2: true,
55
- icon: 'arbitrum',
68
+ iconComponent: NetworkArbitrumOne,
56
69
  nativeCurrency: {
57
70
  name: 'Arbitrum Sepolia Ether',
58
71
  symbol: 'ETH',
@@ -75,7 +88,7 @@ export const polygonAmoy: TypedEvmNetworkConfig = {
75
88
  apiUrl: 'https://api.etherscan.io/v2/api',
76
89
  primaryExplorerApiIdentifier: 'etherscan-v2',
77
90
  supportsEtherscanV2: true,
78
- icon: 'polygon',
91
+ iconComponent: NetworkPolygon,
79
92
  nativeCurrency: {
80
93
  name: 'MATIC',
81
94
  symbol: 'MATIC',
@@ -98,7 +111,7 @@ export const polygonZkEvmCardona: TypedEvmNetworkConfig = {
98
111
  apiUrl: 'https://api.etherscan.io/v2/api',
99
112
  primaryExplorerApiIdentifier: 'etherscan-v2',
100
113
  supportsEtherscanV2: true,
101
- icon: 'polygon',
114
+ iconComponent: NetworkPolygon,
102
115
  nativeCurrency: {
103
116
  name: 'Ether',
104
117
  symbol: 'ETH',
@@ -121,7 +134,7 @@ export const baseSepolia: TypedEvmNetworkConfig = {
121
134
  apiUrl: 'https://api.etherscan.io/v2/api',
122
135
  primaryExplorerApiIdentifier: 'etherscan-v2',
123
136
  supportsEtherscanV2: true,
124
- icon: 'base',
137
+ iconComponent: NetworkBase,
125
138
  nativeCurrency: {
126
139
  name: 'Sepolia Ether',
127
140
  symbol: 'ETH',
@@ -144,7 +157,7 @@ export const bscTestnet: TypedEvmNetworkConfig = {
144
157
  apiUrl: 'https://api.etherscan.io/v2/api',
145
158
  primaryExplorerApiIdentifier: 'etherscan-v2',
146
159
  supportsEtherscanV2: true,
147
- icon: 'bsc',
160
+ iconComponent: NetworkBinanceSmartChain,
148
161
  nativeCurrency: {
149
162
  name: 'BNB',
150
163
  symbol: 'BNB',
@@ -167,7 +180,7 @@ export const optimismSepolia: TypedEvmNetworkConfig = {
167
180
  apiUrl: 'https://api.etherscan.io/v2/api',
168
181
  primaryExplorerApiIdentifier: 'etherscan-v2',
169
182
  supportsEtherscanV2: true,
170
- icon: 'optimism',
183
+ iconComponent: NetworkOptimism,
171
184
  nativeCurrency: {
172
185
  name: 'Sepolia Ether',
173
186
  symbol: 'ETH',
@@ -191,7 +204,7 @@ export const avalancheFuji: TypedEvmNetworkConfig = {
191
204
  primaryExplorerApiIdentifier: 'etherscan-v2', // Unified identifier for V2 API
192
205
  supportsEtherscanV2: true,
193
206
  requiresExplorerApiKey: true,
194
- icon: 'avalanche',
207
+ iconComponent: NetworkAvalanche,
195
208
  nativeCurrency: {
196
209
  name: 'Avalanche',
197
210
  symbol: 'AVAX',
@@ -215,7 +228,7 @@ export const zksyncSepoliaTestnet: TypedEvmNetworkConfig = {
215
228
  apiUrl: 'https://block-explorer-api.sepolia.zksync.dev/api',
216
229
  primaryExplorerApiIdentifier: 'zksync-era-sepolia',
217
230
  supportsEtherscanV2: false,
218
- icon: 'zksync',
231
+ iconComponent: NetworkZksync,
219
232
  nativeCurrency: {
220
233
  name: 'Ether',
221
234
  symbol: 'ETH',
@@ -238,7 +251,7 @@ export const scrollSepolia: TypedEvmNetworkConfig = {
238
251
  apiUrl: 'https://api.etherscan.io/v2/api',
239
252
  primaryExplorerApiIdentifier: 'etherscan-v2',
240
253
  supportsEtherscanV2: true,
241
- icon: 'scroll',
254
+ iconComponent: NetworkScroll,
242
255
  nativeCurrency: {
243
256
  name: 'Ether',
244
257
  symbol: 'ETH',
@@ -261,7 +274,7 @@ export const lineaSepolia: TypedEvmNetworkConfig = {
261
274
  apiUrl: 'https://api.etherscan.io/v2/api',
262
275
  primaryExplorerApiIdentifier: 'etherscan-v2',
263
276
  supportsEtherscanV2: true,
264
- icon: 'linea',
277
+ iconComponent: NetworkLinea,
265
278
  nativeCurrency: {
266
279
  name: 'Linea Ether',
267
280
  symbol: 'ETH',
@@ -284,7 +297,7 @@ export const monadTestnet: TypedEvmNetworkConfig = {
284
297
  apiUrl: 'https://api.etherscan.io/v2/api',
285
298
  primaryExplorerApiIdentifier: 'etherscan-v2',
286
299
  supportsEtherscanV2: true,
287
- icon: 'monad',
300
+ iconComponent: NetworkMonad,
288
301
  nativeCurrency: {
289
302
  name: 'Monad',
290
303
  symbol: 'MON',