Skip to content

Commit 6d67c2d

Browse files
committed
pre-work for tempo and megaeth
1 parent ff6aacd commit 6d67c2d

File tree

10 files changed

+109
-14
lines changed

10 files changed

+109
-14
lines changed

public/assets/chains/tempo.svg

Lines changed: 4 additions & 0 deletions
Loading

src/components/QuickLinks/data/productChainLinks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ export const productChainLinks: ProductChainLinks = {
336336
bittensor: "/resources/link-token-contracts#bittensor-evm",
337337
everclear: "/resources/link-token-contracts#everclear",
338338
abchain: "/resources/link-token-contracts#ab-chain",
339+
tempo: "/resources/link-token-contracts#tempo",
339340
},
340341
}
341342

@@ -428,4 +429,5 @@ export const chainNames: Record<string, string> = {
428429
morph: "Morph",
429430
jovay: "Jovay",
430431
stable: "Stable",
432+
tempo: "Tempo",
431433
}

src/config/data/chain-to-technology.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"MIND_NETWORK_TESTNET": "MIND_NETWORK",
105105
"MIND_NETWORK_MAINNET": "MIND_NETWORK",
106106
"MEGAETH_TESTNET": "MEGAETH",
107+
"MEGAETH_MAINNET": "MEGAETH",
107108
"0G_GALILEO_TESTNET": "0G",
108109
"0G_MAINNET": "0G",
109110
"TAIKO_MAINNET": "TAIKO",
@@ -162,5 +163,6 @@
162163
"MORPH_HOODI_TESTNET": "MORPH",
163164
"JOVAY_MAINNET": "JOVAY",
164165
"JOVAY_TESTNET": "JOVAY",
165-
"STABLE_MAINNET": "STABLE"
166+
"STABLE_MAINNET": "STABLE",
167+
"TEMPO_TESTNET": "TEMPO"
166168
}

src/config/data/chains.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,18 @@
16531653
"icon": "/assets/chains/megaeth.svg",
16541654
"chainType": "evm",
16551655
"chains": {
1656+
"MEGAETH_MAINNET": {
1657+
"chainId": 4326,
1658+
"title": "MegaETH Mainnet",
1659+
"explorer": {
1660+
"baseUrl": "https://megaexplorer.xyz"
1661+
},
1662+
"nativeCurrency": {
1663+
"name": "MegaETH Ether",
1664+
"symbol": "ETH",
1665+
"decimals": 18
1666+
}
1667+
},
16561668
"MEGAETH_TESTNET": {
16571669
"chainId": 6342,
16581670
"title": "MegaETH Testnet",
@@ -2595,5 +2607,24 @@
25952607
}
25962608
}
25972609
}
2610+
},
2611+
"TEMPO": {
2612+
"title": "Tempo",
2613+
"icon": "/assets/chains/tempo.svg",
2614+
"chainType": "evm",
2615+
"chains": {
2616+
"TEMPO_TESTNET": {
2617+
"chainId": 42429,
2618+
"title": "Tempo",
2619+
"explorer": {
2620+
"baseUrl": "https://explore.tempo.xyz"
2621+
},
2622+
"nativeCurrency": {
2623+
"name": "USD",
2624+
"symbol": "USD",
2625+
"decimals": 18
2626+
}
2627+
}
2628+
}
25982629
}
25992630
}

src/config/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export type SupportedTechnology =
8080
| "MORPH"
8181
| "JOVAY"
8282
| "STABLE"
83+
| "TEMPO"
8384

8485
export type ChainType = "evm" | "solana" | "aptos"
8586

@@ -192,6 +193,7 @@ export type SupportedChain =
192193
| "MIND_NETWORK_TESTNET"
193194
| "MIND_NETWORK_MAINNET"
194195
| "MEGAETH_TESTNET"
196+
| "MEGAETH_MAINNET"
195197
| "TAIKO_MAINNET"
196198
| "TAIKO_HEKLA"
197199
| "PLUME_MAINNET"
@@ -250,6 +252,7 @@ export type SupportedChain =
250252
| "JOVAY_MAINNET"
251253
| "JOVAY_TESTNET"
252254
| "STABLE_MAINNET"
255+
| "TEMPO_TESTNET"
253256

