@instadapp/avocado-base 0.0.71 → 0.0.73

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.
@@ -13,7 +13,8 @@ defineProps<{
13
13
 
14
14
  <template>
15
15
  <div class="font-medium">
16
- <div v-if="!compact || metadata.addresses.length < 3" class="flex gap-[14px] flex-wrap">
16
+ <div v-if="!compact || metadata.addresses.length < 3" class="flex gap-[14px] flex-wrap items-end">
17
+ <p v-if="!compact" class="text-xs"> {{ formatTxType(metadata.type) }} </p>
17
18
  <div v-for="address of metadata.addresses" :key="address" class="flex gap-2 rounded-full bg-slate-100 dark:bg-slate-800 justify-start items-center px-2 py-1.5">
18
19
  <AuthorityAvatar :address="address" class="w-[18px] h-[18px]" />
19
20
  <Tippy max-width="none" interactive>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/avocado-base",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
package/utils/network.ts CHANGED
@@ -8,11 +8,11 @@ import {
8
8
  AVO_STAGING_CHAIN_ID,
9
9
  AVO_STAGING_RPC_URL,
10
10
  AVO_STAGING_EXPLORER_URL,
11
- } from './avocado'
11
+ } from "./avocado";
12
12
 
13
13
  export const bridgeDisabledNetworks = [];
14
14
 
15
- export const networksSimulationNotSupported = [1313161554, 1101]
15
+ export const networksSimulationNotSupported = [1313161554, 1101];
16
16
 
