@polkagate/apps-config
v1.2.2
Published
This package contains the configuration and network metadata used across PolkaGate products. It can also be customized (via PR) to support additional chains and networks.
Downloads
590
Readme
@polkagate/apps-config
This package contains the configuration and network metadata used across PolkaGate products. It can also be customized (via PR) to support additional chains and networks.
Adding Support for a New Chain
To add a new chain to PolkaGate:
Add the chain’s
genesishash, Edit./networks/genesis.tsAdd network
metadata, update./networks/knownSubstrate.tsAdd your chain’s
endpointsto the relevant file under./endpoints/{production, productionRelay, testing, testingRelay*depending on your deployment.Add chain
logo and color- Place the logo in ui/logos/chains or ui/logos/nodes (the latter is generally used).
- Run yarn build:images to generate inline image assets.
- In your endpoint config, set:
- ui.color — the chain’s primary color
- ui.logo — the imported logo reference
Naming Recommendation
It’s recommended to use distinct chain names for each relay network. For example:
- Acala — on Polkadot
- Karura — on Kusama
- Mandala (or Acala Testnet) — as the test network