From 64cce47bd1c3032875b4c51144c755b4e858488e Mon Sep 17 00:00:00 2001 From: Danil Nemirovsky Date: Mon, 9 Dec 2024 17:18:31 +0000 Subject: [PATCH] feat: Add Sealevel testnets to domain table (#4969) ### Description * Add Sealevel testnets to domain table ### Drive-by changes * Sort domain alphabetically ### Related issues - Contributes into https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/4271 ### Backward compatibility Yes ### Testing Local run of init db --------- Co-authored-by: Danil Nemirovsky <4614623+ameten@users.noreply.github.com> --- .../m20230309_000001_create_table_domain.rs | 220 ++++++++++-------- 1 file changed, 120 insertions(+), 100 deletions(-) diff --git a/rust/main/agents/scraper/migration/src/m20230309_000001_create_table_domain.rs b/rust/main/agents/scraper/migration/src/m20230309_000001_create_table_domain.rs index 5e35e14792..606a16c5da 100644 --- a/rust/main/agents/scraper/migration/src/m20230309_000001_create_table_domain.rs +++ b/rust/main/agents/scraper/migration/src/m20230309_000001_create_table_domain.rs @@ -14,6 +14,7 @@ use sea_orm_migration::prelude::*; /// This is why it does not use the domain id lookup tools in the library which /// are subject to change as we deprecate and add new ones. const DOMAINS: &[RawDomain] = &[ + // ---------- Begin: Mainnets and Testnets (alphabetically sorted) ------------- RawDomain { name: "alfajores", token: "CELO", @@ -38,6 +39,14 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "arbitrumsepolia", + token: "ETH", + domain: 421614, + chain_id: 421614, + is_test_net: true, + is_deprecated: false, + }, RawDomain { name: "avalanche", token: "AVAX", @@ -54,6 +63,14 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "basesepolia", + token: "ETH", + domain: 84532, + chain_id: 84532, + is_test_net: true, + is_deprecated: false, + }, RawDomain { name: "blast", token: "ETH", @@ -102,6 +119,38 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "connextsepolia", + token: "ETH", + domain: 6398, + chain_id: 6398, + is_test_net: true, + is_deprecated: false, + }, + RawDomain { + name: "eclipsemainnet", + token: "ETH", + domain: 1408864445, + chain_id: 1408864445, + is_test_net: false, + is_deprecated: false, + }, + RawDomain { + name: "eclipsetestnet", + token: "ETH", + domain: 239092742, + chain_id: 239092742, + is_test_net: true, + is_deprecated: false, + }, + RawDomain { + name: "ecotestnet", + token: "ETH", + domain: 471923, + chain_id: 471923, + is_test_net: true, + is_deprecated: false, + }, RawDomain { name: "endurance", token: "ETH", @@ -158,6 +207,22 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "inevm", + token: "INJ", + domain: 2525, + chain_id: 2525, + is_test_net: false, + is_deprecated: false, + }, + RawDomain { + name: "injective", + token: "INJ", + domain: 6909546, + chain_id: 6909546, + is_test_net: false, + is_deprecated: false, + }, RawDomain { name: "linea", token: "ETH", @@ -206,6 +271,14 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "neutron", + token: "NTRN", + domain: 1853125230, + chain_id: 1853125230, + is_test_net: false, + is_deprecated: false, + }, RawDomain { name: "optimism", token: "ETH", @@ -214,6 +287,22 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "optimismsepolia", + token: "ETH", + domain: 11155420, + chain_id: 11155420, + is_test_net: true, + is_deprecated: false, + }, + RawDomain { + name: "osmosis", + token: "OSMO", + domain: 875, + chain_id: 875, + is_test_net: false, + is_deprecated: false, + }, RawDomain { name: "polygon", token: "MATIC", @@ -222,6 +311,14 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "polygonanoy", + token: "MATIC", + domain: 80002, + chain_id: 80002, + is_test_net: true, + is_deprecated: false, + }, RawDomain { name: "polygonzkevm", token: "ETH", @@ -271,13 +368,29 @@ const DOMAINS: &[RawDomain] = &[ is_deprecated: false, }, RawDomain { - name: "eclipsemainnet", - token: "ETH", - domain: 1408864445, - chain_id: 1408864445, + name: "solanatestnet", + token: "SOL", + domain: 1399811150, + chain_id: 1399811150, + is_test_net: true, + is_deprecated: false, + }, + RawDomain { + name: "stride", + token: "STRD", + domain: 745, + chain_id: 745, is_test_net: false, is_deprecated: false, }, + RawDomain { + name: "superpositiontestnet", + token: "SPN", + domain: 98985, + chain_id: 98985, + is_test_net: true, + is_deprecated: false, + }, RawDomain { name: "taiko", token: "ETH", @@ -294,14 +407,6 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, - RawDomain { - name: "inevm", - token: "INJ", - domain: 2525, - chain_id: 2525, - is_test_net: false, - is_deprecated: false, - }, RawDomain { name: "xlayer", token: "OKB", @@ -334,62 +439,8 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: false, is_deprecated: false, }, - RawDomain { - name: "connextsepolia", - token: "ETH", - domain: 6398, - chain_id: 6398, - is_test_net: true, - is_deprecated: false, - }, - RawDomain { - name: "superpositiontestnet", - token: "SPN", - domain: 98985, - chain_id: 98985, - is_test_net: true, - is_deprecated: false, - }, - RawDomain { - name: "arbitrumsepolia", - token: "ETH", - domain: 421614, - chain_id: 421614, - is_test_net: true, - is_deprecated: false, - }, - RawDomain { - name: "basesepolia", - token: "ETH", - domain: 84532, - chain_id: 84532, - is_test_net: true, - is_deprecated: false, - }, - RawDomain { - name: "ecotestnet", - token: "ETH", - domain: 471923, - chain_id: 471923, - is_test_net: true, - is_deprecated: false, - }, - RawDomain { - name: "optimismsepolia", - token: "ETH", - domain: 11155420, - chain_id: 11155420, - is_test_net: true, - is_deprecated: false, - }, - RawDomain { - name: "polygonanoy", - token: "MATIC", - domain: 80002, - chain_id: 80002, - is_test_net: true, - is_deprecated: false, - }, + // ---------- End: Mainnets and Testnets (alphabetically sorted) --------------- + // ---------- Begin: E2E tests chains ------------------------------------------ RawDomain { name: "test1", token: "ETH", @@ -414,38 +465,6 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: true, is_deprecated: false, }, - RawDomain { - name: "injective", - token: "INJ", - domain: 6909546, - chain_id: 6909546, - is_test_net: false, - is_deprecated: false, - }, - RawDomain { - name: "neutron", - token: "NTRN", - domain: 1853125230, - chain_id: 1853125230, - is_test_net: false, - is_deprecated: false, - }, - RawDomain { - name: "osmosis", - token: "OSMO", - domain: 875, - chain_id: 875, - is_test_net: false, - is_deprecated: false, - }, - RawDomain { - name: "stride", - token: "STRD", - domain: 745, - chain_id: 745, - is_test_net: false, - is_deprecated: false, - }, RawDomain { name: "cosmostest99990", token: "OSMO", @@ -478,6 +497,7 @@ const DOMAINS: &[RawDomain] = &[ is_test_net: true, is_deprecated: false, }, + // ---------- End: E2E tests chains ---------------- ]; #[derive(DeriveMigrationName)]