@instadapp/avocado-base 0.2.2 → 0.2.3
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/.vscode/settings.json +64 -65
- package/abi/avoFactoryProxy.json +1 -1
- package/abi/forwarder.json +1 -1
- package/abi/multisigAgnosticForwarder.json +936 -937
- package/abi/multisigForwarder.json +680 -680
- package/app.vue +5 -5
- package/components/ActionLogo.vue +15 -15
- package/components/AuthorityAvatar.vue +8 -6
- package/components/ChainLogo.vue +19 -15
- package/components/CopyClipboard.vue +1 -1
- package/components/metadata/Bridge.vue +22 -23
- package/components/metadata/GasTopup.vue +14 -15
- package/components/metadata/Permit2.vue +12 -13
- package/eslint.config.mjs +14 -0
- package/nuxt.config.ts +4 -0
- package/package.json +5 -5
- package/server/utils/index.ts +4 -4
- package/utils/avocado.ts +17 -17
- package/utils/bignumber.ts +47 -36
- package/utils/formatter.ts +54 -60
- package/utils/helper.ts +33 -30
- package/utils/metadata.ts +366 -403
- package/utils/network.ts +2 -2
- package/utils/services.ts +11 -13
package/.vscode/settings.json
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"/\\*ui\\*/\\s*{([^;]*)}",
|
|
16
|
-
":\\s*[\"'`]([^\"'`]*).*?[\"'`]"
|
|
17
|
-
]
|
|
2
|
+
"files.associations": {
|
|
3
|
+
"*.css": "tailwindcss"
|
|
4
|
+
},
|
|
5
|
+
"editor.quickSuggestions": {
|
|
6
|
+
"strings": true
|
|
7
|
+
},
|
|
8
|
+
"tailwindCSS.experimental.configFile": "tailwind.config.ts",
|
|
9
|
+
"tailwindCSS.experimental.classRegex": [
|
|
10
|
+
[
|
|
11
|
+
"ui:\\s*{([^)]*)\\s*}",
|
|
12
|
+
"[\"'`]([^\"'`]*).*?[\"'`]"
|
|
18
13
|
],
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"ui"
|
|
23
|
-
],
|
|
24
|
-
"editor.tabSize": 2,
|
|
25
|
-
"editor.detectIndentation": false,
|
|
26
|
-
// Enable the ESlint flat config support
|
|
27
|
-
"eslint.useFlatConfig": true,
|
|
28
|
-
|
|
29
|
-
// Disable the default formatter, use eslint instead
|
|
30
|
-
"prettier.enable": false,
|
|
31
|
-
"editor.formatOnSave": false,
|
|
32
|
-
|
|
33
|
-
// Auto fix
|
|
34
|
-
"editor.codeActionsOnSave": {
|
|
35
|
-
"source.fixAll.eslint": "explicit",
|
|
36
|
-
"source.organizeImports": "never"
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
40
|
-
"eslint.rules.customizations": [
|
|
41
|
-
{ "rule": "style/*", "severity": "off" },
|
|
42
|
-
{ "rule": "format/*", "severity": "off" },
|
|
43
|
-
{ "rule": "*-indent", "severity": "off" },
|
|
44
|
-
{ "rule": "*-spacing", "severity": "off" },
|
|
45
|
-
{ "rule": "*-spaces", "severity": "off" },
|
|
46
|
-
{ "rule": "*-order", "severity": "off" },
|
|
47
|
-
{ "rule": "*-dangle", "severity": "off" },
|
|
48
|
-
{ "rule": "*-newline", "severity": "off" },
|
|
49
|
-
{ "rule": "*quotes", "severity": "off" },
|
|
50
|
-
{ "rule": "*semi", "severity": "off" }
|
|
51
|
-
],
|
|
52
|
-
|
|
53
|
-
// Enable eslint for all supported languages
|
|
54
|
-
"eslint.validate": [
|
|
55
|
-
"javascript",
|
|
56
|
-
"javascriptreact",
|
|
57
|
-
"typescript",
|
|
58
|
-
"typescriptreact",
|
|
59
|
-
"vue",
|
|
60
|
-
"html",
|
|
61
|
-
"markdown",
|
|
62
|
-
"json",
|
|
63
|
-
"jsonc",
|
|
64
|
-
"yaml",
|
|
65
|
-
"toml"
|
|
14
|
+
[
|
|
15
|
+
"/\\*ui\\*/\\s*{([^;]*)}",
|
|
16
|
+
":\\s*[\"'`]([^\"'`]*).*?[\"'`]"
|
|
66
17
|
]
|
|
67
|
-
|
|
68
|
-
|
|
18
|
+
],
|
|
19
|
+
"tailwindCSS.classAttributes": [
|
|
20
|
+
"class",
|
|
21
|
+
"className",
|
|
22
|
+
"ui"
|
|
23
|
+
],
|
|
24
|
+
"editor.tabSize": 2,
|
|
25
|
+
"editor.detectIndentation": false,
|
|
26
|
+
// Enable the ESlint flat config support
|
|
27
|
+
"eslint.useFlatConfig": true,
|
|
28
|
+
|
|
29
|
+
// Disable the default formatter, use eslint instead
|
|
30
|
+
"prettier.enable": false,
|
|
31
|
+
"editor.formatOnSave": false,
|
|
32
|
+
|
|
33
|
+
// Auto fix
|
|
34
|
+
"editor.codeActionsOnSave": {
|
|
35
|
+
"source.fixAll.eslint": "explicit",
|
|
36
|
+
"source.organizeImports": "never"
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
40
|
+
"eslint.rules.customizations": [
|
|
41
|
+
{ "rule": "style/*", "severity": "off" },
|
|
42
|
+
{ "rule": "format/*", "severity": "off" },
|
|
43
|
+
{ "rule": "*-indent", "severity": "off" },
|
|
44
|
+
{ "rule": "*-spacing", "severity": "off" },
|
|
45
|
+
{ "rule": "*-spaces", "severity": "off" },
|
|
46
|
+
{ "rule": "*-order", "severity": "off" },
|
|
47
|
+
{ "rule": "*-dangle", "severity": "off" },
|
|
48
|
+
{ "rule": "*-newline", "severity": "off" },
|
|
49
|
+
{ "rule": "*quotes", "severity": "off" },
|
|
50
|
+
{ "rule": "*semi", "severity": "off" }
|
|
51
|
+
],
|
|
52
|
+
|
|
53
|
+
// Enable eslint for all supported languages
|
|
54
|
+
"eslint.validate": [
|
|
55
|
+
"javascript",
|
|
56
|
+
"javascriptreact",
|
|
57
|
+
"typescript",
|
|
58
|
+
"typescriptreact",
|
|
59
|
+
"vue",
|
|
60
|
+
"html",
|
|
61
|
+
"markdown",
|
|
62
|
+
"json",
|
|
63
|
+
"jsonc",
|
|
64
|
+
"yaml",
|
|
65
|
+
"toml"
|
|
66
|
+
]
|
|
67
|
+
}
|
package/abi/avoFactoryProxy.json
CHANGED
package/abi/forwarder.json
CHANGED