Skip to content

Commit 6d0b3b7

Browse files
committed
Modernize Setup
1 parent 137c374 commit 6d0b3b7

File tree

9 files changed

+1403
-911
lines changed

9 files changed

+1403
-911
lines changed

.eslintrc.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
build/
2-
node_modules/
3-
.DS_Store
4-
.zos.session
5-
.openzeppelin/.session
6-
deployments/
7-
env/
8-
.env
91
dist/
10-
bin/
11-
solc
12-
coverage/
13-
coverage.json
14-
yarn-error.log
2+
node_modules/

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ To add additional deployments please follow the [deployment steps in the module
1212

1313
- npm - `npm i @safe-global/safe-modules-deployments`
1414
- yarn - `yarn add @safe-global/safe-modules-deployments`
15+
- pnpm - `pnpm install @safe-global/safe-modules-deployments`
1516

1617
## Usage
1718

@@ -41,20 +42,26 @@ interface Deployment {
4142
}
4243
```
4344

44-
- Allowance Module
45-
```ts
46-
const allowanceModule = getAllowanceModuleDeployment();
45+
For example, in order to get various deployments for the Safe Allowance module:
46+
47+
```ts
48+
const allowanceModule = getAllowanceModuleDeployment();
4749

48-
// Returns latest contract version, even if not finally released yet
49-
const allowanceModuleNightly = getAllowanceModuleDeployment({ released: undefined });
50+
// Returns latest contract version, even if not finally released yet
51+
const allowanceModuleNightly = getAllowanceModuleDeployment({ released: undefined });
5052

51-
// Returns released contract version for specific network
52-
const allowanceModuleGörli = getAllowanceModuleDeployment({ network: '5' });
53+
// Returns released contract version for specific network
54+
const allowanceModuleGörli = getAllowanceModuleDeployment({ network: '5' });
5355

54-
// Returns released contract version for specific version
55-
const allowanceModule010 = getAllowanceModuleDeployment({ version: '0.1.0' });
56-
```
56+
// Returns released contract version for specific version
57+
const allowanceModule010 = getAllowanceModuleDeployment({ version: '0.1.0' });
58+
```
59+
60+
This repository contains deployments for the following modules:
61+
62+
- Allowance Module
5763
- ERC-4337 Module
64+
- Passkeys
5865

5966
## Notes
6067

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import prettier from 'eslint-plugin-prettier/recommended';
4+
5+
export default [
6+
eslint.configs.recommended,
7+
...tseslint.configs.recommended,
8+
{
9+
rules: {
10+
'@typescript-eslint/camelcase': 'off',
11+
'@typescript-eslint/no-var-requires': 'off',
12+
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
13+
},
14+
},
15+
prettier,
16+
];

package.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
22
"name": "@safe-global/safe-modules-deployments",
33
"version": "2.1.1",
4-
"description": "Collection of Safe Modules singleton deployments",
4+
"description": "Collection of Safe modules contract deployments",
55
"homepage": "https://github.com/safe-global/safe-modules-deployments/",
66
"license": "MIT",
77
"main": "dist/index.js",
88
"typings": "dist/index.d.ts",
99
"files": [
1010
"dist",
11-
"src",
12-
"test",
13-
"build"
11+
"src"
1412
],
1513
"scripts": {
16-
"build": "yarn rimraf dist && tsc",
14+
"build": "rimraf dist && tsc",
1715
"lint": "eslint --max-warnings 0 src/",
18-
"prepack": "yarn build"
16+
"lint:fix": "pnpm run lint --fix",
17+
"prepare": "pnpm run build"
1918
},
2019
"repository": {
2120
"type": "git",
@@ -31,14 +30,13 @@
3130
"url": "https://github.com/safe-global/safe-modules-deployments/issues"
3231
},
3332
"devDependencies": {
34-
"@types/node": "^14.14.21",
35-
"@typescript-eslint/eslint-plugin": "^5.10.1",
36-
"@typescript-eslint/parser": "^5.10.1",
37-
"eslint": "8.7.0",
38-
"eslint-config-prettier": "^8.3.0",
39-
"eslint-plugin-prettier": "^4.0.0",
40-
"prettier": "^2.1.2",
41-
"rimraf": "^3.0.2",
42-
"typescript": "^4.2.4"
33+
"@eslint/js": "^8.56.0",
34+
"@types/node": "^20.14.2",
35+
"eslint": "^8.56.0",
36+
"eslint-plugin-prettier": "^5.1.3",
37+
"prettier": "^3.3.2",
38+
"rimraf": "^5.0.7",
39+
"typescript": "^5.4.5",
40+
"typescript-eslint": "^7.13.0"
4341
}
4442
}

0 commit comments

Comments
 (0)