@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.
- package/dist/assets/safe-4337-module/v0.2.0/add-modules-lib.json +32 -0
- package/dist/assets/safe-4337-module/{v0.1.0 → v0.2.0}/safe-4337-module.json +72 -48
- package/dist/safe-4337-module.js +2 -2
- package/package.json +1 -1
- package/src/assets/safe-4337-module/v0.2.0/add-modules-lib.json +32 -0
- package/src/assets/safe-4337-module/{v0.1.0 → v0.2.0}/safe-4337-module.json +72 -48
- package/src/safe-4337-module.ts +4 -4
- package/dist/assets/safe-4337-module/v0.1.0/add-modules-lib.json +0 -25
- package/src/assets/safe-4337-module/v0.1.0/add-modules-lib.json +0 -25
|
@@ -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.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"networkAddresses": {
|
|
6
|
-
"5": "
|
|
7
|
-
"
|
|
8
|
-
"
|
|
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
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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
|
],
|
package/dist/safe-4337-module.js
CHANGED
|
@@ -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.
|
|
8
|
-
const add_modules_lib_json_1 = __importDefault(require("./assets/safe-4337-module/v0.
|
|
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
|
@@ -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.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"networkAddresses": {
|
|
6
|
-
"5": "
|
|
7
|
-
"
|
|
8
|
-
"
|
|
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
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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
|
],
|
package/src/safe-4337-module.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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[] = [
|
|
8
|
-
const ADD_MODULES_LIB_DEPLOYMENTS: Deployment[] = [
|
|
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
|
-
}
|