Skip to content

Commit 266e7b1

Browse files
authored
Merge pull request #54 from iankressin/feat/mekong
Feat/mekong
2 parents 291e19a + 844d05f commit 266e7b1

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "eql_core"
3-
version = "0.1.17"
3+
version = "0.1.18"
44
rust-version.workspace = true
55
edition.workspace = true
66
authors.workspace = true
@@ -13,7 +13,7 @@ readme = "README.md"
1313
alloy = { version = "0.2", features = ["std", "contract", "provider-http", "network", "rpc-types"] }
1414
pest = "2.7.10"
1515
pest_derive = "2.6"
16-
tokio = { version = "1", features = ["macros"] }
16+
tokio = { version = "1", features = ["macros", "rt"] }
1717
serde = { version = "1" }
1818
serde_json = { version = "1" }
1919
serde_with = "1.14"

crates/core/src/common/chain.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ pub enum Chain {
6262
Fantom,
6363
Kava,
6464
Gnosis,
65+
66+
// Short-lived Pectra testnet
67+
Mekong,
6568
}
6669

6770
#[derive(thiserror::Error, Debug)]
@@ -137,6 +140,7 @@ impl Chain {
137140
Chain::Fantom => "https://fantom.drpc.org",
138141
Chain::Kava => "https://evm.kava.io",
139142
Chain::Gnosis => "https://gnosis.drpc.org",
143+
Chain::Mekong => "https://rpc.mekong.ethpandaops.io",
140144
}
141145
}
142146
}
@@ -174,6 +178,7 @@ impl TryFrom<&str> for Chain {
174178
"fantom" => Ok(Chain::Fantom),
175179
"kava" => Ok(Chain::Kava),
176180
"gnosis" => Ok(Chain::Gnosis),
181+
"mekong" => Ok(Chain::Mekong),
177182
_ => Err(ChainError::InvalidChain(chain.to_string())),
178183
}
179184
}
@@ -204,6 +209,7 @@ impl From<&Chain> for u64 {
204209
Chain::Fantom => 250,
205210
Chain::Kava => 2222,
206211
Chain::Gnosis => 100,
212+
Chain::Mekong => 7078815900,
207213
}
208214
}
209215
}
@@ -265,6 +271,7 @@ impl fmt::Display for Chain {
265271
Chain::Fantom => "fantom",
266272
Chain::Kava => "kava",
267273
Chain::Gnosis => "gnosis",
274+
Chain::Mekong => "mekong",
268275
};
269276
write!(f, "{}", chain_str)
270277
}

crates/core/src/interpreter/frontend/productions.pest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ chain = {
272272
"ronin" |
273273
"fantom" |
274274
"kava" |
275-
"gnosis"
275+
"gnosis" |
276+
"mekong"
276277
}
277278
rpc_url = { ("http://" | "https://") ~ (ASCII_ALPHANUMERIC | "." | "-" | ":" | "/")+ }
278279
address = { "0x" ~ (ASCII_HEX_DIGIT){40} }

eqlup/default-config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@
140140
"rpcs": [
141141
"https://gnosis.drpc.org"
142142
]
143+
},
144+
"mekong": {
145+
"default": "https://rpc.mekong.ethpandaops.io",
146+
"rpcs": [
147+
"https://rpc.mekong.ethpandaops.io"
148+
]
143149
}
144150
}
145151
}

0 commit comments

Comments
 (0)