Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up config #45

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading