Unverified Commit b92591e2 authored by philipstanislaus's avatar philipstanislaus Committed by GitHub
Browse files

feat: add Centrifuge Mainnet and Centrifuge Testnet Amber (#591)



* Add Centrifuge Mainnet and Centrifuge Testnet Amber

* Add logos to ios/assets/res
Co-authored-by: Hanwen Cheng's avatarHanwen Cheng <heawen.cheng@gmail.com>
parent 91eec2c6
Pipeline #87885 failed with stages
in 4 minutes and 3 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -59,6 +59,10 @@ export const EthereumNetworkKeys: {
export const SubstrateNetworkKeys: {
[key: string]: string;
} = Object.freeze({
CENTRIFUGE:
'0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5', // https://portal.chain.centrifuge.io/#/explorer/query/0
CENTRIFUGE_AMBER:
'0x092af6e7d25178ebab1677d15f66e37b30392b44ef442f728a53dd1bf48ec110', // https://portal.chain.centrifuge.io/#/explorer/query/0
EDGEWARE:
'0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b', // https://polkascan.io/pre/edgeware/block/0
KULUPU: '0x37e1f8125397a98630013a4dff89b54cb758ff8eed894419e65a6dcf27a6fb8a',
......@@ -88,6 +92,28 @@ const unknownNetworkBase: { [key: string]: UnknownNetworkParams } = {
const substrateNetworkBase: {
[key: string]: Partial<SubstrateNetworkParams>;
} = {
[SubstrateNetworkKeys.CENTRIFUGE]: {
color: '#fcc367',
decimals: 18,
genesisHash: SubstrateNetworkKeys.CENTRIFUGE,
logo: require('res/img/logos/centrifuge-chain.png'),
order: 6,
pathId: 'centrifuge',
prefix: 36,
title: 'Centrifuge Mainnet',
unit: 'RAD'
},
[SubstrateNetworkKeys.CENTRIFUGE_AMBER]: {
color: '#fcc367',
decimals: 18,
genesisHash: SubstrateNetworkKeys.CENTRIFUGE_AMBER,
logo: require('res/img/logos/centrifuge-chain.png'),
order: 7,
pathId: 'centrifuge_amber',
prefix: 42,
title: 'Centrifuge Testnet Amber',
unit: 'ARAD'
},
[SubstrateNetworkKeys.EDGEWARE]: {
color: '#0a95df',
decimals: 18,
......
......@@ -34,7 +34,9 @@ type NetworkTypesMap = {
const networkTypesMap: NetworkTypesMap = {
centrifuge: {
alias: 'centrifuge-chain',
chains: {}
chains: {
centrifuge_amber: 'centrifuge-chain-amber'
}
},
kusama: { chains: {} },
polkadot: {
......
......@@ -37,6 +37,8 @@ import {
UnlockedAccount
} from 'types/identityTypes';
import {
centrifugeAmberMetadata,
centrifugeMetadata,
defaultMetaData,
kusamaMetadata,
substrateDevMetadata,
......@@ -376,6 +378,10 @@ export const groupPaths = (paths: string[]): PathGroup[] => {
export const getMetadata = (networkKey: string): string => {
switch (networkKey) {
case SubstrateNetworkKeys.CENTRIFUGE:
return centrifugeMetadata;
case SubstrateNetworkKeys.CENTRIFUGE_AMBER:
return centrifugeAmberMetadata;
case SubstrateNetworkKeys.KUSAMA:
case SubstrateNetworkKeys.KUSAMA_CC2:
case SubstrateNetworkKeys.KUSAMA_DEV:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment