@safe-global/safe-modules-deployments 1.2.0 → 2.1.1

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.
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "released": true,
3
3
  "contractName": "Safe4337Module",
4
- "version": "0.1.0",
4
+ "version": "0.3.0",
5
5
  "networkAddresses": {
6
- "5": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38",
7
- "137": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38",
8
- "11155111": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38"
6
+ "11155111": "0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226"
9
7
  },
10
8
  "abi": [
11
9
  {
@@ -19,6 +17,37 @@
19
17
  "stateMutability": "nonpayable",
20
18
  "type": "constructor"
21
19
  },
20
+ {
21
+ "inputs": [],
22
+ "name": "ExecutionFailed",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [],
27
+ "name": "InvalidCaller",
28
+ "type": "error"
29
+ },
30
+ {
31
+ "inputs": [],
32
+ "name": "InvalidEntryPoint",
33
+ "type": "error"
34
+ },
35
+ {
36
+ "inputs": [],
37
+ "name": "UnsupportedEntryPoint",
38
+ "type": "error"
39
+ },
40
+ {
41
+ "inputs": [
42
+ {
43
+ "internalType": "bytes4",
44
+ "name": "selector",
45
+ "type": "bytes4"
46
+ }
47
+ ],
48
+ "name": "UnsupportedExecutionFunction",
49
+ "type": "error"
50
+ },
22
51
  {
23
52
  "inputs": [],
24
53
  "name": "SUPPORTED_ENTRYPOINT",
@@ -38,7 +67,7 @@
38
67
  "outputs": [
39
68
  {
40
69
  "internalType": "bytes32",
41
- "name": "",
70
+ "name": "domainSeparatorHash",
42
71
  "type": "bytes32"
43
72
  }
44
73
  ],
@@ -184,56 +213,63 @@
184
213
  {
185
214
  "inputs": [
186
215
  {
187
- "internalType": "address",
188
- "name": "safe",
189
- "type": "address"
190
- },
191
- {
192
- "internalType": "bytes",
193
- "name": "callData",
194
- "type": "bytes"
195
- },
196
- {
197
- "internalType": "uint256",
198
- "name": "nonce",
199
- "type": "uint256"
200
- },
201
- {
202
- "internalType": "uint256",
203
- "name": "preVerificationGas",
204
- "type": "uint256"
205
- },
206
- {
207
- "internalType": "uint256",
208
- "name": "verificationGasLimit",
209
- "type": "uint256"
210
- },
211
- {
212
- "internalType": "uint256",
213
- "name": "callGasLimit",
214
- "type": "uint256"
215
- },
216
- {
217
- "internalType": "uint256",
218
- "name": "maxFeePerGas",
219
- "type": "uint256"
220
- },
221
- {
222
- "internalType": "uint256",
223
- "name": "maxPriorityFeePerGas",
224
- "type": "uint256"
225
- },
226
- {
227
- "internalType": "address",
228
- "name": "entryPoint",
229
- "type": "address"
216
+ "components": [
217
+ {
218
+ "internalType": "address",
219
+ "name": "sender",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "nonce",
225
+ "type": "uint256"
226
+ },
227
+ {
228
+ "internalType": "bytes",
229
+ "name": "initCode",
230
+ "type": "bytes"
231
+ },
232
+ {
233
+ "internalType": "bytes",
234
+ "name": "callData",
235
+ "type": "bytes"
236
+ },
237
+ {
238
+ "internalType": "bytes32",
239
+ "name": "accountGasLimits",
240
+ "type": "bytes32"
241
+ },
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "preVerificationGas",
245
+ "type": "uint256"
246
+ },
247
+ {
248
+ "internalType": "bytes32",
249
+ "name": "gasFees",
250
+ "type": "bytes32"
251
+ },
252
+ {
253
+ "internalType": "bytes",
254
+ "name": "paymasterAndData",
255
+ "type": "bytes"
256
+ },
257
+ {
258
+ "internalType": "bytes",
259
+ "name": "signature",
260
+ "type": "bytes"
261
+ }
262
+ ],
263
+ "internalType": "struct PackedUserOperation",
264
+ "name": "userOp",
265
+ "type": "tuple"
230
266
  }
231
267
  ],
232
268
  "name": "getOperationHash",
233
269
  "outputs": [
234
270
  {
235
271
  "internalType": "bytes32",
236
- "name": "",
272
+ "name": "operationHash",
237
273
  "type": "bytes32"
238
274
  }
239
275
  ],
@@ -506,14 +542,9 @@
506
542
  "type": "bytes"
507
543
  },
508
544
  {
509
- "internalType": "uint256",
510
- "name": "callGasLimit",
511
- "type": "uint256"
512
- },
513
- {
514
- "internalType": "uint256",
515
- "name": "verificationGasLimit",
516
- "type": "uint256"
545
+ "internalType": "bytes32",
546
+ "name": "accountGasLimits",
547
+ "type": "bytes32"
517
548
  },
518
549
  {
519
550
  "internalType": "uint256",
@@ -521,14 +552,9 @@
521
552
  "type": "uint256"
522
553
  },
523
554
  {
524
- "internalType": "uint256",
525
- "name": "maxFeePerGas",
526
- "type": "uint256"
527
- },
528
- {
529
- "internalType": "uint256",
530
- "name": "maxPriorityFeePerGas",
531
- "type": "uint256"
555
+ "internalType": "bytes32",
556
+ "name": "gasFees",
557
+ "type": "bytes32"
532
558
  },
533
559
  {
534
560
  "internalType": "bytes",
@@ -541,7 +567,7 @@
541
567
  "type": "bytes"
542
568
  }
543
569
  ],
