add riochain network config (#5061)
* add riochain network config * lint fix
This commit is contained in:
parent
1679a891b1
commit
2b4d6b6c51
@ -55,6 +55,7 @@ import plasmParachain from './plasm-parachain';
|
||||
import polkabtc from './polkabtc';
|
||||
import polkadex from './polkadex';
|
||||
import realis from './realis';
|
||||
import riochain from './riochain';
|
||||
import robonomics from './robonomics';
|
||||
import sgc from './sgc';
|
||||
import snowbridge from './snowbridge';
|
||||
@ -141,6 +142,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
plasm,
|
||||
'plasm-parachain': plasmParachain,
|
||||
realis,
|
||||
'riochain-runtime': riochain,
|
||||
robonomics,
|
||||
'sgc-node': sgc,
|
||||
snowbridge,
|
||||
|
||||
103
packages/apps-config/src/api/spec/riochain.ts
Normal file
103
packages/apps-config/src/api/spec/riochain.ts
Normal file
@ -0,0 +1,103 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
const definitions: OverrideBundleDefinition = {
|
||||
types: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
LookupSource: 'IndicesLookupSource',
|
||||
Address: 'LookupSource',
|
||||
Amount: 'i128',
|
||||
AmountOf: 'Amount',
|
||||
CurrencyId: 'u32',
|
||||
CurrencyIdOf: 'CurrencyId',
|
||||
Price: 'FixedU128',
|
||||
OracleKey: 'CurrencyId',
|
||||
Chain:
|
||||
{
|
||||
_enum:
|
||||
['Rio',
|
||||
'Bitcoin',
|
||||
'Litecoin',
|
||||
'Ethereum',
|
||||
'EOS',
|
||||
'Polkadot',
|
||||
'Kusama',
|
||||
'ChainX']
|
||||
},
|
||||
AssetInfo:
|
||||
{
|
||||
chain: 'Chain',
|
||||
symbol: 'Text',
|
||||
name: 'Text',
|
||||
decimals: 'u8',
|
||||
desc: 'Text'
|
||||
},
|
||||
FeeExchangeV1: { max_payment: 'Compact<Balance>' },
|
||||
FeeExchange: { _enum: { V1: 'Compact<FeeExchangeV1>' } },
|
||||
Restriction:
|
||||
{
|
||||
_enum:
|
||||
['Transferable',
|
||||
'Depositable',
|
||||
'Withdrawable',
|
||||
'Slashable',
|
||||
'Reservable',
|
||||
'Unreservable']
|
||||
},
|
||||
TxHash: 'H256',
|
||||
Deposit: { account_id: 'AccountId', amount: 'Balance' },
|
||||
Auths: { mask: 'u8' },
|
||||
Auth: { _enum: ['Register', 'Deposit', 'Withdraw', 'Sudo'] },
|
||||
WithdrawState:
|
||||
{
|
||||
_enum:
|
||||
{
|
||||
Pending: null,
|
||||
Cancelled: null,
|
||||
Rejected: null,
|
||||
Approved: null,
|
||||
Success: 'TxHash',
|
||||
ReBroadcasted: 'TxHash'
|
||||
}
|
||||
},
|
||||
ChainAddress: 'Bytes',
|
||||
Memo: 'Text',
|
||||
WithdrawInfo:
|
||||
{
|
||||
currency_id: 'CurrencyId',
|
||||
who: 'AccountId',
|
||||
value: 'Balance',
|
||||
addr: 'ChainAddress',
|
||||
memo: 'Text'
|
||||
},
|
||||
WithdrawItem:
|
||||
{
|
||||
currency_id: 'CurrencyId',
|
||||
applicant: 'AccountId',
|
||||
value: 'Balance',
|
||||
addr: 'ChainAddress',
|
||||
memo: 'Text',
|
||||
state: 'WithdrawState'
|
||||
},
|
||||
DepositAddrInfo: { _enum: { Bip32: 'Bip32', Create2: 'Create2' } },
|
||||
Bip32: { x_pub: 'Text', path: 'Text' },
|
||||
Create2:
|
||||
{
|
||||
creator_address: 'Vec<u8>',
|
||||
implementation_address: 'Vec<u8>',
|
||||
vault_address: 'Vec<u8>'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -212,6 +212,13 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
'Realis.Network': 'wss://rpc.realis.network/'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'riochain',
|
||||
text: t('rpc.riochain', 'Riochain', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
RiochainStaging: 'wss://node.v1.staging.riochain.io'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'sgc',
|
||||
text: t('rpc.sgc', 'Sgc', { ns: 'apps-config' }),
|
||||
|
||||
@ -48,6 +48,7 @@ const chainRococoLaminar = '#004FFF';
|
||||
const chainRoccoTick = '#22bb22';
|
||||
const chainRoccoTrack = '#bb2222';
|
||||
const chainRoccoTrick = '#2222bb';
|
||||
const chainRiochain = '#4d87f6';
|
||||
const chainSgc = 'linear-gradient(45deg, #0099F7 0%, #F11712 100%)';
|
||||
const chainSnakenet = '#f653a2';
|
||||
const chainSunrock = '#ffd13b';
|
||||
@ -86,6 +87,7 @@ const nodeNodle = '#1ab394';
|
||||
const nodeParami = '#ee06e2';
|
||||
const nodePolkadex = '#7C30DD';
|
||||
const nodeRealis = 'linear-gradient(45deg, #6CFBE9 0%, #CFB241 100%)';
|
||||
const nodeRiochain = '#1A3BB3';
|
||||
const nodeSgc = 'linear-gradient(45deg, #0099F7 0%, #F11712 100%)';
|
||||
const nodeSora = '#2D2926';
|
||||
const nodeStafi = '#00F3AB';
|
||||
@ -160,6 +162,7 @@ export const chainColors: Record<string, any> = [
|
||||
['Halongbay Testnet', chainPolkaFoundry],
|
||||
['ReAlis Network', nodeRealis],
|
||||
['Rococo', chainRocco],
|
||||
['Riochain Staging', chainRiochain],
|
||||
['Sgc ', chainSgc],
|
||||
['SubDAO PC1', chainSubDAO],
|
||||
['Subsocial PC1', chainSubsocial],
|
||||
@ -206,6 +209,7 @@ export const nodeColors: Record<string, any> = [
|
||||
['Patract Node', nodeJupiter],
|
||||
['Polkadex Node', nodePolkadex],
|
||||
['ReAlis Network', nodeRealis],
|
||||
['Riochain Staging', nodeRiochain],
|
||||
['Sgc', nodeSgc],
|
||||
['SORA-staging Node', nodeSora],
|
||||
['Stafi node', nodeStafi],
|
||||
|
||||
@ -69,6 +69,7 @@ import nodePolkadot from './nodes/polkadot-circle.svg';
|
||||
import nodePolkadotJs from './nodes/polkadot-js.svg';
|
||||
import nodePolkaFoundry from './nodes/polkafoundry.svg';
|
||||
import nodeRealis from './nodes/realis.png';
|
||||
import nodeRiochain from './nodes/riochain.svg';
|
||||
import nodeRobonomics from './nodes/robonomics.svg';
|
||||
import nodeSgc from './nodes/sgc.svg';
|
||||
import nodeSora from './nodes/sora-substrate.svg';
|
||||
@ -132,6 +133,7 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['Phala PC1', nodePhala],
|
||||
['ReAlis Network', nodeRealis],
|
||||
['Rococo', chainRococo],
|
||||
['Riochain Staging', nodeRiochain],
|
||||
['Sgc', nodeSgc],
|
||||
['SubDAO PC1', nodeSubDAO],
|
||||
['Subsocial', nodeSubsocial],
|
||||
@ -218,6 +220,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['PolkaFoundry Node', nodePolkaFoundry],
|
||||
['PolkaFoundry Parachain Collator', nodePolkaFoundry],
|
||||
['ReAlis Network', nodeRealis],
|
||||
['Riochain Staging', nodeRiochain],
|
||||
['Sgc', nodeSgc],
|
||||
['SORA-staging Node', nodeSora],
|
||||
['Stafi Node', nodeStafi],
|
||||
@ -302,6 +305,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
polkadot: nodePolkadot,
|
||||
polkafoundry: nodePolkaFoundry,
|
||||
realis: nodeRealis,
|
||||
riochain: nodeRiochain,
|
||||
rococo: chainRococo,
|
||||
rococoAcala: nodeAcala,
|
||||
rococoApron: nodeApron,
|
||||
|
||||
10
packages/apps-config/src/ui/logos/nodes/riochain.svg
Normal file
10
packages/apps-config/src/ui/logos/nodes/riochain.svg
Normal file
@ -0,0 +1,10 @@
|
||||
<svg width="1787" height="1787" viewBox="0 0 1787 1787" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="549.491" y="343.977" width="486.457" height="486.457" transform="rotate(-45 549.491 343.977)" fill="#002060"/>
|
||||
<rect x="549.491" y="1443.02" width="486.457" height="486.457" transform="rotate(-45 549.491 1443.02)" fill="#002060"/>
|
||||
<rect x="1099.04" y="896.209" width="486.457" height="486.457" transform="rotate(-45 1099.04 896.209)" fill="#002060"/>
|
||||
<path d="M994.84 895.871L1237.08 653.634L1479.31 895.871L1237.08 1138.11L994.84 895.871Z" fill="#4E87F7"/>
|
||||
<rect y="896.209" width="486.457" height="486.457" transform="rotate(-45 0 896.209)" fill="#002060"/>
|
||||
<path d="M306.947 895.871L549.185 653.634L791.422 895.871L549.185 1138.11L306.947 895.871Z" fill="#4E87F7"/>
|
||||
<path d="M650.894 551.926L893.131 309.688L1135.37 551.926L893.131 794.163L650.894 551.926Z" fill="#4E87F7"/>
|
||||
<path d="M650.894 1239.82L893.131 997.581L1135.37 1239.82L893.131 1482.06L650.894 1239.82Z" fill="#4E87F7"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1007 B |
@ -106,6 +106,7 @@
|
||||
"rpc.rococo.trustbase": "TrustBase PC1",
|
||||
"rpc.rococo.unitv": "Unit Network",
|
||||
"rpc.rococo.zenlink": "Zenlink PC1",
|
||||
"rpc.riochain": "Riochain",
|
||||
"rpc.sgc": "Sgc",
|
||||
"rpc.sora-substrate": "SORA-staging",
|
||||
"rpc.stafi": "Stafi",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user