@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,3 +1,4 @@
1
1
  import { DeploymentFilter, Deployment } from './types';
2
2
  export declare const getSafe4337ModuleDeployment: (filter?: DeploymentFilter | undefined) => Deployment | undefined;
3
+ export declare const getSafeModuleSetupDeployment: (filter?: DeploymentFilter | undefined) => Deployment | undefined;
3
4
  export declare const getAddModulesLibDeployment: (filter?: DeploymentFilter | undefined) => Deployment | undefined;
@@ -3,18 +3,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getAddModulesLibDeployment = exports.getSafe4337ModuleDeployment = void 0;
7
- const safe_4337_module_json_1 = __importDefault(require("./assets/safe-4337-module/v0.1.0/safe-4337-module.json"));
8
- const add_modules_lib_json_1 = __importDefault(require("./assets/safe-4337-module/v0.1.0/add-modules-lib.json"));
6
+ exports.getAddModulesLibDeployment = exports.getSafeModuleSetupDeployment = exports.getSafe4337ModuleDeployment = void 0;
7
+ const safe_4337_module_json_1 = __importDefault(require("./assets/safe-4337-module/v0.3.0/safe-4337-module.json"));
8
+ const safe_4337_module_json_2 = __importDefault(require("./assets/safe-4337-module/v0.2.0/safe-4337-module.json"));
9
+ const safe_module_setup_json_1 = __importDefault(require("./assets/safe-4337-module/v0.3.0/safe-module-setup.json"));
10
+ const add_modules_lib_json_1 = __importDefault(require("./assets/safe-4337-module/v0.2.0/add-modules-lib.json"));
9
11
  const utils_1 = require("./utils");
10
12
  // The array should be sorted from the latest version to the oldest.
11
- const SAFE_4337_MODULE_DEPLOYMENTS = [safe_4337_module_json_1.default];
12
- const ADD_MODULES_LIB_DEPLOYMENTS = [add_modules_lib_json_1.default];
13
+ const SAFE_4337_MODULE_DEPLOYMENTS = [safe_4337_module_json_1.default, safe_4337_module_json_2.default];
14
+ const SAFE_MODULE_SETUP_DEPLOYMENTS = [safe_module_setup_json_1.default, add_modules_lib_json_1.default];
13
15
  const getSafe4337ModuleDeployment = (filter) => {
14
16
  return (0, utils_1.findDeployment)((0, utils_1.applyFilterDefaults)(filter), SAFE_4337_MODULE_DEPLOYMENTS);
15
17
  };
16
18
  exports.getSafe4337ModuleDeployment = getSafe4337ModuleDeployment;
17
- const getAddModulesLibDeployment = (filter) => {
18
- return (0, utils_1.findDeployment)((0, utils_1.applyFilterDefaults)(filter), ADD_MODULES_LIB_DEPLOYMENTS);
19
+ const getSafeModuleSetupDeployment = (filter) => {
20
+ return (0, utils_1.findDeployment)((0, utils_1.applyFilterDefaults)(filter), SAFE_MODULE_SETUP_DEPLOYMENTS);
19
21
  };
20
- exports.getAddModulesLibDeployment = getAddModulesLibDeployment;
22
+ exports.getSafeModuleSetupDeployment = getSafeModuleSetupDeployment;
23
+ // From v0.2 to v0.3, the `AddModulesLib` contract was renamed to `SafeModuleSetup` while preserving
24
+ // its interface and functionality. As such, we consider both contracts to be the same with respect
25
+ // to deployments, and expose an alias for the `AddModulesLib` name for backwards compatibility.
26
+ exports.getAddModulesLibDeployment = exports.getSafeModuleSetupDeployment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safe-global/safe-modules-deployments",
3
- "version": "1.2.0",
3
+ "version": "2.1.1",
4
4
  "description": "Collection of Safe Modules singleton deployments",
5
5
  "homepage": "https://github.com/safe-global/safe-modules-deployments/",
6
6
  "license": "MIT",
@@ -0,0 +1,33 @@
1
+ {
2
+ "released": true,
3
+ "contractName": "AddModulesLib",
4
+ "version": "0.2.0",
5
+ "networkAddresses": {
6
+ "5": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
7
+ "10": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
8
+ "100": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
9
+ "137": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
10
+ "8453": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
11
+ "42161": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
12
+ "42220": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
13
+ "80001": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
14
+ "84532": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
15
+ "421614": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
16
+ "11155111": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb"
17
+ },
18
+ "abi": [
19
+ {
20
+ "inputs": [
21
+ {
22
+ "internalType": "address[]",
23
+ "name": "modules",
24
+ "type": "address[]"
25
+ }
26
+ ],
27
+ "name": "enableModules",
28
+ "outputs": [],
29
+ "stateMutability": "nonpayable",
30
+ "type": "function"
31
+ }
32
+ ]
33
+ }