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