Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(integrations): ✨ Kakarot Sepolia Testnet integration #685

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 33 additions & 18 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@
9980, 421614, 11155111, 84532, 168587773, 80085, 81457, 534351, 534352,
56400, 7000, 11155420, 80002, 27827, 4653, 8101902, 666666666, 2442, 7001,
5003, 100, 10200, 195, 196, 2810, 997, 713715, 3799, 167009, 80084, 5845,
167000, 1328, 1329, 995, 28882, 288
167000, 1328, 1329, 995, 28882, 288, 1802203764
],
"EIP1559SupportedNetworks": [
1, 137, 42161, 10, 43114, 43113, 8453, 59140, 59144, 204, 5611, 421614,
11155111, 84532, 168587773, 80085, 81457, 42170, 169, 56400, 11155420,
80002, 27827, 4653, 100, 10200, 997, 713715, 3799, 167009, 80084, 5845,
167000, 1328, 1329, 1715, 995, 28882, 288
167000, 1328, 1329, 1715, 995, 28882, 288, 1802203764
],
"testnetNetworks": [
97, 43113, 59140, 5611, 81, 88882, 59144, 421614, 11155111, 1115, 3441005,
84532, 168587773, 80085, 534351, 56400, 11155420, 80002, 7001, 2442, 5003,
10200, 195, 2810, 997, 713715, 3799, 167009, 80084, 5845, 1328, 28882
10200, 195, 2810, 997, 713715, 3799, 167009, 80084, 5845, 1328, 28882,
1802203764
],
"supportedTransactionType": {
"1": ["BUNDLER"],
Expand Down Expand Up @@ -83,7 +84,8 @@
"1329": ["BUNDLER"],
"995": ["BUNDLER"],
"28882": ["BUNDLER"],
"288": ["BUNDLER"]
"288": ["BUNDLER"],
"1802203764": ["BUNDLER"]
},
"chains": {
"providers": {
Expand Down Expand Up @@ -189,7 +191,8 @@
"1329": "SEI",
"995": "5IRE",
"28882": "ETH",
"288": "ETH"
"288": "ETH",
"1802203764": "ETH"
},
"decimal": {
"137": 18,
Expand Down Expand Up @@ -256,7 +259,8 @@
"1329": 18,
"995": 18,
"28882": 18,
"288": 18
"288": 18,
"1802203764": 18
},
"retryTransactionInterval": {
"137": 30000,
Expand Down Expand Up @@ -323,7 +327,8 @@
"1329": 30000,
"995": 30000,
"28882": 30000,
"288": 30000
"288": 30000,
"1802203764": 30000
},
"updateFrequencyInSeconds": {
"137": 10,
Expand Down Expand Up @@ -390,7 +395,8 @@
"1329": 60,
"995": 60,
"28882": 60,
"288": 60
"288": 60,
"1802203764": 60
}
},
"maxPriorityFeePerGasThresholdPercentage": 0.5,
Expand Down Expand Up @@ -470,7 +476,8 @@
"1329": 2,
"995": 2,
"28882": 2,
"288": 2
"288": 2,
"1802203764": 2
},
"maxRelayerCount": {
"137": 400,
Expand Down Expand Up @@ -537,7 +544,8 @@
"1329": 5,
"995": 5,
"28882": 5,
"288": 5
"288": 5,
"1802203764": 5
},
"inactiveRelayerCountThreshold": {
"137": 250,
Expand Down Expand Up @@ -604,7 +612,8 @@
"1329": 3,
"995": 3,
"28882": 3,
"288": 3
"288": 3,
"1802203764": 3
},
"pendingTransactionCountThreshold": {
"137": 15,
Expand Down Expand Up @@ -671,7 +680,8 @@
"1329": 15,
"995": 15,
"28882": 15,
"288": 15
"288": 15,
"1802203764": 15
},
"fundingRelayerAmount": {
"137": 5,
Expand Down Expand Up @@ -738,7 +748,8 @@
"1329": 0.01,
"995": 0.1,
"28882": 0.01,
"288": 0.01
"288": 0.01,
"1802203764": 0.005
},
"fundingBalanceThreshold": {
"137": 3,
Expand Down Expand Up @@ -805,7 +816,8 @@
"1329": 0.005,
"995": 0.05,
"28882": 0.005,
"288": 0.005
"288": 0.005,
"1802203764": 0.0025
},
"newRelayerInstanceCount": {
"137": 10,
Expand Down Expand Up @@ -872,7 +884,8 @@
"1329": 2,
"995": 2,
"28882": 2,
"288": 2
"288": 2,
"1802203764": 2
}
}
],
Expand Down Expand Up @@ -931,7 +944,7 @@
84532, 168587773, 43113, 80085, 81457, 42170, 534351, 534352, 56400,
7000, 11155420, 80002, 27827, 7001, 2442, 4653, 5003, 8101902,
666666666, 100, 10200, 195, 196, 2810, 997, 713715, 3799, 167009, 80084,
5845, 167000, 1328, 1329, 995, 28882, 288
5845, 167000, 1328, 1329, 995, 28882, 288, 1802203764
]
},
"0x00000061fefce24a79343c27127435286bb7a4e1": {
Expand All @@ -953,15 +966,17 @@
"mantleNetworks": [5000, 5003],
"blastPvgValue": 700000000,
"scrollNetworks": [534351, 534352],
"kakarotNetworks": [1802203764],
"networksNotSupportingEthCallStateOverrides": [
1101, 81, 592, 169, 3441005, 1715, 7116, 9980, 88882, 88888, 81457,
666666666, 2442, 8101902, 7001, 196, 195, 167009, 713715, 167000, 1328,
1329, 997, 995, 28882, 288
1329, 997, 995, 28882, 288, 1802203764
],
"trustWalletSupportedNetworks": [137, 56, 204, 42161, 10, 8453],
"networksNotSupportingEthCallBytecodeStateOverrides": [
1, 59140, 59144, 84532, 421614, 168587773, 43113, 11155111, 1101, 88882,
88888, 81457, 167009, 713715, 167000, 1328, 1329, 997, 995, 28882, 288
88888, 81457, 167009, 713715, 167000, 1328, 1329, 997, 995, 28882, 288,
1802203764
],
"pvgMarkUp": {
"1": 0.1,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"crypto-js": "^4.1.1",
"dd-trace": "^4.17.0",
"dotenv": "^16.0.3",
"entry-point-gas-estimations": "0.0.24",
"entry-point-gas-estimations": "0.0.26",
"ethereumjs-util": "^7.1.5",
"express": "^4.18.2",
"express-handlebars": "^6.0.6",
Expand Down
1 change: 1 addition & 0 deletions src/common/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ export enum BLOCKCHAINS {
TAIKO_HEKLA_TESTNET = 167009,
TAIKO_MAINNET = 167000,
BERACHAIN_BARTIO_TESTNET = 80084,
KAKAROT_TESTNET = 1802203764,
}
7 changes: 7 additions & 0 deletions src/common/simulation/BundlerSimulationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import {
createArbitrumGasEstimator,
createGasEstimator,
createKakarotGasEstimator,
createMantleGasEstimator,
createMorphGasEstimator,
createOptimismGasEstimator,
Expand Down Expand Up @@ -98,6 +99,12 @@ export class BundlerSimulationService {
rpcUrl: this.networkService.rpcUrl,
});
}

if (config.kakarotNetworks.includes(this.networkService.chainId)) {
this.gasEstimator = createKakarotGasEstimator({
rpcUrl: this.networkService.rpcUrl,
});
}
}

