Skip to content

Commit

Permalink
Merge pull request #54 from iankressin/feat/mekong
Browse files Browse the repository at this point in the history
Feat/mekong
  • Loading branch information
iankressin authored Nov 11, 2024
2 parents 291e19a + 844d05f commit 266e7b1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "eql_core"
version = "0.1.17"
version = "0.1.18"
rust-version.workspace = true
edition.workspace = true
authors.workspace = true
Expand All @@ -13,7 +13,7 @@ readme = "README.md"
alloy = { version = "0.2", features = ["std", "contract", "provider-http", "network", "rpc-types"] }
pest = "2.7.10"
pest_derive = "2.6"
tokio = { version = "1", features = ["macros"] }
tokio = { version = "1", features = ["macros", "rt"] }
serde = { version = "1" }
serde_json = { version = "1" }
serde_with = "1.14"
Expand Down
7 changes: 7 additions & 0 deletions crates/core/src/common/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ pub enum Chain {
Fantom,
Kava,
Gnosis,

// Short-lived Pectra testnet
Mekong,
}

#[derive(thiserror::Error, Debug)]
Expand Down Expand Up @@ -137,6 +140,7 @@ impl Chain {
Chain::Fantom => "https://fantom.drpc.org",
Chain::Kava => "https://evm.kava.io",
Chain::Gnosis => "https://gnosis.drpc.org",
Chain::Mekong => "https://rpc.mekong.ethpandaops.io",
}
}
}
Expand Down Expand Up @@ -174,6 +178,7 @@ impl TryFrom<&str> for Chain {
"fantom" => Ok(Chain::Fantom),
"kava" => Ok(Chain::Kava),
"gnosis" => Ok(Chain::Gnosis),
"mekong" => Ok(Chain::Mekong),
_ => Err(ChainError::InvalidChain(chain.to_string())),
}
}
Expand Down Expand Up @@ -204,6 +209,7 @@ impl From<&Chain> for u64 {
Chain::Fantom => 250,
Chain::Kava => 2222,
Chain::Gnosis => 100,
Chain::Mekong => 7078815900,
}
}
}
Expand Down Expand Up @@ -265,6 +271,7 @@ impl fmt::Display for Chain {
Chain::Fantom => "fantom",
Chain::Kava => "kava",
Chain::Gnosis => "gnosis",
Chain::Mekong => "mekong",
};
write!(f, "{}", chain_str)
}
Expand Down
3 changes: 2 additions & 1 deletion crates/core/src/interpreter/frontend/productions.pest
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ chain = {
"ronin" |
"fantom" |
"kava" |
"gnosis"
"gnosis" |
"mekong"
}
rpc_url = { ("http://" | "https://") ~ (ASCII_ALPHANUMERIC | "." | "-" | ":" | "/")+ }
address = { "0x" ~ (ASCII_HEX_DIGIT){40} }
Expand Down
6 changes: 6 additions & 0 deletions eqlup/default-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@
"rpcs": [
"https://gnosis.drpc.org"
]
},
"mekong": {
"default": "https://rpc.mekong.ethpandaops.io",
"rpcs": [
"https://rpc.mekong.ethpandaops.io"
]
}
}
}

0 comments on commit 266e7b1

Please sign in to comment.