Skip to content
Draft
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
2 changes: 1 addition & 1 deletion Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ chains:
hypercore:
url: https://api.hyperliquid.xyz
monad:
url: https://testnet-rpc.monad.xyz #TODO: Monad
url: https://rpc.monad.xyz

swap:
jupiter:
Expand Down
5 changes: 3 additions & 2 deletions crates/gem_evm/src/multicall3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ pub fn deployment_by_chain(chain: &EVMChain) -> &'static str {
| EVMChain::Berachain
| EVMChain::Ink
| EVMChain::Unichain
| EVMChain::Hyperliquid => "0xcA11bde05977b3631167028862bE2a173976CA11",
| EVMChain::Hyperliquid
| EVMChain::Monad => "0xcA11bde05977b3631167028862bE2a173976CA11",
EVMChain::ZkSync | EVMChain::Abstract => "0xF9cda624FBC7e059355ce98a31693d299FACd963",
EVMChain::Plasma | EVMChain::Monad => "", //TODO: Monad
EVMChain::Plasma => "",
}
}
3 changes: 2 additions & 1 deletion crates/gem_evm/src/uniswap/deployment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ pub fn get_uniswap_permit2_by_chain(chain: &Chain) -> Option<&'static str> {
| Chain::Blast
| Chain::World
| Chain::Unichain
| Chain::Ink => Some("0x000000000022D473030F116dDEE9F6B43aC78BA3"),
| Chain::Ink
| Chain::Monad => Some("0x000000000022D473030F116dDEE9F6B43aC78BA3"),
Chain::ZkSync | Chain::Abstract => Some("0x0000000000225e31d15943971f47ad3022f714fa"),
_ => None,
}
Expand Down
7 changes: 7 additions & 0 deletions crates/gem_evm/src/uniswap/deployment/v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ pub fn get_uniswap_router_deployment_by_chain(chain: &Chain) -> Option<V3Deploym
permit2,
universal_router: "0xEf740bf23aCaE26f6492B10de645D6B98dC8Eaf3",
}),
// NOTE: Monad testnet (chain ID 10143) addresses - will need to update for mainnet (chain ID 143)
// See: https://github.com/Uniswap/contracts/blob/main/deployments/143.md
Chain::Monad => Some(V3Deployment {
quoter_v2: "0x1b4e313fef15630af3e6f2de550dbf4cc9d3081d",
permit2,
universal_router: "0x3ae6d8a282d67893e17aa70ebffb33ee5aa65893",
}),
_ => None,
}
}
Expand Down
3 changes: 2 additions & 1 deletion crates/gem_evm/src/uniswap/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ pub fn get_base_pair(chain: &EVMChain, weth_as_native: bool) -> Option<BasePair>
EVMChain::Manta => "0xb73603c5d87fa094b7314c74ace2e64d165016fb",
EVMChain::Linea => "0x176211869cA2b568f2A7D4EE941E073a821EE1ff",
EVMChain::Ink => "0xF1815bd50389c46847f0Bda824eC8da914045D14",
EVMChain::Monad => "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
EVMChain::OpBNB | EVMChain::Plasma => "",
_ => panic!("USDC is not configured for this chain"),
};
Expand All @@ -143,7 +144,7 @@ pub fn get_base_pair(chain: &EVMChain, weth_as_native: bool) -> Option<BasePair>
EVMChain::OpBNB => "0x9e5AAC1Ba1a2e6aEd6b32689DFcF62A509Ca96f3",
EVMChain::Ink => "0x0200C29006150606B650577BBE7B6248F58470c1",
EVMChain::Plasma => "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb", // USDT0
EVMChain::Blast | EVMChain::World => "", // None
EVMChain::Blast | EVMChain::World | EVMChain::Monad => "", // None
_ => panic!("USDT is not configured for this chain"),
};

Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Chain {
Self::Unichain => "130",
Self::Hyperliquid => "999",
Self::HyperCore => "1337",
Self::Monad => "10143", //TODO: Monad 143
Self::Monad => "143",
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/chain_evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl EVMChain {
Self::Mantle => Some("0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"), // Wrapped Mantle (WMNT)
Self::Manta => Some("0x0dc808adce2099a9f62aa87d9670745aba741746"),
Self::Plasma => Some("0x6100E367285b01F48D07953803A2d8dCA5D19873"), // Wrapped Plasma (WXPL)
Self::Monad => None, //TODO: Monad
Self::Monad => Some("0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"),
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/explorers/etherscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl EtherScan {
EVMChain::Abstract => Explorer::boxed(Metadata::with_token("Abscan", "https://abscan.org")),
EVMChain::Berachain => Explorer::boxed(Metadata::with_token("Berascan", "https://berascan.com")),
EVMChain::Unichain => Explorer::boxed(Metadata::with_token("Uniscan", "https://uniscan.xyz")),
EVMChain::Monad => Explorer::boxed(Metadata::with_token("Monad", "https://testnet.monadexplorer.com")),
EVMChain::Monad => Explorer::boxed(Metadata::with_token("Monad", "https://monadexplorer.com")),
EVMChain::Hyperliquid => Explorer::boxed(Metadata::with_token("HyperEvmScan", "https://hyperevmscan.io")),
_ => todo!(),
}
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/node_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,6 @@ pub fn get_nodes_for_chain(chain: Chain) -> Vec<Node> {
Node::new("https://hyperliquid-json-rpc.stakely.io", NodePriority::High),
],
Chain::HyperCore => vec![Node::new("https://api.hyperliquid.xyz", NodePriority::High)],
Chain::Monad => vec![], //TODO: Monad
Chain::Monad => vec![Node::new("https://rpc.monad.xyz", NodePriority::High)],
}
}
Loading