Skip to content

Commit 64e3c03

Browse files
authored
Whitelist etherspot factories (#85)
* feat: whitelist etherspot factories * chore(release): v0.0.40 * add mantle testnet factory
1 parent 6ba81a5 commit 64e3c03

10 files changed

Lines changed: 48 additions & 20 deletions

File tree

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"npmClient": "yarn",
66
"useWorkspaces": true,
7-
"version": "0.0.39",
7+
"version": "0.0.40",
88
"stream": "true",
99
"command": {
1010
"version": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "root",
33
"private": true,
4-
"version": "0.0.39",
4+
"version": "0.0.40",
55
"engines": {
66
"node": ">=18.0.0"
77
},

packages/api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "api",
3-
"version": "0.0.39",
3+
"version": "0.0.40",
44
"description": "The API module of Etherspot bundler client",
55
"author": "Etherspot",
66
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -35,12 +35,12 @@
3535
"class-transformer": "0.5.1",
3636
"class-validator": "0.14.0",
3737
"ethers": "5.7.2",
38-
"executor": "^0.0.39",
38+
"executor": "^0.0.40",
3939
"fastify": "4.14.1",
4040
"pino": "8.11.0",
4141
"pino-pretty": "10.0.0",
4242
"reflect-metadata": "0.1.13",
43-
"types": "^0.0.39"
43+
"types": "^0.0.40"
4444
},
4545
"devDependencies": {
4646
"@types/connect": "3.4.35"

packages/cli/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli",
3-
"version": "0.0.39",
3+
"version": "0.0.40",
44
"description": "> TODO: description",
55
"author": "zincoshine <psramanuj@gmail.com>",
66
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -31,13 +31,13 @@
3131
"url": "https://https://github.com/etherspot/skandha/issues"
3232
},
3333
"dependencies": {
34-
"api": "^0.0.39",
35-
"db": "^0.0.39",
36-
"executor": "^0.0.39",
34+
"api": "^0.0.40",
35+
"db": "^0.0.40",
36+
"executor": "^0.0.40",
3737
"find-up": "5.0.0",
3838
"got": "12.5.3",
3939
"js-yaml": "4.1.0",
40-
"types": "^0.0.39",
40+
"types": "^0.0.40",
4141
"yargs": "17.6.2"
4242
},
4343
"devDependencies": {

packages/db/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "db",
3-
"version": "0.0.39",
3+
"version": "0.0.40",
44
"description": "The DB module of Etherspot bundler client",
55
"author": "Etherspot",
66
"homepage": "https://github.com/etherspot/etherspot-bundler#readme",
@@ -37,6 +37,6 @@
3737
"devDependencies": {
3838
"@types/rocksdb": "3.0.1",
3939
"prettier": "^2.8.4",
40-
"types": "^0.0.39"
40+
"types": "^0.0.40"
4141
}
4242
}

packages/executor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "executor",
3-
"version": "0.0.39",
3+
"version": "0.0.40",
44
"description": "The Relayer module of Etherspot bundler client",
55
"author": "Etherspot",
66
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"async-mutex": "0.4.0",
3535
"ethers": "5.7.2",
36-
"params": "^0.0.39",
37-
"types": "^0.0.39"
36+
"params": "^0.0.40",
37+
"types": "^0.0.40"
3838
}
3939
}

packages/executor/src/services/UserOpValidation/validators/safe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class SafeValidationService {
268268
)
269269
) {
270270
this.logger.debug(
271-
"Paymaster is in whitelist. Skipping opcode validation..."
271+
`${entityTitle} is in whitelist. Skipping opcode validation...`
272272
);
273273
continue;
274274
}

packages/params/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "params",
3-
"version": "0.0.39",
3+
"version": "0.0.40",
44
"description": "Various bundler parameters",
55
"author": "Etherspot",
66
"homepage": "https://github.com/etherspot/skandha#readme",
@@ -25,7 +25,7 @@
2525
"@eth-optimism/sdk": "3.0.0",
2626
"@mantleio/sdk": "0.2.1",
2727
"ethers": "5.7.2",
28-
"types": "^0.0.39"
28+
"types": "^0.0.40"
2929
},
3030
"scripts": {
3131
"clean": "rm -rf lib && rm -f *.tsbuildinfo",
Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
import { getAddress } from "ethers/lib/utils";
12
import { IWhitelistedEntity } from "../types/IWhitelistedEntities";
23

3-
export const WhitelistedFactories: IWhitelistedEntity = {};
4+
export const WhitelistedFactories: IWhitelistedEntity = {
5+
// Etehrspot Paymasters
6+
// ref: https://github.com/etherspot/etherspot-prime-contracts/blob/master/DEPLOYMENTS.md
7+
mainnet: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
8+
arbitrum: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
9+
optimism: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
10+
matic: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
11+
fuse: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
12+
xdai: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
13+
mantle: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
14+
avalanche: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
15+
bsc: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
16+
base: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
17+
linea: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
18+
goerli: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
19+
sepolia: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
20+
arbitrumNitro: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
21+
optimismGoerli: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
22+
mumbai: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
23+
fuseSparknet: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
24+
baseGoerli: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
25+
chiado: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
26+
fuji: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
27+
bscTest: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
28+
lineaTestnet: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
29+
scrollSepolia: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
30+
mantleTestnet: [getAddress("0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E")],
31+
};

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "types",
3-
"version": "0.0.39",
3+
"version": "0.0.40",
44
"description": "The types of Etherspot bundler client",
55
"author": "Etherspot",
66
"homepage": "https://https://github.com/etherspot/skandha#readme",

0 commit comments

Comments
 (0)