@instadapp/avocado-base 0.0.0-dev.19925f5 → 0.0.0-dev.21292ef

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 (107) hide show
  1. package/.github/workflows/npm-publish-dev.yml +2 -5
  2. package/.vscode/settings.json +68 -0
  3. package/abi/avoFactoryProxy.json +109 -0
  4. package/abi/balanceResolver.json +110 -0
  5. package/abi/erc20.json +350 -0
  6. package/abi/forwarder.json +1435 -0
  7. package/abi/gaslessWallet.json +289 -0
  8. package/abi/multisigAgnosticForwarder.json +938 -0
  9. package/abi/multisigForwarder.json +697 -0
  10. package/app.vue +27 -0
  11. package/assets/images/icons/arrow-left.svg +5 -0
  12. package/assets/images/icons/arrow-right.svg +5 -0
  13. package/assets/images/icons/avocado.svg +4 -0
  14. package/assets/images/icons/bridge-2.svg +3 -0
  15. package/assets/images/icons/bridge.svg +7 -0
  16. package/assets/images/icons/calendar.svg +8 -0
  17. package/assets/images/icons/change-threshold.svg +4 -0
  18. package/assets/images/icons/check-circle.svg +4 -0
  19. package/assets/images/icons/check.svg +3 -0
  20. package/assets/images/icons/chevron-down.svg +4 -0
  21. package/assets/images/icons/clipboard.svg +7 -0
  22. package/assets/images/icons/clock-circle.svg +5 -0
  23. package/assets/images/icons/copy.svg +12 -0
  24. package/assets/images/icons/cross-transfer.svg +7 -0
  25. package/assets/images/icons/dapp.svg +4 -0
  26. package/assets/images/icons/deploy.svg +12 -0
  27. package/assets/images/icons/error-circle.svg +6 -0
  28. package/assets/images/icons/exclamation-circle.svg +13 -0
  29. package/assets/images/icons/exclamation-octagon.svg +13 -0
  30. package/assets/images/icons/exclamation-triangle.svg +5 -0
  31. package/assets/images/icons/external-link.svg +6 -0
  32. package/assets/images/icons/eye.svg +4 -0
  33. package/assets/images/icons/flowers.svg +8 -0
  34. package/assets/images/icons/gas-emoji.svg +193 -0
  35. package/assets/images/icons/gas.svg +14 -0
  36. package/assets/images/icons/gift.svg +153 -0
  37. package/assets/images/icons/globe.svg +110 -0
  38. package/assets/images/icons/hamburger.svg +6 -0
  39. package/assets/images/icons/hammer.svg +5 -0
  40. package/assets/images/icons/info-2.svg +12 -0
  41. package/assets/images/icons/instadapp-pro.svg +4 -0
  42. package/assets/images/icons/logout.svg +3 -0
  43. package/assets/images/icons/moon.svg +3 -0
  44. package/assets/images/icons/multi-send.svg +7 -0
  45. package/assets/images/icons/network.svg +13 -0
  46. package/assets/images/icons/options.svg +5 -0
  47. package/assets/images/icons/permit-sign.svg +11 -0
  48. package/assets/images/icons/plus-circle.svg +6 -0
  49. package/assets/images/icons/plus.svg +5 -0
  50. package/assets/images/icons/power-off-bg.svg +24 -0
  51. package/assets/images/icons/power-off.svg +19 -0
  52. package/assets/images/icons/power-on.svg +19 -0
  53. package/assets/images/icons/qr.svg +20 -0
  54. package/assets/images/icons/question-circle.svg +14 -0
  55. package/assets/images/icons/refresh.svg +6 -0
  56. package/assets/images/icons/reject-proposal.svg +6 -0
  57. package/assets/images/icons/search.svg +12 -0
  58. package/assets/images/icons/stars.svg +4 -0
  59. package/assets/images/icons/sun.svg +3 -0
  60. package/assets/images/icons/transfer.svg +5 -0
  61. package/assets/images/icons/trash-2.svg +8 -0
  62. package/assets/images/icons/upgrade.svg +4 -0
  63. package/assets/images/icons/wave.svg +214 -0
  64. package/assets/images/icons/x.svg +5 -0
  65. package/components/ActionLogo.vue +42 -0
  66. package/components/ActionMetadata.vue +88 -0
  67. package/components/Address.vue +74 -0
  68. package/components/AuthorityAvatar.vue +37 -0
  69. package/components/ChainLogo.vue +14 -423
  70. package/components/CopyClipboard.vue +42 -0
  71. package/components/metadata/Bridge.vue +59 -0
  72. package/components/metadata/CrossTransfer.vue +76 -0
  73. package/components/metadata/GasTopup.vue +39 -0
  74. package/components/metadata/Permit2.vue +42 -0
  75. package/components/metadata/Signers.vue +19 -0
  76. package/components/metadata/Swap.vue +66 -0
  77. package/components/metadata/Transfer.vue +48 -0
  78. package/components.d.ts +13 -0
  79. package/contracts/AvoFactoryProxy.ts +302 -0
  80. package/contracts/BalanceResolver.ts +321 -0
  81. package/contracts/Erc20.ts +526 -0
  82. package/contracts/Forwarder.ts +1644 -0
  83. package/contracts/GaslessWallet.ts +660 -0
  84. package/contracts/MultisigAgnosticForwarder.ts +1423 -0
  85. package/contracts/MultisigForwarder.ts +859 -0
  86. package/contracts/common.ts +46 -0
  87. package/contracts/factories/AvoFactoryProxy__factory.ts +181 -0
  88. package/contracts/factories/BalanceResolver__factory.ts +212 -0
  89. package/contracts/factories/Erc20__factory.ts +368 -0
  90. package/contracts/factories/Forwarder__factory.ts +1456 -0
  91. package/contracts/factories/GaslessWallet__factory.ts +499 -0
  92. package/contracts/factories/MultisigAgnosticForwarder__factory.ts +2135 -0
  93. package/contracts/factories/MultisigForwarder__factory.ts +721 -0
  94. package/contracts/factories/index.ts +10 -0
  95. package/contracts/index.ts +18 -0
  96. package/eslint.config.mjs +20 -0
  97. package/nuxt.config.ts +23 -2
  98. package/package.json +24 -8
  99. package/server/utils/index.ts +2 -0
  100. package/utils/avocado.ts +2 -0
  101. package/utils/bignumber.ts +51 -0
  102. package/utils/formatter.ts +94 -0
  103. package/utils/helper.ts +62 -0
  104. package/utils/metadata.ts +694 -0
  105. package/utils/network.ts +560 -91
  106. package/utils/services.ts +21 -0
  107. package/utils/utils.d.ts +146 -16
