@instadapp/avocado-base 0.3.4 → 0.3.6
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/nuxt.config.ts +1 -15
- package/package.json +9 -11
- package/utils/network.ts +24 -27
- package/utils/utils.d.ts +1 -0
- package/components.d.ts +0 -13
- package/eslint.config.mjs +0 -34
package/nuxt.config.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// import ViteComponents from "unplugin-vue-components/vite";
|
|
3
3
|
|
|
4
4
|
export default defineNuxtConfig({
|
|
5
|
-
modules: ['@nuxtjs/tailwindcss', 'nuxt-svgo', '@vueuse/nuxt'
|
|
5
|
+
modules: ['@nuxtjs/tailwindcss', 'nuxt-svgo', '@vueuse/nuxt'],
|
|
6
6
|
|
|
7
7
|
svgo: {
|
|
8
8
|
defaultImport: 'component',
|
|
@@ -11,19 +11,5 @@ export default defineNuxtConfig({
|
|
|
11
11
|
plugins: ['prefixIds'],
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
|
-
|
|
15
|
-
// vite: {
|
|
16
|
-
// plugins: [
|
|
17
|
-
// ViteComponents({
|
|
18
|
-
// dts: true,
|
|
19
|
-
// }),
|
|
20
|
-
// ],
|
|
21
|
-
// },
|
|
22
|
-
eslint: {
|
|
23
|
-
config: {
|
|
24
|
-
standalone: false,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
|
|
28
14
|
compatibilityDate: '2024-09-18',
|
|
29
15
|
})
|
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.6",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"types": "global.d.ts",
|
|
7
7
|
"engines": {
|
|
@@ -15,18 +15,16 @@
|
|
|
15
15
|
"typecheck": "nuxi typecheck"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"xxhashjs": "^0.2.2"
|
|
18
|
+
"@vueuse/nuxt": "10.2.0",
|
|
19
|
+
"bignumber.js": "9.1.1",
|
|
20
|
+
"ethers": "5.7.2",
|
|
21
|
+
"viem": "2.47.4",
|
|
22
|
+
"xxhashjs": "0.2.2"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@nuxtjs/tailwindcss": "^6.12.1",
|
|
25
|
+
"@nuxtjs/tailwindcss": "6.12.1",
|
|
28
26
|
"nuxt": "3.13.2",
|
|
29
|
-
"nuxt-svgo": "
|
|
30
|
-
"vue-tippy": "
|
|
27
|
+
"nuxt-svgo": "4.2.6",
|
|
28
|
+
"vue-tippy": "6.0.0"
|
|
31
29
|
}
|
|
32
30
|
}
|
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: ink.blockExplorers.default.url,
|
|
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,
|
package/utils/utils.d.ts
CHANGED
package/components.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* prettier-ignore */
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
// Generated by unplugin-vue-components
|
|
5
|
-
// Read more: https://github.com/vuejs/core/pull/3399
|
|
6
|
-
export {}
|
|
7
|
-
|
|
8
|
-
declare module 'vue' {
|
|
9
|
-
export interface GlobalComponents {
|
|
10
|
-
RouterLink: typeof import('vue-router')['RouterLink']
|
|
11
|
-
RouterView: typeof import('vue-router')['RouterView']
|
|
12
|
-
}
|
|
13
|
-
}
|
package/eslint.config.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
import antfu from '@antfu/eslint-config'
|
|
3
|
-
import withNuxt from './.nuxt/eslint.config.mjs'
|
|
4
|
-
|
|
5
|
-
export default withNuxt(
|
|
6
|
-
antfu({
|
|
7
|
-
ignores: [
|
|
8
|
-
'*.png',
|
|
9
|
-
'*.ico',
|
|
10
|
-
'*.toml',
|
|
11
|
-
'*.yml',
|
|
12
|
-
'.github/',
|
|
13
|
-
'deployments/',
|
|
14
|
-
'*.patch',
|
|
15
|
-
'*.txt',
|
|
16
|
-
'Dockerfile',
|
|
17
|
-
'public/',
|
|
18
|
-
'contracts/',
|
|
19
|
-
'yarn.lock',
|
|
20
|
-
],
|
|
21
|
-
yaml: false,
|
|
22
|
-
rules: {
|
|
23
|
-
'style/max-statements-per-line': 'off',
|
|
24
|
-
'max-statements-per-line': 'off',
|
|
25
|
-
'@stylistic/max-statements-per-line': 'off',
|
|
26
|
-
'vue/return-in-computed-property': 'off',
|
|
27
|
-
'no-console': 'off',
|
|
28
|
-
'ts/ban-ts-comment': 'off',
|
|
29
|
-
'vue/prop-name-casing': 'off',
|
|
30
|
-
'node/prefer-global/process': 'off',
|
|
31
|
-
'eqeqeq': 'off',
|
|
32
|
-
},
|
|
33
|
-
}),
|
|
34
|
-
)
|