254257
export type ExplorerInfo = {
255258
baseUrl: string

src/config/web3Providers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export const chainToProvider: Record<SupportedChain, () => Provider> = {
109109
MIND_NETWORK_TESTNET: () => new JsonRpcProvider("https://rpc-testnet.mindnetwork.xyz"),
110110
MIND_NETWORK_MAINNET: () => new JsonRpcProvider("https://rpc-mainnet.mindnetwork.xyz"),
111111
MEGAETH_TESTNET: () => new JsonRpcProvider("https://carrot.megaeth.com/rpc"),
112+
MEGAETH_MAINNET: () => new JsonRpcProvider("https://carrot.megaeth.com/rpc"),
112113
"0G_GALILEO_TESTNET": () => new JsonRpcProvider("https://evmrpc-testnet.0g.ai/"),
113114
"0G_MAINNET": () => new JsonRpcProvider("https://evmrpc.0g.ai/"),
114115
TAIKO_MAINNET: () => new JsonRpcProvider("https://rpc.mainnet.taiko.xyz"),

src/content/resources/link-token-contracts.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,18 @@ Testnet S is used to pay for transactions on Sonic Blaze testnet.
17941794
| Symbol | LINK |
17951795
| Decimals | 18 |
17961796

1797+
## <img src="/assets/chains/treasure.svg" style="height: 24px; width: auto; margin-right: 8px;" />Tempo
1798+
1799+
### Tempo Testnet
1800+
1801+
| Parameter | Value |
1802+
| :-------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1803+
| Chain ID | `42429` |
1804+
| Address | <Address contractUrl="https://explore.tempo.xyz/address/0x20C0000000000000000000000000000000000003" urlId="42429_0x20C0000000000000000000000000000000000003" urlClass="erc-token-address"/> |
1805+
| Name | Chainlink Token on Tempo Testnet |
1806+
| Symbol | LINK |
1807+
| Decimals | 18 |
1808+
17971809
## <img src="/assets/chains/treasure.svg" style="height: 24px; width: auto; margin-right: 8px;" />Treasure
17981810

17991811
### Treasure Mainnet

src/features/utils/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ export const directoryToSupportedChain = (chainInRdd: string): SupportedChain =>
402402
return "0G_MAINNET"
403403
case "megaeth-testnet":
404404
return "MEGAETH_TESTNET"
405+
case "megaeth-mainnet":
406+
return "MEGAETH_MAINNET"
405407
case "mind-testnet":
406408
return "MIND_NETWORK_TESTNET"
407409
case "mind-mainnet":
@@ -524,6 +526,8 @@ export const directoryToSupportedChain = (chainInRdd: string): SupportedChain =>
524526
return "JOVAY_TESTNET"
525527
case "stable-mainnet":
526528
return "STABLE_MAINNET"
529+
case "tempo-testnet":
530+
return "TEMPO_TESTNET"
527531
default:
528532
throw Error(`Chain not found ${chainInRdd}`)
529533
}
@@ -727,6 +731,8 @@ export const supportedChainToChainInRdd = (supportedChain: SupportedChain): stri
727731
return "0g-mainnet"
728732
case "MEGAETH_TESTNET":
729733
return "megaeth-testnet"
734+
case "MEGAETH_MAINNET":
735+
return "megaeth-mainnet"
730736
case "MIND_NETWORK_TESTNET":
731737
return "mind-testnet"
732738
case "MIND_NETWORK_MAINNET":
@@ -847,6 +853,8 @@ export const supportedChainToChainInRdd = (supportedChain: SupportedChain): stri
847853
return "jovay-testnet"
848854
case "STABLE_MAINNET":
849855
return "stable-mainnet"
856+
case "TEMPO_TESTNET":
857+
return "tempo-testnet"
850858
default:
851859
throw Error(`Chain not found ${supportedChain}`)
852860
}