async estimateUserOperationGas(
Expand Down
2 changes: 2 additions & 0 deletions src/config/interface/IConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ export type ConfigType = {
morphNetworks: Array<number>;
// array of chain Ids for networks that are part of the Esi ecosystem - they have different gas limits than other networks
seiNetworks: Array<number>;
// array of chain Ids for networks that are part of the Kakarot ecosystem - they have a 7m gas limit
kakarotNetworks: Array<number>;
paymasterDashboardBackendConfig: PaymasterDashboardBackendConfigType;
// array of chain Ids for networks that are part of the Polygon zkEVM ecosystem
polygonZKEvmNetworks: Array<number>;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3711,10 +3711,10 @@ end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"

[email protected].24:
version "0.0.24"
resolved "https://registry.yarnpkg.com/entry-point-gas-estimations/-/entry-point-gas-estimations-0.0.24.tgz#1785e458b4321d3efcf5e50df32c2ee907ed6add"
integrity sha512-si8iXN/IadHh7xmtTCyIGLqjZxOOcVyijFy8jpIedZ5Wc7wz3sxFAcfRZxnHS4agb/A2YoguBya5oN6pvp5DCg==
[email protected].26:
version "0.0.26"
resolved "https://registry.yarnpkg.com/entry-point-gas-estimations/-/entry-point-gas-estimations-0.0.26.tgz#74fc91fc1b0b8fc464d70e10f889804e4f5db2eb"
integrity sha512-4qQAjbRs0LsE5wcbhZZ8fFq6K0dgy97r+iGqxDYXLNawMF0yu0P9IfGlhoDlstRP/pTvDTc/ltAg5u8q9A9W+g==
dependencies:
viem "^2.17.3"
zod "^3.22.4"
Expand Down