@instadapp/avocado-base 0.0.0-dev.f5f443b → 0.0.0-dev.f6bd350

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.
Files changed (95) hide show
  1. package/.github/workflows/npm-publish-dev.yml +2 -5
  2. package/.vscode/settings.json +67 -0
  3. package/abi/avoFactoryProxy.json +1 -1
  4. package/abi/forwarder.json +9 -9
  5. package/abi/multisigAgnosticForwarder.json +937 -0
  6. package/abi/multisigForwarder.json +697 -0
  7. package/app.vue +9 -2
  8. package/assets/images/icons/arrow-left.svg +5 -0
  9. package/assets/images/icons/arrow-right.svg +5 -0
  10. package/assets/images/icons/avocado.svg +4 -0
  11. package/assets/images/icons/bridge-2.svg +3 -0
  12. package/assets/images/icons/bridge.svg +7 -0
  13. package/assets/images/icons/calendar.svg +8 -0
  14. package/assets/images/icons/change-threshold.svg +4 -0
  15. package/assets/images/icons/check-circle.svg +4 -0
  16. package/assets/images/icons/check.svg +3 -0
  17. package/assets/images/icons/chevron-down.svg +4 -0
  18. package/assets/images/icons/clipboard.svg +7 -0
  19. package/assets/images/icons/clock-circle.svg +5 -0
  20. package/assets/images/icons/copy.svg +12 -0
  21. package/assets/images/icons/cross-transfer.svg +7 -0
  22. package/assets/images/icons/dapp.svg +4 -0
  23. package/assets/images/icons/deploy.svg +12 -0
  24. package/assets/images/icons/error-circle.svg +6 -0
  25. package/assets/images/icons/exclamation-circle.svg +13 -0
  26. package/assets/images/icons/exclamation-octagon.svg +13 -0
  27. package/assets/images/icons/exclamation-triangle.svg +5 -0
  28. package/assets/images/icons/external-link.svg +6 -0
  29. package/assets/images/icons/eye.svg +4 -0
  30. package/assets/images/icons/flowers.svg +8 -0
  31. package/assets/images/icons/gas-emoji.svg +193 -0
  32. package/assets/images/icons/gas.svg +14 -0
  33. package/assets/images/icons/gift.svg +153 -0
  34. package/assets/images/icons/globe.svg +110 -0
  35. package/assets/images/icons/hamburger.svg +6 -0
  36. package/assets/images/icons/hammer.svg +5 -0
  37. package/assets/images/icons/info-2.svg +12 -0
  38. package/assets/images/icons/instadapp-pro.svg +4 -0
  39. package/assets/images/icons/logout.svg +3 -0
  40. package/assets/images/icons/moon.svg +3 -0
  41. package/assets/images/icons/multi-send.svg +7 -0
  42. package/assets/images/icons/network.svg +13 -0
  43. package/assets/images/icons/options.svg +5 -0
  44. package/assets/images/icons/permit-sign.svg +11 -0
  45. package/assets/images/icons/plus-circle.svg +6 -0
  46. package/assets/images/icons/plus.svg +5 -0
  47. package/assets/images/icons/power-off-bg.svg +24 -0
  48. package/assets/images/icons/power-off.svg +19 -0
  49. package/assets/images/icons/power-on.svg +19 -0
  50. package/assets/images/icons/qr.svg +20 -0
  51. package/assets/images/icons/question-circle.svg +14 -0
  52. package/assets/images/icons/refresh.svg +6 -0
  53. package/assets/images/icons/reject-proposal.svg +6 -0
  54. package/assets/images/icons/search.svg +12 -0
  55. package/assets/images/icons/stars.svg +4 -0
  56. package/assets/images/icons/sun.svg +3 -0
  57. package/assets/images/icons/transfer.svg +5 -0
  58. package/assets/images/icons/trash-2.svg +8 -0
  59. package/assets/images/icons/upgrade.svg +4 -0
  60. package/assets/images/icons/wave.svg +214 -0
  61. package/assets/images/icons/x.svg +5 -0
  62. package/components/ActionLogo.vue +42 -0
  63. package/components/ActionMetadata.vue +88 -0
  64. package/components/Address.vue +74 -0
  65. package/components/AuthorityAvatar.vue +39 -0
  66. package/components/ChainLogo.vue +18 -563
  67. package/components/CopyClipboard.vue +42 -0
  68. package/components/metadata/Bridge.vue +58 -0
  69. package/components/metadata/CrossTransfer.vue +76 -0
  70. package/components/metadata/GasTopup.vue +38 -0
  71. package/components/metadata/Permit2.vue +41 -0
  72. package/components/metadata/Signers.vue +19 -0
  73. package/components/metadata/Swap.vue +66 -0
  74. package/components/metadata/Transfer.vue +48 -0
  75. package/components.d.ts +13 -0
  76. package/contracts/Forwarder.ts +4 -4
  77. package/contracts/MultisigAgnosticForwarder.ts +1423 -0
  78. package/contracts/MultisigForwarder.ts +859 -0
  79. package/contracts/factories/Forwarder__factory.ts +8 -8
  80. package/contracts/factories/MultisigAgnosticForwarder__factory.ts +2135 -0
  81. package/contracts/factories/MultisigForwarder__factory.ts +721 -0
  82. package/contracts/factories/index.ts +2 -0
  83. package/contracts/index.ts +4 -0
  84. package/eslint.config.mjs +34 -0
  85. package/nuxt.config.ts +27 -2
  86. package/package.json +17 -12
  87. package/server/utils/index.ts +4 -4
  88. package/utils/avocado.ts +18 -16
  89. package/utils/bignumber.ts +60 -29
  90. package/utils/formatter.ts +55 -61
  91. package/utils/helper.ts +39 -28
  92. package/utils/metadata.ts +569 -321
  93. package/utils/network.ts +552 -184
  94. package/utils/services.ts +19 -0
  95. package/utils/utils.d.ts +146 -116
