@instadapp/avocado-base 0.0.1 → 0.0.2

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.
@@ -0,0 +1,331 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IAvoFactory",
6
+ "name": "avoFactory_",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ { "inputs": [], "name": "AvoForwarder__InvalidParams", "type": "error" },
14
+ {
15
+ "inputs": [],
16
+ "name": "AvoForwarder__LegacyVersionNotDeployed",
17
+ "type": "error"
18
+ },
19
+ { "inputs": [], "name": "AvoForwarder__Unauthorized", "type": "error" },
20
+ { "inputs": [], "name": "AvoForwarder__VersionMismatch", "type": "error" },
21
+ {
22
+ "anonymous": false,
23
+ "inputs": [
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "avoSafeOwner",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "avoSafeAddress",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": true,
38
+ "internalType": "address",
39
+ "name": "source",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "bytes",
45
+ "name": "metadata",
46
+ "type": "bytes"
47
+ },
48
+ {
49
+ "indexed": false,
50
+ "internalType": "string",
51
+ "name": "reason",
52
+ "type": "string"
53
+ }
54
+ ],
55
+ "name": "ExecuteFailed",
56
+ "type": "event"
57
+ },
58
+ {
59
+ "anonymous": false,
60
+ "inputs": [
61
+ {
62
+ "indexed": true,
63
+ "internalType": "address",
64
+ "name": "avoSafeOwner",
65
+ "type": "address"
66
+ },
67
+ {
68
+ "indexed": true,
69
+ "internalType": "address",
70
+ "name": "avoSafeAddress",
71
+ "type": "address"
72
+ },
73
+ {
74
+ "indexed": true,
75
+ "internalType": "address",
76
+ "name": "source",
77
+ "type": "address"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "internalType": "bytes",
82
+ "name": "metadata",
83
+ "type": "bytes"
84
+ }
85
+ ],
86
+ "name": "Executed",
87
+ "type": "event"
88
+ },
89
+ {
90
+ "anonymous": false,
91
+ "inputs": [
92
+ {
93
+ "indexed": false,
94
+ "internalType": "uint8",
95
+ "name": "version",
96
+ "type": "uint8"
97
+ }
98
+ ],
99
+ "name": "Initialized",
100
+ "type": "event"
101
+ },
102
+ {
103
+ "inputs": [],
104
+ "name": "avoFactory",
105
+ "outputs": [
106
+ { "internalType": "contract IAvoFactory", "name": "", "type": "address" }
107
+ ],
108
+ "stateMutability": "view",
109
+ "type": "function"
110
+ },
111
+ {
112
+ "inputs": [],
113
+ "name": "avoSafeBytecode",
114
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
115
+ "stateMutability": "view",
116
+ "type": "function"
117
+ },
118
+ {
119
+ "inputs": [
120
+ { "internalType": "address", "name": "owner_", "type": "address" }
121
+ ],
122
+ "name": "avoSafeNonce",
123
+ "outputs": [{ "internalType": "uint88", "name": "", "type": "uint88" }],
124
+ "stateMutability": "view",
125
+ "type": "function"
126
+ },
127
+ {
128
+ "inputs": [
129
+ { "internalType": "address", "name": "owner_", "type": "address" }
130
+ ],
131
+ "name": "avoWalletVersion",
132
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
133
+ "stateMutability": "view",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [
138
+ { "internalType": "address", "name": "owner_", "type": "address" }
139
+ ],
140
+ "name": "avoWalletVersionName",
141
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
142
+ "stateMutability": "view",
143
+ "type": "function"
144
+ },
145
+ {
146
+ "inputs": [
147
+ { "internalType": "address", "name": "owner_", "type": "address" }
148
+ ],
149
+ "name": "computeAddress",
150
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
151
+ "stateMutability": "view",
152
+ "type": "function"
153
+ },
154
+ {
155
+ "inputs": [
156
+ { "internalType": "address", "name": "from_", "type": "address" },
157
+ {
158
+ "components": [
159
+ { "internalType": "address", "name": "target", "type": "address" },
160
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
161
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
162
+ ],
163
+ "internalType": "struct IAvoWalletV1.Action[]",
164
+ "name": "actions_",
165
+ "type": "tuple[]"
166
+ },
167
+ { "internalType": "uint256", "name": "validUntil_", "type": "uint256" },
168
+ { "internalType": "uint256", "name": "gas_", "type": "uint256" },
169
+ { "internalType": "address", "name": "source_", "type": "address" },
170
+ { "internalType": "bytes", "name": "metadata_", "type": "bytes" },
171
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
172
+ ],
173
+ "name": "execute",
174
+ "outputs": [],
175
+ "stateMutability": "payable",
176
+ "type": "function"
177
+ },
178
+ {
179
+ "inputs": [
180
+ { "internalType": "address", "name": "from_", "type": "address" },
181
+ {
182
+ "components": [
183
+ { "internalType": "address", "name": "target", "type": "address" },
184
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
185
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
186
+ ],
187
+ "internalType": "struct IAvoWalletV1.Action[]",
188
+ "name": "actions_",
189
+ "type": "tuple[]"
190
+ },
191
+ { "internalType": "uint256", "name": "validUntil_", "type": "uint256" },
192
+ { "internalType": "uint256", "name": "gas_", "type": "uint256" },
193
+ { "internalType": "address", "name": "source_", "type": "address" },
194
+ { "internalType": "bytes", "name": "metadata_", "type": "bytes" },
195
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
196
+ ],
197
+ "name": "executeV1",
198
+ "outputs": [],
199
+ "stateMutability": "payable",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "inputs": [
204
+ { "internalType": "address", "name": "from_", "type": "address" },
205
+ {
206
+ "components": [
207
+ { "internalType": "address", "name": "target", "type": "address" },
208
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
209
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
210
+ { "internalType": "uint256", "name": "operation", "type": "uint256" }
211
+ ],
212
+ "internalType": "struct IAvoWalletV2.Action[]",
213
+ "name": "actions_",
214
+ "type": "tuple[]"
215
+ },
216
+ {
217
+ "components": [
218
+ {
219
+ "internalType": "uint256",
220
+ "name": "validUntil",
221
+ "type": "uint256"
222
+ },
223
+ { "internalType": "uint256", "name": "gas", "type": "uint256" },
224
+ { "internalType": "address", "name": "source", "type": "address" },
225
+ { "internalType": "uint256", "name": "id", "type": "uint256" },
226
+ { "internalType": "bytes", "name": "metadata", "type": "bytes" }
227
+ ],
228
+ "internalType": "struct IAvoWalletV2.CastParams",
229
+ "name": "params_",
230
+ "type": "tuple"
231
+ },
232
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
233
+ ],
234
+ "name": "executeV2",
235
+ "outputs": [],
236
+ "stateMutability": "payable",
237
+ "type": "function"
238
+ },
239
+ {
240
+ "inputs": [],
241
+ "name": "initialize",
242
+ "outputs": [],
243
+ "stateMutability": "nonpayable",
244
+ "type": "function"
245
+ },
246
+ {
247
+ "inputs": [
248
+ { "internalType": "address", "name": "from_", "type": "address" },
249
+ {
250
+ "components": [
251
+ { "internalType": "address", "name": "target", "type": "address" },
252
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
253
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
254
+ ],
255
+ "internalType": "struct IAvoWalletV1.Action[]",
256
+ "name": "actions_",
257
+ "type": "tuple[]"
258
+ },
259
+ { "internalType": "uint256", "name": "validUntil_", "type": "uint256" },
260
+ { "internalType": "uint256", "name": "gas_", "type": "uint256" },
261
+ { "internalType": "address", "name": "source_", "type": "address" },
262
+ { "internalType": "bytes", "name": "metadata_", "type": "bytes" },
263
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
264
+ ],
265
+ "name": "verify",
266
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
267
+ "stateMutability": "nonpayable",
268
+ "type": "function"
269
+ },
270
+ {
271
+ "inputs": [
272
+ { "internalType": "address", "name": "from_", "type": "address" },
273
+ {
274
+ "components": [
275
+ { "internalType": "address", "name": "target", "type": "address" },
276
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
277
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
278
+ ],
279
+ "internalType": "struct IAvoWalletV1.Action[]",
280
+ "name": "actions_",
281
+ "type": "tuple[]"
282
+ },
283
+ { "internalType": "uint256", "name": "validUntil_", "type": "uint256" },
284
+ { "internalType": "uint256", "name": "gas_", "type": "uint256" },
285
+ { "internalType": "address", "name": "source_", "type": "address" },
286
+ { "internalType": "bytes", "name": "metadata_", "type": "bytes" },
287
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
288
+ ],
289
+ "name": "verifyV1",
290
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
291
+ "stateMutability": "nonpayable",
292
+ "type": "function"
293
+ },
294
+ {
295
+ "inputs": [
296
+ { "internalType": "address", "name": "from_", "type": "address" },
297
+ {
298
+ "components": [
299
+ { "internalType": "address", "name": "target", "type": "address" },
300
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
301
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
302
+ { "internalType": "uint256", "name": "operation", "type": "uint256" }
303
+ ],
304
+ "internalType": "struct IAvoWalletV2.Action[]",
305
+ "name": "actions_",
306
+ "type": "tuple[]"
307
+ },
308
+ {
309
+ "components": [
310
+ {
311
+ "internalType": "uint256",
312
+ "name": "validUntil",
313
+ "type": "uint256"
314
+ },
315
+ { "internalType": "uint256", "name": "gas", "type": "uint256" },
316
+ { "internalType": "address", "name": "source", "type": "address" },
317
+ { "internalType": "uint256", "name": "id", "type": "uint256" },
318
+ { "internalType": "bytes", "name": "metadata", "type": "bytes" }
319
+ ],
320
+ "internalType": "struct IAvoWalletV2.CastParams",
321
+ "name": "params_",
322
+ "type": "tuple"
323
+ },
324
+ { "internalType": "bytes", "name": "signature_", "type": "bytes" }
325
+ ],
326
+ "name": "verifyV2",
327
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
328
+ "stateMutability": "nonpayable",
329
+ "type": "function"
330
+ }
331
+ ]
@@ -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
+ ]