@@ -20,6 +20,21 @@ class Urls {
2020 ethereumFunc: () => ethereumMainnetTokenListUrl,
2121 );
2222
23+ static String getTokenListRepoUrl (int chainId) =>
24+ MXCFunctionHelpers .chainsSeparatedFunctions <String >(
25+ chainId: chainId,
26+ moonChainFunc: () => mainnetTokenListRepoUrl,
27+ genevaFunc: () => testnetTokenListRepoUrl,
28+ ethereumFunc: () => ethereumMainnetTokenListRepoUrl,
29+ );
30+
31+ static const String mainnetTokenListRepoUrl =
32+ 'https://github.com/MXCzkEVM/wannseeswap-tokenlist/blob/main/tokenlist-mainnet.json' ;
33+ static const String testnetTokenListRepoUrl =
34+ 'https://github.com/MXCzkEVM/wannseeswap-tokenlist/blob/main/tokenlist.json' ;
35+ static const String ethereumMainnetTokenListRepoUrl =
36+ 'https://github.com/MXCzkEVM/wannseeswap-tokenlist/blob/main/tokenlist-ethereum.json' ;
37+
2338 static const String mainnetTokenListUrl =
2439 'https://raw.githubusercontent.com/MXCzkEVM/wannseeswap-tokenlist/main/tokenlist-mainnet.json' ;
2540 static const String testnetTokenListUrl =
@@ -51,7 +66,8 @@ class Urls {
5166 testnetFunc: () => testnetApiBaseUrl,
5267 );
5368
54- static const String mainnetApiBaseUrl = 'https://explorer-v1.moonchain.com/api/v2/' ;
69+ static const String mainnetApiBaseUrl =
70+ 'https://explorer-v1.moonchain.com/api/v2/' ;
5571 static const String testnetApiBaseUrl =
5672 'https://geneva-explorer-v1.moonchain.com/api/v2/' ;
5773
0 commit comments