@instadapp/avocado-base 0.0.71 → 0.0.74
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.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M16.0678 8.64793L17.2102 9.79039C17.4404 10.0205 17.4334 10.4006 17.1947 10.6393L14.169 13.6651C13.9302 13.9038 13.5501 13.9108 13.32 13.6806L12.0532 12.4139C11.8231 12.1837 11.83 11.8036 12.0687 11.5649C12.6078 11.0259 12.9103 10.7041 12.4882 9.98816C12.128 9.37711 10.7867 8.04387 9.9829 8.84766L9.026 9.80457C8.79152 10.0391 8.42065 10.0499 8.18946 9.83216C8.18527 9.82822 8.18113 9.8242 8.17704 9.82011C7.60427 9.24734 6.86936 8.69159 6.39943 8.03122C6.20623 7.75971 6.27917 7.35876 6.56293 7.14058C7.13082 6.70394 7.83604 6.05667 7.51626 5.73688C7.00756 5.22819 6.64232 4.84336 6.00502 4.36291C4.84749 3.49024 2.98873 2.86307 1.68669 2.5009C1.49898 2.44869 1.54877 2.11407 1.74553 2.11091C1.74865 2.11086 1.74938 2.1109 1.7525 2.11067C1.8512 2.10361 5.1158 1.87459 7.10771 2.35491C8.41273 2.66961 9.17363 2.87223 10.3122 3.56383C11.7706 4.44979 12.9611 5.54124 13.3465 6.69684C13.732 7.85244 12.8562 8.45813 13.6146 8.8618C14.0693 9.10386 14.6271 9.08774 15.0305 8.72253C15.3277 8.4534 15.7944 8.37456 16.0678 8.64793Z" fill="currentColor"/>
|
|
4
|
+
<path d="M8.17704 9.82011C8.18113 9.8242 8.18527 9.82822 8.18946 9.83216M8.17704 9.82011L8.18946 9.83216M8.17704 9.82011C7.60427 9.24734 6.86936 8.69159 6.39943 8.03122M8.18946 9.83216C8.42065 10.0499 8.79152 10.0391 9.026 9.80457L9.9829 8.84766C10.7867 8.04387 12.128 9.37711 12.4882 9.98816C12.9103 10.7041 12.6078 11.0259 12.0687 11.5649C11.83 11.8036 11.8231 12.1837 12.0532 12.4139L13.32 13.6806C13.5501 13.9108 13.9302 13.9038 14.169 13.6651L17.1947 10.6393C17.4334 10.4006 17.4404 10.0205 17.2102 9.79039L16.0678 8.64793C15.7944 8.37456 15.3277 8.4534 15.0305 8.72253C14.6271 9.08774 14.0693 9.10386 13.6146 8.8618C12.8562 8.45813 13.732 7.85244 13.3465 6.69684C12.9611 5.54124 11.7706 4.44979 10.3122 3.56383C9.17363 2.87223 8.41273 2.66961 7.10771 2.35492C5.1158 1.87459 1.8512 2.10361 1.7525 2.11067C1.74938 2.1109 1.74865 2.11086 1.74553 2.11091C1.54877 2.11407 1.49898 2.44869 1.68669 2.5009C2.98873 2.86307 4.84749 3.49024 6.00502 4.36291C6.64232 4.84336 7.00756 5.22819 7.51626 5.73688C7.83604 6.05667 7.13082 6.70394 6.56293 7.14058C6.27917 7.35876 6.20623 7.75971 6.39943 8.03122M8.18946 9.83216L2.8021 15.2195C2.47839 15.5432 1.97213 15.6105 1.60516 15.3369C1.46424 15.2318 1.32499 15.1183 1.2164 15.0097C1.1078 14.9011 0.994378 14.7619 0.889279 14.621C0.615587 14.254 0.682904 13.7477 1.00661 13.424L6.39943 8.03122" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
@@ -13,6 +13,7 @@ import InstadappProSVG from '~/assets/images/icons/instadapp-pro.svg'
|
|
|
13
13
|
import PermitSignSVG from '~/assets/images/icons/permit-sign.svg'
|
|
14
14
|
import RejectProposalSVG from '~/assets/images/icons/reject-proposal.svg'
|
|
15
15
|
import UpgradeSVG from '~/assets/images/icons/upgrade.svg'
|
|
16
|
+
import HammerSVG from '~/assets/images/icons/hammer.svg'
|
|
16
17
|
|
|
17
18
|
defineProps<{
|
|
18
19
|
action: MetadataTypes
|
|
@@ -35,4 +36,5 @@ defineProps<{
|
|
|
35
36
|
<InstadappProSVG v-else-if="action === 'instadapp-pro'"/>
|
|
36
37
|
<PermitSignSVG v-else-if="action === 'permit2'"/>
|
|
37
38
|
<UpgradeSVG v-else-if="action === 'upgrade'"/>
|
|
39
|
+
<HammerSVG v-else-if="action === 'transaction-builder'"/>
|
|
38
40
|
</template>
|
|
@@ -53,6 +53,9 @@ provide('tokens', props.tokens);
|
|
|
53
53
|
{{ chainIdToName(metadata.chainId) }}
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
|
+
<div v-if="metadata.type === 'transaction-builder'" class="self-start capitalize flex gap-3">
|
|
57
|
+
Transaction Builder ({{ metadata?.actionCount }} actions)
|
|
58
|
+
</div>
|
|
56
59
|
<div v-if="metadata.type === 'instadapp-pro'" class="self-start capitalize flex gap-3">
|
|
57
60
|
Instadapp Pro |
|
|
58
61
|
{{ metadata?.castDetails }}
|
|
@@ -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
package/utils/metadata.ts
CHANGED
|
@@ -2,24 +2,25 @@ import { ethers, utils } from "ethers";
|
|
|
2
2
|
import { Forwarder__factory, MultisigForwarder__factory } from "../contracts";
|
|
3
3
|
import { toBN } from "./bignumber";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
export const MetadataEnums = {
|
|
6
|
+
transfer: "transfer",
|
|
7
|
+
bridge: "bridge",
|
|
8
|
+
swap: "swap",
|
|
9
|
+
"gas-topup": "gas-topup",
|
|
10
|
+
upgrade: "upgrade",
|
|
11
|
+
dapp: "dapp",
|
|
12
|
+
deploy: "deploy",
|
|
13
|
+
permit2: "permit2",
|
|
14
|
+
"cross-transfer": "cross-transfer",
|
|
15
|
+
auth: "auth",
|
|
16
|
+
rejection: "rejection",
|
|
17
|
+
"instadapp-pro": "instadapp-pro",
|
|
18
|
+
"add-signers": "add-signers",
|
|
19
|
+
"remove-signers": "remove-signers",
|
|
20
|
+
"change-threshold": "change-threshold",
|
|
21
|
+
import: "import",
|
|
22
|
+
"transaction-builder": "transaction-builder",
|
|
23
|
+
} as const;
|
|
23
24
|
|
|
24
25
|
const multiMetadataTypes = ["bytes[]"];
|
|
25
26
|
|
|
@@ -54,9 +55,10 @@ const actionMetadataTypes: Record<MetadataTypes, string[]> = {
|
|
|
54
55
|
"gas-topup": ["uint256 amount", "address token", "address onBehalf"],
|
|
55
56
|
upgrade: ["bytes32 version", "address walletImpl"],
|
|
56
57
|
dapp: ["string name", "string url"],
|
|
57
|
-
|
|
58
|
+
import: ["bytes32 protocol", "uint256 valueInUsd"],
|
|
58
59
|
auth: ["address address", "uint256 chainId", "bool remove"],
|
|
59
60
|
deploy: [],
|
|
61
|
+
"transaction-builder": ["bytes32 actionCount"],
|
|
60
62
|
permit2: [
|
|
61
63
|
"address token",
|
|
62
64
|
"address spender",
|
|
@@ -64,10 +66,10 @@ const actionMetadataTypes: Record<MetadataTypes, string[]> = {
|
|
|
64
66
|
"uint48 expiration",
|
|
65
67
|
],
|
|
66
68
|
"instadapp-pro": ["string castDetails"],
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
"add-signers": ["address[] signers"],
|
|
70
|
+
"remove-signers": ["address[] signers"],
|
|
71
|
+
"change-threshold": ["uint8 count"],
|
|
72
|
+
rejection: ["bytes32 id"],
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
const encodeMetadata = (props: MetadataProps) => {
|
|
@@ -175,6 +177,23 @@ export const encodeDeployMetadata = (single = true) => {
|
|
|
175
177
|
return single ? encodeMultipleActions(data) : data;
|
|
176
178
|
};
|
|
177
179
|
|
|
180
|
+
export const encodeTransactionBuilderMetadata = (
|
|
181
|
+
actionCount: string,
|
|
182
|
+
single = true
|
|
183
|
+
) => {
|
|
184
|
+
const encodedData = ethers.utils.defaultAbiCoder.encode(
|
|
185
|
+
actionMetadataTypes["transaction-builder"],
|
|
186
|
+
[actionCount]
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
const data = encodeMetadata({
|
|
190
|
+
type: MetadataEnums["transaction-builder"],
|
|
191
|
+
encodedData,
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
return single ? encodeMultipleActions(data) : data;
|
|
195
|
+
};
|
|
196
|
+
|
|
178
197
|
export const encodeWCSignMetadata = (
|
|
179
198
|
params: SignMetadataProps,
|
|
180
199
|
single = true
|
|
@@ -408,7 +427,6 @@ const getMetadataFromData = (data: string) => {
|
|
|
408
427
|
return metadata;
|
|
409
428
|
};
|
|
410
429
|
|
|
411
|
-
|
|
412
430
|
const typesPayload: IPayload = {
|
|
413
431
|
import: (data, type) => ({
|
|
414
432
|
type,
|
|
@@ -450,15 +468,19 @@ const typesPayload: IPayload = {
|
|
|
450
468
|
token: data.token,
|
|
451
469
|
onBehalf: data.onBehalf,
|
|
452
470
|
}),
|
|
453
|
-
|
|
471
|
+
dapp: (data, type) => ({
|
|
454
472
|
type,
|
|
455
473
|
name: data.name,
|
|
456
474
|
url: data.url,
|
|
457
475
|
}),
|
|
458
|
-
|
|
476
|
+
deploy: (data, type) => ({
|
|
477
|
+
type,
|
|
478
|
+
}),
|
|
479
|
+
"transaction-builder": (data, type) => ({
|
|
459
480
|
type,
|
|
481
|
+
actionCount: data.actionCount ? toBN(data.actionCount).toNumber() : 0,
|
|
460
482
|
}),
|
|
461
|
-
|
|
483
|
+
permit2: (data, type) => ({
|
|
462
484
|
type,
|
|
463
485
|
token: data.token,
|
|
464
486
|
spender: data.spender,
|
|
@@ -473,7 +495,7 @@ const typesPayload: IPayload = {
|
|
|
473
495
|
amount: toBN(data.amount).toFixed(),
|
|
474
496
|
receiver: data.receiver,
|
|
475
497
|
}),
|
|
476
|
-
|
|
498
|
+
auth: (data) => ({
|
|
477
499
|
type: data.remove ? "remove-authority" : "add-authority",
|
|
478
500
|
address: data.address,
|
|
479
501
|
chainId: data.chainId ? data.chainId.toString() : null,
|
|
@@ -483,7 +505,7 @@ const typesPayload: IPayload = {
|
|
|
483
505
|
type,
|
|
484
506
|
castDetails: data.castDetails,
|
|
485
507
|
}),
|
|
486
|
-
|
|
508
|
+
rejection: (data, type) => ({
|
|
487
509
|
type,
|
|
488
510
|
id: data.id,
|
|
489
511
|
}),
|
|
@@ -525,20 +547,17 @@ const parseMetadata = (metadata: string) => {
|
|
|
525
547
|
decodedMetadata.data
|
|
526
548
|
);
|
|
527
549
|
|
|
528
|
-
const payloadFunc = typesPayload[type]
|
|
529
|
-
|
|
550
|
+
const payloadFunc = typesPayload[type];
|
|
551
|
+
|
|
530
552
|
if (payloadFunc) {
|
|
531
|
-
const payload = payloadFunc(decodedData, type)
|
|
553
|
+
const payload = payloadFunc(decodedData, type);
|
|
532
554
|
metadataArr.push(payload);
|
|
533
555
|
}
|
|
534
|
-
|
|
535
556
|
}
|
|
536
557
|
|
|
537
558
|
return metadataArr;
|
|
538
559
|
};
|
|
539
560
|
|
|
540
|
-
|
|
541
|
-
|
|
542
561
|
/**
|
|
543
562
|
* Replaces hyphens with spaces and capitalizes the first letter of each word in a sentence.
|
|
544
563
|
* @param {string} txType - The input sentence to modify
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
90
|
+
name: "Base",
|
|
91
91
|
chainId: 8453,
|
|
92
|
-
color:
|
|
93
|
-
ankrName:
|
|
94
|
-
explorerUrl:
|
|
95
|
-
apiURL:
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
rpcUrls: [
|
|
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:
|
|
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:
|
|
139
|
+
ankrName: "polygon_zkevm",
|
|
140
140
|
explorerUrl: "https://zkevm.polygonscan.com",
|
|
141
|
-
apiURL:
|
|
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:
|
|
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:
|
|
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:
|
|
232
|
+
ankrName: "gnosis",
|
|
233
233
|
chainId: 100,
|
|
234
234
|
balanceResolverAddress: "0xfaa244e276b1597f663975ed007ee4ff70d27849",
|
|
235
235
|
explorerUrl: "https://gnosisscan.io",
|
|
236
|
-
apiURL:
|
|
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:
|
|
316
|
-
{ chainId: 10, address:
|
|
317
|
-
{ chainId: 56, address:
|
|
318
|
-
{ chainId: 100, address:
|
|
319
|
-
{ chainId: 137, address:
|
|
320
|
-
{ chainId: 250, address:
|
|
321
|
-
{ chainId: 42161, address:
|
|
322
|
-
{ chainId: 42161, address:
|
|
323
|
-
{ chainId: 43114, address:
|
|
324
|
-
{ chainId: 43114, address:
|
|
325
|
-
{ chainId: 1101, address:
|
|
326
|
-
{
|
|
327
|
-
|
|
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 {};
|