Supported Networks
The portal is configured to work with Pontus-X networks by default:Pontus-X DevNet
Unique chain identifier for Pontus-X DevNet.
Network name identifier.
Symbol for the Ocean Protocol token on this network.
RPC endpoint for blockchain interaction.Value:
https://rpc.dev.pontus-x.euOcean Provider service endpoint.Value:
https://provider.agrospai.udl.catAquarius metadata cache endpoint.Value:
https://aquarius.pontus-x.euThe Graph subgraph endpoint.Value:
https://subgraph.dev.pontus-x.euBlock explorer URL.Value:
https://explorer.pontus-x.eu/pontusx/devStarting block number for event indexing.
Number of blocks to wait before transaction timeout.
Number of confirmations required for a transaction.
Polling timeout in milliseconds for transaction status.
Multiplier applied to estimated gas fees (10% buffer).
Pontus-X TestNet
Unique chain identifier for Pontus-X TestNet.
Network name identifier.
RPC endpoint for blockchain interaction.Value:
https://rpc.test.pontus-x.euOcean Provider service endpoint.Value:
https://provider.agrospai.udl.catThe Graph subgraph endpoint.Value:
https://subgraph.test.pontus-x.euBlock explorer URL.Value:
https://explorer.pontus-x.eu/pontusx/testStarting block number for event indexing.
Chain Configuration File
Networks are defined inchains.config.js. The configuration follows the Ocean.js ConfigHelperConfig format.
Chain Object Structure
chains.config.js
Helper Functions
The configuration file exports several utility functions:Returns an array of chain IDs that are marked as default.
Returns an array of all supported chain IDs.
Returns an array of chain IDs marked as custom chains.
Adding a Custom Network
To add a new blockchain network:- Add chain configuration to
chains.config.js:
chains.config.js
- Deploy Ocean Protocol contracts to the new network (if not already deployed).
-
Set
isDefault: trueif you want the network to be selected by default. - Restart the application for changes to take effect.
Network Status Monitoring
The portal includes network status monitoring configuration inapp.config.js:
app.config.js
Interval in milliseconds to refresh network status (30 seconds).
Acceptable difference between min/max block numbers before showing an alert.
Map of chain IDs to their respective status page endpoints.
Provider Configuration
The Ocean Provider address is consistent across both networks:Address of the Ocean Provider service responsible for data asset provisioning.
HTTP endpoint for the Ocean Provider service.
Faucet Configuration
For testnet environments, a faucet service is available:app.config.js
Base URI for the token faucet service on Pontus-X networks.
Default Token Symbol
The portal uses a default token symbol for display purposes:Default token symbol used as fallback value in various components.