@instadapp/interop-x 0.0.0-dev.92afe89 → 0.0.0-dev.99c6cb0
Sign up to get free protection for your applications and to get access to all the features.
- package/.env.example +2 -1
- package/dist/package.json +74 -0
- package/dist/src/abi/erc20.json +350 -0
- package/dist/src/abi/gnosisSafe.json +747 -0
- package/dist/src/abi/index.js +13 -0
- package/dist/src/abi/interopXContract.json +454 -0
- package/dist/src/alias.js +10 -0
- package/dist/src/api/index.js +36 -0
- package/dist/src/config/index.js +31 -0
- package/dist/src/constants/addresses.js +20 -0
- package/dist/{constants → src/constants}/index.js +1 -0
- package/dist/src/constants/tokens.js +137 -0
- package/dist/{db → src/db}/index.js +0 -0
- package/dist/{db → src/db}/models/index.js +1 -1
- package/dist/src/db/models/transaction.js +70 -0
- package/dist/{db → src/db}/sequelize.js +2 -1
- package/dist/src/gnosis/actions/index.js +9 -0
- package/dist/src/gnosis/actions/withdraw/index.js +55 -0
- package/dist/src/gnosis/index.js +20 -0
- package/dist/src/index.js +119 -0
- package/dist/{logger → src/logger}/index.js +0 -0
- package/dist/{net → src/net}/index.js +0 -0
- package/dist/{net → src/net}/peer/index.js +13 -8
- package/dist/{net → src/net}/pool/index.js +34 -11
- package/dist/{net → src/net}/protocol/dial/BaseDialProtocol.js +1 -1
- package/dist/{net → src/net}/protocol/dial/SignatureDialProtocol.js +21 -14
- package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +30 -0
- package/dist/{net → src/net}/protocol/index.js +54 -4
- package/dist/src/tasks/AutoUpdateTask.js +70 -0
- package/dist/{tasks → src/tasks}/BaseTask.js +14 -6
- package/dist/src/tasks/InteropXContract/ProcessBridgeRequestEvents.js +152 -0
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestEvents.js +78 -0
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.js +90 -0
- package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +55 -0
- package/dist/src/tasks/index.js +38 -0
- package/dist/src/typechain/Erc20.js +2 -0
- package/dist/src/typechain/GnosisSafe.js +2 -0
- package/dist/src/typechain/InteropXContract.js +2 -0
- package/dist/src/typechain/common.js +2 -0
- package/dist/src/typechain/factories/Erc20__factory.js +367 -0
- package/dist/src/typechain/factories/GnosisSafe__factory.js +1174 -0
- package/dist/src/typechain/factories/InteropXContract__factory.js +635 -0
- package/dist/src/typechain/factories/index.js +12 -0
- package/dist/src/typechain/index.js +33 -0
- package/dist/{types.js → src/types.js} +0 -0
- package/dist/src/utils/index.js +186 -0
- package/package.json +30 -15
- package/patches/@ethersproject+properties+5.6.0.patch +13 -0
- package/src/abi/erc20.json +350 -0
- package/src/abi/gnosisSafe.json +747 -0
- package/src/abi/index.ts +9 -0
- package/src/abi/interopXContract.json +454 -0
- package/src/alias.ts +6 -0
- package/src/api/index.ts +36 -0
- package/src/config/index.ts +18 -2
- package/src/constants/addresses.ts +10 -3
- package/src/constants/index.ts +1 -0
- package/src/constants/tokens.ts +134 -0
- package/src/db/index.ts +1 -1
- package/src/db/models/index.ts +1 -1
- package/src/db/models/transaction.ts +137 -0
- package/src/db/sequelize.ts +2 -1
- package/src/gnosis/actions/index.ts +5 -0
- package/src/gnosis/actions/withdraw/index.ts +77 -0
- package/src/gnosis/index.ts +19 -0
- package/src/index.ts +118 -7
- package/src/net/peer/index.ts +12 -10
- package/src/net/pool/index.ts +43 -13
- package/src/net/protocol/dial/BaseDialProtocol.ts +1 -1
- package/src/net/protocol/dial/SignatureDialProtocol.ts +24 -17
- package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +33 -0
- package/src/net/protocol/index.ts +70 -4
- package/src/tasks/AutoUpdateTask.ts +82 -0
- package/src/tasks/BaseTask.ts +16 -7
- package/src/tasks/InteropXContract/ProcessBridgeRequestEvents.ts +216 -0
- package/src/tasks/InteropXContract/SyncBridgeRequestEvents.ts +115 -0
- package/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.ts +121 -0
- package/src/tasks/Transactions/SyncTransactionStatusTask.ts +67 -0
- package/src/tasks/index.ts +24 -2
- package/src/typechain/Erc20.ts +491 -0
- package/src/typechain/GnosisSafe.ts +1728 -0
- package/src/typechain/InteropXContract.ts +680 -0
- package/src/typechain/common.ts +44 -0
- package/src/typechain/factories/Erc20__factory.ts +368 -0
- package/src/typechain/factories/GnosisSafe__factory.ts +1178 -0
- package/src/typechain/factories/InteropXContract__factory.ts +642 -0
- package/src/typechain/factories/index.ts +6 -0
- package/src/typechain/index.ts +10 -0
- package/src/types.ts +2 -2
- package/src/utils/index.ts +156 -4
- package/tsconfig.json +8 -0
- package/dist/config/index.js +0 -17
- package/dist/constants/addresses.js +0 -13
- package/dist/db/models/execution.js +0 -38
- package/dist/index.js +0 -34
- package/dist/tasks/index.js +0 -19
- package/dist/utils/index.js +0 -89
- package/src/db/models/execution.ts +0 -57
@@ -0,0 +1,1178 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
7
|
+
import type { GnosisSafe, GnosisSafeInterface } from "../GnosisSafe";
|
8
|
+
|
9
|
+
const _abi = [
|
10
|
+
{
|
11
|
+
anonymous: false,
|
12
|
+
inputs: [
|
13
|
+
{
|
14
|
+
indexed: false,
|
15
|
+
internalType: "address",
|
16
|
+
name: "owner",
|
17
|
+
type: "address",
|
18
|
+
},
|
19
|
+
],
|
20
|
+
name: "AddedOwner",
|
21
|
+
type: "event",
|
22
|
+
},
|
23
|
+
{
|
24
|
+
anonymous: false,
|
25
|
+
inputs: [
|
26
|
+
{
|
27
|
+
indexed: true,
|
28
|
+
internalType: "bytes32",
|
29
|
+
name: "approvedHash",
|
30
|
+
type: "bytes32",
|
31
|
+
},
|
32
|
+
{
|
33
|
+
indexed: true,
|
34
|
+
internalType: "address",
|
35
|
+
name: "owner",
|
36
|
+
type: "address",
|
37
|
+
},
|
38
|
+
],
|
39
|
+
name: "ApproveHash",
|
40
|
+
type: "event",
|
41
|
+
},
|
42
|
+
{
|
43
|
+
anonymous: false,
|
44
|
+
inputs: [
|
45
|
+
{
|
46
|
+
indexed: false,
|
47
|
+
internalType: "address",
|
48
|
+
name: "handler",
|
49
|
+
type: "address",
|
50
|
+
},
|
51
|
+
],
|
52
|
+
name: "ChangedFallbackHandler",
|
53
|
+
type: "event",
|
54
|
+
},
|
55
|
+
{
|
56
|
+
anonymous: false,
|
57
|
+
inputs: [
|
58
|
+
{
|
59
|
+
indexed: false,
|
60
|
+
internalType: "address",
|
61
|
+
name: "guard",
|
62
|
+
type: "address",
|
63
|
+
},
|
64
|
+
],
|
65
|
+
name: "ChangedGuard",
|
66
|
+
type: "event",
|
67
|
+
},
|
68
|
+
{
|
69
|
+
anonymous: false,
|
70
|
+
inputs: [
|
71
|
+
{
|
72
|
+
indexed: false,
|
73
|
+
internalType: "uint256",
|
74
|
+
name: "threshold",
|
75
|
+
type: "uint256",
|
76
|
+
},
|
77
|
+
],
|
78
|
+
name: "ChangedThreshold",
|
79
|
+
type: "event",
|
80
|
+
},
|
81
|
+
{
|
82
|
+
anonymous: false,
|
83
|
+
inputs: [
|
84
|
+
{
|
85
|
+
indexed: false,
|
86
|
+
internalType: "address",
|
87
|
+
name: "module",
|
88
|
+
type: "address",
|
89
|
+
},
|
90
|
+
],
|
91
|
+
name: "DisabledModule",
|
92
|
+
type: "event",
|
93
|
+
},
|
94
|
+
{
|
95
|
+
anonymous: false,
|
96
|
+
inputs: [
|
97
|
+
{
|
98
|
+
indexed: false,
|
99
|
+
internalType: "address",
|
100
|
+
name: "module",
|
101
|
+
type: "address",
|
102
|
+
},
|
103
|
+
],
|
104
|
+
name: "EnabledModule",
|
105
|
+
type: "event",
|
106
|
+
},
|
107
|
+
{
|
108
|
+
anonymous: false,
|
109
|
+
inputs: [
|
110
|
+
{
|
111
|
+
indexed: false,
|
112
|
+
internalType: "bytes32",
|
113
|
+
name: "txHash",
|
114
|
+
type: "bytes32",
|
115
|
+
},
|
116
|
+
{
|
117
|
+
indexed: false,
|
118
|
+
internalType: "uint256",
|
119
|
+
name: "payment",
|
120
|
+
type: "uint256",
|
121
|
+
},
|
122
|
+
],
|
123
|
+
name: "ExecutionFailure",
|
124
|
+
type: "event",
|
125
|
+
},
|
126
|
+
{
|
127
|
+
anonymous: false,
|
128
|
+
inputs: [
|
129
|
+
{
|
130
|
+
indexed: true,
|
131
|
+
internalType: "address",
|
132
|
+
name: "module",
|
133
|
+
type: "address",
|
134
|
+
},
|
135
|
+
],
|
136
|
+
name: "ExecutionFromModuleFailure",
|
137
|
+
type: "event",
|
138
|
+
},
|
139
|
+
{
|
140
|
+
anonymous: false,
|
141
|
+
inputs: [
|
142
|
+
{
|
143
|
+
indexed: true,
|
144
|
+
internalType: "address",
|
145
|
+
name: "module",
|
146
|
+
type: "address",
|
147
|
+
},
|
148
|
+
],
|
149
|
+
name: "ExecutionFromModuleSuccess",
|
150
|
+
type: "event",
|
151
|
+
},
|
152
|
+
{
|
153
|
+
anonymous: false,
|
154
|
+
inputs: [
|
155
|
+
{
|
156
|
+
indexed: false,
|
157
|
+
internalType: "bytes32",
|
158
|
+
name: "txHash",
|
159
|
+
type: "bytes32",
|
160
|
+
},
|
161
|
+
{
|
162
|
+
indexed: false,
|
163
|
+
internalType: "uint256",
|
164
|
+
name: "payment",
|
165
|
+
type: "uint256",
|
166
|
+
},
|
167
|
+
],
|
168
|
+
name: "ExecutionSuccess",
|
169
|
+
type: "event",
|
170
|
+
},
|
171
|
+
{
|
172
|
+
anonymous: false,
|
173
|
+
inputs: [
|
174
|
+
{
|
175
|
+
indexed: false,
|
176
|
+
internalType: "address",
|
177
|
+
name: "owner",
|
178
|
+
type: "address",
|
179
|
+
},
|
180
|
+
],
|
181
|
+
name: "RemovedOwner",
|
182
|
+
type: "event",
|
183
|
+
},
|
184
|
+
{
|
185
|
+
anonymous: false,
|
186
|
+
inputs: [
|
187
|
+
{
|
188
|
+
indexed: false,
|
189
|
+
internalType: "address",
|
190
|
+
name: "module",
|
191
|
+
type: "address",
|
192
|
+
},
|
193
|
+
{
|
194
|
+
indexed: false,
|
195
|
+
internalType: "address",
|
196
|
+
name: "to",
|
197
|
+
type: "address",
|
198
|
+
},
|
199
|
+
{
|
200
|
+
indexed: false,
|
201
|
+
internalType: "uint256",
|
202
|
+
name: "value",
|
203
|
+
type: "uint256",
|
204
|
+
},
|
205
|
+
{
|
206
|
+
indexed: false,
|
207
|
+
internalType: "bytes",
|
208
|
+
name: "data",
|
209
|
+
type: "bytes",
|
210
|
+
},
|
211
|
+
{
|
212
|
+
indexed: false,
|
213
|
+
internalType: "enum Enum.Operation",
|
214
|
+
name: "operation",
|
215
|
+
type: "uint8",
|
216
|
+
},
|
217
|
+
],
|
218
|
+
name: "SafeModuleTransaction",
|
219
|
+
type: "event",
|
220
|
+
},
|
221
|
+
{
|
222
|
+
anonymous: false,
|
223
|
+
inputs: [
|
224
|
+
{
|
225
|
+
indexed: false,
|
226
|
+
internalType: "address",
|
227
|
+
name: "to",
|
228
|
+
type: "address",
|
229
|
+
},
|
230
|
+
{
|
231
|
+
indexed: false,
|
232
|
+
internalType: "uint256",
|
233
|
+
name: "value",
|
234
|
+
type: "uint256",
|
235
|
+
},
|
236
|
+
{
|
237
|
+
indexed: false,
|
238
|
+
internalType: "bytes",
|
239
|
+
name: "data",
|
240
|
+
type: "bytes",
|
241
|
+
},
|
242
|
+
{
|
243
|
+
indexed: false,
|
244
|
+
internalType: "enum Enum.Operation",
|
245
|
+
name: "operation",
|
246
|
+
type: "uint8",
|
247
|
+
},
|
248
|
+
{
|
249
|
+
indexed: false,
|
250
|
+
internalType: "uint256",
|
251
|
+
name: "safeTxGas",
|
252
|
+
type: "uint256",
|
253
|
+
},
|
254
|
+
{
|
255
|
+
indexed: false,
|
256
|
+
internalType: "uint256",
|
257
|
+
name: "baseGas",
|
258
|
+
type: "uint256",
|
259
|
+
},
|
260
|
+
{
|
261
|
+
indexed: false,
|
262
|
+
internalType: "uint256",
|
263
|
+
name: "gasPrice",
|
264
|
+
type: "uint256",
|
265
|
+
},
|
266
|
+
{
|
267
|
+
indexed: false,
|
268
|
+
internalType: "address",
|
269
|
+
name: "gasToken",
|
270
|
+
type: "address",
|
271
|
+
},
|
272
|
+
{
|
273
|
+
indexed: false,
|
274
|
+
internalType: "address payable",
|
275
|
+
name: "refundReceiver",
|
276
|
+
type: "address",
|
277
|
+
},
|
278
|
+
{
|
279
|
+
indexed: false,
|
280
|
+
internalType: "bytes",
|
281
|
+
name: "signatures",
|
282
|
+
type: "bytes",
|
283
|
+
},
|
284
|
+
{
|
285
|
+
indexed: false,
|
286
|
+
internalType: "bytes",
|
287
|
+
name: "additionalInfo",
|
288
|
+
type: "bytes",
|
289
|
+
},
|
290
|
+
],
|
291
|
+
name: "SafeMultiSigTransaction",
|
292
|
+
type: "event",
|
293
|
+
},
|
294
|
+
{
|
295
|
+
anonymous: false,
|
296
|
+
inputs: [
|
297
|
+
{
|
298
|
+
indexed: true,
|
299
|
+
internalType: "address",
|
300
|
+
name: "sender",
|
301
|
+
type: "address",
|
302
|
+
},
|
303
|
+
{
|
304
|
+
indexed: false,
|
305
|
+
internalType: "uint256",
|
306
|
+
name: "value",
|
307
|
+
type: "uint256",
|
308
|
+
},
|
309
|
+
],
|
310
|
+
name: "SafeReceived",
|
311
|
+
type: "event",
|
312
|
+
},
|
313
|
+
{
|
314
|
+
anonymous: false,
|
315
|
+
inputs: [
|
316
|
+
{
|
317
|
+
indexed: true,
|
318
|
+
internalType: "address",
|
319
|
+
name: "initiator",
|
320
|
+
type: "address",
|
321
|
+
},
|
322
|
+
{
|
323
|
+
indexed: false,
|
324
|
+
internalType: "address[]",
|
325
|
+
name: "owners",
|
326
|
+
type: "address[]",
|
327
|
+
},
|
328
|
+
{
|
329
|
+
indexed: false,
|
330
|
+
internalType: "uint256",
|
331
|
+
name: "threshold",
|
332
|
+
type: "uint256",
|
333
|
+
},
|
334
|
+
{
|
335
|
+
indexed: false,
|
336
|
+
internalType: "address",
|
337
|
+
name: "initializer",
|
338
|
+
type: "address",
|
339
|
+
},
|
340
|
+
{
|
341
|
+
indexed: false,
|
342
|
+
internalType: "address",
|
343
|
+
name: "fallbackHandler",
|
344
|
+
type: "address",
|
345
|
+
},
|
346
|
+
],
|
347
|
+
name: "SafeSetup",
|
348
|
+
type: "event",
|
349
|
+
},
|
350
|
+
{
|
351
|
+
anonymous: false,
|
352
|
+
inputs: [
|
353
|
+
{
|
354
|
+
indexed: true,
|
355
|
+
internalType: "bytes32",
|
356
|
+
name: "msgHash",
|
357
|
+
type: "bytes32",
|
358
|
+
},
|
359
|
+
],
|
360
|
+
name: "SignMsg",
|
361
|
+
type: "event",
|
362
|
+
},
|
363
|
+
{
|
364
|
+
stateMutability: "nonpayable",
|
365
|
+
type: "fallback",
|
366
|
+
},
|
367
|
+
{
|
368
|
+
inputs: [],
|
369
|
+
name: "VERSION",
|
370
|
+
outputs: [
|
371
|
+
{
|
372
|
+
internalType: "string",
|
373
|
+
name: "",
|
374
|
+
type: "string",
|
375
|
+
},
|
376
|
+
],
|
377
|
+
stateMutability: "view",
|
378
|
+
type: "function",
|
379
|
+
},
|
380
|
+
{
|
381
|
+
inputs: [
|
382
|
+
{
|
383
|
+
internalType: "address",
|
384
|
+
name: "owner",
|
385
|
+
type: "address",
|
386
|
+
},
|
387
|
+
{
|
388
|
+
internalType: "uint256",
|
389
|
+
name: "_threshold",
|
390
|
+
type: "uint256",
|
391
|
+
},
|
392
|
+
],
|
393
|
+
name: "addOwnerWithThreshold",
|
394
|
+
outputs: [],
|
395
|
+
stateMutability: "nonpayable",
|
396
|
+
type: "function",
|
397
|
+
},
|
398
|
+
{
|
399
|
+
inputs: [
|
400
|
+
{
|
401
|
+
internalType: "bytes32",
|
402
|
+
name: "hashToApprove",
|
403
|
+
type: "bytes32",
|
404
|
+
},
|
405
|
+
],
|
406
|
+
name: "approveHash",
|
407
|
+
outputs: [],
|
408
|
+
stateMutability: "nonpayable",
|
409
|
+
type: "function",
|
410
|
+
},
|
411
|
+
{
|
412
|
+
inputs: [
|
413
|
+
{
|
414
|
+
internalType: "address",
|
415
|
+
name: "",
|
416
|
+
type: "address",
|
417
|
+
},
|
418
|
+
{
|
419
|
+
internalType: "bytes32",
|
420
|
+
name: "",
|
421
|
+
type: "bytes32",
|
422
|
+
},
|
423
|
+
],
|
424
|
+
name: "approvedHashes",
|
425
|
+
outputs: [
|
426
|
+
{
|
427
|
+
internalType: "uint256",
|
428
|
+
name: "",
|
429
|
+
type: "uint256",
|
430
|
+
},
|
431
|
+
],
|
432
|
+
stateMutability: "view",
|
433
|
+
type: "function",
|
434
|
+
},
|
435
|
+
{
|
436
|
+
inputs: [
|
437
|
+
{
|
438
|
+
internalType: "uint256",
|
439
|
+
name: "_threshold",
|
440
|
+
type: "uint256",
|
441
|
+
},
|
442
|
+
],
|
443
|
+
name: "changeThreshold",
|
444
|
+
outputs: [],
|
445
|
+
stateMutability: "nonpayable",
|
446
|
+
type: "function",
|
447
|
+
},
|
448
|
+
{
|
449
|
+
inputs: [
|
450
|
+
{
|
451
|
+
internalType: "bytes32",
|
452
|
+
name: "dataHash",
|
453
|
+
type: "bytes32",
|
454
|
+
},
|
455
|
+
{
|
456
|
+
internalType: "bytes",
|
457
|
+
name: "data",
|
458
|
+
type: "bytes",
|
459
|
+
},
|
460
|
+
{
|
461
|
+
internalType: "bytes",
|
462
|
+
name: "signatures",
|
463
|
+
type: "bytes",
|
464
|
+
},
|
465
|
+
{
|
466
|
+
internalType: "uint256",
|
467
|
+
name: "requiredSignatures",
|
468
|
+
type: "uint256",
|
469
|
+
},
|
470
|
+
],
|
471
|
+
name: "checkNSignatures",
|
472
|
+
outputs: [],
|
473
|
+
stateMutability: "view",
|
474
|
+
type: "function",
|
475
|
+
},
|
476
|
+
{
|
477
|
+
inputs: [
|
478
|
+
{
|
479
|
+
internalType: "bytes32",
|
480
|
+
name: "dataHash",
|
481
|
+
type: "bytes32",
|
482
|
+
},
|
483
|
+
{
|
484
|
+
internalType: "bytes",
|
485
|
+
name: "data",
|
486
|
+
type: "bytes",
|
487
|
+
},
|
488
|
+
{
|
489
|
+
internalType: "bytes",
|
490
|
+
name: "signatures",
|
491
|
+
type: "bytes",
|
492
|
+
},
|
493
|
+
],
|
494
|
+
name: "checkSignatures",
|
495
|
+
outputs: [],
|
496
|
+
stateMutability: "view",
|
497
|
+
type: "function",
|
498
|
+
},
|
499
|
+
{
|
500
|
+
inputs: [
|
501
|
+
{
|
502
|
+
internalType: "bytes32",
|
503
|
+
name: "",
|
504
|
+
type: "bytes32",
|
505
|
+
},
|
506
|
+
],
|
507
|
+
name: "dataHashes",
|
508
|
+
outputs: [
|
509
|
+
{
|
510
|
+
internalType: "uint8",
|
511
|
+
name: "",
|
512
|
+
type: "uint8",
|
513
|
+
},
|
514
|
+
],
|
515
|
+
stateMutability: "view",
|
516
|
+
type: "function",
|
517
|
+
},
|
518
|
+
{
|
519
|
+
inputs: [
|
520
|
+
{
|
521
|
+
internalType: "address",
|
522
|
+
name: "prevModule",
|
523
|
+
type: "address",
|
524
|
+
},
|
525
|
+
{
|
526
|
+
internalType: "address",
|
527
|
+
name: "module",
|
528
|
+
type: "address",
|
529
|
+
},
|
530
|
+
],
|
531
|
+
name: "disableModule",
|
532
|
+
outputs: [],
|
533
|
+
stateMutability: "nonpayable",
|
534
|
+
type: "function",
|
535
|
+
},
|
536
|
+
{
|
537
|
+
inputs: [],
|
538
|
+
name: "domainSeparator",
|
539
|
+
outputs: [
|
540
|
+
{
|
541
|
+
internalType: "bytes32",
|
542
|
+
name: "",
|
543
|
+
type: "bytes32",
|
544
|
+
},
|
545
|
+
],
|
546
|
+
stateMutability: "view",
|
547
|
+
type: "function",
|
548
|
+
},
|
549
|
+
{
|
550
|
+
inputs: [
|
551
|
+
{
|
552
|
+
internalType: "address",
|
553
|
+
name: "module",
|
554
|
+
type: "address",
|
555
|
+
},
|
556
|
+
],
|
557
|
+
name: "enableModule",
|
558
|
+
outputs: [],
|
559
|
+
stateMutability: "nonpayable",
|
560
|
+
type: "function",
|
561
|
+
},
|
562
|
+
{
|
563
|
+
inputs: [
|
564
|
+
{
|
565
|
+
internalType: "address",
|
566
|
+
name: "to",
|
567
|
+
type: "address",
|
568
|
+
},
|
569
|
+
{
|
570
|
+
internalType: "uint256",
|
571
|
+
name: "value",
|
572
|
+
type: "uint256",
|
573
|
+
},
|
574
|
+
{
|
575
|
+
internalType: "bytes",
|
576
|
+
name: "data",
|
577
|
+
type: "bytes",
|
578
|
+
},
|
579
|
+
{
|
580
|
+
internalType: "enum Enum.Operation",
|
581
|
+
name: "operation",
|
582
|
+
type: "uint8",
|
583
|
+
},
|
584
|
+
{
|
585
|
+
internalType: "uint256",
|
586
|
+
name: "safeTxGas",
|
587
|
+
type: "uint256",
|
588
|
+
},
|
589
|
+
{
|
590
|
+
internalType: "uint256",
|
591
|
+
name: "baseGas",
|
592
|
+
type: "uint256",
|
593
|
+
},
|
594
|
+
{
|
595
|
+
internalType: "uint256",
|
596
|
+
name: "gasPrice",
|
597
|
+
type: "uint256",
|
598
|
+
},
|
599
|
+
{
|
600
|
+
internalType: "address",
|
601
|
+
name: "gasToken",
|
602
|
+
type: "address",
|
603
|
+
},
|
604
|
+
{
|
605
|
+
internalType: "address",
|
606
|
+
name: "refundReceiver",
|
607
|
+
type: "address",
|
608
|
+
},
|
609
|
+
{
|
610
|
+
internalType: "uint256",
|
611
|
+
name: "_nonce",
|
612
|
+
type: "uint256",
|
613
|
+
},
|
614
|
+
],
|
615
|
+
name: "encodeTransactionData",
|
616
|
+
outputs: [
|
617
|
+
{
|
618
|
+
internalType: "bytes",
|
619
|
+
name: "",
|
620
|
+
type: "bytes",
|
621
|
+
},
|
622
|
+
],
|
623
|
+
stateMutability: "view",
|
624
|
+
type: "function",
|
625
|
+
},
|
626
|
+
{
|
627
|
+
inputs: [
|
628
|
+
{
|
629
|
+
internalType: "address",
|
630
|
+
name: "to",
|
631
|
+
type: "address",
|
632
|
+
},
|
633
|
+
{
|
634
|
+
internalType: "uint256",
|
635
|
+
name: "value",
|
636
|
+
type: "uint256",
|
637
|
+
},
|
638
|
+
{
|
639
|
+
internalType: "bytes",
|
640
|
+
name: "data",
|
641
|
+
type: "bytes",
|
642
|
+
},
|
643
|
+
{
|
644
|
+
internalType: "enum Enum.Operation",
|
645
|
+
name: "operation",
|
646
|
+
type: "uint8",
|
647
|
+
},
|
648
|
+
{
|
649
|
+
internalType: "uint256",
|
650
|
+
name: "safeTxGas",
|
651
|
+
type: "uint256",
|
652
|
+
},
|
653
|
+
{
|
654
|
+
internalType: "uint256",
|
655
|
+
name: "baseGas",
|
656
|
+
type: "uint256",
|
657
|
+
},
|
658
|
+
{
|
659
|
+
internalType: "uint256",
|
660
|
+
name: "gasPrice",
|
661
|
+
type: "uint256",
|
662
|
+
},
|
663
|
+
{
|
664
|
+
internalType: "address",
|
665
|
+
name: "gasToken",
|
666
|
+
type: "address",
|
667
|
+
},
|
668
|
+
{
|
669
|
+
internalType: "address payable",
|
670
|
+
name: "refundReceiver",
|
671
|
+
type: "address",
|
672
|
+
},
|
673
|
+
{
|
674
|
+
internalType: "bytes",
|
675
|
+
name: "signatures",
|
676
|
+
type: "bytes",
|
677
|
+
},
|
678
|
+
],
|
679
|
+
name: "execTransaction",
|
680
|
+
outputs: [
|
681
|
+
{
|
682
|
+
internalType: "bool",
|
683
|
+
name: "",
|
684
|
+
type: "bool",
|
685
|
+
},
|
686
|
+
],
|
687
|
+
stateMutability: "payable",
|
688
|
+
type: "function",
|
689
|
+
},
|
690
|
+
{
|
691
|
+
inputs: [
|
692
|
+
{
|
693
|
+
internalType: "address",
|
694
|
+
name: "to",
|
695
|
+
type: "address",
|
696
|
+
},
|
697
|
+
{
|
698
|
+
internalType: "uint256",
|
699
|
+
name: "value",
|
700
|
+
type: "uint256",
|
701
|
+
},
|
702
|
+
{
|
703
|
+
internalType: "bytes",
|
704
|
+
name: "data",
|
705
|
+
type: "bytes",
|
706
|
+
},
|
707
|
+
{
|
708
|
+
internalType: "enum Enum.Operation",
|
709
|
+
name: "operation",
|
710
|
+
type: "uint8",
|
711
|
+
},
|
712
|
+
],
|
713
|
+
name: "execTransactionFromModule",
|
714
|
+
outputs: [
|
715
|
+
{
|
716
|
+
internalType: "bool",
|
717
|
+
name: "success",
|
718
|
+
type: "bool",
|
719
|
+
},
|
720
|
+
],
|
721
|
+
stateMutability: "nonpayable",
|
722
|
+
type: "function",
|
723
|
+
},
|
724
|
+
{
|
725
|
+
inputs: [
|
726
|
+
{
|
727
|
+
internalType: "address",
|
728
|
+
name: "to",
|
729
|
+
type: "address",
|
730
|
+
},
|
731
|
+
{
|
732
|
+
internalType: "uint256",
|
733
|
+
name: "value",
|
734
|
+
type: "uint256",
|
735
|
+
},
|
736
|
+
{
|
737
|
+
internalType: "bytes",
|
738
|
+
name: "data",
|
739
|
+
type: "bytes",
|
740
|
+
},
|
741
|
+
{
|
742
|
+
internalType: "enum Enum.Operation",
|
743
|
+
name: "operation",
|
744
|
+
type: "uint8",
|
745
|
+
},
|
746
|
+
],
|
747
|
+
name: "execTransactionFromModuleReturnData",
|
748
|
+
outputs: [
|
749
|
+
{
|
750
|
+
internalType: "bool",
|
751
|
+
name: "success",
|
752
|
+
type: "bool",
|
753
|
+
},
|
754
|
+
{
|
755
|
+
internalType: "bytes",
|
756
|
+
name: "returnData",
|
757
|
+
type: "bytes",
|
758
|
+
},
|
759
|
+
],
|
760
|
+
stateMutability: "nonpayable",
|
761
|
+
type: "function",
|
762
|
+
},
|
763
|
+
{
|
764
|
+
inputs: [],
|
765
|
+
name: "getChainId",
|
766
|
+
outputs: [
|
767
|
+
{
|
768
|
+
internalType: "uint256",
|
769
|
+
name: "",
|
770
|
+
type: "uint256",
|
771
|
+
},
|
772
|
+
],
|
773
|
+
stateMutability: "view",
|
774
|
+
type: "function",
|
775
|
+
},
|
776
|
+
{
|
777
|
+
inputs: [
|
778
|
+
{
|
779
|
+
internalType: "address",
|
780
|
+
name: "start",
|
781
|
+
type: "address",
|
782
|
+
},
|
783
|
+
{
|
784
|
+
internalType: "uint256",
|
785
|
+
name: "pageSize",
|
786
|
+
type: "uint256",
|
787
|
+
},
|
788
|
+
],
|
789
|
+
name: "getModulesPaginated",
|
790
|
+
outputs: [
|
791
|
+
{
|
792
|
+
internalType: "address[]",
|
793
|
+
name: "array",
|
794
|
+
type: "address[]",
|
795
|
+
},
|
796
|
+
{
|
797
|
+
internalType: "address",
|
798
|
+
name: "next",
|
799
|
+
type: "address",
|
800
|
+
},
|
801
|
+
],
|
802
|
+
stateMutability: "view",
|
803
|
+
type: "function",
|
804
|
+
},
|
805
|
+
{
|
806
|
+
inputs: [],
|
807
|
+
name: "getOwners",
|
808
|
+
outputs: [
|
809
|
+
{
|
810
|
+
internalType: "address[]",
|
811
|
+
name: "",
|
812
|
+
type: "address[]",
|
813
|
+
},
|
814
|
+
],
|
815
|
+
stateMutability: "view",
|
816
|
+
type: "function",
|
817
|
+
},
|
818
|
+
{
|
819
|
+
inputs: [
|
820
|
+
{
|
821
|
+
internalType: "uint256",
|
822
|
+
name: "offset",
|
823
|
+
type: "uint256",
|
824
|
+
},
|
825
|
+
{
|
826
|
+
internalType: "uint256",
|
827
|
+
name: "length",
|
828
|
+
type: "uint256",
|
829
|
+
},
|
830
|
+
],
|
831
|
+
name: "getStorageAt",
|
832
|
+
outputs: [
|
833
|
+
{
|
834
|
+
internalType: "bytes",
|
835
|
+
name: "",
|
836
|
+
type: "bytes",
|
837
|
+
},
|
838
|
+
],
|
839
|
+
stateMutability: "view",
|
840
|
+
type: "function",
|
841
|
+
},
|
842
|
+
{
|
843
|
+
inputs: [],
|
844
|
+
name: "getThreshold",
|
845
|
+
outputs: [
|
846
|
+
{
|
847
|
+
internalType: "uint256",
|
848
|
+
name: "",
|
849
|
+
type: "uint256",
|
850
|
+
},
|
851
|
+
],
|
852
|
+
stateMutability: "view",
|
853
|
+
type: "function",
|
854
|
+
},
|
855
|
+
{
|
856
|
+
inputs: [
|
857
|
+
{
|
858
|
+
internalType: "address",
|
859
|
+
name: "to",
|
860
|
+
type: "address",
|
861
|
+
},
|
862
|
+
{
|
863
|
+
internalType: "uint256",
|
864
|
+
name: "value",
|
865
|
+
type: "uint256",
|
866
|
+
},
|
867
|
+
{
|
868
|
+
internalType: "bytes",
|
869
|
+
name: "data",
|
870
|
+
type: "bytes",
|
871
|
+
},
|
872
|
+
{
|
873
|
+
internalType: "enum Enum.Operation",
|
874
|
+
name: "operation",
|
875
|
+
type: "uint8",
|
876
|
+
},
|
877
|
+
{
|
878
|
+
internalType: "uint256",
|
879
|
+
name: "safeTxGas",
|
880
|
+
type: "uint256",
|
881
|
+
},
|
882
|
+
{
|
883
|
+
internalType: "uint256",
|
884
|
+
name: "baseGas",
|
885
|
+
type: "uint256",
|
886
|
+
},
|
887
|
+
{
|
888
|
+
internalType: "uint256",
|
889
|
+
name: "gasPrice",
|
890
|
+
type: "uint256",
|
891
|
+
},
|
892
|
+
{
|
893
|
+
internalType: "address",
|
894
|
+
name: "gasToken",
|
895
|
+
type: "address",
|
896
|
+
},
|
897
|
+
{
|
898
|
+
internalType: "address",
|
899
|
+
name: "refundReceiver",
|
900
|
+
type: "address",
|
901
|
+
},
|
902
|
+
{
|
903
|
+
internalType: "uint256",
|
904
|
+
name: "_nonce",
|
905
|
+
type: "uint256",
|
906
|
+
},
|
907
|
+
],
|
908
|
+
name: "getTransactionHash",
|
909
|
+
outputs: [
|
910
|
+
{
|
911
|
+
internalType: "bytes32",
|
912
|
+
name: "",
|
913
|
+
type: "bytes32",
|
914
|
+
},
|
915
|
+
],
|
916
|
+
stateMutability: "view",
|
917
|
+
type: "function",
|
918
|
+
},
|
919
|
+
{
|
920
|
+
inputs: [
|
921
|
+
{
|
922
|
+
internalType: "address",
|
923
|
+
name: "module",
|
924
|
+
type: "address",
|
925
|
+
},
|
926
|
+
],
|
927
|
+
name: "isModuleEnabled",
|
928
|
+
outputs: [
|
929
|
+
{
|
930
|
+
internalType: "bool",
|
931
|
+
name: "",
|
932
|
+
type: "bool",
|
933
|
+
},
|
934
|
+
],
|
935
|
+
stateMutability: "view",
|
936
|
+
type: "function",
|
937
|
+
},
|
938
|
+
{
|
939
|
+
inputs: [
|
940
|
+
{
|
941
|
+
internalType: "address",
|
942
|
+
name: "owner",
|
943
|
+
type: "address",
|
944
|
+
},
|
945
|
+
],
|
946
|
+
name: "isOwner",
|
947
|
+
outputs: [
|
948
|
+
{
|
949
|
+
internalType: "bool",
|
950
|
+
name: "",
|
951
|
+
type: "bool",
|
952
|
+
},
|
953
|
+
],
|
954
|
+
stateMutability: "view",
|
955
|
+
type: "function",
|
956
|
+
},
|
957
|
+
{
|
958
|
+
inputs: [],
|
959
|
+
name: "nonce",
|
960
|
+
outputs: [
|
961
|
+
{
|
962
|
+
internalType: "uint256",
|
963
|
+
name: "",
|
964
|
+
type: "uint256",
|
965
|
+
},
|
966
|
+
],
|
967
|
+
stateMutability: "view",
|
968
|
+
type: "function",
|
969
|
+
},
|
970
|
+
{
|
971
|
+
inputs: [
|
972
|
+
{
|
973
|
+
internalType: "address",
|
974
|
+
name: "prevOwner",
|
975
|
+
type: "address",
|
976
|
+
},
|
977
|
+
{
|
978
|
+
internalType: "address",
|
979
|
+
name: "owner",
|
980
|
+
type: "address",
|
981
|
+
},
|
982
|
+
{
|
983
|
+
internalType: "uint256",
|
984
|
+
name: "_threshold",
|
985
|
+
type: "uint256",
|
986
|
+
},
|
987
|
+
],
|
988
|
+
name: "removeOwner",
|
989
|
+
outputs: [],
|
990
|
+
stateMutability: "nonpayable",
|
991
|
+
type: "function",
|
992
|
+
},
|
993
|
+
{
|
994
|
+
inputs: [
|
995
|
+
{
|
996
|
+
internalType: "address",
|
997
|
+
name: "to",
|
998
|
+
type: "address",
|
999
|
+
},
|
1000
|
+
{
|
1001
|
+
internalType: "uint256",
|
1002
|
+
name: "value",
|
1003
|
+
type: "uint256",
|
1004
|
+
},
|
1005
|
+
{
|
1006
|
+
internalType: "bytes",
|
1007
|
+
name: "data",
|
1008
|
+
type: "bytes",
|
1009
|
+
},
|
1010
|
+
{
|
1011
|
+
internalType: "enum Enum.Operation",
|
1012
|
+
name: "operation",
|
1013
|
+
type: "uint8",
|
1014
|
+
},
|
1015
|
+
],
|
1016
|
+
name: "requiredTxGas",
|
1017
|
+
outputs: [
|
1018
|
+
{
|
1019
|
+
internalType: "uint256",
|
1020
|
+
name: "",
|
1021
|
+
type: "uint256",
|
1022
|
+
},
|
1023
|
+
],
|
1024
|
+
stateMutability: "nonpayable",
|
1025
|
+
type: "function",
|
1026
|
+
},
|
1027
|
+
{
|
1028
|
+
inputs: [
|
1029
|
+
{
|
1030
|
+
internalType: "address",
|
1031
|
+
name: "handler",
|
1032
|
+
type: "address",
|
1033
|
+
},
|
1034
|
+
],
|
1035
|
+
name: "setFallbackHandler",
|
1036
|
+
outputs: [],
|
1037
|
+
stateMutability: "nonpayable",
|
1038
|
+
type: "function",
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
inputs: [
|
1042
|
+
{
|
1043
|
+
internalType: "address",
|
1044
|
+
name: "guard",
|
1045
|
+
type: "address",
|
1046
|
+
},
|
1047
|
+
],
|
1048
|
+
name: "setGuard",
|
1049
|
+
outputs: [],
|
1050
|
+
stateMutability: "nonpayable",
|
1051
|
+
type: "function",
|
1052
|
+
},
|
1053
|
+
{
|
1054
|
+
inputs: [
|
1055
|
+
{
|
1056
|
+
internalType: "address[]",
|
1057
|
+
name: "_owners",
|
1058
|
+
type: "address[]",
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
internalType: "uint256",
|
1062
|
+
name: "_threshold",
|
1063
|
+
type: "uint256",
|
1064
|
+
},
|
1065
|
+
{
|
1066
|
+
internalType: "address",
|
1067
|
+
name: "to",
|
1068
|
+
type: "address",
|
1069
|
+
},
|
1070
|
+
{
|
1071
|
+
internalType: "bytes",
|
1072
|
+
name: "data",
|
1073
|
+
type: "bytes",
|
1074
|
+
},
|
1075
|
+
{
|
1076
|
+
internalType: "address",
|
1077
|
+
name: "fallbackHandler",
|
1078
|
+
type: "address",
|
1079
|
+
},
|
1080
|
+
{
|
1081
|
+
internalType: "address",
|
1082
|
+
name: "paymentToken",
|
1083
|
+
type: "address",
|
1084
|
+
},
|
1085
|
+
{
|
1086
|
+
internalType: "uint256",
|
1087
|
+
name: "payment",
|
1088
|
+
type: "uint256",
|
1089
|
+
},
|
1090
|
+
{
|
1091
|
+
internalType: "address payable",
|
1092
|
+
name: "paymentReceiver",
|
1093
|
+
type: "address",
|
1094
|
+
},
|
1095
|
+
],
|
1096
|
+
name: "setup",
|
1097
|
+
outputs: [],
|
1098
|
+
stateMutability: "nonpayable",
|
1099
|
+
type: "function",
|
1100
|
+
},
|
1101
|
+
{
|
1102
|
+
inputs: [
|
1103
|
+
{
|
1104
|
+
internalType: "bytes32",
|
1105
|
+
name: "",
|
1106
|
+
type: "bytes32",
|
1107
|
+
},
|
1108
|
+
],
|
1109
|
+
name: "signedMessages",
|
1110
|
+
outputs: [
|
1111
|
+
{
|
1112
|
+
internalType: "uint256",
|
1113
|
+
name: "",
|
1114
|
+
type: "uint256",
|
1115
|
+
},
|
1116
|
+
],
|
1117
|
+
stateMutability: "view",
|
1118
|
+
type: "function",
|
1119
|
+
},
|
1120
|
+
{
|
1121
|
+
inputs: [
|
1122
|
+
{
|
1123
|
+
internalType: "address",
|
1124
|
+
name: "targetContract",
|
1125
|
+
type: "address",
|
1126
|
+
},
|
1127
|
+
{
|
1128
|
+
internalType: "bytes",
|
1129
|
+
name: "calldataPayload",
|
1130
|
+
type: "bytes",
|
1131
|
+
},
|
1132
|
+
],
|
1133
|
+
name: "simulateAndRevert",
|
1134
|
+
outputs: [],
|
1135
|
+
stateMutability: "nonpayable",
|
1136
|
+
type: "function",
|
1137
|
+
},
|
1138
|
+
{
|
1139
|
+
inputs: [
|
1140
|
+
{
|
1141
|
+
internalType: "address",
|
1142
|
+
name: "prevOwner",
|
1143
|
+
type: "address",
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
internalType: "address",
|
1147
|
+
name: "oldOwner",
|
1148
|
+
type: "address",
|
1149
|
+
},
|
1150
|
+
{
|
1151
|
+
internalType: "address",
|
1152
|
+
name: "newOwner",
|
1153
|
+
type: "address",
|
1154
|
+
},
|
1155
|
+
],
|
1156
|
+
name: "swapOwner",
|
1157
|
+
outputs: [],
|
1158
|
+
stateMutability: "nonpayable",
|
1159
|
+
type: "function",
|
1160
|
+
},
|
1161
|
+
{
|
1162
|
+
stateMutability: "payable",
|
1163
|
+
type: "receive",
|
1164
|
+
},
|
1165
|
+
];
|
1166
|
+
|
1167
|
+
export class GnosisSafe__factory {
|
1168
|
+
static readonly abi = _abi;
|
1169
|
+
static createInterface(): GnosisSafeInterface {
|
1170
|
+
return new utils.Interface(_abi) as GnosisSafeInterface;
|
1171
|
+
}
|
1172
|
+
static connect(
|
1173
|
+
address: string,
|
1174
|
+
signerOrProvider: Signer | Provider
|
1175
|
+
): GnosisSafe {
|
1176
|
+
return new Contract(address, _abi, signerOrProvider) as GnosisSafe;
|
1177
|
+
}
|
1178
|
+
}
|