Skip to content

Commit

Permalink
add filecoin envs
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Oct 23, 2024
1 parent 6095da7 commit 85f5178
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 17 deletions.
2 changes: 1 addition & 1 deletion configs/envs/.env.arbitrum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Arbitrum One network explorer
# https://arbitrum.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=arbitrum"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=arbitrum"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.arbitrum_nova
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Arbitrum One network explorer
# https://arbitrum.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=arbitrum"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=arbitrum"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.base
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Base Mainnet network explorer
# https://base.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=base"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=base"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.celo_alfajores
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Celo Alfajores network explorer
# https://celo-alfajores.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=celo_alfajores"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=celo_alfajores"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.eth
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Ethereum network explorer
# https://eth.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=eth"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=eth"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.eth_sepolia
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Sepolia network explorer
# https://eth-sepolia.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=eth_sepolia"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=eth_sepolia"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
42 changes: 42 additions & 0 deletions configs/envs/.env.filecoin
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Set of ENVs for Filecoin Virtual Machine network explorer
# https://filecoin.blockscout.com
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=filecoin"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
NEXT_PUBLIC_APP_HOST=localhost
NEXT_PUBLIC_APP_PORT=3000
NEXT_PUBLIC_APP_ENV=development
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=ws

# Instance ENVs
NEXT_PUBLIC_API_BASE_PATH=/
NEXT_PUBLIC_API_HOST=filecoin.blockscout.com
NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml
NEXT_PUBLIC_CONTRACT_CODE_IDES=[{'title':'Remix IDE','url':'https://remix.ethereum.org/?address={hash}&blockscout={domain}','icon_url':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/ide-icons/remix.png'}]
NEXT_PUBLIC_FOOTER_LINKS=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/footer-links/fvm.json
NEXT_PUBLIC_GRAPHIQL_TRANSACTION=0x5abb6212c1802402b828ed20c2bd4d4a6153b8bee68a5259cba3c8d7a7c6b775
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs', 'coin_price', 'market_cap']
NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND=linear-gradient(237deg, rgb(26, 58, 150) 14.83%, rgb(111, 223, 164) 132.56%)
NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR=rgba(255, 255, 255, 1)
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED=true
NEXT_PUBLIC_LOGOUT_URL=https://blockscout-filecoin.us.auth0.com/v2/logout
NEXT_PUBLIC_MARKETPLACE_ENABLED=false
NEXT_PUBLIC_METADATA_SERVICE_API_HOST=https://metadata.services.blockscout.com
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=FIL
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=FIL
NEXT_PUBLIC_NETWORK_EXPLORERS=[{'title':'GeckoTerminal','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/geckoterminal.png','baseUrl':'https://www.geckoterminal.com/','paths':{'token':'/filecoin/pools'}}]
NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/filecoin-icon-dark.svg
NEXT_PUBLIC_NETWORK_ICON_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/filecoin-icon-light.svg
NEXT_PUBLIC_NETWORK_ID=314
NEXT_PUBLIC_NETWORK_LOGO=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/filecoin-logo-dark.svg
NEXT_PUBLIC_NETWORK_LOGO_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/filecoin-logo-light.svg
NEXT_PUBLIC_NETWORK_NAME=Filecoin Virtual Machine
NEXT_PUBLIC_NETWORK_RPC_URL=https://rpc.ankr.com/filecoin
NEXT_PUBLIC_NETWORK_SHORT_NAME=Filecoin Virtual Machine
NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED=true
NEXT_PUBLIC_OG_IMAGE_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/filecoin.png
NEXT_PUBLIC_STATS_API_HOST=https://stats-filecoin.k8s-prod-1.blockscout.com
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout
NEXT_PUBLIC_VISUALIZE_API_HOST=https://visualizer.services.blockscout.com
2 changes: 1 addition & 1 deletion configs/envs/.env.gnosis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Gnosis chain network explorer
# https://gnosis.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=gnosis"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=gnosis"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.main
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Sepolia network explorer
# https://eth-sepolia.k8s-dev.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=main"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=main"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.optimism
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for OP Mainnet network explorer
# https://optimism.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=optimism"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=optimism"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.optimism_celestia
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for OP Celestia Raspberry network explorer
# https://opcelestia-raspberry.gelatoscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=optimism_celestia"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=optimism_celestia"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.optimism_sepolia
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for OP Sepolia network explorer
# https://optimism-sepolia.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=optimism_sepolia"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=optimism_sepolia"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.polygon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Polygon Mainnet network explorer
# https://polygon.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=polygon"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=polygon"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.rootstock_testnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Rootstock Testnet network explorer
# https://rootstock-testnet.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=rootstock_testnet"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=rootstock_testnet"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.stability_testnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Stability Testnet network explorer
# https://stability-testnet.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=stability_testnet"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=stability_testnet"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.zkevm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for Polygon zkEVM network explorer
# https://zkevm.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=zkevm"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=zkevm"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
2 changes: 1 addition & 1 deletion configs/envs/.env.zksync
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set of ENVs for ZkSync Era network explorer
# https://zksync.blockscout.com
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=zksync"
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=zksync"

# Local ENVs
NEXT_PUBLIC_APP_PROTOCOL=http
Expand Down
3 changes: 2 additions & 1 deletion tools/preset-sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const PRESETS = {
eth: 'https://eth.blockscout.com',
eth_goerli: 'https://eth-goerli.blockscout.com',
eth_sepolia: 'https://eth-sepolia.blockscout.com',
filecoin: 'https://filecoin.blockscout.com',
gnosis: 'https://gnosis.blockscout.com',
optimism: 'https://optimism.blockscout.com',
optimism_celestia: 'https://opcelestia-raspberry.gelatoscout.com',
Expand Down Expand Up @@ -73,7 +74,7 @@ function updateFileContent(envsEntries: Array<[ string, string ]>, presetId: key
const content =
`# Set of ENVs for ${ chainName } network explorer\n` +
'# ' + explorerUrl + '\n' +
`# This is an auto-generated file. To update all values, run "yarn preset:sync --name=${ presetId }"\n` +
`# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=${ presetId }"\n` +
'\n' +
'# Local ENVs\n' +
localEnvsContent + '\n' +
Expand Down

0 comments on commit 85f5178

Please sign in to comment.