544
- "internalType": "struct UserOperation",
570
+ "internalType": "struct PackedUserOperation",
545
571
  "name": "userOp",
546
572
  "type": "tuple"
547
573
  },
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "released": true,
3
- "contractName": "AddModulesLib",
4
- "version": "0.1.0",
3
+ "contractName": "SafeModuleSetup",
4
+ "version": "0.3.0",
5
5
  "networkAddresses": {
6
- "5": "0x191EFDC03615B575922289DC339F4c70aC5C30Af",
7
- "137": "0x191EFDC03615B575922289DC339F4c70aC5C30Af",
8
- "11155111": "0x191EFDC03615B575922289DC339F4c70aC5C30Af"
6
+ "11155111": "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47"
9
7
  },
10
8
  "abi": [
11
9
  {
@@ -1,16 +1,23 @@
1
- import Safe4337Module010 from './assets/safe-4337-module/v0.1.0/safe-4337-module.json';
2
- import AddModulesLib010 from './assets/safe-4337-module/v0.1.0/add-modules-lib.json';
1
+ import Safe4337Module030 from './assets/safe-4337-module/v0.3.0/safe-4337-module.json';
2
+ import Safe4337Module020 from './assets/safe-4337-module/v0.2.0/safe-4337-module.json';
3
+ import SafeModuleSetup030 from './assets/safe-4337-module/v0.3.0/safe-module-setup.json';
4
+ import AddModulesLib020 from './assets/safe-4337-module/v0.2.0/add-modules-lib.json';
3
5
  import { DeploymentFilter, Deployment } from './types';
4
6
  import { applyFilterDefaults, findDeployment } from './utils';
5
7
 
6
8
  // The array should be sorted from the latest version to the oldest.
7
- const SAFE_4337_MODULE_DEPLOYMENTS: Deployment[] = [Safe4337Module010];
8
- const ADD_MODULES_LIB_DEPLOYMENTS: Deployment[] = [AddModulesLib010];
9
+ const SAFE_4337_MODULE_DEPLOYMENTS: Deployment[] = [Safe4337Module030, Safe4337Module020];
10
+ const SAFE_MODULE_SETUP_DEPLOYMENTS: Deployment[] = [SafeModuleSetup030, AddModulesLib020];
9
11
 
10
12
  export const getSafe4337ModuleDeployment = (filter?: DeploymentFilter): Deployment | undefined => {
11
13
  return findDeployment(applyFilterDefaults(filter), SAFE_4337_MODULE_DEPLOYMENTS);
12
14
  };
13
15
 
14
- export const getAddModulesLibDeployment = (filter?: DeploymentFilter): Deployment | undefined => {
15
- return findDeployment(applyFilterDefaults(filter), ADD_MODULES_LIB_DEPLOYMENTS);
16
+ export const getSafeModuleSetupDeployment = (filter?: DeploymentFilter): Deployment | undefined => {
17
+ return findDeployment(applyFilterDefaults(filter), SAFE_MODULE_SETUP_DEPLOYMENTS);
16
18
  };
19
+
20
+ // From v0.2 to v0.3, the `AddModulesLib` contract was renamed to `SafeModuleSetup` while preserving
21
+ // its interface and functionality. As such, we consider both contracts to be the same with respect
22
+ // to deployments, and expose an alias for the `AddModulesLib` name for backwards compatibility.
23
+ export const getAddModulesLibDeployment = getSafeModuleSetupDeployment;