Skip to content

Commit d896b40

Browse files
committed
feat: megaeth
1 parent dff67b5 commit d896b40

19 files changed

Lines changed: 1210 additions & 1298 deletions

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,5 @@ SEI_RPC=' '
141141
PLASMA_RPC=' '
142142

143143
MONAD_RPC=' '
144+
145+
MEGAETH_RPC=' '

deployments/prod_addresses.json

Lines changed: 1036 additions & 1295 deletions
Large diffs are not rendered by default.

deployments/prod_verification.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3553,6 +3553,152 @@
35533553
["0x5fD7D0d6b91CC4787Bcb86ca47e0Bd4ea0346d34"]
35543554
]
35553555
],
3556+
"4326": [
3557+
[
3558+
"0x10eC45De78BDfE26Cefb953F604E18BF70904FBa",
3559+
"SwitchboardSimulator",
3560+
"contracts/mocks/fee-updater/SwitchboardSimulator.sol",
3561+
[
3562+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3563+
"0xB152AC07a21966981fef9341DA3146f8e08e22bC",
3564+
4326,
3565+
1000,
3566+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF"
3567+
]
3568+
],
3569+
[
3570+
"0x134633394c8Cef32a671B6Fed5e99b4B6466f4e4",
3571+
"SimulatorUtils",
3572+
"contracts/mocks/fee-updater/SimulatorUtils.sol",
3573+
[
3574+
"0xB152AC07a21966981fef9341DA3146f8e08e22bC",
3575+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF",
3576+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3577+
4326
3578+
]
3579+
],
3580+
[
3581+
"0xB152AC07a21966981fef9341DA3146f8e08e22bC",
3582+
"SocketSimulator",
3583+
"contracts/mocks/fee-updater/SocketSimulator.sol",
3584+
[
3585+
4326,
3586+
4326,
3587+
"0xb3314456567986e657d4C65Ec9e8cB736B92d11D",
3588+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF",
3589+
"IMLI"
3590+
]
3591+
],
3592+
[
3593+
"0xcd620187f4846ba5a42ab41270aC550467dc9FbB",
3594+
"Counter",
3595+
"contracts/examples/Counter.sol",
3596+
["0x525a6489a1df5fF1ae077fAf628E43b7F52298eF"]
3597+
],
3598+
[
3599+
"0x09A03E0d298AA13a07A9a3e36a606d4F6a4b8bB7",
3600+
"SocketBatcher",
3601+
"contracts/socket/SocketBatcher.sol",
3602+
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"]
3603+
],
3604+
[
3605+
"0x8c36353db4F3a2DDDeed38405199d13DCF8a1B82",
3606+
"OptimisticSwitchboard",
3607+
"contracts/switchboard/default-switchboards/OptimisticSwitchboard.sol",
3608+
[
3609+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3610+
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
3611+
4326,
3612+
7200,
3613+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF"
3614+
]
3615+
],
3616+
[
3617+
"0xb4Db1838d0B97BD58C7663b3E487eEbC9a996472",
3618+
"FastSwitchboard",
3619+
"contracts/switchboard/default-switchboards/FastSwitchboard.sol",
3620+
[
3621+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3622+
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
3623+
4326,
3624+
7200,
3625+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF"
3626+
]
3627+
],
3628+
[
3629+
"0xd9E3a8Ba9Be55919C5C0De6694e3103F5a35820E",
3630+
"TransmitManager",
3631+
"contracts/TransmitManager.sol",
3632+
[
3633+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3634+
4326,
3635+
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
3636+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF"
3637+
]
3638+
],
3639+
[
3640+
"0x3043Ad9C9e01664bc3A68477f0870Df35dC4bFf8",
3641+
"ExecutionManagerDF",
3642+
"contracts/ExecutionManagerDF.sol",
3643+
[
3644+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3645+
4326,
3646+
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
3647+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF"
3648+
]
3649+
],
3650+
[
3651+
"0x525a6489a1df5fF1ae077fAf628E43b7F52298eF",
3652+
"Socket",
3653+
"contracts/socket/Socket.sol",
3654+
[
3655+
4326,
3656+
"0xb3314456567986e657d4C65Ec9e8cB736B92d11D",
3657+
"0x657e72B305Dc1c41e98d9efC2350EC10e3c83E21",
3658+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3659+
"IMLI"
3660+
]
3661+
],
3662+
[
3663+
"0x657e72B305Dc1c41e98d9efC2350EC10e3c83E21",
3664+
"CapacitorFactory",
3665+
"contracts/CapacitorFactory.sol",
3666+
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836", 10]
3667+
],
3668+
[
3669+
"0xb3314456567986e657d4C65Ec9e8cB736B92d11D",
3670+
"Hasher",
3671+
"contracts/utils/Hasher.sol",
3672+
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"]
3673+
],
3674+
[
3675+
"0x0CC93650bF4D98237628DACf87f94E443956D8dF",
3676+
"SignatureVerifier",
3677+
"contracts/utils/SignatureVerifier.sol",
3678+
["0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836"]
3679+
],
3680+
[
3681+
"0xb4Ef469c9d8317851270346070dA0ecE24616E6b",
3682+
"MultiSigWrapper",
3683+
"contracts/utils/multisig/MultiSigWrapper.sol",
3684+
[
3685+
"0xB0BBff6311B7F245761A7846d3Ce7B1b100C1836",
3686+
"0xd6b078f06d4e26eCc6405457d01F50656a1657c0"
3687+
]
3688+
],
3689+
[
3690+
"0x1CAdCd88fC148D3966eDe75D029937C886f66009",
3691+
"SafeProxyFactory",
3692+
"contracts/utils/multisig/proxies/SafeProxyFactory.sol",
3693+
[]
3694+
],
3695+
[
3696+
"0xbe7241e9D11EC2D1Ac86CE217c4A37b7aD1701cE",
3697+
"SafeL2",
3698+
"contracts/utils/multisig/SafeL2.sol",
3699+
[]
3700+
]
3701+
],
35563702
"5000": [
35573703
[
35583704
"0x4dC25D9d3ee57018998A50e912F40f6384947Ff5",

scripts/constants/overrides.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const chainOverrides: {
102102
gasPrice: 212_000_000_000,
103103
},
104104
[ChainSlug.GNOSIS]: {
105-
gasLimit: 15_000_000,
105+
gasLimit: 6_000_000,
106106
},
107107
[ChainSlug.LINEA]: {
108108
gasLimit: 10_000_000,
@@ -127,7 +127,11 @@ export const chainOverrides: {
127127
type: 2,
128128
},
129129
[ChainSlug.MONAD]: {
130-
gasLimit: 3_00_000,
130+
gasLimit: 5_000_000,
131+
},
132+
[ChainSlug.MEGAETH]: {
133+
// gasLimit: 5_000_000,
134+
// gasPrice: 2_000_000,
131135
},
132136
};
133137

scripts/rpcConfig/constants/batcherSupportedChainSlug.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ export const batcherSupportedChainSlugs = [
6666
ChainSlug.SEI,
6767
ChainSlug.PLASMA,
6868
ChainSlug.MONAD,
69+
ChainSlug.MEGAETH,
6970
];

scripts/rpcConfig/constants/explorers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ export const explorers = {
4545
[ChainSlug.SEI]: "https://seitrace.com/",
4646
[ChainSlug.PLASMA]: "https://plasmascan.to/",
4747
[ChainSlug.MONAD]: "https://mainnet-beta.monvision.io/",
48+
[ChainSlug.MEGAETH]: "https://megaeth.blockscout.com/",
4849
};

scripts/rpcConfig/constants/icons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ export const icons = {
4343
[ChainSlug.SEI]: "",
4444
[ChainSlug.PLASMA]: "",
4545
[ChainSlug.MONAD]: "",
46+
[ChainSlug.MEGAETH]: "",
4647
};

scripts/rpcConfig/constants/rpc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ export const rpcs = {
7878
[ChainSlug.SEI]: checkEnvValue("SEI_RPC"),
7979
[ChainSlug.PLASMA]: checkEnvValue("PLASMA_RPC"),
8080
[ChainSlug.MONAD]: checkEnvValue("MONAD_RPC"),
81+
[ChainSlug.MEGAETH]: checkEnvValue("MEGAETH_RPC"),
8182
};

scripts/rpcConfig/constants/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { DeploymentMode } from "../../../src";
22

33
export const version = {
44
[DeploymentMode.DEV]: "1.0.6",
5-
[DeploymentMode.PROD]: "1.0.116",
5+
[DeploymentMode.PROD]: "1.0.118",
66
};

scripts/rpcConfig/uploadS3Config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
2+
import { NodeHttpHandler } from "@smithy/node-http-handler";
23
import * as fs from "fs";
34
import { DeploymentMode, TxData } from "../../src";
45
import dotenv from "dotenv";
@@ -9,6 +10,11 @@ dotenv.config();
910
const deploymentMode = process.env.DEPLOYMENT_MODE as DeploymentMode;
1011
const s3Client = new S3Client({
1112
region: "us-east-1",
13+
maxAttempts: 5,
14+
requestHandler: new NodeHttpHandler({
15+
requestTimeout: 60000,
16+
socketTimeout: 60000,
17+
}),
1218
});
1319

1420
// File path for the JSON file

0 commit comments

Comments
 (0)