Skip to content

Commit

Permalink
clean up config (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: Dora Noda <dev@stargately.com>
  • Loading branch information
doranoda and Dora Noda authored Aug 30, 2023
1 parent c045994 commit ab8c1d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 30 deletions.
33 changes: 6 additions & 27 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const routePrefix = "";
module.exports = {
project: "blockroma",
chain: {
chainId: 7778,
chainName: "BoomMo Chain",
symbol: "BMO",
rpcUrls: ["https://api-testnet.boommo.com"],
chainId: 10001,
chainName: "ETHW-mainnet",
symbol: "ETHW",
rpcUrls: ["https://api.blockeden.xyz/ethw/QyLuprp5WC5y2XsVB65o"],
decimals: 18,
networkPath: "",
networkPath: routePrefix,
},
server: {
routePrefix,
Expand All @@ -33,10 +33,7 @@ module.exports = {
},
indexer: {
catchup: {
enabled: true,
blocksBatchSize: 200,

blockNumberRanges: [[2324586, 2324586]],
enabled: false,
},
realtime: {
enabled: true,
Expand All @@ -55,22 +52,4 @@ module.exports = {
analytics: {
gaMeasurementId: "G-VKPSYZ2K22",
},
// csp: {
// enabled:false,
// "default-src": ["none"],
// "manifest-src": ["self"],
// "style-src": ["self", "unsafe-inline", "https://fonts.googleapis.com/css"],
// "frame-src": [],
// "connect-src": [
// "self",
// "https://www.google-analytics.com/",
// ...(process.env.API_GATEWAY_URL ? [process.env.API_GATEWAY_URL] : []),
// ],
// "child-src": ["self"],
// "font-src": ["self", "data:", "https://fonts.gstatic.com/"],
// "img-src": ["*", "data:"],
// "media-src": ["self"],
// "object-src": ["self"],
// "script-src": ["self", "https://www.googletagmanager.com/"],
// },
};
2 changes: 1 addition & 1 deletion config/ethw-mainnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
chainId: 10001,
chainName: "ETHW-mainnet",
symbol: "ETHW",
rpcUrls: ["https://mainnet.ethereumpow.org"],
rpcUrls: ["https://api.blockeden.xyz/ethw/QyLuprp5WC5y2XsVB65o"],
decimals: 18,
networkPath: routePrefix,
},
Expand Down
7 changes: 5 additions & 2 deletions src/shared/home/components/multi-chain-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const chainSwitchOpts = {
["/ethw/mainnet/", "ETHW-mainnet"],
],
testnets: [
["/bmo/testnet/", "BoomMo Chain"],
],
};

Expand Down Expand Up @@ -67,7 +66,11 @@ export function MultiChainDropdown({ chainName }: Props) {
</a>
))}

<a className="dropdown-item header division">Testnets</a>
{
chainSwitchOpts.testnets.length && (
<a className="dropdown-item header division">Testnets</a>
)
}
{chainSwitchOpts.testnets.map((it) => (
<a className="dropdown-item" key={it[0]} href={it[0]}>
{it[1]}
Expand Down

0 comments on commit ab8c1d7

Please sign in to comment.