Skip to content

Commit

Permalink
feat: Add Sealevel testnets to domain table (#4969)
Browse files Browse the repository at this point in the history
### Description

* Add Sealevel testnets to domain table

### Drive-by changes

* Sort domain alphabetically

### Related issues

- Contributes into
#4271

### Backward compatibility

Yes

### Testing

Local run of init db

---------

Co-authored-by: Danil Nemirovsky <4614623+ameten@users.noreply.github.com>
  • Loading branch information
ameten and ameten authored Dec 9, 2024
1 parent 57c43f1 commit 64cce47
Showing 1 changed file with 120 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -478,6 +497,7 @@ const DOMAINS: &[RawDomain] = &[
is_test_net: true,
is_deprecated: false,
},
// ---------- End: E2E tests chains ----------------
];

#[derive(DeriveMigrationName)]
Expand Down

0 comments on commit 64cce47

Please sign in to comment.