@instadapp/avocado-base 0.3.5 → 0.3.7
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 +2 -2
- package/utils/network.ts +24 -27
- package/utils/utils.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instadapp/avocado-base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.7",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"types": "global.d.ts",
|
|
7
7
|
"engines": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@vueuse/nuxt": "10.2.0",
|
|
19
19
|
"bignumber.js": "9.1.1",
|
|
20
20
|
"ethers": "5.7.2",
|
|
21
|
-
"viem": "2.
|
|
21
|
+
"viem": "2.47.4",
|
|
22
22
|
"xxhashjs": "0.2.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
package/utils/network.ts
CHANGED
|
@@ -18,6 +18,8 @@ import {
|
|
|
18
18
|
polygon,
|
|
19
19
|
polygonZkEvm,
|
|
20
20
|
scroll,
|
|
21
|
+
ink,
|
|
22
|
+
plasma,
|
|
21
23
|
} from 'viem/chains'
|
|
22
24
|
import {
|
|
23
25
|
AVO_PROD_CHAIN_ID,
|
|
@@ -34,32 +36,6 @@ export const bridgeDisabledNetworks = []
|
|
|
34
36
|
|
|
35
37
|
export const networksSimulationNotSupported = [1313161554, 1101]
|
|
36
38
|
|
|
37
|
-
const plasma = defineChain({
|
|
38
|
-
id: 9745,
|
|
39
|
-
name: 'Plasma',
|
|
40
|
-
nativeCurrency: {
|
|
41
|
-
name: 'Plasma',
|
|
42
|
-
symbol: 'XPL',
|
|
43
|
-
decimals: 18,
|
|
44
|
-
},
|
|
45
|
-
rpcUrls: {
|
|
46
|
-
default: {
|
|
47
|
-
http: ['https://rpc.plasma.to'],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
blockExplorers: {
|
|
51
|
-
default: {
|
|
52
|
-
name: 'PlasmaScan',
|
|
53
|
-
url: 'https://plasmascan.to',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
contracts: {
|
|
57
|
-
multicall3: {
|
|
58
|
-
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
})
|
|
62
|
-
|
|
63
39
|
const avocado = defineChain({
|
|
64
40
|
id: AVO_PROD_CHAIN_ID,
|
|
65
41
|
name: AVO_PROD_CHAIN_NAME,
|
|
@@ -555,7 +531,28 @@ export const networks: Network[] = [
|
|
|
555
531
|
decimals: plasma.nativeCurrency.decimals,
|
|
556
532
|
},
|
|
557
533
|
},
|
|
558
|
-
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
chainId: ink.id,
|
|
537
|
+
name: ink.name,
|
|
538
|
+
apiURL: null,
|
|
539
|
+
color: '#78d64b',
|
|
540
|
+
explorerUrl: 'https://inkonscan.xyz',
|
|
541
|
+
fakeTransactionHash: '0x3523aad6a790c81ef57e1afd4320760b7cea6dd3424ccd582e00ffc9bdc316e6',
|
|
542
|
+
legacySupported: false,
|
|
543
|
+
get serverRpcUrl() {
|
|
544
|
+
return process.env?.INK_RPC_URL || this.params.rpcUrls[0]
|
|
545
|
+
},
|
|
546
|
+
viemChain: ink,
|
|
547
|
+
params: {
|
|
548
|
+
rpcUrls: ink.rpcUrls.default.http,
|
|
549
|
+
chainName: ink.name,
|
|
550
|
+
nativeCurrency: {
|
|
551
|
+
name: ink.nativeCurrency.name,
|
|
552
|
+
symbol: ink.nativeCurrency.symbol,
|
|
553
|
+
decimals: ink.nativeCurrency.decimals,
|
|
554
|
+
},
|
|
555
|
+
},
|
|
559
556
|
},
|
|
560
557
|
// {
|
|
561
558
|
// name: sonic.name,
|