Skip to content

Commit 2e60cc5

Browse files
authored
feat: Add Celo and opBNB gas oracles (#279)
1 parent 1d8da78 commit 2e60cc5

File tree

15 files changed

+58
-38
lines changed

15 files changed

+58
-38
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages/*"
44
],
55
"npmClient": "yarn",
6-
"version": "1.5.35",
6+
"version": "1.5.36",
77
"stream": "true",
88
"command": {
99
"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": "1.5.35",
4+
"version": "1.5.36",
55
"engines": {
66
"node": ">=18.0.0"
77
},

packages/api/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "The API module of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -34,10 +34,10 @@
3434
"dependencies": {
3535
"@fastify/cors": "9.0.1",
3636
"@fastify/websocket": "10.0.1",
37-
"@skandha/executor": "^1.5.35",
38-
"@skandha/monitoring": "^1.5.35",
39-
"@skandha/types": "^1.5.35",
40-
"@skandha/utils": "^1.5.35",
37+
"@skandha/executor": "^1.5.36",
38+
"@skandha/monitoring": "^1.5.36",
39+
"@skandha/types": "^1.5.36",
40+
"@skandha/utils": "^1.5.36",
4141
"class-transformer": "0.5.1",
4242
"class-validator": "0.14.1",
4343
"ethers": "5.7.2",

packages/cli/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "> TODO: description",
99
"author": "zincoshine <[email protected]>",
1010
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -40,12 +40,12 @@
4040
"@libp2p/peer-id-factory": "2.0.1",
4141
"@libp2p/prometheus-metrics": "1.1.3",
4242
"@multiformats/multiaddr": "12.1.3",
43-
"@skandha/api": "^1.5.35",
44-
"@skandha/db": "^1.5.35",
45-
"@skandha/executor": "^1.5.35",
46-
"@skandha/monitoring": "^1.5.35",
47-
"@skandha/node": "^1.5.35",
48-
"@skandha/types": "^1.5.35",
43+
"@skandha/api": "^1.5.36",
44+
"@skandha/db": "^1.5.36",
45+
"@skandha/executor": "^1.5.36",
46+
"@skandha/monitoring": "^1.5.36",
47+
"@skandha/node": "^1.5.36",
48+
"@skandha/types": "^1.5.36",
4949
"find-up": "5.0.0",
5050
"got": "12.5.3",
5151
"js-yaml": "4.1.0",

packages/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "Smart contracts of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://https://github.com/etherspot/skandha#readme",

packages/db/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "The DB module of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://github.com/etherspot/etherspot-bundler#readme",
@@ -34,7 +34,7 @@
3434
"dependencies": {
3535
"@chainsafe/ssz": "0.10.1",
3636
"@farcaster/rocksdb": "5.5.0",
37-
"@skandha/types": "^1.5.35"
37+
"@skandha/types": "^1.5.36"
3838
},
3939
"devDependencies": {
4040
"@types/rocksdb": "3.0.1",

packages/executor/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "The Relayer module of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -35,10 +35,10 @@
3535
},
3636
"dependencies": {
3737
"@flashbots/ethers-provider-bundle": "0.6.2",
38-
"@skandha/monitoring": "^1.5.35",
39-
"@skandha/params": "^1.5.35",
40-
"@skandha/types": "^1.5.35",
41-
"@skandha/utils": "^1.5.35",
38+
"@skandha/monitoring": "^1.5.36",
39+
"@skandha/params": "^1.5.36",
40+
"@skandha/types": "^1.5.36",
41+
"@skandha/utils": "^1.5.36",
4242
"async-mutex": "0.4.0",
4343
"axios": "^1.7.9",
4444
"ethers": "5.7.2",

packages/monitoring/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "The Monitoring module of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://github.com/etherspot/etherspot-bundler#readme",
@@ -32,7 +32,7 @@
3232
"check-readme": "typescript-docs-verifier"
3333
},
3434
"dependencies": {
35-
"@skandha/types": "^1.5.35",
35+
"@skandha/types": "^1.5.36",
3636
"prom-client": "^14.2.0"
3737
}
3838
}

packages/node/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "The bundler node module of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -56,13 +56,13 @@
5656
"@libp2p/prometheus-metrics": "1.1.3",
5757
"@libp2p/tcp": "6.1.0",
5858
"@multiformats/multiaddr": "11.4.0",
59-
"@skandha/api": "^1.5.35",
60-
"@skandha/db": "^1.5.35",
61-
"@skandha/executor": "^1.5.35",
62-
"@skandha/monitoring": "^1.5.35",
63-
"@skandha/params": "^1.5.35",
64-
"@skandha/types": "^1.5.35",
65-
"@skandha/utils": "^1.5.35",
59+
"@skandha/api": "^1.5.36",
60+
"@skandha/db": "^1.5.36",
61+
"@skandha/executor": "^1.5.36",
62+
"@skandha/monitoring": "^1.5.36",
63+
"@skandha/params": "^1.5.36",
64+
"@skandha/types": "^1.5.36",
65+
"@skandha/utils": "^1.5.36",
6666
"@types/varint": "6.0.1",
6767
"abstract-leveldown": "7.2.0",
6868
"datastore-core": "8.0.1",

packages/params/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "Various bundler parameters",
99
"author": "Etherspot",
1010
"homepage": "https://github.com/etherspot/skandha#readme",
@@ -28,8 +28,8 @@
2828
"@arbitrum/sdk": "3.1.4",
2929
"@chainsafe/ssz": "0.10.1",
3030
"@mantleio/sdk": "0.2.1",
31-
"@skandha/types": "^1.5.35",
32-
"@skandha/utils": "^1.5.35",
31+
"@skandha/types": "^1.5.36",
32+
"@skandha/utils": "^1.5.36",
3333
"ethers": "5.7.2"
3434
},
3535
"scripts": {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { getEtherscanGasFee } from "./utils";
2+
import { IGetGasFeeResult } from "./interfaces";
3+
4+
export async function getCeloGasFee(
5+
apiKey: string | undefined = undefined
6+
): Promise<IGetGasFeeResult> {
7+
return getEtherscanGasFee("https://api.celoscan.io/api", apiKey);
8+
}

packages/params/src/gas-price-oracles/oracles/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import { getAncient8GasFee } from "./ancient8";
1212
import { getEthGasPrice } from "./eth_gasPrice";
1313
import { getAmoyGasFee } from "./amoy";
1414
import { getScrollGasFee } from "./scroll";
15+
import { getCeloGasFee } from "./celo";
16+
import { getOpBnbGasFee } from "./opbnb";
1517

1618
export const oracles: {
1719
[chainId: number]: IOracle | IOracle[] | undefined;
@@ -29,4 +31,6 @@ export const oracles: {
2931
80002: getAmoyGasFee,
3032
122: getEthGasPrice,
3133
534352: getScrollGasFee,
34+
42220: getCeloGasFee,
35+
204: getOpBnbGasFee,
3236
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { getEtherscanGasFee } from "./utils";
2+
import { IGetGasFeeResult } from "./interfaces";
3+
4+
export async function getOpBnbGasFee(
5+
apiKey: string | undefined = undefined
6+
): Promise<IGetGasFeeResult> {
7+
return getEtherscanGasFee("https://api-opbnb.bscscan.com/api", apiKey);
8+
}

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "The types of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://https://github.com/etherspot/skandha#readme",

packages/utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publishConfig": {
55
"access": "public"
66
},
7-
"version": "1.5.35",
7+
"version": "1.5.36",
88
"description": "utils of Etherspot bundler client",
99
"author": "Etherspot",
1010
"homepage": "https://https://github.com/etherspot/skandha#readme",
@@ -33,7 +33,7 @@
3333
},
3434
"dependencies": {
3535
"@chainsafe/as-sha256": "0.3.1",
36-
"@skandha/types": "^1.5.35",
36+
"@skandha/types": "^1.5.36",
3737
"any-signal": "3.0.1",
3838
"bigint-buffer": "1.1.5",
3939
"case": "^1.6.3",

0 commit comments

Comments
 (0)