@@ -0,0 +1,289 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IGSWVersionsRegistry",
6
+ "name": "gswVersionsRegistry_",
7
+ "type": "address"
8
+ },
9
+ { "internalType": "address", "name": "gswForwarder_", "type": "address" }
10
+ ],
11
+ "stateMutability": "nonpayable",
12
+ "type": "constructor"
13
+ },
14
+ { "inputs": [], "name": "GaslessSmartWallet__Expired", "type": "error" },
15
+ {
16
+ "inputs": [],
17
+ "name": "GaslessSmartWallet__InvalidParams",
18
+ "type": "error"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "GaslessSmartWallet__InvalidSignature",
23
+ "type": "error"
24
+ },
25
+ { "inputs": [], "name": "GaslessSmartWallet__Unauthorized", "type": "error" },
26
+ { "inputs": [], "name": "SelfUpgradeable__Unauthorized", "type": "error" },
27
+ {
28
+ "anonymous": false,
29
+ "inputs": [
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "source",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": true,
38
+ "internalType": "address",
39
+ "name": "caller",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "bytes",
45
+ "name": "metadata",
46
+ "type": "bytes"
47
+ }
48
+ ],
49
+ "name": "CastExecuted",
50
+ "type": "event"
51
+ },
52
+ {
53
+ "anonymous": false,
54
+ "inputs": [
55
+ {
56
+ "indexed": true,
57
+ "internalType": "address",
58
+ "name": "source",
59
+ "type": "address"
60
+ },
61
+ {
62
+ "indexed": true,
63
+ "internalType": "address",
64
+ "name": "caller",
65
+ "type": "address"
66
+ },
67
+ {
68
+ "indexed": false,
69
+ "internalType": "string",
70
+ "name": "reason",
71
+ "type": "string"
72
+ },
73
+ {
74
+ "indexed": false,
75
+ "internalType": "bytes",
76
+ "name": "metadata",
77
+ "type": "bytes"
78
+ }
79
+ ],
80
+ "name": "CastFailed",
81
+ "type": "event"
82
+ },
83
+ {
84
+ "anonymous": false,
85
+ "inputs": [
86
+ {
87
+ "indexed": false,
88
+ "internalType": "uint8",
89
+ "name": "version",
90
+ "type": "uint8"
91
+ }
92
+ ],
93
+ "name": "Initialized",
94
+ "type": "event"
95
+ },
96
+ {
97
+ "anonymous": false,
98
+ "inputs": [
99
+ {
100
+ "indexed": true,
101
+ "internalType": "address",
102
+ "name": "gswImpl",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "Upgraded",
107
+ "type": "event"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ACTION_TYPE_HASH",
112
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
113
+ "stateMutability": "view",
114
+ "type": "function"
115
+ },
116
+ {
117
+ "inputs": [],
118
+ "name": "CAST_TYPE_HASH",
119
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
120
+ "stateMutability": "view",
121
+ "type": "function"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "DEFAULT_CHAIN_ID",
126
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
127
+ "stateMutability": "view",
128
+ "type": "function"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "DOMAIN_SEPARATOR_NAME",
133
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
134
+ "stateMutability": "view",
135
+ "type": "function"
136
+ },
137
+ {
138
+ "inputs": [],
139
+ "name": "DOMAIN_SEPARATOR_VERSION",
140
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
141
+ "stateMutability": "view",
142
+ "type": "function"
143
+ },
144
+ {
145
+ "inputs": [],
146
+ "name": "TYPE_HASH",
147
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
148
+ "stateMutability": "view",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "components": [
155
+ { "internalType": "address", "name": "target", "type": "address" },
156
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
157
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
158
+ ],
159
+ "internalType": "struct IGaslessSmartWallet.Action[]",
160
+ "name": "actions_",
161
+ "type": "tuple[]"
162
+ }
163
+ ],
164
+ "name": "_callTargets",
165
+ "outputs": [],
166
+ "stateMutability": "payable",
167
+ "type": "function"
168
+ },
169
+ {
170
+ "inputs": [
171
+ {
172
+ "components": [
173
+ { "internalType": "address", "name": "target", "type": "address" },
174
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
175
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
176
+ ],
177
+ "internalType": "struct IGaslessSmartWallet.Action[]",
178
+ "name": "actions_",
179
+ "type": "tuple[]"
180
+ },
181
+ { "internalType": "uint256", "name": "validUntil_", "type": "uint256" },
182
+ { "internalType": "uint256", "name": "gas_", "type": "uint256" },
183
+ { "internalType": "address", "name": "source_", "type": "address" },
184
+ { "internalType": "bytes", "name": "metadata_", "type": "bytes" },
185
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
186
+ ],
187
+ "name": "cast",
188
+ "outputs": [
189
+ { "internalType": "bool", "name": "success_", "type": "bool" },
190
+ { "internalType": "string", "name": "revertReason_", "type": "string" }
191
+ ],
192
+ "stateMutability": "payable",
193
+ "type": "function"
194
+ },
195
+ {
196
+ "inputs": [],
197
+ "name": "domainSeparatorV4",
198
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
199
+ "stateMutability": "view",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "inputs": [],
204
+ "name": "gswForwarder",
205
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
206
+ "stateMutability": "view",
207
+ "type": "function"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "gswNonce",
212
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "gswVersionsRegistry",
219
+ "outputs": [
220
+ {
221
+ "internalType": "contract IGSWVersionsRegistry",
222
+ "name": "",
223
+ "type": "address"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [
231
+ { "internalType": "address", "name": "owner_", "type": "address" }
232
+ ],
233
+ "name": "initialize",
234
+ "outputs": [],
235
+ "stateMutability": "nonpayable",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "owner",
241
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
242
+ "stateMutability": "view",
243
+ "type": "function"
244
+ },
245
+ {
246
+ "inputs": [
247
+ { "internalType": "address", "name": "gswImpl_", "type": "address" }
248
+ ],
249
+ "name": "upgradeTo",
250
+ "outputs": [],
251
+ "stateMutability": "nonpayable",
252
+ "type": "function"
253
+ },
254
+ {
255
+ "inputs": [
256
+ { "internalType": "address", "name": "gswImpl_", "type": "address" },
257
+ { "internalType": "bytes", "name": "data_", "type": "bytes" },
258
+ { "internalType": "bool", "name": "forceCall_", "type": "bool" }
259
+ ],
260
+ "name": "upgradeToAndCall",
261
+ "outputs": [],
262
+ "stateMutability": "payable",
263
+ "type": "function"
264
+ },
265
+ {
266
+ "inputs": [
267
+ {
268
+ "components": [
269
+ { "internalType": "address", "name": "target", "type": "address" },
270
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
271
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
272
+ ],
273
+ "internalType": "struct IGaslessSmartWallet.Action[]",
274
+ "name": "actions_",
275
+ "type": "tuple[]"
276
+ },
277
+ { "internalType": "uint256", "name": "validUntil_", "type": "uint256" },
278
+ { "internalType": "uint256", "name": "gas_", "type": "uint256" },
279
+ { "internalType": "address", "name": "source_", "type": "address" },
280
+ { "internalType": "bytes", "name": "metadata_", "type": "bytes" },
281
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
282
+ ],
283
+ "name": "verify",
284
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
285
+ "stateMutability": "view",
286
+ "type": "function"
287
+ },
288
+ { "stateMutability": "payable", "type": "receive" }
289
+ ]