Skip to content

Commit 17ef515

Browse files
committed
add monad testnet
1 parent f33a294 commit 17ef515

31 files changed

+3019
-959
lines changed

src/buildList.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
const { version } = require("../package.json");
22
const base = require("./tokens/base.json");
3-
const storyOdyssey = require("./tokens/story_odyssey.json");
43
const story = require("./tokens/story.json");
54
const morph = require("./tokens/morph.json");
65
const riseSepolia = require("./tokens/rise_sepolia.json");
6+
const monadTestnet = require("./tokens/monad_testnet.json");
77

88
// pairs
9-
const storyOdysseyPairs = require("./pairs/story_odyssey.json");
109
const storyPairs = require("./pairs/story.json");
1110
const morphPairs = require("./pairs/morph.json");
1211
const riseSepoliaPairs = require("./pairs/rise_sepolia.json");
12+
const monadTestnetPairs = require("./pairs/monad_testnet.json");
1313

1414
// groups
15-
const storyOdysseyGroups = require("./groups/story_odyssey.json");
1615
const storyGroups = require("./groups/story.json");
1716
const riseSepoliaGroups = require("./groups/rise_sepolia.json");
17+
const monadTestnetGroups = require("./groups/monad_testnet.json");
1818

1919
// group pairs
20-
const storyOdysseyGroupPairs = require("./groupPairs/story_odyssey.json");
2120
const storyGroupPairs = require("./groupPairs/story.json");
2221
const riseSepoliaGroupPairs = require("./groupPairs/rise_sepolia.json");
22+
const monadTestnetGroupPairs = require("./groupPairs/monad_testnet.json");
2323

2424
// group tokens
25-
const storyOdysseyGroupTokens = require("./groupTokens/story_odyssey.json");
2625
const storyGroupTokens = require("./groupTokens/story.json");
2726
const riseSepoliaGrouptokens = require("./groupTokens/rise_sepolia.json");
27+
const monadTestnetGroupTokens = require("./groupTokens/monad_testnet.json");
2828

2929
const bridgeUtils = require("@uniswap/token-list-bridge-utils");
3030

@@ -40,38 +40,38 @@ module.exports = function buildList() {
4040
},
4141
// groups are used to organize tokens in the app UI for Tradingview, each token is identified by its tag property
4242
groups:{
43-
"Story Odyssey Testnet": storyOdysseyGroups,
4443
"Story": storyGroups,
4544
"Rise Sepolia": riseSepoliaGroups,
45+
"Monad Testnet": monadTestnetGroups,
4646
},
4747
groupTokens: {
48-
"Story Odyssey Testnet": storyOdysseyGroupTokens,
4948
"Story": storyGroupTokens,
5049
"Rise Sepolia": riseSepoliaGrouptokens,
50+
"Monad Testnet": monadTestnetGroupTokens,
5151
},
5252
groupPairs: {
53-
"Story Odyssey Testnet": storyOdysseyGroupPairs,
5453
"Story": storyGroupPairs,
5554
"Rise Sepolia": riseSepoliaGroupPairs,
55+
"Monad Testnet": monadTestnetGroupPairs,
5656
},
5757
scannerLink: {
58-
"Story Odyssey Testnet":
59-
"https://odyssey-testnet-explorer.storyscan.xyz/",
60-
Story: "https://oklink.com/story/"
58+
Story: "https://oklink.com/story/",
59+
"Rise Sepolia": "https://testnet-explorer.riselabs.xyz/",
60+
"Monad Testnet": "https://testnet.monadexplorer.com/",
6161
},
6262
matchingEngine: {
63-
"Story Odyssey Testnet": {
64-
address: "0x39800D00B0573317E8EABA8BFce1c71a59fD26ee",
65-
startBlock: 2299914,
66-
},
6763
"Story": {
6864
address: "0x3bd945d969e2a4b76edf8cf09fe6357bb6682f4f",
6965
startBlock: 915937,
7066
},
7167
"Rise Sepolia": {
7268
address: "0x8E9e786f757B881C7B456682Ae7D2a06820220b1",
7369
startBlock: 4613007,
74-
}
70+
},
71+
"Monad Testnet": {
72+
address: "0x6B5A13Ca93871187330aE6d9E34cdAD610aA54cd",
73+
startBlock: 4671869,
74+
},
7575
},
7676
wAIfuManager: {
7777
"Rise Sepolia": {
@@ -83,9 +83,9 @@ module.exports = function buildList() {
8383
logoURI: "https://avatars.githubusercontent.com/u/73440097?s=200&v=4",
8484
keywords: ["standard", "default"],
8585
tokens: [
86-
...storyOdyssey,
8786
...story,
8887
...riseSepolia,
88+
...monadTestnet
8989
]
9090
// sort them by symbol for easy readability
9191
.sort((t1, t2) => {
@@ -95,9 +95,9 @@ module.exports = function buildList() {
9595
return t1.chainId < t2.chainId ? -1 : 1;
9696
}),
9797
pairs: [
98-
...storyOdysseyPairs,
9998
...storyPairs,
10099
...riseSepoliaPairs,
100+
...monadTestnetPairs
101101
],
102102
};
103103
return bridgeUtils.chainify(l1List);

src/const/customChains.js

+30-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
const { defineChain } = require("viem");
22

3+
const MonadTestnet = defineChain({
4+
id: 10143,
5+
name: "Monad Testnet",
6+
nativeCurrency: { name: "Monad", symbol: "MON", decimals: 18 },
7+
rpcUrls: {
8+
public: { http: ["https://testnet-rpc.monad.xyz"] },
9+
default: {
10+
http: ["https://testnet-rpc.monad.xyz"],
11+
},
12+
},
13+
blockExplorers: {
14+
etherscan: {
15+
name: "Monad Testnet Explorer",
16+
url: "https://testnet-explorer.riselabs.xyz",
17+
},
18+
default: {
19+
name: "Monad Testnet Explorer",
20+
url: "https://testnet.monadexplorer.com/",
21+
},
22+
},
23+
testnet: true,
24+
contracts: {
25+
multicall3: {
26+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
27+
blockCreated: 251449,
28+
},
29+
},
30+
});
31+
332
const RiseSepolia = defineChain({
433
id: 11155931,
534
name: "Rise Sepolia",
@@ -148,4 +177,4 @@ const Morph = defineChain({
148177

149178

150179

151-
module.exports = { StoryOdyssey, StoryIliad, Morph, Story, RiseSepolia };
180+
module.exports = { StoryOdyssey, StoryIliad, Morph, Story, RiseSepolia, MonadTestnet };

0 commit comments

Comments
 (0)