@gitmyabi/gnosissafe 1.0.122 → 1.0.123
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/README.md +3 -3
- package/contracts/{Proxy_json.d.ts → GnosisSafeProxy_json.d.ts} +13 -14
- package/contracts/{Proxy_json.js → GnosisSafeProxy_json.js} +11 -12
- package/contracts/{Proxy_json.ts → GnosisSafeProxy_json.ts} +15 -16
- package/contracts/GnosisSafe_json.d.ts +742 -417
- package/contracts/GnosisSafe_json.js +899 -488
- package/contracts/GnosisSafe_json.ts +967 -533
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -9,239 +9,310 @@ const viem_1 = require("viem");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.GnosisSafe_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"stateMutability": "nonpayable",
|
|
14
|
+
"type": "constructor"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"anonymous": false,
|
|
13
18
|
"inputs": [
|
|
14
19
|
{
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"name": "getMessageHash",
|
|
20
|
-
"outputs": [
|
|
21
|
-
{
|
|
22
|
-
"name": "",
|
|
23
|
-
"type": "bytes32"
|
|
20
|
+
"indexed": false,
|
|
21
|
+
"internalType": "address",
|
|
22
|
+
"name": "owner",
|
|
23
|
+
"type": "address"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"type": "function"
|
|
26
|
+
"name": "AddedOwner",
|
|
27
|
+
"type": "event"
|
|
29
28
|
},
|
|
30
29
|
{
|
|
31
|
-
"
|
|
30
|
+
"anonymous": false,
|
|
32
31
|
"inputs": [
|
|
33
32
|
{
|
|
34
|
-
"
|
|
35
|
-
"
|
|
33
|
+
"indexed": true,
|
|
34
|
+
"internalType": "bytes32",
|
|
35
|
+
"name": "approvedHash",
|
|
36
|
+
"type": "bytes32"
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
|
-
"
|
|
39
|
-
"
|
|
39
|
+
"indexed": true,
|
|
40
|
+
"internalType": "address",
|
|
41
|
+
"name": "owner",
|
|
42
|
+
"type": "address"
|
|
40
43
|
}
|
|
41
44
|
],
|
|
42
|
-
"name": "
|
|
43
|
-
"
|
|
44
|
-
"payable": false,
|
|
45
|
-
"stateMutability": "nonpayable",
|
|
46
|
-
"type": "function"
|
|
45
|
+
"name": "ApproveHash",
|
|
46
|
+
"type": "event"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
"
|
|
50
|
-
"inputs": [
|
|
51
|
-
"name": "DOMAIN_SEPARATOR_TYPEHASH",
|
|
52
|
-
"outputs": [
|
|
49
|
+
"anonymous": false,
|
|
50
|
+
"inputs": [
|
|
53
51
|
{
|
|
54
|
-
"
|
|
55
|
-
"
|
|
52
|
+
"indexed": false,
|
|
53
|
+
"internalType": "address",
|
|
54
|
+
"name": "handler",
|
|
55
|
+
"type": "address"
|
|
56
56
|
}
|
|
57
57
|
],
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"type": "function"
|
|
58
|
+
"name": "ChangedFallbackHandler",
|
|
59
|
+
"type": "event"
|
|
61
60
|
},
|
|
62
61
|
{
|
|
63
|
-
"
|
|
62
|
+
"anonymous": false,
|
|
64
63
|
"inputs": [
|
|
65
64
|
{
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"name": "_signature",
|
|
71
|
-
"type": "bytes"
|
|
65
|
+
"indexed": false,
|
|
66
|
+
"internalType": "address",
|
|
67
|
+
"name": "guard",
|
|
68
|
+
"type": "address"
|
|
72
69
|
}
|
|
73
70
|
],
|
|
74
|
-
"name": "
|
|
75
|
-
"
|
|
71
|
+
"name": "ChangedGuard",
|
|
72
|
+
"type": "event"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"anonymous": false,
|
|
76
|
+
"inputs": [
|
|
76
77
|
{
|
|
77
|
-
"
|
|
78
|
-
"
|
|
78
|
+
"indexed": false,
|
|
79
|
+
"internalType": "uint256",
|
|
80
|
+
"name": "threshold",
|
|
81
|
+
"type": "uint256"
|
|
79
82
|
}
|
|
80
83
|
],
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"type": "function"
|
|
84
|
+
"name": "ChangedThreshold",
|
|
85
|
+
"type": "event"
|
|
84
86
|
},
|
|
85
87
|
{
|
|
86
|
-
"
|
|
88
|
+
"anonymous": false,
|
|
87
89
|
"inputs": [
|
|
88
90
|
{
|
|
89
|
-
"
|
|
91
|
+
"indexed": false,
|
|
92
|
+
"internalType": "address",
|
|
93
|
+
"name": "module",
|
|
90
94
|
"type": "address"
|
|
91
95
|
}
|
|
92
96
|
],
|
|
93
|
-
"name": "
|
|
94
|
-
"
|
|
97
|
+
"name": "DisabledModule",
|
|
98
|
+
"type": "event"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"anonymous": false,
|
|
102
|
+
"inputs": [
|
|
95
103
|
{
|
|
96
|
-
"
|
|
97
|
-
"
|
|
104
|
+
"indexed": false,
|
|
105
|
+
"internalType": "address",
|
|
106
|
+
"name": "module",
|
|
107
|
+
"type": "address"
|
|
98
108
|
}
|
|
99
109
|
],
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"type": "function"
|
|
110
|
+
"name": "EnabledModule",
|
|
111
|
+
"type": "event"
|
|
103
112
|
},
|
|
104
113
|
{
|
|
105
|
-
"
|
|
114
|
+
"anonymous": false,
|
|
106
115
|
"inputs": [
|
|
107
116
|
{
|
|
108
|
-
"
|
|
109
|
-
"
|
|
117
|
+
"indexed": false,
|
|
118
|
+
"internalType": "bytes32",
|
|
119
|
+
"name": "txHash",
|
|
120
|
+
"type": "bytes32"
|
|
110
121
|
},
|
|
111
122
|
{
|
|
112
|
-
"
|
|
123
|
+
"indexed": false,
|
|
124
|
+
"internalType": "uint256",
|
|
125
|
+
"name": "payment",
|
|
113
126
|
"type": "uint256"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "data",
|
|
117
|
-
"type": "bytes"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "operation",
|
|
121
|
-
"type": "uint8"
|
|
122
127
|
}
|
|
123
128
|
],
|
|
124
|
-
"name": "
|
|
125
|
-
"
|
|
129
|
+
"name": "ExecutionFailure",
|
|
130
|
+
"type": "event"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"anonymous": false,
|
|
134
|
+
"inputs": [
|
|
126
135
|
{
|
|
127
|
-
"
|
|
128
|
-
"
|
|
136
|
+
"indexed": true,
|
|
137
|
+
"internalType": "address",
|
|
138
|
+
"name": "module",
|
|
139
|
+
"type": "address"
|
|
129
140
|
}
|
|
130
141
|
],
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"type": "function"
|
|
142
|
+
"name": "ExecutionFromModuleFailure",
|
|
143
|
+
"type": "event"
|
|
134
144
|
},
|
|
135
145
|
{
|
|
136
|
-
"
|
|
146
|
+
"anonymous": false,
|
|
137
147
|
"inputs": [
|
|
138
148
|
{
|
|
139
|
-
"
|
|
140
|
-
"
|
|
149
|
+
"indexed": true,
|
|
150
|
+
"internalType": "address",
|
|
151
|
+
"name": "module",
|
|
152
|
+
"type": "address"
|
|
141
153
|
}
|
|
142
154
|
],
|
|
143
|
-
"name": "
|
|
144
|
-
"
|
|
155
|
+
"name": "ExecutionFromModuleSuccess",
|
|
156
|
+
"type": "event"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"anonymous": false,
|
|
160
|
+
"inputs": [
|
|
145
161
|
{
|
|
146
|
-
"
|
|
162
|
+
"indexed": false,
|
|
163
|
+
"internalType": "bytes32",
|
|
164
|
+
"name": "txHash",
|
|
165
|
+
"type": "bytes32"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"indexed": false,
|
|
169
|
+
"internalType": "uint256",
|
|
170
|
+
"name": "payment",
|
|
147
171
|
"type": "uint256"
|
|
148
172
|
}
|
|
149
173
|
],
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"type": "function"
|
|
174
|
+
"name": "ExecutionSuccess",
|
|
175
|
+
"type": "event"
|
|
153
176
|
},
|
|
154
177
|
{
|
|
155
|
-
"
|
|
178
|
+
"anonymous": false,
|
|
156
179
|
"inputs": [
|
|
157
180
|
{
|
|
158
|
-
"
|
|
181
|
+
"indexed": false,
|
|
182
|
+
"internalType": "address",
|
|
183
|
+
"name": "owner",
|
|
159
184
|
"type": "address"
|
|
160
185
|
}
|
|
161
186
|
],
|
|
162
|
-
"name": "
|
|
163
|
-
"
|
|
164
|
-
"payable": false,
|
|
165
|
-
"stateMutability": "nonpayable",
|
|
166
|
-
"type": "function"
|
|
187
|
+
"name": "RemovedOwner",
|
|
188
|
+
"type": "event"
|
|
167
189
|
},
|
|
168
190
|
{
|
|
169
|
-
"
|
|
191
|
+
"anonymous": false,
|
|
170
192
|
"inputs": [
|
|
171
193
|
{
|
|
172
|
-
"
|
|
194
|
+
"indexed": true,
|
|
195
|
+
"internalType": "address",
|
|
196
|
+
"name": "sender",
|
|
197
|
+
"type": "address"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"indexed": false,
|
|
201
|
+
"internalType": "uint256",
|
|
202
|
+
"name": "value",
|
|
173
203
|
"type": "uint256"
|
|
174
204
|
}
|
|
175
205
|
],
|
|
176
|
-
"name": "
|
|
177
|
-
"
|
|
178
|
-
"payable": false,
|
|
179
|
-
"stateMutability": "nonpayable",
|
|
180
|
-
"type": "function"
|
|
206
|
+
"name": "SafeReceived",
|
|
207
|
+
"type": "event"
|
|
181
208
|
},
|
|
182
209
|
{
|
|
183
|
-
"
|
|
210
|
+
"anonymous": false,
|
|
184
211
|
"inputs": [
|
|
185
212
|
{
|
|
186
|
-
"
|
|
213
|
+
"indexed": true,
|
|
214
|
+
"internalType": "address",
|
|
215
|
+
"name": "initiator",
|
|
187
216
|
"type": "address"
|
|
188
217
|
},
|
|
189
218
|
{
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"name": "data",
|
|
195
|
-
"type": "bytes"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"name": "operation",
|
|
199
|
-
"type": "uint8"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"name": "safeTxGas",
|
|
203
|
-
"type": "uint256"
|
|
219
|
+
"indexed": false,
|
|
220
|
+
"internalType": "address[]",
|
|
221
|
+
"name": "owners",
|
|
222
|
+
"type": "address[]"
|
|
204
223
|
},
|
|
205
224
|
{
|
|
206
|
-
"
|
|
225
|
+
"indexed": false,
|
|
226
|
+
"internalType": "uint256",
|
|
227
|
+
"name": "threshold",
|
|
207
228
|
"type": "uint256"
|
|
208
229
|
},
|
|
209
230
|
{
|
|
210
|
-
"
|
|
211
|
-
"
|
|
231
|
+
"indexed": false,
|
|
232
|
+
"internalType": "address",
|
|
233
|
+
"name": "initializer",
|
|
234
|
+
"type": "address"
|
|
212
235
|
},
|
|
213
236
|
{
|
|
214
|
-
"
|
|
237
|
+
"indexed": false,
|
|
238
|
+
"internalType": "address",
|
|
239
|
+
"name": "fallbackHandler",
|
|
215
240
|
"type": "address"
|
|
216
|
-
}
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"name": "SafeSetup",
|
|
244
|
+
"type": "event"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"anonymous": false,
|
|
248
|
+
"inputs": [
|
|
217
249
|
{
|
|
218
|
-
"
|
|
250
|
+
"indexed": true,
|
|
251
|
+
"internalType": "bytes32",
|
|
252
|
+
"name": "msgHash",
|
|
253
|
+
"type": "bytes32"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"name": "SignMsg",
|
|
257
|
+
"type": "event"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"stateMutability": "nonpayable",
|
|
261
|
+
"type": "fallback"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"inputs": [],
|
|
265
|
+
"name": "VERSION",
|
|
266
|
+
"outputs": [
|
|
267
|
+
{
|
|
268
|
+
"internalType": "string",
|
|
269
|
+
"name": "",
|
|
270
|
+
"type": "string"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"stateMutability": "view",
|
|
274
|
+
"type": "function"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"inputs": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "address",
|
|
280
|
+
"name": "owner",
|
|
219
281
|
"type": "address"
|
|
220
282
|
},
|
|
221
283
|
{
|
|
222
|
-
"
|
|
223
|
-
"
|
|
284
|
+
"internalType": "uint256",
|
|
285
|
+
"name": "_threshold",
|
|
286
|
+
"type": "uint256"
|
|
224
287
|
}
|
|
225
288
|
],
|
|
226
|
-
"name": "
|
|
227
|
-
"outputs": [
|
|
289
|
+
"name": "addOwnerWithThreshold",
|
|
290
|
+
"outputs": [],
|
|
291
|
+
"stateMutability": "nonpayable",
|
|
292
|
+
"type": "function"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"inputs": [
|
|
228
296
|
{
|
|
229
|
-
"
|
|
230
|
-
"
|
|
297
|
+
"internalType": "bytes32",
|
|
298
|
+
"name": "hashToApprove",
|
|
299
|
+
"type": "bytes32"
|
|
231
300
|
}
|
|
232
301
|
],
|
|
233
|
-
"
|
|
302
|
+
"name": "approveHash",
|
|
303
|
+
"outputs": [],
|
|
234
304
|
"stateMutability": "nonpayable",
|
|
235
305
|
"type": "function"
|
|
236
306
|
},
|
|
237
307
|
{
|
|
238
|
-
"constant": true,
|
|
239
308
|
"inputs": [
|
|
240
309
|
{
|
|
310
|
+
"internalType": "address",
|
|
241
311
|
"name": "",
|
|
242
312
|
"type": "address"
|
|
243
313
|
},
|
|
244
314
|
{
|
|
315
|
+
"internalType": "bytes32",
|
|
245
316
|
"name": "",
|
|
246
317
|
"type": "bytes32"
|
|
247
318
|
}
|
|
@@ -249,539 +320,724 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
249
320
|
"name": "approvedHashes",
|
|
250
321
|
"outputs": [
|
|
251
322
|
{
|
|
323
|
+
"internalType": "uint256",
|
|
252
324
|
"name": "",
|
|
253
325
|
"type": "uint256"
|
|
254
326
|
}
|
|
255
327
|
],
|
|
256
|
-
"payable": false,
|
|
257
328
|
"stateMutability": "view",
|
|
258
329
|
"type": "function"
|
|
259
330
|
},
|
|
260
331
|
{
|
|
261
|
-
"constant": false,
|
|
262
332
|
"inputs": [
|
|
263
333
|
{
|
|
264
|
-
"
|
|
265
|
-
"
|
|
334
|
+
"internalType": "uint256",
|
|
335
|
+
"name": "_threshold",
|
|
336
|
+
"type": "uint256"
|
|
266
337
|
}
|
|
267
338
|
],
|
|
268
|
-
"name": "
|
|
339
|
+
"name": "changeThreshold",
|
|
269
340
|
"outputs": [],
|
|
270
|
-
"payable": false,
|
|
271
341
|
"stateMutability": "nonpayable",
|
|
272
342
|
"type": "function"
|
|
273
343
|
},
|
|
274
344
|
{
|
|
275
|
-
"constant": false,
|
|
276
345
|
"inputs": [
|
|
277
346
|
{
|
|
278
|
-
"
|
|
347
|
+
"internalType": "bytes32",
|
|
348
|
+
"name": "dataHash",
|
|
349
|
+
"type": "bytes32"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"internalType": "bytes",
|
|
353
|
+
"name": "data",
|
|
354
|
+
"type": "bytes"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"internalType": "bytes",
|
|
358
|
+
"name": "signatures",
|
|
279
359
|
"type": "bytes"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"internalType": "uint256",
|
|
363
|
+
"name": "requiredSignatures",
|
|
364
|
+
"type": "uint256"
|
|
280
365
|
}
|
|
281
366
|
],
|
|
282
|
-
"name": "
|
|
367
|
+
"name": "checkNSignatures",
|
|
283
368
|
"outputs": [],
|
|
284
|
-
"
|
|
285
|
-
"stateMutability": "nonpayable",
|
|
369
|
+
"stateMutability": "view",
|
|
286
370
|
"type": "function"
|
|
287
371
|
},
|
|
288
372
|
{
|
|
289
|
-
"
|
|
290
|
-
"inputs": [],
|
|
291
|
-
"name": "SENTINEL_MODULES",
|
|
292
|
-
"outputs": [
|
|
373
|
+
"inputs": [
|
|
293
374
|
{
|
|
294
|
-
"
|
|
295
|
-
"
|
|
375
|
+
"internalType": "bytes32",
|
|
376
|
+
"name": "dataHash",
|
|
377
|
+
"type": "bytes32"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"internalType": "bytes",
|
|
381
|
+
"name": "data",
|
|
382
|
+
"type": "bytes"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"internalType": "bytes",
|
|
386
|
+
"name": "signatures",
|
|
387
|
+
"type": "bytes"
|
|
296
388
|
}
|
|
297
389
|
],
|
|
298
|
-
"
|
|
390
|
+
"name": "checkSignatures",
|
|
391
|
+
"outputs": [],
|
|
299
392
|
"stateMutability": "view",
|
|
300
393
|
"type": "function"
|
|
301
394
|
},
|
|
302
395
|
{
|
|
303
|
-
"
|
|
304
|
-
"inputs": [],
|
|
305
|
-
"name": "SENTINEL_OWNERS",
|
|
306
|
-
"outputs": [
|
|
396
|
+
"inputs": [
|
|
307
397
|
{
|
|
308
|
-
"
|
|
398
|
+
"internalType": "address",
|
|
399
|
+
"name": "prevModule",
|
|
400
|
+
"type": "address"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"internalType": "address",
|
|
404
|
+
"name": "module",
|
|
309
405
|
"type": "address"
|
|
310
406
|
}
|
|
311
407
|
],
|
|
312
|
-
"
|
|
313
|
-
"
|
|
408
|
+
"name": "disableModule",
|
|
409
|
+
"outputs": [],
|
|
410
|
+
"stateMutability": "nonpayable",
|
|
314
411
|
"type": "function"
|
|
315
412
|
},
|
|
316
413
|
{
|
|
317
|
-
"constant": true,
|
|
318
414
|
"inputs": [],
|
|
319
|
-
"name": "
|
|
415
|
+
"name": "domainSeparator",
|
|
320
416
|
"outputs": [
|
|
321
417
|
{
|
|
418
|
+
"internalType": "bytes32",
|
|
322
419
|
"name": "",
|
|
323
|
-
"type": "
|
|
420
|
+
"type": "bytes32"
|
|
324
421
|
}
|
|
325
422
|
],
|
|
326
|
-
"payable": false,
|
|
327
423
|
"stateMutability": "view",
|
|
328
424
|
"type": "function"
|
|
329
425
|
},
|
|
330
426
|
{
|
|
331
|
-
"
|
|
332
|
-
"inputs": [],
|
|
333
|
-
"name": "NAME",
|
|
334
|
-
"outputs": [
|
|
427
|
+
"inputs": [
|
|
335
428
|
{
|
|
336
|
-
"
|
|
337
|
-
"
|
|
429
|
+
"internalType": "address",
|
|
430
|
+
"name": "module",
|
|
431
|
+
"type": "address"
|
|
338
432
|
}
|
|
339
433
|
],
|
|
340
|
-
"
|
|
341
|
-
"
|
|
434
|
+
"name": "enableModule",
|
|
435
|
+
"outputs": [],
|
|
436
|
+
"stateMutability": "nonpayable",
|
|
342
437
|
"type": "function"
|
|
343
438
|
},
|
|
344
439
|
{
|
|
345
|
-
"constant": false,
|
|
346
440
|
"inputs": [
|
|
347
441
|
{
|
|
348
|
-
"
|
|
349
|
-
"
|
|
442
|
+
"internalType": "address",
|
|
443
|
+
"name": "to",
|
|
444
|
+
"type": "address"
|
|
350
445
|
},
|
|
351
446
|
{
|
|
352
|
-
"
|
|
447
|
+
"internalType": "uint256",
|
|
448
|
+
"name": "value",
|
|
353
449
|
"type": "uint256"
|
|
354
450
|
},
|
|
355
451
|
{
|
|
356
|
-
"
|
|
357
|
-
"type": "address"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
452
|
+
"internalType": "bytes",
|
|
360
453
|
"name": "data",
|
|
361
454
|
"type": "bytes"
|
|
362
455
|
},
|
|
363
456
|
{
|
|
364
|
-
"
|
|
365
|
-
"
|
|
457
|
+
"internalType": "enum Enum.Operation",
|
|
458
|
+
"name": "operation",
|
|
459
|
+
"type": "uint8"
|
|
366
460
|
},
|
|
367
461
|
{
|
|
368
|
-
"
|
|
462
|
+
"internalType": "uint256",
|
|
463
|
+
"name": "safeTxGas",
|
|
369
464
|
"type": "uint256"
|
|
370
465
|
},
|
|
371
466
|
{
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
"name": "setup",
|
|
377
|
-
"outputs": [],
|
|
378
|
-
"payable": false,
|
|
379
|
-
"stateMutability": "nonpayable",
|
|
380
|
-
"type": "function"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"constant": true,
|
|
384
|
-
"inputs": [],
|
|
385
|
-
"name": "nonce",
|
|
386
|
-
"outputs": [
|
|
467
|
+
"internalType": "uint256",
|
|
468
|
+
"name": "baseGas",
|
|
469
|
+
"type": "uint256"
|
|
470
|
+
},
|
|
387
471
|
{
|
|
388
|
-
"
|
|
472
|
+
"internalType": "uint256",
|
|
473
|
+
"name": "gasPrice",
|
|
389
474
|
"type": "uint256"
|
|
390
|
-
}
|
|
391
|
-
],
|
|
392
|
-
"payable": false,
|
|
393
|
-
"stateMutability": "view",
|
|
394
|
-
"type": "function"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"constant": true,
|
|
398
|
-
"inputs": [],
|
|
399
|
-
"name": "getModules",
|
|
400
|
-
"outputs": [
|
|
475
|
+
},
|
|
401
476
|
{
|
|
402
|
-
"
|
|
403
|
-
"
|
|
477
|
+
"internalType": "address",
|
|
478
|
+
"name": "gasToken",
|
|
479
|
+
"type": "address"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"internalType": "address",
|
|
483
|
+
"name": "refundReceiver",
|
|
484
|
+
"type": "address"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"internalType": "uint256",
|
|
488
|
+
"name": "_nonce",
|
|
489
|
+
"type": "uint256"
|
|
404
490
|
}
|
|
405
491
|
],
|
|
406
|
-
"
|
|
407
|
-
"stateMutability": "view",
|
|
408
|
-
"type": "function"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"constant": true,
|
|
412
|
-
"inputs": [],
|
|
413
|
-
"name": "SAFE_MSG_TYPEHASH",
|
|
492
|
+
"name": "encodeTransactionData",
|
|
414
493
|
"outputs": [
|
|
415
494
|
{
|
|
495
|
+
"internalType": "bytes",
|
|
416
496
|
"name": "",
|
|
417
|
-
"type": "
|
|
497
|
+
"type": "bytes"
|
|
418
498
|
}
|
|
419
499
|
],
|
|
420
|
-
"payable": false,
|
|
421
500
|
"stateMutability": "view",
|
|
422
501
|
"type": "function"
|
|
423
502
|
},
|
|
424
503
|
{
|
|
425
|
-
"constant": false,
|
|
426
504
|
"inputs": [
|
|
427
505
|
{
|
|
506
|
+
"internalType": "address",
|
|
428
507
|
"name": "to",
|
|
429
508
|
"type": "address"
|
|
430
509
|
},
|
|
431
510
|
{
|
|
511
|
+
"internalType": "uint256",
|
|
432
512
|
"name": "value",
|
|
433
513
|
"type": "uint256"
|
|
434
514
|
},
|
|
435
515
|
{
|
|
516
|
+
"internalType": "bytes",
|
|
436
517
|
"name": "data",
|
|
437
518
|
"type": "bytes"
|
|
438
519
|
},
|
|
439
520
|
{
|
|
521
|
+
"internalType": "enum Enum.Operation",
|
|
440
522
|
"name": "operation",
|
|
441
523
|
"type": "uint8"
|
|
442
|
-
}
|
|
443
|
-
],
|
|
444
|
-
"name": "requiredTxGas",
|
|
445
|
-
"outputs": [
|
|
524
|
+
},
|
|
446
525
|
{
|
|
447
|
-
"
|
|
526
|
+
"internalType": "uint256",
|
|
527
|
+
"name": "safeTxGas",
|
|
528
|
+
"type": "uint256"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"internalType": "uint256",
|
|
532
|
+
"name": "baseGas",
|
|
533
|
+
"type": "uint256"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"internalType": "uint256",
|
|
537
|
+
"name": "gasPrice",
|
|
448
538
|
"type": "uint256"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"internalType": "address",
|
|
542
|
+
"name": "gasToken",
|
|
543
|
+
"type": "address"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"internalType": "address payable",
|
|
547
|
+
"name": "refundReceiver",
|
|
548
|
+
"type": "address"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"internalType": "bytes",
|
|
552
|
+
"name": "signatures",
|
|
553
|
+
"type": "bytes"
|
|
449
554
|
}
|
|
450
555
|
],
|
|
451
|
-
"
|
|
452
|
-
"stateMutability": "nonpayable",
|
|
453
|
-
"type": "function"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"constant": true,
|
|
457
|
-
"inputs": [],
|
|
458
|
-
"name": "SAFE_TX_TYPEHASH",
|
|
556
|
+
"name": "execTransaction",
|
|
459
557
|
"outputs": [
|
|
460
558
|
{
|
|
461
|
-
"
|
|
462
|
-
"
|
|
559
|
+
"internalType": "bool",
|
|
560
|
+
"name": "success",
|
|
561
|
+
"type": "bool"
|
|
463
562
|
}
|
|
464
563
|
],
|
|
465
|
-
"
|
|
466
|
-
"stateMutability": "view",
|
|
564
|
+
"stateMutability": "payable",
|
|
467
565
|
"type": "function"
|
|
468
566
|
},
|
|
469
567
|
{
|
|
470
|
-
"constant": false,
|
|
471
568
|
"inputs": [
|
|
472
569
|
{
|
|
473
|
-
"
|
|
474
|
-
"
|
|
570
|
+
"internalType": "address",
|
|
571
|
+
"name": "to",
|
|
572
|
+
"type": "address"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"internalType": "uint256",
|
|
576
|
+
"name": "value",
|
|
577
|
+
"type": "uint256"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"internalType": "bytes",
|
|
581
|
+
"name": "data",
|
|
582
|
+
"type": "bytes"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"internalType": "enum Enum.Operation",
|
|
586
|
+
"name": "operation",
|
|
587
|
+
"type": "uint8"
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"name": "execTransactionFromModule",
|
|
591
|
+
"outputs": [
|
|
592
|
+
{
|
|
593
|
+
"internalType": "bool",
|
|
594
|
+
"name": "success",
|
|
595
|
+
"type": "bool"
|
|
475
596
|
}
|
|
476
597
|
],
|
|
477
|
-
"name": "approveHash",
|
|
478
|
-
"outputs": [],
|
|
479
|
-
"payable": false,
|
|
480
598
|
"stateMutability": "nonpayable",
|
|
481
599
|
"type": "function"
|
|
482
600
|
},
|
|
483
601
|
{
|
|
484
|
-
"constant": true,
|
|
485
602
|
"inputs": [
|
|
486
603
|
{
|
|
604
|
+
"internalType": "address",
|
|
487
605
|
"name": "to",
|
|
488
606
|
"type": "address"
|
|
489
607
|
},
|
|
490
608
|
{
|
|
609
|
+
"internalType": "uint256",
|
|
491
610
|
"name": "value",
|
|
492
611
|
"type": "uint256"
|
|
493
612
|
},
|
|
494
613
|
{
|
|
614
|
+
"internalType": "bytes",
|
|
495
615
|
"name": "data",
|
|
496
616
|
"type": "bytes"
|
|
497
617
|
},
|
|
498
618
|
{
|
|
619
|
+
"internalType": "enum Enum.Operation",
|
|
499
620
|
"name": "operation",
|
|
500
621
|
"type": "uint8"
|
|
501
|
-
}
|
|
622
|
+
}
|
|
623
|
+
],
|
|
624
|
+
"name": "execTransactionFromModuleReturnData",
|
|
625
|
+
"outputs": [
|
|
502
626
|
{
|
|
503
|
-
"
|
|
504
|
-
"
|
|
627
|
+
"internalType": "bool",
|
|
628
|
+
"name": "success",
|
|
629
|
+
"type": "bool"
|
|
505
630
|
},
|
|
506
631
|
{
|
|
507
|
-
"
|
|
508
|
-
"
|
|
509
|
-
|
|
632
|
+
"internalType": "bytes",
|
|
633
|
+
"name": "returnData",
|
|
634
|
+
"type": "bytes"
|
|
635
|
+
}
|
|
636
|
+
],
|
|
637
|
+
"stateMutability": "nonpayable",
|
|
638
|
+
"type": "function"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"inputs": [],
|
|
642
|
+
"name": "getChainId",
|
|
643
|
+
"outputs": [
|
|
510
644
|
{
|
|
511
|
-
"
|
|
645
|
+
"internalType": "uint256",
|
|
646
|
+
"name": "",
|
|
512
647
|
"type": "uint256"
|
|
513
|
-
}
|
|
648
|
+
}
|
|
649
|
+
],
|
|
650
|
+
"stateMutability": "view",
|
|
651
|
+
"type": "function"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"inputs": [
|
|
514
655
|
{
|
|
515
|
-
"
|
|
656
|
+
"internalType": "address",
|
|
657
|
+
"name": "start",
|
|
516
658
|
"type": "address"
|
|
517
659
|
},
|
|
518
660
|
{
|
|
519
|
-
"
|
|
520
|
-
"
|
|
661
|
+
"internalType": "uint256",
|
|
662
|
+
"name": "pageSize",
|
|
663
|
+
"type": "uint256"
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
"name": "getModulesPaginated",
|
|
667
|
+
"outputs": [
|
|
668
|
+
{
|
|
669
|
+
"internalType": "address[]",
|
|
670
|
+
"name": "array",
|
|
671
|
+
"type": "address[]"
|
|
521
672
|
},
|
|
522
673
|
{
|
|
523
|
-
"
|
|
524
|
-
"
|
|
674
|
+
"internalType": "address",
|
|
675
|
+
"name": "next",
|
|
676
|
+
"type": "address"
|
|
525
677
|
}
|
|
526
678
|
],
|
|
527
|
-
"
|
|
679
|
+
"stateMutability": "view",
|
|
680
|
+
"type": "function"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"inputs": [],
|
|
684
|
+
"name": "getOwners",
|
|
528
685
|
"outputs": [
|
|
529
686
|
{
|
|
687
|
+
"internalType": "address[]",
|
|
530
688
|
"name": "",
|
|
531
|
-
"type": "
|
|
689
|
+
"type": "address[]"
|
|
532
690
|
}
|
|
533
691
|
],
|
|
534
|
-
"payable": false,
|
|
535
692
|
"stateMutability": "view",
|
|
536
693
|
"type": "function"
|
|
537
694
|
},
|
|
538
695
|
{
|
|
539
|
-
"constant": false,
|
|
540
696
|
"inputs": [
|
|
541
697
|
{
|
|
542
|
-
"
|
|
543
|
-
"
|
|
698
|
+
"internalType": "uint256",
|
|
699
|
+
"name": "offset",
|
|
700
|
+
"type": "uint256"
|
|
544
701
|
},
|
|
545
702
|
{
|
|
546
|
-
"
|
|
547
|
-
"
|
|
703
|
+
"internalType": "uint256",
|
|
704
|
+
"name": "length",
|
|
705
|
+
"type": "uint256"
|
|
548
706
|
}
|
|
549
707
|
],
|
|
550
|
-
"name": "
|
|
551
|
-
"outputs": [
|
|
552
|
-
"payable": false,
|
|
553
|
-
"stateMutability": "nonpayable",
|
|
554
|
-
"type": "function"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"constant": false,
|
|
558
|
-
"inputs": [
|
|
559
|
-
{
|
|
560
|
-
"name": "prevOwner",
|
|
561
|
-
"type": "address"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"name": "oldOwner",
|
|
565
|
-
"type": "address"
|
|
566
|
-
},
|
|
708
|
+
"name": "getStorageAt",
|
|
709
|
+
"outputs": [
|
|
567
710
|
{
|
|
568
|
-
"
|
|
569
|
-
"
|
|
711
|
+
"internalType": "bytes",
|
|
712
|
+
"name": "",
|
|
713
|
+
"type": "bytes"
|
|
570
714
|
}
|
|
571
715
|
],
|
|
572
|
-
"
|
|
573
|
-
"outputs": [],
|
|
574
|
-
"payable": false,
|
|
575
|
-
"stateMutability": "nonpayable",
|
|
716
|
+
"stateMutability": "view",
|
|
576
717
|
"type": "function"
|
|
577
718
|
},
|
|
578
719
|
{
|
|
579
|
-
"constant": true,
|
|
580
720
|
"inputs": [],
|
|
581
721
|
"name": "getThreshold",
|
|
582
722
|
"outputs": [
|
|
583
723
|
{
|
|
724
|
+
"internalType": "uint256",
|
|
584
725
|
"name": "",
|
|
585
726
|
"type": "uint256"
|
|
586
727
|
}
|
|
587
728
|
],
|
|
588
|
-
"payable": false,
|
|
589
729
|
"stateMutability": "view",
|
|
590
730
|
"type": "function"
|
|
591
731
|
},
|
|
592
732
|
{
|
|
593
|
-
"constant": true,
|
|
594
733
|
"inputs": [
|
|
595
734
|
{
|
|
735
|
+
"internalType": "address",
|
|
596
736
|
"name": "to",
|
|
597
737
|
"type": "address"
|
|
598
738
|
},
|
|
599
739
|
{
|
|
740
|
+
"internalType": "uint256",
|
|
600
741
|
"name": "value",
|
|
601
742
|
"type": "uint256"
|
|
602
743
|
},
|
|
603
744
|
{
|
|
745
|
+
"internalType": "bytes",
|
|
604
746
|
"name": "data",
|
|
605
747
|
"type": "bytes"
|
|
606
748
|
},
|
|
607
749
|
{
|
|
750
|
+
"internalType": "enum Enum.Operation",
|
|
608
751
|
"name": "operation",
|
|
609
752
|
"type": "uint8"
|
|
610
753
|
},
|
|
611
754
|
{
|
|
755
|
+
"internalType": "uint256",
|
|
612
756
|
"name": "safeTxGas",
|
|
613
757
|
"type": "uint256"
|
|
614
758
|
},
|
|
615
759
|
{
|
|
760
|
+
"internalType": "uint256",
|
|
616
761
|
"name": "baseGas",
|
|
617
762
|
"type": "uint256"
|
|
618
763
|
},
|
|
619
764
|
{
|
|
765
|
+
"internalType": "uint256",
|
|
620
766
|
"name": "gasPrice",
|
|
621
767
|
"type": "uint256"
|
|
622
768
|
},
|
|
623
769
|
{
|
|
770
|
+
"internalType": "address",
|
|
624
771
|
"name": "gasToken",
|
|
625
772
|
"type": "address"
|
|
626
773
|
},
|
|
627
774
|
{
|
|
775
|
+
"internalType": "address",
|
|
628
776
|
"name": "refundReceiver",
|
|
629
777
|
"type": "address"
|
|
630
778
|
},
|
|
631
779
|
{
|
|
780
|
+
"internalType": "uint256",
|
|
632
781
|
"name": "_nonce",
|
|
633
782
|
"type": "uint256"
|
|
634
783
|
}
|
|
635
784
|
],
|
|
636
|
-
"name": "
|
|
785
|
+
"name": "getTransactionHash",
|
|
637
786
|
"outputs": [
|
|
638
787
|
{
|
|
788
|
+
"internalType": "bytes32",
|
|
639
789
|
"name": "",
|
|
640
|
-
"type": "
|
|
790
|
+
"type": "bytes32"
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"stateMutability": "view",
|
|
794
|
+
"type": "function"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"inputs": [
|
|
798
|
+
{
|
|
799
|
+
"internalType": "address",
|
|
800
|
+
"name": "module",
|
|
801
|
+
"type": "address"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"name": "isModuleEnabled",
|
|
805
|
+
"outputs": [
|
|
806
|
+
{
|
|
807
|
+
"internalType": "bool",
|
|
808
|
+
"name": "",
|
|
809
|
+
"type": "bool"
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"stateMutability": "view",
|
|
813
|
+
"type": "function"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"inputs": [
|
|
817
|
+
{
|
|
818
|
+
"internalType": "address",
|
|
819
|
+
"name": "owner",
|
|
820
|
+
"type": "address"
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"name": "isOwner",
|
|
824
|
+
"outputs": [
|
|
825
|
+
{
|
|
826
|
+
"internalType": "bool",
|
|
827
|
+
"name": "",
|
|
828
|
+
"type": "bool"
|
|
641
829
|
}
|
|
642
830
|
],
|
|
643
|
-
"payable": false,
|
|
644
831
|
"stateMutability": "view",
|
|
645
832
|
"type": "function"
|
|
646
833
|
},
|
|
647
834
|
{
|
|
648
|
-
"constant": true,
|
|
649
835
|
"inputs": [],
|
|
650
|
-
"name": "
|
|
836
|
+
"name": "nonce",
|
|
651
837
|
"outputs": [
|
|
652
838
|
{
|
|
839
|
+
"internalType": "uint256",
|
|
653
840
|
"name": "",
|
|
654
|
-
"type": "
|
|
841
|
+
"type": "uint256"
|
|
655
842
|
}
|
|
656
843
|
],
|
|
657
|
-
"payable": false,
|
|
658
844
|
"stateMutability": "view",
|
|
659
845
|
"type": "function"
|
|
660
846
|
},
|
|
661
847
|
{
|
|
662
|
-
"constant": false,
|
|
663
848
|
"inputs": [
|
|
664
849
|
{
|
|
850
|
+
"internalType": "address",
|
|
665
851
|
"name": "prevOwner",
|
|
666
852
|
"type": "address"
|
|
667
853
|
},
|
|
668
854
|
{
|
|
855
|
+
"internalType": "address",
|
|
669
856
|
"name": "owner",
|
|
670
857
|
"type": "address"
|
|
671
858
|
},
|
|
672
859
|
{
|
|
860
|
+
"internalType": "uint256",
|
|
673
861
|
"name": "_threshold",
|
|
674
862
|
"type": "uint256"
|
|
675
863
|
}
|
|
676
864
|
],
|
|
677
865
|
"name": "removeOwner",
|
|
678
866
|
"outputs": [],
|
|
679
|
-
"payable": false,
|
|
680
867
|
"stateMutability": "nonpayable",
|
|
681
868
|
"type": "function"
|
|
682
869
|
},
|
|
683
870
|
{
|
|
684
|
-
"
|
|
685
|
-
|
|
686
|
-
|
|
871
|
+
"inputs": [
|
|
872
|
+
{
|
|
873
|
+
"internalType": "address",
|
|
874
|
+
"name": "to",
|
|
875
|
+
"type": "address"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"internalType": "uint256",
|
|
879
|
+
"name": "value",
|
|
880
|
+
"type": "uint256"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"internalType": "bytes",
|
|
884
|
+
"name": "data",
|
|
885
|
+
"type": "bytes"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"internalType": "enum Enum.Operation",
|
|
889
|
+
"name": "operation",
|
|
890
|
+
"type": "uint8"
|
|
891
|
+
}
|
|
892
|
+
],
|
|
893
|
+
"name": "requiredTxGas",
|
|
687
894
|
"outputs": [
|
|
688
895
|
{
|
|
896
|
+
"internalType": "uint256",
|
|
689
897
|
"name": "",
|
|
690
|
-
"type": "
|
|
898
|
+
"type": "uint256"
|
|
691
899
|
}
|
|
692
900
|
],
|
|
693
|
-
"
|
|
694
|
-
"stateMutability": "view",
|
|
901
|
+
"stateMutability": "nonpayable",
|
|
695
902
|
"type": "function"
|
|
696
903
|
},
|
|
697
904
|
{
|
|
698
|
-
"payable": true,
|
|
699
|
-
"stateMutability": "payable",
|
|
700
|
-
"type": "fallback"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"anonymous": false,
|
|
704
905
|
"inputs": [
|
|
705
906
|
{
|
|
706
|
-
"
|
|
707
|
-
"name": "
|
|
708
|
-
"type": "
|
|
907
|
+
"internalType": "address",
|
|
908
|
+
"name": "handler",
|
|
909
|
+
"type": "address"
|
|
709
910
|
}
|
|
710
911
|
],
|
|
711
|
-
"name": "
|
|
712
|
-
"
|
|
912
|
+
"name": "setFallbackHandler",
|
|
913
|
+
"outputs": [],
|
|
914
|
+
"stateMutability": "nonpayable",
|
|
915
|
+
"type": "function"
|
|
713
916
|
},
|
|
714
917
|
{
|
|
715
|
-
"anonymous": false,
|
|
716
918
|
"inputs": [
|
|
717
919
|
{
|
|
718
|
-
"
|
|
719
|
-
"name": "
|
|
920
|
+
"internalType": "address",
|
|
921
|
+
"name": "guard",
|
|
720
922
|
"type": "address"
|
|
721
923
|
}
|
|
722
924
|
],
|
|
723
|
-
"name": "
|
|
724
|
-
"
|
|
925
|
+
"name": "setGuard",
|
|
926
|
+
"outputs": [],
|
|
927
|
+
"stateMutability": "nonpayable",
|
|
928
|
+
"type": "function"
|
|
725
929
|
},
|
|
726
930
|
{
|
|
727
|
-
"anonymous": false,
|
|
728
931
|
"inputs": [
|
|
729
932
|
{
|
|
730
|
-
"
|
|
731
|
-
"name": "
|
|
933
|
+
"internalType": "address[]",
|
|
934
|
+
"name": "_owners",
|
|
935
|
+
"type": "address[]"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"internalType": "uint256",
|
|
939
|
+
"name": "_threshold",
|
|
940
|
+
"type": "uint256"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"internalType": "address",
|
|
944
|
+
"name": "to",
|
|
945
|
+
"type": "address"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"internalType": "bytes",
|
|
949
|
+
"name": "data",
|
|
950
|
+
"type": "bytes"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"internalType": "address",
|
|
954
|
+
"name": "fallbackHandler",
|
|
955
|
+
"type": "address"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"internalType": "address",
|
|
959
|
+
"name": "paymentToken",
|
|
960
|
+
"type": "address"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"internalType": "uint256",
|
|
964
|
+
"name": "payment",
|
|
965
|
+
"type": "uint256"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"internalType": "address payable",
|
|
969
|
+
"name": "paymentReceiver",
|
|
732
970
|
"type": "address"
|
|
733
971
|
}
|
|
734
972
|
],
|
|
735
|
-
"name": "
|
|
736
|
-
"
|
|
973
|
+
"name": "setup",
|
|
974
|
+
"outputs": [],
|
|
975
|
+
"stateMutability": "nonpayable",
|
|
976
|
+
"type": "function"
|
|
737
977
|
},
|
|
738
978
|
{
|
|
739
|
-
"anonymous": false,
|
|
740
979
|
"inputs": [
|
|
741
980
|
{
|
|
742
|
-
"
|
|
743
|
-
"name": "
|
|
744
|
-
"type": "
|
|
981
|
+
"internalType": "bytes32",
|
|
982
|
+
"name": "",
|
|
983
|
+
"type": "bytes32"
|
|
745
984
|
}
|
|
746
985
|
],
|
|
747
|
-
"name": "
|
|
748
|
-
"
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
"anonymous": false,
|
|
752
|
-
"inputs": [
|
|
986
|
+
"name": "signedMessages",
|
|
987
|
+
"outputs": [
|
|
753
988
|
{
|
|
754
|
-
"
|
|
755
|
-
"name": "
|
|
756
|
-
"type": "
|
|
989
|
+
"internalType": "uint256",
|
|
990
|
+
"name": "",
|
|
991
|
+
"type": "uint256"
|
|
757
992
|
}
|
|
758
993
|
],
|
|
759
|
-
"
|
|
760
|
-
"type": "
|
|
994
|
+
"stateMutability": "view",
|
|
995
|
+
"type": "function"
|
|
761
996
|
},
|
|
762
997
|
{
|
|
763
|
-
"anonymous": false,
|
|
764
998
|
"inputs": [
|
|
765
999
|
{
|
|
766
|
-
"
|
|
767
|
-
"name": "
|
|
1000
|
+
"internalType": "address",
|
|
1001
|
+
"name": "targetContract",
|
|
768
1002
|
"type": "address"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"internalType": "bytes",
|
|
1006
|
+
"name": "calldataPayload",
|
|
1007
|
+
"type": "bytes"
|
|
769
1008
|
}
|
|
770
1009
|
],
|
|
771
|
-
"name": "
|
|
772
|
-
"
|
|
1010
|
+
"name": "simulateAndRevert",
|
|
1011
|
+
"outputs": [],
|
|
1012
|
+
"stateMutability": "nonpayable",
|
|
1013
|
+
"type": "function"
|
|
773
1014
|
},
|
|
774
1015
|
{
|
|
775
|
-
"anonymous": false,
|
|
776
1016
|
"inputs": [
|
|
777
1017
|
{
|
|
778
|
-
"
|
|
779
|
-
"name": "
|
|
1018
|
+
"internalType": "address",
|
|
1019
|
+
"name": "prevOwner",
|
|
1020
|
+
"type": "address"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"internalType": "address",
|
|
1024
|
+
"name": "oldOwner",
|
|
1025
|
+
"type": "address"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"internalType": "address",
|
|
1029
|
+
"name": "newOwner",
|
|
780
1030
|
"type": "address"
|
|
781
1031
|
}
|
|
782
1032
|
],
|
|
783
|
-
"name": "
|
|
784
|
-
"
|
|
1033
|
+
"name": "swapOwner",
|
|
1034
|
+
"outputs": [],
|
|
1035
|
+
"stateMutability": "nonpayable",
|
|
1036
|
+
"type": "function"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"stateMutability": "payable",
|
|
1040
|
+
"type": "receive"
|
|
785
1041
|
}
|
|
786
1042
|
];
|
|
787
1043
|
/**
|
|
@@ -842,95 +1098,81 @@ class GnosisSafe_json {
|
|
|
842
1098
|
return this.contract;
|
|
843
1099
|
}
|
|
844
1100
|
/**
|
|
845
|
-
*
|
|
846
|
-
* view
|
|
847
|
-
*/
|
|
848
|
-
async getMessageHash(message) {
|
|
849
|
-
return this.contract.read.getMessageHash([message]);
|
|
850
|
-
}
|
|
851
|
-
/**
|
|
852
|
-
* DOMAIN_SEPARATOR_TYPEHASH
|
|
853
|
-
* view
|
|
854
|
-
*/
|
|
855
|
-
async DOMAIN_SEPARATOR_TYPEHASH() {
|
|
856
|
-
return this.contract.read.DOMAIN_SEPARATOR_TYPEHASH();
|
|
857
|
-
}
|
|
858
|
-
/**
|
|
859
|
-
* isOwner
|
|
1101
|
+
* VERSION
|
|
860
1102
|
* view
|
|
861
1103
|
*/
|
|
862
|
-
async
|
|
863
|
-
return this.contract.read.
|
|
1104
|
+
async VERSION() {
|
|
1105
|
+
return this.contract.read.VERSION();
|
|
864
1106
|
}
|
|
865
1107
|
/**
|
|
866
|
-
*
|
|
1108
|
+
* approvedHashes
|
|
867
1109
|
* view
|
|
868
1110
|
*/
|
|
869
|
-
async
|
|
870
|
-
return this.contract.read.
|
|
1111
|
+
async approvedHashes(arg0, arg1) {
|
|
1112
|
+
return this.contract.read.approvedHashes([arg0, arg1]);
|
|
871
1113
|
}
|
|
872
1114
|
/**
|
|
873
|
-
*
|
|
1115
|
+
* checkNSignatures
|
|
874
1116
|
* view
|
|
875
1117
|
*/
|
|
876
|
-
async
|
|
877
|
-
return this.contract.read.
|
|
1118
|
+
async checkNSignatures(dataHash, data, signatures, requiredSignatures) {
|
|
1119
|
+
return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures]);
|
|
878
1120
|
}
|
|
879
1121
|
/**
|
|
880
|
-
*
|
|
1122
|
+
* checkSignatures
|
|
881
1123
|
* view
|
|
882
1124
|
*/
|
|
883
|
-
async
|
|
884
|
-
return this.contract.read.
|
|
1125
|
+
async checkSignatures(dataHash, data, signatures) {
|
|
1126
|
+
return this.contract.read.checkSignatures([dataHash, data, signatures]);
|
|
885
1127
|
}
|
|
886
1128
|
/**
|
|
887
|
-
*
|
|
1129
|
+
* domainSeparator
|
|
888
1130
|
* view
|
|
889
1131
|
*/
|
|
890
|
-
async
|
|
891
|
-
return this.contract.read.
|
|
1132
|
+
async domainSeparator() {
|
|
1133
|
+
return this.contract.read.domainSeparator();
|
|
892
1134
|
}
|
|
893
1135
|
/**
|
|
894
|
-
*
|
|
1136
|
+
* encodeTransactionData
|
|
895
1137
|
* view
|
|
896
1138
|
*/
|
|
897
|
-
async
|
|
898
|
-
return this.contract.read.
|
|
1139
|
+
async encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce) {
|
|
1140
|
+
return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
|
|
899
1141
|
}
|
|
900
1142
|
/**
|
|
901
|
-
*
|
|
1143
|
+
* getChainId
|
|
902
1144
|
* view
|
|
903
1145
|
*/
|
|
904
|
-
async
|
|
905
|
-
return this.contract.read.
|
|
1146
|
+
async getChainId() {
|
|
1147
|
+
return this.contract.read.getChainId();
|
|
906
1148
|
}
|
|
907
1149
|
/**
|
|
908
|
-
*
|
|
1150
|
+
* getModulesPaginated
|
|
909
1151
|
* view
|
|
910
1152
|
*/
|
|
911
|
-
async
|
|
912
|
-
return this.contract.read.
|
|
1153
|
+
async getModulesPaginated(start, pageSize) {
|
|
1154
|
+
return this.contract.read.getModulesPaginated([start, pageSize]);
|
|
913
1155
|
}
|
|
914
1156
|
/**
|
|
915
|
-
*
|
|
1157
|
+
* getOwners
|
|
916
1158
|
* view
|
|
917
1159
|
*/
|
|
918
|
-
async
|
|
919
|
-
return this.contract.read.
|
|
1160
|
+
async getOwners() {
|
|
1161
|
+
return this.contract.read.getOwners();
|
|
920
1162
|
}
|
|
921
1163
|
/**
|
|
922
|
-
*
|
|
1164
|
+
* getStorageAt
|
|
923
1165
|
* view
|
|
924
1166
|
*/
|
|
925
|
-
async
|
|
926
|
-
return this.contract.read.
|
|
1167
|
+
async getStorageAt(offset, length) {
|
|
1168
|
+
return this.contract.read.getStorageAt([offset, length]);
|
|
927
1169
|
}
|
|
928
1170
|
/**
|
|
929
|
-
*
|
|
1171
|
+
* getThreshold
|
|
930
1172
|
* view
|
|
931
1173
|
*/
|
|
932
|
-
async
|
|
933
|
-
return this.contract.read.
|
|
1174
|
+
async getThreshold() {
|
|
1175
|
+
return this.contract.read.getThreshold();
|
|
934
1176
|
}
|
|
935
1177
|
/**
|
|
936
1178
|
* getTransactionHash
|
|
@@ -940,32 +1182,32 @@ class GnosisSafe_json {
|
|
|
940
1182
|
return this.contract.read.getTransactionHash([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
|
|
941
1183
|
}
|
|
942
1184
|
/**
|
|
943
|
-
*
|
|
1185
|
+
* isModuleEnabled
|
|
944
1186
|
* view
|
|
945
1187
|
*/
|
|
946
|
-
async
|
|
947
|
-
return this.contract.read.
|
|
1188
|
+
async isModuleEnabled(module) {
|
|
1189
|
+
return this.contract.read.isModuleEnabled([module]);
|
|
948
1190
|
}
|
|
949
1191
|
/**
|
|
950
|
-
*
|
|
1192
|
+
* isOwner
|
|
951
1193
|
* view
|
|
952
1194
|
*/
|
|
953
|
-
async
|
|
954
|
-
return this.contract.read.
|
|
1195
|
+
async isOwner(owner) {
|
|
1196
|
+
return this.contract.read.isOwner([owner]);
|
|
955
1197
|
}
|
|
956
1198
|
/**
|
|
957
|
-
*
|
|
1199
|
+
* nonce
|
|
958
1200
|
* view
|
|
959
1201
|
*/
|
|
960
|
-
async
|
|
961
|
-
return this.contract.read.
|
|
1202
|
+
async nonce() {
|
|
1203
|
+
return this.contract.read.nonce();
|
|
962
1204
|
}
|
|
963
1205
|
/**
|
|
964
|
-
*
|
|
1206
|
+
* signedMessages
|
|
965
1207
|
* view
|
|
966
1208
|
*/
|
|
967
|
-
async
|
|
968
|
-
return this.contract.read.
|
|
1209
|
+
async signedMessages(arg0) {
|
|
1210
|
+
return this.contract.read.signedMessages([arg0]);
|
|
969
1211
|
}
|
|
970
1212
|
/**
|
|
971
1213
|
* addOwnerWithThreshold
|
|
@@ -979,52 +1221,52 @@ class GnosisSafe_json {
|
|
|
979
1221
|
return this.contract.write.addOwnerWithThreshold([owner, _threshold], options);
|
|
980
1222
|
}
|
|
981
1223
|
/**
|
|
982
|
-
*
|
|
1224
|
+
* approveHash
|
|
983
1225
|
* nonpayable
|
|
984
1226
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
985
1227
|
*/
|
|
986
|
-
async
|
|
1228
|
+
async approveHash(hashToApprove, options) {
|
|
987
1229
|
if (!this.contract.write) {
|
|
988
1230
|
throw new Error('Wallet client is required for write operations');
|
|
989
1231
|
}
|
|
990
|
-
return this.contract.write.
|
|
1232
|
+
return this.contract.write.approveHash([hashToApprove], options);
|
|
991
1233
|
}
|
|
992
1234
|
/**
|
|
993
|
-
*
|
|
1235
|
+
* changeThreshold
|
|
994
1236
|
* nonpayable
|
|
995
1237
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
996
1238
|
*/
|
|
997
|
-
async
|
|
1239
|
+
async changeThreshold(_threshold, options) {
|
|
998
1240
|
if (!this.contract.write) {
|
|
999
1241
|
throw new Error('Wallet client is required for write operations');
|
|
1000
1242
|
}
|
|
1001
|
-
return this.contract.write.
|
|
1243
|
+
return this.contract.write.changeThreshold([_threshold], options);
|
|
1002
1244
|
}
|
|
1003
1245
|
/**
|
|
1004
|
-
*
|
|
1246
|
+
* disableModule
|
|
1005
1247
|
* nonpayable
|
|
1006
1248
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1007
1249
|
*/
|
|
1008
|
-
async
|
|
1250
|
+
async disableModule(prevModule, module, options) {
|
|
1009
1251
|
if (!this.contract.write) {
|
|
1010
1252
|
throw new Error('Wallet client is required for write operations');
|
|
1011
1253
|
}
|
|
1012
|
-
return this.contract.write.
|
|
1254
|
+
return this.contract.write.disableModule([prevModule, module], options);
|
|
1013
1255
|
}
|
|
1014
1256
|
/**
|
|
1015
|
-
*
|
|
1257
|
+
* enableModule
|
|
1016
1258
|
* nonpayable
|
|
1017
1259
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1018
1260
|
*/
|
|
1019
|
-
async
|
|
1261
|
+
async enableModule(module, options) {
|
|
1020
1262
|
if (!this.contract.write) {
|
|
1021
1263
|
throw new Error('Wallet client is required for write operations');
|
|
1022
1264
|
}
|
|
1023
|
-
return this.contract.write.
|
|
1265
|
+
return this.contract.write.enableModule([module], options);
|
|
1024
1266
|
}
|
|
1025
1267
|
/**
|
|
1026
1268
|
* execTransaction
|
|
1027
|
-
*
|
|
1269
|
+
* payable
|
|
1028
1270
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1029
1271
|
*/
|
|
1030
1272
|
async execTransaction(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures, options) {
|
|
@@ -1034,37 +1276,37 @@ class GnosisSafe_json {
|
|
|
1034
1276
|
return this.contract.write.execTransaction([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures], options);
|
|
1035
1277
|
}
|
|
1036
1278
|
/**
|
|
1037
|
-
*
|
|
1279
|
+
* execTransactionFromModule
|
|
1038
1280
|
* nonpayable
|
|
1039
1281
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1040
1282
|
*/
|
|
1041
|
-
async
|
|
1283
|
+
async execTransactionFromModule(to, value, data, operation, options) {
|
|
1042
1284
|
if (!this.contract.write) {
|
|
1043
1285
|
throw new Error('Wallet client is required for write operations');
|
|
1044
1286
|
}
|
|
1045
|
-
return this.contract.write.
|
|
1287
|
+
return this.contract.write.execTransactionFromModule([to, value, data, operation], options);
|
|
1046
1288
|
}
|
|
1047
1289
|
/**
|
|
1048
|
-
*
|
|
1290
|
+
* execTransactionFromModuleReturnData
|
|
1049
1291
|
* nonpayable
|
|
1050
1292
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1051
1293
|
*/
|
|
1052
|
-
async
|
|
1294
|
+
async execTransactionFromModuleReturnData(to, value, data, operation, options) {
|
|
1053
1295
|
if (!this.contract.write) {
|
|
1054
1296
|
throw new Error('Wallet client is required for write operations');
|
|
1055
1297
|
}
|
|
1056
|
-
return this.contract.write.
|
|
1298
|
+
return this.contract.write.execTransactionFromModuleReturnData([to, value, data, operation], options);
|
|
1057
1299
|
}
|
|
1058
1300
|
/**
|
|
1059
|
-
*
|
|
1301
|
+
* removeOwner
|
|
1060
1302
|
* nonpayable
|
|
1061
1303
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1062
1304
|
*/
|
|
1063
|
-
async
|
|
1305
|
+
async removeOwner(prevOwner, owner, _threshold, options) {
|
|
1064
1306
|
if (!this.contract.write) {
|
|
1065
1307
|
throw new Error('Wallet client is required for write operations');
|
|
1066
1308
|
}
|
|
1067
|
-
return this.contract.write.
|
|
1309
|
+
return this.contract.write.removeOwner([prevOwner, owner, _threshold], options);
|
|
1068
1310
|
}
|
|
1069
1311
|
/**
|
|
1070
1312
|
* requiredTxGas
|
|
@@ -1078,48 +1320,59 @@ class GnosisSafe_json {
|
|
|
1078
1320
|
return this.contract.write.requiredTxGas([to, value, data, operation], options);
|
|
1079
1321
|
}
|
|
1080
1322
|
/**
|
|
1081
|
-
*
|
|
1323
|
+
* setFallbackHandler
|
|
1082
1324
|
* nonpayable
|
|
1083
1325
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1084
1326
|
*/
|
|
1085
|
-
async
|
|
1327
|
+
async setFallbackHandler(handler, options) {
|
|
1086
1328
|
if (!this.contract.write) {
|
|
1087
1329
|
throw new Error('Wallet client is required for write operations');
|
|
1088
1330
|
}
|
|
1089
|
-
return this.contract.write.
|
|
1331
|
+
return this.contract.write.setFallbackHandler([handler], options);
|
|
1090
1332
|
}
|
|
1091
1333
|
/**
|
|
1092
|
-
*
|
|
1334
|
+
* setGuard
|
|
1093
1335
|
* nonpayable
|
|
1094
1336
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1095
1337
|
*/
|
|
1096
|
-
async
|
|
1338
|
+
async setGuard(guard, options) {
|
|
1097
1339
|
if (!this.contract.write) {
|
|
1098
1340
|
throw new Error('Wallet client is required for write operations');
|
|
1099
1341
|
}
|
|
1100
|
-
return this.contract.write.
|
|
1342
|
+
return this.contract.write.setGuard([guard], options);
|
|
1101
1343
|
}
|
|
1102
1344
|
/**
|
|
1103
|
-
*
|
|
1345
|
+
* setup
|
|
1104
1346
|
* nonpayable
|
|
1105
1347
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1106
1348
|
*/
|
|
1107
|
-
async
|
|
1349
|
+
async setup(_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver, options) {
|
|
1108
1350
|
if (!this.contract.write) {
|
|
1109
1351
|
throw new Error('Wallet client is required for write operations');
|
|
1110
1352
|
}
|
|
1111
|
-
return this.contract.write.
|
|
1353
|
+
return this.contract.write.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
|
|
1112
1354
|
}
|
|
1113
1355
|
/**
|
|
1114
|
-
*
|
|
1356
|
+
* simulateAndRevert
|
|
1115
1357
|
* nonpayable
|
|
1116
1358
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1117
1359
|
*/
|
|
1118
|
-
async
|
|
1360
|
+
async simulateAndRevert(targetContract, calldataPayload, options) {
|
|
1119
1361
|
if (!this.contract.write) {
|
|
1120
1362
|
throw new Error('Wallet client is required for write operations');
|
|
1121
1363
|
}
|
|
1122
|
-
return this.contract.write.
|
|
1364
|
+
return this.contract.write.simulateAndRevert([targetContract, calldataPayload], options);
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* swapOwner
|
|
1368
|
+
* nonpayable
|
|
1369
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1370
|
+
*/
|
|
1371
|
+
async swapOwner(prevOwner, oldOwner, newOwner, options) {
|
|
1372
|
+
if (!this.contract.write) {
|
|
1373
|
+
throw new Error('Wallet client is required for write operations');
|
|
1374
|
+
}
|
|
1375
|
+
return this.contract.write.swapOwner([prevOwner, oldOwner, newOwner], options);
|
|
1123
1376
|
}
|
|
1124
1377
|
/**
|
|
1125
1378
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -1144,36 +1397,36 @@ class GnosisSafe_json {
|
|
|
1144
1397
|
return contract.simulate.addOwnerWithThreshold([owner, _threshold], options);
|
|
1145
1398
|
},
|
|
1146
1399
|
/**
|
|
1147
|
-
* Simulate
|
|
1400
|
+
* Simulate approveHash
|
|
1148
1401
|
* Returns gas estimate and result without sending transaction
|
|
1149
1402
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1150
1403
|
*/
|
|
1151
|
-
async
|
|
1152
|
-
return contract.simulate.
|
|
1404
|
+
async approveHash(hashToApprove, options) {
|
|
1405
|
+
return contract.simulate.approveHash([hashToApprove], options);
|
|
1153
1406
|
},
|
|
1154
1407
|
/**
|
|
1155
|
-
* Simulate
|
|
1408
|
+
* Simulate changeThreshold
|
|
1156
1409
|
* Returns gas estimate and result without sending transaction
|
|
1157
1410
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1158
1411
|
*/
|
|
1159
|
-
async
|
|
1160
|
-
return contract.simulate.
|
|
1412
|
+
async changeThreshold(_threshold, options) {
|
|
1413
|
+
return contract.simulate.changeThreshold([_threshold], options);
|
|
1161
1414
|
},
|
|
1162
1415
|
/**
|
|
1163
|
-
* Simulate
|
|
1416
|
+
* Simulate disableModule
|
|
1164
1417
|
* Returns gas estimate and result without sending transaction
|
|
1165
1418
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1166
1419
|
*/
|
|
1167
|
-
async
|
|
1168
|
-
return contract.simulate.
|
|
1420
|
+
async disableModule(prevModule, module, options) {
|
|
1421
|
+
return contract.simulate.disableModule([prevModule, module], options);
|
|
1169
1422
|
},
|
|
1170
1423
|
/**
|
|
1171
|
-
* Simulate
|
|
1424
|
+
* Simulate enableModule
|
|
1172
1425
|
* Returns gas estimate and result without sending transaction
|
|
1173
1426
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1174
1427
|
*/
|
|
1175
|
-
async
|
|
1176
|
-
return contract.simulate.
|
|
1428
|
+
async enableModule(module, options) {
|
|
1429
|
+
return contract.simulate.enableModule([module], options);
|
|
1177
1430
|
},
|
|
1178
1431
|
/**
|
|
1179
1432
|
* Simulate execTransaction
|
|
@@ -1184,28 +1437,28 @@ class GnosisSafe_json {
|
|
|
1184
1437
|
return contract.simulate.execTransaction([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures], options);
|
|
1185
1438
|
},
|
|
1186
1439
|
/**
|
|
1187
|
-
* Simulate
|
|
1440
|
+
* Simulate execTransactionFromModule
|
|
1188
1441
|
* Returns gas estimate and result without sending transaction
|
|
1189
1442
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1190
1443
|
*/
|
|
1191
|
-
async
|
|
1192
|
-
return contract.simulate.
|
|
1444
|
+
async execTransactionFromModule(to, value, data, operation, options) {
|
|
1445
|
+
return contract.simulate.execTransactionFromModule([to, value, data, operation], options);
|
|
1193
1446
|
},
|
|
1194
1447
|
/**
|
|
1195
|
-
* Simulate
|
|
1448
|
+
* Simulate execTransactionFromModuleReturnData
|
|
1196
1449
|
* Returns gas estimate and result without sending transaction
|
|
1197
1450
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1198
1451
|
*/
|
|
1199
|
-
async
|
|
1200
|
-
return contract.simulate.
|
|
1452
|
+
async execTransactionFromModuleReturnData(to, value, data, operation, options) {
|
|
1453
|
+
return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation], options);
|
|
1201
1454
|
},
|
|
1202
1455
|
/**
|
|
1203
|
-
* Simulate
|
|
1456
|
+
* Simulate removeOwner
|
|
1204
1457
|
* Returns gas estimate and result without sending transaction
|
|
1205
1458
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1206
1459
|
*/
|
|
1207
|
-
async
|
|
1208
|
-
return contract.simulate.
|
|
1460
|
+
async removeOwner(prevOwner, owner, _threshold, options) {
|
|
1461
|
+
return contract.simulate.removeOwner([prevOwner, owner, _threshold], options);
|
|
1209
1462
|
},
|
|
1210
1463
|
/**
|
|
1211
1464
|
* Simulate requiredTxGas
|
|
@@ -1216,36 +1469,44 @@ class GnosisSafe_json {
|
|
|
1216
1469
|
return contract.simulate.requiredTxGas([to, value, data, operation], options);
|
|
1217
1470
|
},
|
|
1218
1471
|
/**
|
|
1219
|
-
* Simulate
|
|
1472
|
+
* Simulate setFallbackHandler
|
|
1220
1473
|
* Returns gas estimate and result without sending transaction
|
|
1221
1474
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1222
1475
|
*/
|
|
1223
|
-
async
|
|
1224
|
-
return contract.simulate.
|
|
1476
|
+
async setFallbackHandler(handler, options) {
|
|
1477
|
+
return contract.simulate.setFallbackHandler([handler], options);
|
|
1225
1478
|
},
|
|
1226
1479
|
/**
|
|
1227
|
-
* Simulate
|
|
1480
|
+
* Simulate setGuard
|
|
1228
1481
|
* Returns gas estimate and result without sending transaction
|
|
1229
1482
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1230
1483
|
*/
|
|
1231
|
-
async
|
|
1232
|
-
return contract.simulate.
|
|
1484
|
+
async setGuard(guard, options) {
|
|
1485
|
+
return contract.simulate.setGuard([guard], options);
|
|
1233
1486
|
},
|
|
1234
1487
|
/**
|
|
1235
|
-
* Simulate
|
|
1488
|
+
* Simulate setup
|
|
1236
1489
|
* Returns gas estimate and result without sending transaction
|
|
1237
1490
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1238
1491
|
*/
|
|
1239
|
-
async
|
|
1240
|
-
return contract.simulate.
|
|
1492
|
+
async setup(_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver, options) {
|
|
1493
|
+
return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
|
|
1241
1494
|
},
|
|
1242
1495
|
/**
|
|
1243
|
-
* Simulate
|
|
1496
|
+
* Simulate simulateAndRevert
|
|
1244
1497
|
* Returns gas estimate and result without sending transaction
|
|
1245
1498
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1246
1499
|
*/
|
|
1247
|
-
async
|
|
1248
|
-
return contract.simulate.
|
|
1500
|
+
async simulateAndRevert(targetContract, calldataPayload, options) {
|
|
1501
|
+
return contract.simulate.simulateAndRevert([targetContract, calldataPayload], options);
|
|
1502
|
+
},
|
|
1503
|
+
/**
|
|
1504
|
+
* Simulate swapOwner
|
|
1505
|
+
* Returns gas estimate and result without sending transaction
|
|
1506
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1507
|
+
*/
|
|
1508
|
+
async swapOwner(prevOwner, oldOwner, newOwner, options) {
|
|
1509
|
+
return contract.simulate.swapOwner([prevOwner, oldOwner, newOwner], options);
|
|
1249
1510
|
}
|
|
1250
1511
|
};
|
|
1251
1512
|
}
|
|
@@ -1264,16 +1525,16 @@ class GnosisSafe_json {
|
|
|
1264
1525
|
get watch() {
|
|
1265
1526
|
return {
|
|
1266
1527
|
/**
|
|
1267
|
-
* Watch
|
|
1528
|
+
* Watch AddedOwner events
|
|
1268
1529
|
* @param callback Function to call when event is emitted
|
|
1269
1530
|
* @param filter Optional filter for indexed parameters
|
|
1270
1531
|
* @returns Unwatch function to stop listening
|
|
1271
1532
|
*/
|
|
1272
|
-
|
|
1533
|
+
AddedOwner: (callback) => {
|
|
1273
1534
|
return this.publicClient.watchContractEvent({
|
|
1274
1535
|
address: this.contractAddress,
|
|
1275
1536
|
abi: exports.GnosisSafe_jsonAbi,
|
|
1276
|
-
eventName: '
|
|
1537
|
+
eventName: 'AddedOwner',
|
|
1277
1538
|
onLogs: (logs) => {
|
|
1278
1539
|
logs.forEach((log) => {
|
|
1279
1540
|
callback(log.args);
|
|
@@ -1282,16 +1543,17 @@ class GnosisSafe_json {
|
|
|
1282
1543
|
});
|
|
1283
1544
|
},
|
|
1284
1545
|
/**
|
|
1285
|
-
* Watch
|
|
1546
|
+
* Watch ApproveHash events
|
|
1286
1547
|
* @param callback Function to call when event is emitted
|
|
1287
1548
|
* @param filter Optional filter for indexed parameters
|
|
1288
1549
|
* @returns Unwatch function to stop listening
|
|
1289
1550
|
*/
|
|
1290
|
-
|
|
1551
|
+
ApproveHash: (callback, filter) => {
|
|
1291
1552
|
return this.publicClient.watchContractEvent({
|
|
1292
1553
|
address: this.contractAddress,
|
|
1293
1554
|
abi: exports.GnosisSafe_jsonAbi,
|
|
1294
|
-
eventName: '
|
|
1555
|
+
eventName: 'ApproveHash',
|
|
1556
|
+
args: filter,
|
|
1295
1557
|
onLogs: (logs) => {
|
|
1296
1558
|
logs.forEach((log) => {
|
|
1297
1559
|
callback(log.args);
|
|
@@ -1300,16 +1562,34 @@ class GnosisSafe_json {
|
|
|
1300
1562
|
});
|
|
1301
1563
|
},
|
|
1302
1564
|
/**
|
|
1303
|
-
* Watch
|
|
1565
|
+
* Watch ChangedFallbackHandler events
|
|
1304
1566
|
* @param callback Function to call when event is emitted
|
|
1305
1567
|
* @param filter Optional filter for indexed parameters
|
|
1306
1568
|
* @returns Unwatch function to stop listening
|
|
1307
1569
|
*/
|
|
1308
|
-
|
|
1570
|
+
ChangedFallbackHandler: (callback) => {
|
|
1309
1571
|
return this.publicClient.watchContractEvent({
|
|
1310
1572
|
address: this.contractAddress,
|
|
1311
1573
|
abi: exports.GnosisSafe_jsonAbi,
|
|
1312
|
-
eventName: '
|
|
1574
|
+
eventName: 'ChangedFallbackHandler',
|
|
1575
|
+
onLogs: (logs) => {
|
|
1576
|
+
logs.forEach((log) => {
|
|
1577
|
+
callback(log.args);
|
|
1578
|
+
});
|
|
1579
|
+
},
|
|
1580
|
+
});
|
|
1581
|
+
},
|
|
1582
|
+
/**
|
|
1583
|
+
* Watch ChangedGuard events
|
|
1584
|
+
* @param callback Function to call when event is emitted
|
|
1585
|
+
* @param filter Optional filter for indexed parameters
|
|
1586
|
+
* @returns Unwatch function to stop listening
|
|
1587
|
+
*/
|
|
1588
|
+
ChangedGuard: (callback) => {
|
|
1589
|
+
return this.publicClient.watchContractEvent({
|
|
1590
|
+
address: this.contractAddress,
|
|
1591
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1592
|
+
eventName: 'ChangedGuard',
|
|
1313
1593
|
onLogs: (logs) => {
|
|
1314
1594
|
logs.forEach((log) => {
|
|
1315
1595
|
callback(log.args);
|
|
@@ -1335,6 +1615,24 @@ class GnosisSafe_json {
|
|
|
1335
1615
|
},
|
|
1336
1616
|
});
|
|
1337
1617
|
},
|
|
1618
|
+
/**
|
|
1619
|
+
* Watch DisabledModule events
|
|
1620
|
+
* @param callback Function to call when event is emitted
|
|
1621
|
+
* @param filter Optional filter for indexed parameters
|
|
1622
|
+
* @returns Unwatch function to stop listening
|
|
1623
|
+
*/
|
|
1624
|
+
DisabledModule: (callback) => {
|
|
1625
|
+
return this.publicClient.watchContractEvent({
|
|
1626
|
+
address: this.contractAddress,
|
|
1627
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1628
|
+
eventName: 'DisabledModule',
|
|
1629
|
+
onLogs: (logs) => {
|
|
1630
|
+
logs.forEach((log) => {
|
|
1631
|
+
callback(log.args);
|
|
1632
|
+
});
|
|
1633
|
+
},
|
|
1634
|
+
});
|
|
1635
|
+
},
|
|
1338
1636
|
/**
|
|
1339
1637
|
* Watch EnabledModule events
|
|
1340
1638
|
* @param callback Function to call when event is emitted
|
|
@@ -1354,16 +1652,128 @@ class GnosisSafe_json {
|
|
|
1354
1652
|
});
|
|
1355
1653
|
},
|
|
1356
1654
|
/**
|
|
1357
|
-
* Watch
|
|
1655
|
+
* Watch ExecutionFailure events
|
|
1358
1656
|
* @param callback Function to call when event is emitted
|
|
1359
1657
|
* @param filter Optional filter for indexed parameters
|
|
1360
1658
|
* @returns Unwatch function to stop listening
|
|
1361
1659
|
*/
|
|
1362
|
-
|
|
1660
|
+
ExecutionFailure: (callback) => {
|
|
1363
1661
|
return this.publicClient.watchContractEvent({
|
|
1364
1662
|
address: this.contractAddress,
|
|
1365
1663
|
abi: exports.GnosisSafe_jsonAbi,
|
|
1366
|
-
eventName: '
|
|
1664
|
+
eventName: 'ExecutionFailure',
|
|
1665
|
+
onLogs: (logs) => {
|
|
1666
|
+
logs.forEach((log) => {
|
|
1667
|
+
callback(log.args);
|
|
1668
|
+
});
|
|
1669
|
+
},
|
|
1670
|
+
});
|
|
1671
|
+
},
|
|
1672
|
+
/**
|
|
1673
|
+
* Watch ExecutionFromModuleFailure events
|
|
1674
|
+
* @param callback Function to call when event is emitted
|
|
1675
|
+
* @param filter Optional filter for indexed parameters
|
|
1676
|
+
* @returns Unwatch function to stop listening
|
|
1677
|
+
*/
|
|
1678
|
+
ExecutionFromModuleFailure: (callback, filter) => {
|
|
1679
|
+
return this.publicClient.watchContractEvent({
|
|
1680
|
+
address: this.contractAddress,
|
|
1681
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1682
|
+
eventName: 'ExecutionFromModuleFailure',
|
|
1683
|
+
args: filter,
|
|
1684
|
+
onLogs: (logs) => {
|
|
1685
|
+
logs.forEach((log) => {
|
|
1686
|
+
callback(log.args);
|
|
1687
|
+
});
|
|
1688
|
+
},
|
|
1689
|
+
});
|
|
1690
|
+
},
|
|
1691
|
+
/**
|
|
1692
|
+
* Watch ExecutionFromModuleSuccess events
|
|
1693
|
+
* @param callback Function to call when event is emitted
|
|
1694
|
+
* @param filter Optional filter for indexed parameters
|
|
1695
|
+
* @returns Unwatch function to stop listening
|
|
1696
|
+
*/
|
|
1697
|
+
ExecutionFromModuleSuccess: (callback, filter) => {
|
|
1698
|
+
return this.publicClient.watchContractEvent({
|
|
1699
|
+
address: this.contractAddress,
|
|
1700
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1701
|
+
eventName: 'ExecutionFromModuleSuccess',
|
|
1702
|
+
args: filter,
|
|
1703
|
+
onLogs: (logs) => {
|
|
1704
|
+
logs.forEach((log) => {
|
|
1705
|
+
callback(log.args);
|
|
1706
|
+
});
|
|
1707
|
+
},
|
|
1708
|
+
});
|
|
1709
|
+
},
|
|
1710
|
+
/**
|
|
1711
|
+
* Watch ExecutionSuccess events
|
|
1712
|
+
* @param callback Function to call when event is emitted
|
|
1713
|
+
* @param filter Optional filter for indexed parameters
|
|
1714
|
+
* @returns Unwatch function to stop listening
|
|
1715
|
+
*/
|
|
1716
|
+
ExecutionSuccess: (callback) => {
|
|
1717
|
+
return this.publicClient.watchContractEvent({
|
|
1718
|
+
address: this.contractAddress,
|
|
1719
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1720
|
+
eventName: 'ExecutionSuccess',
|
|
1721
|
+
onLogs: (logs) => {
|
|
1722
|
+
logs.forEach((log) => {
|
|
1723
|
+
callback(log.args);
|
|
1724
|
+
});
|
|
1725
|
+
},
|
|
1726
|
+
});
|
|
1727
|
+
},
|
|
1728
|
+
/**
|
|
1729
|
+
* Watch RemovedOwner events
|
|
1730
|
+
* @param callback Function to call when event is emitted
|
|
1731
|
+
* @param filter Optional filter for indexed parameters
|
|
1732
|
+
* @returns Unwatch function to stop listening
|
|
1733
|
+
*/
|
|
1734
|
+
RemovedOwner: (callback) => {
|
|
1735
|
+
return this.publicClient.watchContractEvent({
|
|
1736
|
+
address: this.contractAddress,
|
|
1737
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1738
|
+
eventName: 'RemovedOwner',
|
|
1739
|
+
onLogs: (logs) => {
|
|
1740
|
+
logs.forEach((log) => {
|
|
1741
|
+
callback(log.args);
|
|
1742
|
+
});
|
|
1743
|
+
},
|
|
1744
|
+
});
|
|
1745
|
+
},
|
|
1746
|
+
/**
|
|
1747
|
+
* Watch SafeReceived events
|
|
1748
|
+
* @param callback Function to call when event is emitted
|
|
1749
|
+
* @param filter Optional filter for indexed parameters
|
|
1750
|
+
* @returns Unwatch function to stop listening
|
|
1751
|
+
*/
|
|
1752
|
+
SafeReceived: (callback, filter) => {
|
|
1753
|
+
return this.publicClient.watchContractEvent({
|
|
1754
|
+
address: this.contractAddress,
|
|
1755
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1756
|
+
eventName: 'SafeReceived',
|
|
1757
|
+
args: filter,
|
|
1758
|
+
onLogs: (logs) => {
|
|
1759
|
+
logs.forEach((log) => {
|
|
1760
|
+
callback(log.args);
|
|
1761
|
+
});
|
|
1762
|
+
},
|
|
1763
|
+
});
|
|
1764
|
+
},
|
|
1765
|
+
/**
|
|
1766
|
+
* Watch SafeSetup events
|
|
1767
|
+
* @param callback Function to call when event is emitted
|
|
1768
|
+
* @param filter Optional filter for indexed parameters
|
|
1769
|
+
* @returns Unwatch function to stop listening
|
|
1770
|
+
*/
|
|
1771
|
+
SafeSetup: (callback, filter) => {
|
|
1772
|
+
return this.publicClient.watchContractEvent({
|
|
1773
|
+
address: this.contractAddress,
|
|
1774
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1775
|
+
eventName: 'SafeSetup',
|
|
1776
|
+
args: filter,
|
|
1367
1777
|
onLogs: (logs) => {
|
|
1368
1778
|
logs.forEach((log) => {
|
|
1369
1779
|
callback(log.args);
|
|
@@ -1372,16 +1782,17 @@ class GnosisSafe_json {
|
|
|
1372
1782
|
});
|
|
1373
1783
|
},
|
|
1374
1784
|
/**
|
|
1375
|
-
* Watch
|
|
1785
|
+
* Watch SignMsg events
|
|
1376
1786
|
* @param callback Function to call when event is emitted
|
|
1377
1787
|
* @param filter Optional filter for indexed parameters
|
|
1378
1788
|
* @returns Unwatch function to stop listening
|
|
1379
1789
|
*/
|
|
1380
|
-
|
|
1790
|
+
SignMsg: (callback, filter) => {
|
|
1381
1791
|
return this.publicClient.watchContractEvent({
|
|
1382
1792
|
address: this.contractAddress,
|
|
1383
1793
|
abi: exports.GnosisSafe_jsonAbi,
|
|
1384
|
-
eventName: '
|
|
1794
|
+
eventName: 'SignMsg',
|
|
1795
|
+
args: filter,
|
|
1385
1796
|
onLogs: (logs) => {
|
|
1386
1797
|
logs.forEach((log) => {
|
|
1387
1798
|
callback(log.args);
|