diff --git a/lerna.json b/lerna.json index eb3a587a..b387cbe6 100644 --- a/lerna.json +++ b/lerna.json @@ -3,7 +3,7 @@ "packages/*" ], "npmClient": "yarn", - "version": "1.5.9", + "version": "1.5.10", "stream": "true", "command": { "version": { diff --git a/package.json b/package.json index 4543bdc3..be11ed39 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "root", "private": true, - "version": "1.5.9", + "version": "1.5.10", "engines": { "node": ">=18.0.0" }, diff --git a/packages/api/package.json b/packages/api/package.json index 7d699bf9..071354db 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "The API module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -34,10 +34,10 @@ "dependencies": { "@fastify/cors": "9.0.1", "@fastify/websocket": "10.0.1", - "@skandha/executor": "^1.5.9", - "@skandha/monitoring": "^1.5.9", - "@skandha/types": "^1.5.9", - "@skandha/utils": "^1.5.9", + "@skandha/executor": "^1.5.10", + "@skandha/monitoring": "^1.5.10", + "@skandha/types": "^1.5.10", + "@skandha/utils": "^1.5.10", "class-transformer": "0.5.1", "class-validator": "0.14.1", "ethers": "5.7.2", diff --git a/packages/cli/package.json b/packages/cli/package.json index 7f8e7c1d..4821fc17 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "> TODO: description", "author": "zincoshine ", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -40,12 +40,12 @@ "@libp2p/peer-id-factory": "2.0.1", "@libp2p/prometheus-metrics": "1.1.3", "@multiformats/multiaddr": "12.1.3", - "@skandha/api": "^1.5.9", - "@skandha/db": "^1.5.9", - "@skandha/executor": "^1.5.9", - "@skandha/monitoring": "^1.5.9", - "@skandha/node": "^1.5.9", - "@skandha/types": "^1.5.9", + "@skandha/api": "^1.5.10", + "@skandha/db": "^1.5.10", + "@skandha/executor": "^1.5.10", + "@skandha/monitoring": "^1.5.10", + "@skandha/node": "^1.5.10", + "@skandha/types": "^1.5.10", "find-up": "5.0.0", "got": "12.5.3", "js-yaml": "4.1.0", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index e369ac68..09a5f40e 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "Smart contracts of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", diff --git a/packages/db/package.json b/packages/db/package.json index e413b269..61ef8cb2 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "The DB module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://github.com/etherspot/etherspot-bundler#readme", @@ -34,7 +34,7 @@ "dependencies": { "@chainsafe/ssz": "0.10.1", "@farcaster/rocksdb": "5.5.0", - "@skandha/types": "^1.5.9" + "@skandha/types": "^1.5.10" }, "devDependencies": { "@types/rocksdb": "3.0.1", diff --git a/packages/executor/package.json b/packages/executor/package.json index fde2e4e9..74fe6ae8 100644 --- a/packages/executor/package.json +++ b/packages/executor/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "The Relayer module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -35,10 +35,10 @@ }, "dependencies": { "@flashbots/ethers-provider-bundle": "0.6.2", - "@skandha/monitoring": "^1.5.9", - "@skandha/params": "^1.5.9", - "@skandha/types": "^1.5.9", - "@skandha/utils": "^1.5.9", + "@skandha/monitoring": "^1.5.10", + "@skandha/params": "^1.5.10", + "@skandha/types": "^1.5.10", + "@skandha/utils": "^1.5.10", "async-mutex": "0.4.0", "ethers": "5.7.2", "strict-event-emitter-types": "2.0.0", diff --git a/packages/monitoring/package.json b/packages/monitoring/package.json index 2546bde7..cc755099 100644 --- a/packages/monitoring/package.json +++ b/packages/monitoring/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "The Monitoring module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://github.com/etherspot/etherspot-bundler#readme", @@ -32,7 +32,7 @@ "check-readme": "typescript-docs-verifier" }, "dependencies": { - "@skandha/types": "^1.5.9", + "@skandha/types": "^1.5.10", "prom-client": "^14.2.0" } } diff --git a/packages/node/package.json b/packages/node/package.json index 080c201b..649da3c3 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "The bundler node module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -56,13 +56,13 @@ "@libp2p/prometheus-metrics": "1.1.3", "@libp2p/tcp": "6.1.0", "@multiformats/multiaddr": "11.4.0", - "@skandha/api": "^1.5.9", - "@skandha/db": "^1.5.9", - "@skandha/executor": "^1.5.9", - "@skandha/monitoring": "^1.5.9", - "@skandha/params": "^1.5.9", - "@skandha/types": "^1.5.9", - "@skandha/utils": "^1.5.9", + "@skandha/api": "^1.5.10", + "@skandha/db": "^1.5.10", + "@skandha/executor": "^1.5.10", + "@skandha/monitoring": "^1.5.10", + "@skandha/params": "^1.5.10", + "@skandha/types": "^1.5.10", + "@skandha/utils": "^1.5.10", "@types/varint": "6.0.1", "abstract-leveldown": "7.2.0", "datastore-core": "8.0.1", diff --git a/packages/params/package.json b/packages/params/package.json index 94b33fde..6d8af0dc 100644 --- a/packages/params/package.json +++ b/packages/params/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "Various bundler parameters", "author": "Etherspot", "homepage": "https://github.com/etherspot/skandha#readme", @@ -29,8 +29,8 @@ "@chainsafe/ssz": "0.10.1", "@eth-optimism/sdk": "3.2.3", "@mantleio/sdk": "0.2.1", - "@skandha/types": "^1.5.9", - "@skandha/utils": "^1.5.9", + "@skandha/types": "^1.5.10", + "@skandha/utils": "^1.5.10", "ethers": "5.7.2" }, "scripts": { diff --git a/packages/params/src/gas-price-oracles/oracles/eth_gasPrice.ts b/packages/params/src/gas-price-oracles/oracles/eth_gasPrice.ts new file mode 100644 index 00000000..d77b3f0a --- /dev/null +++ b/packages/params/src/gas-price-oracles/oracles/eth_gasPrice.ts @@ -0,0 +1,15 @@ +import { providers } from "ethers"; +import { IGetGasFeeResult, IOracle } from "./interfaces"; + +export const getEthGasPrice: IOracle = async ( + apiKey: string, + provider?: providers.JsonRpcProvider +): Promise => { + if (!provider) throw new Error("no provider"); + const gasPrice = await provider.getGasPrice(); + return { + maxPriorityFeePerGas: gasPrice, + gasPrice: gasPrice, + maxFeePerGas: gasPrice, + }; +}; diff --git a/packages/params/src/gas-price-oracles/oracles/index.ts b/packages/params/src/gas-price-oracles/oracles/index.ts index 46a0b0f9..38881455 100644 --- a/packages/params/src/gas-price-oracles/oracles/index.ts +++ b/packages/params/src/gas-price-oracles/oracles/index.ts @@ -9,6 +9,7 @@ import { IOracle } from "./interfaces"; import { getMantleGasFee } from "./mantle"; import { getBaseGasFee } from "./base"; import { getAncient8GasFee } from "./ancient8"; +import { getEthGasPrice } from "./eth_gasPrice"; export const oracles: { [chainId: number]: IOracle | undefined; @@ -21,4 +22,5 @@ export const oracles: { 5001: getMantleGasFee, 8453: getBaseGasFee, 888888888: getAncient8GasFee, + 59144: getEthGasPrice, }; diff --git a/packages/types/package.json b/packages/types/package.json index d1dca31f..2ec878e5 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "The types of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", diff --git a/packages/utils/package.json b/packages/utils/package.json index 9e1c3a53..13fc505d 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.5.9", + "version": "1.5.10", "description": "utils of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -33,7 +33,7 @@ }, "dependencies": { "@chainsafe/as-sha256": "0.3.1", - "@skandha/types": "^1.5.9", + "@skandha/types": "^1.5.10", "any-signal": "3.0.1", "bigint-buffer": "1.1.5", "case": "^1.6.3",