@@ -3,7 +3,7 @@ name: NPM Publish(Dev)
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - 'main'
6
+ - "main"
7
7
 
8
8
  jobs:
9
9
  dev-npm-publish:
@@ -18,7 +18,7 @@ jobs:
18
18
 
19
19
  - uses: actions/setup-node@v3
20
20
  with:
21
- node-version: 16
21
+ node-version: ">=v18.18.0"
22
22
 
23
23
  - uses: actions/cache@v3
24
24
  with:
@@ -48,6 +48,3 @@ jobs:
48
48
  token: ${{ secrets.NPM_AUTH_TOKEN }}
49
49
  tag: dev
50
50
  access: public
51
-
52
-
53
-
@@ -0,0 +1,67 @@
1
+ {
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
+ "[\"'`]([^\"'`]*).*?[\"'`]"
13
+ ],
14
+ [
15
+ "/\\*ui\\*/\\s*{([^;]*)}",
16
+ ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"
17
+ ]
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
+ }
@@ -106,4 +106,4 @@
106
106
  "stateMutability": "nonpayable",
107
107
  "type": "function"
108
108
  }
109
- ]
109
+ ]
@@ -527,7 +527,7 @@
527
527
  },
528
528
  {
529
529
  "internalType": "uint256",
530
- "name": "validUntil",
530
+ "name": "gasPrice",
531
531
  "type": "uint256"
532
532
  },
533
533
  {
@@ -537,7 +537,7 @@
537
537
  },
538
538
  {
539
539
  "internalType": "uint256",
540
- "name": "gasPrice",
540
+ "name": "validUntil",
541
541
  "type": "uint256"
542
542
  }
543
543
  ],
@@ -780,7 +780,7 @@
780
780
  },
781
781
  {
782
782
  "internalType": "uint256",
783
- "name": "validUntil",
783
+ "name": "gasPrice",
784
784
  "type": "uint256"
785
785
  },
786
786
  {
@@ -790,7 +790,7 @@
790
790
  },
791
791
  {
792
792
  "internalType": "uint256",
793
- "name": "gasPrice",
793
+ "name": "validUntil",
794
794
  "type": "uint256"
795
795
  }
796
796
  ],
@@ -1114,7 +1114,7 @@
1114
1114
  },
1115
1115
  {
1116
1116
  "internalType": "uint256",
1117
- "name": "validUntil",
1117
+ "name": "gasPrice",
1118
1118
  "type": "uint256"
1119
1119
  },
1120
1120
  {
@@ -1124,7 +1124,7 @@
1124
1124
  },
1125
1125
  {
1126
1126
  "internalType": "uint256",
1127
- "name": "gasPrice",
1127
+ "name": "validUntil",
1128
1128
  "type": "uint256"
1129
1129
  }
1130
1130
  ],
@@ -1385,7 +1385,7 @@
1385
1385
  },
1386
1386
  {
1387
1387
  "internalType": "uint256",
1388
- "name": "validUntil",
1388
+ "name": "gasPrice",
1389
1389
  "type": "uint256"
1390
1390
  },
1391
1391
  {
@@ -1395,7 +1395,7 @@
1395
1395
  },
1396
1396
  {
1397
1397
  "internalType": "uint256",
1398
- "name": "gasPrice",
1398
+ "name": "validUntil",
1399
1399
  "type": "uint256"
1400
1400
  }
1401
1401
  ],
@@ -1432,4 +1432,4 @@
1432
1432
  "stateMutability": "nonpayable",
1433
1433
  "type": "function"
1434
1434
  }
1435
- ]
1435
+ ]