src/scripts/reference/chains.json

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,18 @@
858858
"slip44": 1005,
859859
"icon": "bittensor"
860860
},
861+
{
862+
"name": "Stable Mainnet",
863+
"chain": "ETH",
864+
"rpc": ["https://rpc.stable.xyz"],
865+
"faucets": [],
866+
"nativeCurrency": { "name": "gasUSDT", "symbol": "gUSDT", "decimals": 18 },
867+
"infoURL": "https://docs.stable.xyz/",
868+
"shortName": "Stable",
869+
"chainId": 988,
870+
"networkId": 988,
871+
"explorers": [{ "name": "Stable Mainnet Explorer", "url": "https://stablescan.xyz/", "standard": "EIP3091" }]
872+
},
861873
{
862874
"name": "HyperEVM Testnet",
863875
"chain": "HYPE",
@@ -1428,18 +1440,6 @@
14281440
],
14291441
"parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://bridge.morphl2.io/" }] }
14301442
},
1431-
{
1432-
"name": "Stable Mainnet",
1433-
"chain": "ETH",
1434-
"rpc": ["https://rpc.stable.xyz"],
1435-
"faucets": [],
1436-
"nativeCurrency": { "name": "gasUSDT", "symbol": "gUSDT", "decimals": 18 },
1437-
"infoURL": "https://docs.stable.xyz/",
1438-
"shortName": "Stable",
1439-
"chainId": 988,
1440-
"networkId": 988,
1441-
"explorers": [{ "name": "Stable Mainnet Explorer", "url": "https://stablescan.xyz/", "standard": "EIP3091" }]
1442-
},
14431443
{
14441444
"name": "Botanix Testnet",
14451445
"chain": "BOTANIX",
@@ -1521,6 +1521,30 @@
15211521
{ "name": "liskscout", "url": "https://sepolia-blockscout.lisk.com", "icon": "blockscout", "standard": "EIP3091" }
15221522
]
15231523
},
1524+
{
1525+
"name": "MegaETH Mainnet",
1526+
"chain": "ETH",
1527+
"nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 },
1528+
"rpc": [],
1529+
"faucets": [],
1530+
"explorers": ["https://megaexplorer.xyz"],
1531+
"infoURL": "https://megaeth.com",
1532+
"shortName": "megaeth",
1533+
"chainId": 4326,
1534+
"networkId": 4326
1535+
},
1536+
{
1537+
"name": "Tempo Testnet",
1538+
"chain": "ETH",
1539+
"nativeCurrency": { "name": "USD", "symbol": "USD", "decimals": 18 },
1540+
"rpc": ["https://rpc.testnet.tempo.xyz"],
1541+
"faucets": [],
1542+
"explorers": ["https://explore.tempo.xyz"],
1543+
"infoURL": "https://tempo.xyz/",
1544+
"shortName": "megaeth",
1545+
"chainId": 42429,
1546+
"networkId": 42429
1547+
},
15241548
{
15251549
"name": "World Chain Sepolia Testnet",
15261550
"chain": "ETH",
@@ -1626,7 +1650,7 @@
16261650
"name": "MegaETH Testnet",
16271651
"chain": "ETH",
16281652
"nativeCurrency": { "name": "MegaETH Testnet Ether", "symbol": "ETH", "decimals": 18 },
1629-
"rpc": ["https://carrot.megaeth.com/rpc", "wss://carrot.megaeth.com/ws"],
1653+
"rpc": ["https://timothy.megaeth.com/rpc", "wss://carrot.megaeth.com/ws"],
16301654
"faucets": [],
16311655
"infoURL": "https://www.megaeth.com",
16321656
"shortName": "megatest",

src/scripts/reference/linkNameSymbol.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,5 +643,13 @@
643643
"988": {
644644
"name": "ChainLink Token",
645645
"symbol": "LINK"
646+
},
647+
"42429": {
648+
"name": "ChainLink Token",
649+
"symbol": "LINK"
650+
},
651+
"4326": {
652+
"name": "ChainLink Token",
653+
"symbol": "LINK"
646654
}
647655
}

0 commit comments

Comments
 (0)