17
17
  export const networks: Network[] = [
18
18
  {
@@ -25,7 +25,7 @@ export const networks: Network[] = [
25
25
  balanceResolverAddress: "0x58632D23120b20650262b8A629a14e4F4043E0D9",
26
26
  usdcAddress: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
27
27
  explorerUrl: "https://polygonscan.com",
28
- apiURL: 'https://api.polygonscan.com',
28
+ apiURL: "https://api.polygonscan.com",
29
29
  get serverRpcUrl() {
30
30
  return process.env?.POLYGON_RPC_URL || this.params.rpcUrls[0];
31
31
  },
@@ -49,7 +49,7 @@ export const networks: Network[] = [
49
49
  usdcAddress: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
50
50
  balanceResolverAddress: "0xca5f37e6D8bB24c5A7958d5eccE7Bd9Aacc944f2",
51
51
  explorerUrl: "https://arbiscan.io",
52
- apiURL: 'https://api.arbiscan.io',
52
+ apiURL: "https://api.arbiscan.io",
53
53
  get serverRpcUrl() {
54
54
  return process.env?.ARBITRUM_RPC_URL || this.params.rpcUrls[0];
55
55
  },
@@ -70,7 +70,7 @@ export const networks: Network[] = [
70
70
  zerionName: "ethereum",
71
71
  chainId: 1,
72
72
  explorerUrl: "https://etherscan.io",
73
- apiURL: 'https://api.etherscan.io',
73
+ apiURL: "https://api.etherscan.io",
74
74
  color: "#5D5FEF",
75
75
  get serverRpcUrl() {
76
76
  return process.env?.MAINNET_RPC_URL || this.params.rpcUrls[0];
@@ -85,28 +85,28 @@ export const networks: Network[] = [
85
85
  decimals: 18,
86
86
  },
87
87
  },
88
- },
88
+ },
89
89
  {
90
- name: 'Base',
90
+ name: "Base",
91
91
  chainId: 8453,
92
- color: '#1E2024',
93
- ankrName:'base',
94
- explorerUrl: 'https://basescan.org',
95
- apiURL: 'https://api.basescan.org',
92
+ color: "#1E2024",
93
+ ankrName: "base",
94
+ explorerUrl: "https://basescan.org",
95
+ apiURL: "https://api.basescan.org",
96
96
  get serverRpcUrl() {
97
97
  return process.env?.BASE_RPC_URL || this.params.rpcUrls[0];
98
- },
99
- usdcAddress: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
100
- balanceResolverAddress: '0x23c8EAb8a4373dD16b0947Ebe8bf76Ff7A49d13C',
101
- params: {
102
- rpcUrls: ['https://rpc.ankr.com/base'],
98
+ },
99
+ usdcAddress: "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
100
+ balanceResolverAddress: "0x23c8EAb8a4373dD16b0947Ebe8bf76Ff7A49d13C",
101
+ params: {
102
+ rpcUrls: ["https://rpc.ankr.com/base"],
103
103
  chainName: "Base",
104
104
  nativeCurrency: {
105
105
  name: "Ethereum",
106
106
  symbol: "ETH",
107
107
  decimals: 18,
108
108
  },
109
- }
109
+ },
110
110
  },
111
111
  {
112
112
  name: "Optimism",
@@ -115,7 +115,7 @@ export const networks: Network[] = [
115
115
  zerionName: "optimism",
116
116
  color: "#FF0420",
117
117
  chainId: 10,
118
- apiURL: 'https://api-optimistic.etherscan.io',
118
+ apiURL: "https://api-optimistic.etherscan.io",
119
119
  usdcAddress: "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
120
120
  balanceResolverAddress: "0xca5f37e6D8bB24c5A7958d5eccE7Bd9Aacc944f2",
121
121
  explorerUrl: "https://optimistic.etherscan.io",
@@ -136,9 +136,9 @@ export const networks: Network[] = [
136
136
  name: "Polygon zkEVM",
137
137
  chainId: 1101,
138
138
  color: "#8544f6",
139
- ankrName: 'polygon_zkevm',
139
+ ankrName: "polygon_zkevm",
140
140
  explorerUrl: "https://zkevm.polygonscan.com",
141
- apiURL: 'https://api-zkevm.polygonscan.com',
141
+ apiURL: "https://api-zkevm.polygonscan.com",
142
142
  balanceResolverAddress: "0x48D1Fa5Ee6691a1E0B45d2B515650997BEA27a01",
143
143
  usdcAddress: "0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035",
144
144
  get serverRpcUrl() {
@@ -162,7 +162,7 @@ export const networks: Network[] = [
162
162
  color: "#F3BA2F",
163
163
  chainId: 56,
164
164
  explorerUrl: "https://bscscan.com",
165
- apiURL: 'https://api.bscscan.com',
165
+ apiURL: "https://api.bscscan.com",
166
166
  usdcAddress: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
167
167
  balanceResolverAddress: "0xb808cff38706e267067b0af427726aa099f69f89",
168
168
  get serverRpcUrl() {
@@ -188,7 +188,7 @@ export const networks: Network[] = [
188
188
  usdcAddress: "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
189
189
  balanceResolverAddress: "0x63009f31D054E0ac9F321Cf0D642375236A4Bf1E",
190
190
  explorerUrl: "https://snowtrace.io",
191
- apiURL: 'https://api.snowtrace.io',
191
+ apiURL: "https://api.snowtrace.io",
192
192
  get serverRpcUrl() {
193
193
  return process.env?.AVALANCHE_RPC_URL || this.params.rpcUrls[0];
194
194
  },
@@ -229,11 +229,11 @@ export const networks: Network[] = [
229
229
  debankName: "xdai",
230
230
  zerionName: "xdai",
231
231
  color: "#04795C",
232
- ankrName: 'gnosis',
232
+ ankrName: "gnosis",
233
233
  chainId: 100,
234
234
  balanceResolverAddress: "0xfaa244e276b1597f663975ed007ee4ff70d27849",
235
235
  explorerUrl: "https://gnosisscan.io",
236
- apiURL:'https://api.gnosisscan.io',
236
+ apiURL: "https://api.gnosisscan.io",
237
237
  usdcAddress: "0xddafbb505ad214d7b80b1f830fccc89b60fb7a83",
238
238
  get serverRpcUrl() {
239
239
  return process.env?.GNOSIS_RPC_URL || this.params.rpcUrls[0];
@@ -269,6 +269,27 @@ export const networks: Network[] = [
269
269
  },
270
270
  },
271
271
  },
272
+ {
273
+ name: "Fuse",
274
+ chainId: 122,
275
+ zerionName: "fuse",
276
+ color: "#78d64b",
277
+ explorerUrl: "https://explorer.fuse.io",
278
+ get serverRpcUrl() {
279
+ return process.env?.FUSE_RPC_URL || this.params.rpcUrls[0];
280
+ },
281
+ usdcAddress: "",
282
+ balanceResolverAddress: "0xdF19Da523DA64bBE82eE0E4DFf00d676A8386474",
283
+ params: {
284
+ rpcUrls: ["https://fuse-mainnet.chainstacklabs.com"],
285
+ chainName: "Fuse",
286
+ nativeCurrency: {
287
+ decimals: 18,
288
+ name: "Fuse",
289
+ symbol: "fuse",
290
+ },
291
+ },
292
+ },
272
293
  {
273
294
  name: AVO_PROD_CHAIN_NAME,
274
295
  chainId: AVO_PROD_CHAIN_ID,
@@ -312,19 +333,22 @@ export const networks: Network[] = [
312
333
  ];
313
334
 
314
335
  export const chainUsdcAddresses = [
315
- { chainId: 1, address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' },
316
- { chainId: 10, address: '0x7f5c764cbc14f9669b88837ca1490cca17c31607' },
317
- { chainId: 56, address: '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d' },
318
- { chainId: 100, address: '0xddafbb505ad214d7b80b1f830fccc89b60fb7a83' },
319
- { chainId: 137, address: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174' },
320
- { chainId: 250, address: '0x04068da6c83afcfa0e13ba15a6696662335d5b75' },
321
- { chainId: 42161, address: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' },
322
- { chainId: 42161, address: '0xaf88d065e77c8cc2239327c5edb3a432268e5831' },
323
- { chainId: 43114, address: '0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e' },
324
- { chainId: 43114, address: '0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664' },
325
- { chainId: 1101, address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
326
- { chainId: 1313161554, address: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802' },
327
- { chainId: 8453, address: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA'}
336
+ { chainId: 1, address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" },
337
+ { chainId: 10, address: "0x7f5c764cbc14f9669b88837ca1490cca17c31607" },
338
+ { chainId: 56, address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" },
339
+ { chainId: 100, address: "0xddafbb505ad214d7b80b1f830fccc89b60fb7a83" },
340
+ { chainId: 137, address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174" },
341
+ { chainId: 250, address: "0x04068da6c83afcfa0e13ba15a6696662335d5b75" },
342
+ { chainId: 42161, address: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" },
343
+ { chainId: 42161, address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831" },
344
+ { chainId: 43114, address: "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e" },
345
+ { chainId: 43114, address: "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664" },
346
+ { chainId: 1101, address: "0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035" },
347
+ {
348
+ chainId: 1313161554,
349
+ address: "0xB12BFcA5A55806AaF64E99521918A4bf0fC40802",
350
+ },
351
+ { chainId: 8453, address: "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA" },
328
352
  ];
329
353
 
330
354
  export const getNetworkByChainId = (
package/utils/utils.d.ts CHANGED
@@ -12,8 +12,9 @@ declare global {
12
12
  | 634
13
13
  | 1313161554
14
14
  | 8453
15
+ | 122
15
16
  | 63400;
16
-
17
+
17
18
  type ISlackMessageType = "danger" | "error" | "success" | "banner";
18
19
 
19
20
  type MetadataTypes = keyof typeof MetadataEnums;
@@ -110,7 +111,7 @@ declare global {
110
111
  };
111
112
 
112
113
  type MetadataProps = {
113
- type: MetadataTypes,
114
+ type: MetadataTypes;
114
115
  encodedData: string;
115
116
  version?: string;
116
117
  };
@@ -126,8 +127,6 @@ declare global {
126
127
  coingecko_id: string;
127
128
  sparkline_price_7d: number[];
128
129
  }
129
-
130
130
  }
131
131
 
132
- export { }
133
-
132
+ export {};