@safe-global/safe-modules-deployments 1.2.0 → 2.0.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.
@@ -0,0 +1,32 @@
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
+ "42161": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
11
+ "42220": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
12
+ "80001": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
13
+ "84532": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
14
+ "421614": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
15
+ "11155111": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb"
16
+ },
17
+ "abi": [
18
+ {
19
+ "inputs": [
20
+ {
21
+ "internalType": "address[]",
22
+ "name": "modules",
23
+ "type": "address[]"
24
+ }
25
+ ],
26
+ "name": "enableModules",
27
+ "outputs": [],
28
+ "stateMutability": "nonpayable",
29
+ "type": "function"
30
+ }
31
+ ]
32
+ }
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "released": true,
3
3
  "contractName": "Safe4337Module",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "networkAddresses": {
6
- "5": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38",
7
- "137": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38",
8
- "11155111": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38"
6
+ "5": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
7
+ "10": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
8
+ "100": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
9
+ "137": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
10
+ "42161": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
11
+ "42220": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
12
+ "80001": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
13
+ "84532": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
14
+ "421614": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
15
+ "11155111": "0xa581c4A4DB7175302464fF3C06380BC3270b4037"
9
16
  },
10
17
  "abi": [
11
18
  {
@@ -184,56 +191,73 @@
184
191
  {
185
192
  "inputs": [
186
193
  {
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"
194
+ "components": [
195
+ {
196
+ "internalType": "address",
197
+ "name": "sender",
198
+ "type": "address"
199
+ },
200
+ {
201
+ "internalType": "uint256",
202
+ "name": "nonce",
203
+ "type": "uint256"
204
+ },
205
+ {
206
+ "internalType": "bytes",
207
+ "name": "initCode",
208
+ "type": "bytes"
209
+ },
210
+ {
211
+ "internalType": "bytes",
212
+ "name": "callData",
213
+ "type": "bytes"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "callGasLimit",
218
+ "type": "uint256"
219
+ },
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "verificationGasLimit",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "preVerificationGas",
228
+ "type": "uint256"
229
+ },
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "maxFeePerGas",
233
+ "type": "uint256"
234
+ },
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "maxPriorityFeePerGas",
238
+ "type": "uint256"
239
+ },
240
+ {
241
+ "internalType": "bytes",
242
+ "name": "paymasterAndData",
243
+ "type": "bytes"
244
+ },
245
+ {
246
+ "internalType": "bytes",
247
+ "name": "signature",
248
+ "type": "bytes"
249
+ }
250
+ ],
251
+ "internalType": "struct UserOperation",
252
+ "name": "userOp",
253
+ "type": "tuple"
230
254
  }
231
255
  ],
232
256
  "name": "getOperationHash",
233
257
  "outputs": [
234
258
  {
235
259
  "internalType": "bytes32",
236
- "name": "",
260
+ "name": "operationHash",
237
261
  "type": "bytes32"
238
262
  }
239
263
  ],
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
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"));
7
+ const safe_4337_module_json_1 = __importDefault(require("./assets/safe-4337-module/v0.2.0/safe-4337-module.json"));
8
+ const add_modules_lib_json_1 = __importDefault(require("./assets/safe-4337-module/v0.2.0/add-modules-lib.json"));
9
9
  const utils_1 = require("./utils");
10
10
  // The array should be sorted from the latest version to the oldest.
11
11
  const SAFE_4337_MODULE_DEPLOYMENTS = [safe_4337_module_json_1.default];
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.0.0",
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,32 @@
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
+ "42161": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
11
+ "42220": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
12
+ "80001": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
13
+ "84532": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
14
+ "421614": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb",
15
+ "11155111": "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb"
16
+ },
17
+ "abi": [
18
+ {
19
+ "inputs": [
20
+ {
21
+ "internalType": "address[]",
22
+ "name": "modules",
23
+ "type": "address[]"
24
+ }
25
+ ],
26
+ "name": "enableModules",
27
+ "outputs": [],
28
+ "stateMutability": "nonpayable",
29
+ "type": "function"
30
+ }
31
+ ]
32
+ }
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "released": true,
3
3
  "contractName": "Safe4337Module",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "networkAddresses": {
6
- "5": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38",
7
- "137": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38",
8
- "11155111": "0x39E54Bb2b3Aa444b4B39DEe15De3b7809c36Fc38"
6
+ "5": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
7
+ "10": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
8
+ "100": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
9
+ "137": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
10
+ "42161": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
11
+ "42220": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
12
+ "80001": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
13
+ "84532": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
14
+ "421614": "0xa581c4A4DB7175302464fF3C06380BC3270b4037",
15
+ "11155111": "0xa581c4A4DB7175302464fF3C06380BC3270b4037"
9
16
  },
