@safe-global/safe-deployments 1.22.0 → 1.24.0
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 +2 -0
- package/dist/accessors.d.ts +2 -0
- package/dist/accessors.js +17 -0
- package/dist/assets/v1.3.0/compatibility_fallback_handler.json +5 -0
- package/dist/assets/v1.3.0/create_call.json +5 -0
- package/dist/assets/v1.3.0/gnosis_safe.json +5 -0
- package/dist/assets/v1.3.0/gnosis_safe_l2.json +5 -0
- package/dist/assets/v1.3.0/multi_send.json +5 -0
- package/dist/assets/v1.3.0/multi_send_call_only.json +5 -0
- package/dist/assets/v1.3.0/proxy_factory.json +5 -0
- package/dist/assets/v1.3.0/sign_message_lib.json +5 -0
- package/dist/assets/v1.3.0/simulate_tx_accessor.json +178 -0
- package/dist/assets/v1.4.1/compatibility_fallback_handler.json +334 -0
- package/dist/assets/v1.4.1/create_call.json +81 -0
- package/dist/assets/v1.4.1/multi_send.json +33 -0
- package/dist/assets/v1.4.1/multi_send_call_only.json +28 -0
- package/dist/assets/v1.4.1/safe.json +1010 -0
- package/dist/assets/v1.4.1/safe_l2.json +1115 -0
- package/dist/assets/v1.4.1/safe_proxy_factory.json +152 -0
- package/dist/assets/v1.4.1/sign_message_lib.json +58 -0
- package/dist/assets/v1.4.1/simulate_tx_accessor.json +64 -0
- package/dist/factories.d.ts +1 -1
- package/dist/factories.js +3 -2
- package/dist/handler.d.ts +3 -3
- package/dist/handler.js +6 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/libs.d.ts +4 -4
- package/dist/libs.js +12 -8
- package/dist/safes.d.ts +2 -2
- package/dist/safes.js +6 -4
- package/dist/utils.js +12 -9
- package/package.json +2 -2
- package/src/__tests__/utilts.test.ts +60 -17
- package/src/accessors.ts +14 -0
- package/src/assets/v1.3.0/compatibility_fallback_handler.json +5 -0
- package/src/assets/v1.3.0/create_call.json +5 -0
- package/src/assets/v1.3.0/gnosis_safe.json +5 -0
- package/src/assets/v1.3.0/gnosis_safe_l2.json +5 -0
- package/src/assets/v1.3.0/multi_send.json +5 -0
- package/src/assets/v1.3.0/multi_send_call_only.json +5 -0
- package/src/assets/v1.3.0/proxy_factory.json +5 -0
- package/src/assets/v1.3.0/sign_message_lib.json +5 -0
- package/src/assets/v1.3.0/simulate_tx_accessor.json +6 -1
- package/src/assets/v1.4.1/compatibility_fallback_handler.json +334 -0
- package/src/assets/v1.4.1/create_call.json +81 -0
- package/src/assets/v1.4.1/multi_send.json +33 -0
- package/src/assets/v1.4.1/multi_send_call_only.json +28 -0
- package/src/assets/v1.4.1/safe.json +1010 -0
- package/src/assets/v1.4.1/safe_l2.json +1115 -0
- package/src/assets/v1.4.1/safe_proxy_factory.json +152 -0
- package/src/assets/v1.4.1/sign_message_lib.json +58 -0
- package/src/assets/v1.4.1/simulate_tx_accessor.json +64 -0
- package/src/factories.ts +4 -2
- package/src/handler.ts +5 -4
- package/src/index.ts +2 -1
- package/src/libs.ts +9 -5
- package/src/safes.ts +5 -3
- package/src/utils.ts +10 -6
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultAddress": "0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",
|
|
3
|
+
"released": false,
|
|
4
|
+
"contractName": "CompatibilityFallbackHandler",
|
|
5
|
+
"version": "1.4.1",
|
|
6
|
+
"networkAddresses": {
|
|
7
|
+
"1": "0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",
|
|
8
|
+
"100": "0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",
|
|
9
|
+
"80001": "0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99"
|
|
10
|
+
},
|
|
11
|
+
"abi": [
|
|
12
|
+
{
|
|
13
|
+
"inputs": [
|
|
14
|
+
{
|
|
15
|
+
"internalType": "contract Safe",
|
|
16
|
+
"name": "safe",
|
|
17
|
+
"type": "address"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"internalType": "bytes",
|
|
21
|
+
"name": "message",
|
|
22
|
+
"type": "bytes"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"name": "encodeMessageDataForSafe",
|
|
26
|
+
"outputs": [
|
|
27
|
+
{
|
|
28
|
+
"internalType": "bytes",
|
|
29
|
+
"name": "",
|
|
30
|
+
"type": "bytes"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"stateMutability": "view",
|
|
34
|
+
"type": "function"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"inputs": [
|
|
38
|
+
{
|
|
39
|
+
"internalType": "bytes",
|
|
40
|
+
"name": "message",
|
|
41
|
+
"type": "bytes"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"name": "getMessageHash",
|
|
45
|
+
"outputs": [
|
|
46
|
+
{
|
|
47
|
+
"internalType": "bytes32",
|
|
48
|
+
"name": "",
|
|
49
|
+
"type": "bytes32"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"stateMutability": "view",
|
|
53
|
+
"type": "function"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [
|
|
57
|
+
{
|
|
58
|
+
"internalType": "contract Safe",
|
|
59
|
+
"name": "safe",
|
|
60
|
+
"type": "address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "bytes",
|
|
64
|
+
"name": "message",
|
|
65
|
+
"type": "bytes"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"name": "getMessageHashForSafe",
|
|
69
|
+
"outputs": [
|
|
70
|
+
{
|
|
71
|
+
"internalType": "bytes32",
|
|
72
|
+
"name": "",
|
|
73
|
+
"type": "bytes32"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"stateMutability": "view",
|
|
77
|
+
"type": "function"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"inputs": [],
|
|
81
|
+
"name": "getModules",
|
|
82
|
+
"outputs": [
|
|
83
|
+
{
|
|
84
|
+
"internalType": "address[]",
|
|
85
|
+
"name": "",
|
|
86
|
+
"type": "address[]"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"stateMutability": "view",
|
|
90
|
+
"type": "function"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"inputs": [
|
|
94
|
+
{
|
|
95
|
+
"internalType": "bytes32",
|
|
96
|
+
"name": "_dataHash",
|
|
97
|
+
"type": "bytes32"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"internalType": "bytes",
|
|
101
|
+
"name": "_signature",
|
|
102
|
+
"type": "bytes"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"name": "isValidSignature",
|
|
106
|
+
"outputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "bytes4",
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "bytes4"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"stateMutability": "view",
|
|
114
|
+
"type": "function"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "bytes",
|
|
120
|
+
"name": "_data",
|
|
121
|
+
"type": "bytes"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "bytes",
|
|
125
|
+
"name": "_signature",
|
|
126
|
+
"type": "bytes"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"name": "isValidSignature",
|
|
130
|
+
"outputs": [
|
|
131
|
+
{
|
|
132
|
+
"internalType": "bytes4",
|
|
133
|
+
"name": "",
|
|
134
|
+
"type": "bytes4"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"stateMutability": "view",
|
|
138
|
+
"type": "function"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [
|
|
142
|
+
{
|
|
143
|
+
"internalType": "address",
|
|
144
|
+
"name": "",
|
|
145
|
+
"type": "address"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"internalType": "address",
|
|
149
|
+
"name": "",
|
|
150
|
+
"type": "address"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"internalType": "uint256[]",
|
|
154
|
+
"name": "",
|
|
155
|
+
"type": "uint256[]"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"internalType": "uint256[]",
|
|
159
|
+
"name": "",
|
|
160
|
+
"type": "uint256[]"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"internalType": "bytes",
|
|
164
|
+
"name": "",
|
|
165
|
+
"type": "bytes"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"name": "onERC1155BatchReceived",
|
|
169
|
+
"outputs": [
|
|
170
|
+
{
|
|
171
|
+
"internalType": "bytes4",
|
|
172
|
+
"name": "",
|
|
173
|
+
"type": "bytes4"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"stateMutability": "pure",
|
|
177
|
+
"type": "function"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"inputs": [
|
|
181
|
+
{
|
|
182
|
+
"internalType": "address",
|
|
183
|
+
"name": "",
|
|
184
|
+
"type": "address"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"internalType": "address",
|
|
188
|
+
"name": "",
|
|
189
|
+
"type": "address"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"internalType": "uint256",
|
|
193
|
+
"name": "",
|
|
194
|
+
"type": "uint256"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"internalType": "uint256",
|
|
198
|
+
"name": "",
|
|
199
|
+
"type": "uint256"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"internalType": "bytes",
|
|
203
|
+
"name": "",
|
|
204
|
+
"type": "bytes"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"name": "onERC1155Received",
|
|
208
|
+
"outputs": [
|
|
209
|
+
{
|
|
210
|
+
"internalType": "bytes4",
|
|
211
|
+
"name": "",
|
|
212
|
+
"type": "bytes4"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"stateMutability": "pure",
|
|
216
|
+
"type": "function"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"inputs": [
|
|
220
|
+
{
|
|
221
|
+
"internalType": "address",
|
|
222
|
+
"name": "",
|
|
223
|
+
"type": "address"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"internalType": "address",
|
|
227
|
+
"name": "",
|
|
228
|
+
"type": "address"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"internalType": "uint256",
|
|
232
|
+
"name": "",
|
|
233
|
+
"type": "uint256"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"internalType": "bytes",
|
|
237
|
+
"name": "",
|
|
238
|
+
"type": "bytes"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"name": "onERC721Received",
|
|
242
|
+
"outputs": [
|
|
243
|
+
{
|
|
244
|
+
"internalType": "bytes4",
|
|
245
|
+
"name": "",
|
|
246
|
+
"type": "bytes4"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"stateMutability": "pure",
|
|
250
|
+
"type": "function"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"inputs": [
|
|
254
|
+
{
|
|
255
|
+
"internalType": "address",
|
|
256
|
+
"name": "targetContract",
|
|
257
|
+
"type": "address"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"internalType": "bytes",
|
|
261
|
+
"name": "calldataPayload",
|
|
262
|
+
"type": "bytes"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"name": "simulate",
|
|
266
|
+
"outputs": [
|
|
267
|
+
{
|
|
268
|
+
"internalType": "bytes",
|
|
269
|
+
"name": "response",
|
|
270
|
+
"type": "bytes"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"stateMutability": "nonpayable",
|
|
274
|
+
"type": "function"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"inputs": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "bytes4",
|
|
280
|
+
"name": "interfaceId",
|
|
281
|
+
"type": "bytes4"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"name": "supportsInterface",
|
|
285
|
+
"outputs": [
|
|
286
|
+
{
|
|
287
|
+
"internalType": "bool",
|
|
288
|
+
"name": "",
|
|
289
|
+
"type": "bool"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"stateMutability": "view",
|
|
293
|
+
"type": "function"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"inputs": [
|
|
297
|
+
{
|
|
298
|
+
"internalType": "address",
|
|
299
|
+
"name": "",
|
|
300
|
+
"type": "address"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"internalType": "address",
|
|
304
|
+
"name": "",
|
|
305
|
+
"type": "address"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"internalType": "address",
|
|
309
|
+
"name": "",
|
|
310
|
+
"type": "address"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"internalType": "uint256",
|
|
314
|
+
"name": "",
|
|
315
|
+
"type": "uint256"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"internalType": "bytes",
|
|
319
|
+
"name": "",
|
|
320
|
+
"type": "bytes"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"internalType": "bytes",
|
|
324
|
+
"name": "",
|
|
325
|
+
"type": "bytes"
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"name": "tokensReceived",
|
|
329
|
+
"outputs": [],
|
|
330
|
+
"stateMutability": "pure",
|
|
331
|
+
"type": "function"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultAddress": "0x9b35Af71d77eaf8d7e40252370304687390A1A52",
|
|
3
|
+
"released": false,
|
|
4
|
+
"contractName": "CreateCall",
|
|
5
|
+
"version": "1.4.1",
|
|
6
|
+
"networkAddresses": {
|
|
7
|
+
"1": "0x9b35Af71d77eaf8d7e40252370304687390A1A52",
|
|
8
|
+
"5": "0x9b35Af71d77eaf8d7e40252370304687390A1A52",
|
|
9
|
+
"56": "0x9b35Af71d77eaf8d7e40252370304687390A1A52",
|
|
10
|
+
"100": "0x9b35Af71d77eaf8d7e40252370304687390A1A52",
|
|
11
|
+
"80001": "0x9b35Af71d77eaf8d7e40252370304687390A1A52"
|
|
12
|
+
},
|
|
13
|
+
"abi": [
|
|
14
|
+
{
|
|
15
|
+
"anonymous": false,
|
|
16
|
+
"inputs": [
|
|
17
|
+
{
|
|
18
|
+
"indexed": true,
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "newContract",
|
|
21
|
+
"type": "address"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"name": "ContractCreation",
|
|
25
|
+
"type": "event"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [
|
|
29
|
+
{
|
|
30
|
+
"internalType": "uint256",
|
|
31
|
+
"name": "value",
|
|
32
|
+
"type": "uint256"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"internalType": "bytes",
|
|
36
|
+
"name": "deploymentData",
|
|
37
|
+
"type": "bytes"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"name": "performCreate",
|
|
41
|
+
"outputs": [
|
|
42
|
+
{
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"name": "newContract",
|
|
45
|
+
"type": "address"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"stateMutability": "nonpayable",
|
|
49
|
+
"type": "function"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"inputs": [
|
|
53
|
+
{
|
|
54
|
+
"internalType": "uint256",
|
|
55
|
+
"name": "value",
|
|
56
|
+
"type": "uint256"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"internalType": "bytes",
|
|
60
|
+
"name": "deploymentData",
|
|
61
|
+
"type": "bytes"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"internalType": "bytes32",
|
|
65
|
+
"name": "salt",
|
|
66
|
+
"type": "bytes32"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"name": "performCreate2",
|
|
70
|
+
"outputs": [
|
|
71
|
+
{
|
|
72
|
+
"internalType": "address",
|
|
73
|
+
"name": "newContract",
|
|
74
|
+
"type": "address"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"stateMutability": "nonpayable",
|
|
78
|
+
"type": "function"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultAddress": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
3
|
+
"released": false,
|
|
4
|
+
"contractName": "MultiSend",
|
|
5
|
+
"version": "1.4.1",
|
|
6
|
+
"networkAddresses": {
|
|
7
|
+
"1": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
8
|
+
"5": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
9
|
+
"56": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
10
|
+
"100": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",
|
|
11
|
+
"80001": "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526"
|
|
12
|
+
},
|
|
13
|
+
"abi": [
|
|
14
|
+
{
|
|
15
|
+
"inputs": [],
|
|
16
|
+
"stateMutability": "nonpayable",
|
|
17
|
+
"type": "constructor"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"inputs": [
|
|
21
|
+
{
|
|
22
|
+
"internalType": "bytes",
|
|
23
|
+
"name": "transactions",
|
|
24
|
+
"type": "bytes"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"name": "multiSend",
|
|
28
|
+
"outputs": [],
|
|
29
|
+
"stateMutability": "payable",
|
|
30
|
+
"type": "function"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultAddress": "0x9641d764fc13c8B624c04430C7356C1C7C8102e2",
|
|
3
|
+
"released": false,
|
|
4
|
+
"contractName": "MultiSendCallOnly",
|
|
5
|
+
"version": "1.4.1",
|
|
6
|
+
"networkAddresses": {
|
|
7
|
+
"1": "0x9641d764fc13c8B624c04430C7356C1C7C8102e2",
|
|
8
|
+
"5": "0x9641d764fc13c8B624c04430C7356C1C7C8102e2",
|
|
9
|
+
"56": "0x9641d764fc13c8B624c04430C7356C1C7C8102e2",
|
|
10
|
+
"100": "0x9641d764fc13c8B624c04430C7356C1C7C8102e2",
|
|
11
|
+
"80001": "0x9641d764fc13c8B624c04430C7356C1C7C8102e2"
|
|
12
|
+
},
|
|
13
|
+
"abi": [
|
|
14
|
+
{
|
|
15
|
+
"inputs": [
|
|
16
|
+
{
|
|
17
|
+
"internalType": "bytes",
|
|
18
|
+
"name": "transactions",
|
|
19
|
+
"type": "bytes"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"name": "multiSend",
|
|
23
|
+
"outputs": [],
|
|
24
|
+
"stateMutability": "payable",
|
|
25
|
+
"type": "function"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|