10
17
  "abi": [
11
18
  {
@@ -184,56 +191,73 @@
184
191
  {
185
192
  "inputs": [
186
193
  {
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"
194
+ "components": [
195
+ {
196
+ "internalType": "address",
197
+ "name": "sender",
198
+ "type": "address"
199
+ },
200
+ {
201
+ "internalType": "uint256",
202
+ "name": "nonce",
203
+ "type": "uint256"
204
+ },
205
+ {
206
+ "internalType": "bytes",
207
+ "name": "initCode",
208
+ "type": "bytes"
209
+ },
210
+ {
211
+ "internalType": "bytes",
212
+ "name": "callData",
213
+ "type": "bytes"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "callGasLimit",
218
+ "type": "uint256"
219
+ },
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "verificationGasLimit",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "preVerificationGas",
228
+ "type": "uint256"
229
+ },
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "maxFeePerGas",
233
+ "type": "uint256"
234
+ },
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "maxPriorityFeePerGas",
238
+ "type": "uint256"
239
+ },
240
+ {
241
+ "internalType": "bytes",
242
+ "name": "paymasterAndData",
243
+ "type": "bytes"
244
+ },
245
+ {
246
+ "internalType": "bytes",
247
+ "name": "signature",
248
+ "type": "bytes"
249
+ }
250
+ ],
251
+ "internalType": "struct UserOperation",
252
+ "name": "userOp",
253
+ "type": "tuple"
230
254
  }
231
255
  ],
232
256
  "name": "getOperationHash",
233
257
  "outputs": [
234
258
  {
235
259
  "internalType": "bytes32",
236
- "name": "",
260
+ "name": "operationHash",
237
261
  "type": "bytes32"
238
262
  }
239
263
  ],
@@ -1,11 +1,11 @@
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 Safe4337Module020 from './assets/safe-4337-module/v0.2.0/safe-4337-module.json';
2
+ import AddModulesLib020 from './assets/safe-4337-module/v0.2.0/add-modules-lib.json';
3
3
  import { DeploymentFilter, Deployment } from './types';
4
4
  import { applyFilterDefaults, findDeployment } from './utils';
5
5
 
6
6
  // 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];
7
+ const SAFE_4337_MODULE_DEPLOYMENTS: Deployment[] = [Safe4337Module020];
8
+ const ADD_MODULES_LIB_DEPLOYMENTS: Deployment[] = [AddModulesLib020];
9
9
 
10
10
  export const getSafe4337ModuleDeployment = (filter?: DeploymentFilter): Deployment | undefined => {
11
11
  return findDeployment(applyFilterDefaults(filter), SAFE_4337_MODULE_DEPLOYMENTS);
@@ -1,25 +0,0 @@
1
- {
2
- "released": true,
3
- "contractName": "AddModulesLib",
4
- "version": "0.1.0",
5
- "networkAddresses": {
6
- "5": "0x191EFDC03615B575922289DC339F4c70aC5C30Af",
7
- "137": "0x191EFDC03615B575922289DC339F4c70aC5C30Af",
8
- "11155111": "0x191EFDC03615B575922289DC339F4c70aC5C30Af"
9
- },
10
- "abi": [
11
- {
12
- "inputs": [
13
- {
14
- "internalType": "address[]",
15
- "name": "modules",
16
- "type": "address[]"
17
- }
18
- ],
19
- "name": "enableModules",
20
- "outputs": [],
21
- "stateMutability": "nonpayable",
22
- "type": "function"
23
- }
24
- ]
25
- }
@@ -1,25 +0,0 @@
1
- {
2
- "released": true,
3
- "contractName": "AddModulesLib",
4
- "version": "0.1.0",
5
- "networkAddresses": {
6
- "5": "0x191EFDC03615B575922289DC339F4c70aC5C30Af",
7
- "137": "0x191EFDC03615B575922289DC339F4c70aC5C30Af",
8
- "11155111": "0x191EFDC03615B575922289DC339F4c70aC5C30Af"
9
- },
10
- "abi": [
11
- {
12
- "inputs": [
13
- {
14
- "internalType": "address[]",
15
- "name": "modules",
16
- "type": "address[]"
17
- }
18
- ],
19
- "name": "enableModules",
20
- "outputs": [],
21
- "stateMutability": "nonpayable",
22
- "type": "function"
23
- }
24
- ]
25
- }