Add Bit.Country testnet Tewai to testnet list (#4461)

* Add Bit.Country testnet Tewai to testnet list

* update for eslint

* Update packages/apps-config/src/api/spec/bitcountry.ts

Commit suggestion

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
This commit is contained in:
Justin Pham 2021-01-21 22:05:20 +13:00 committed by GitHub
parent d54ba72627
commit 52aa9f377f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,48 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
export default {
Address: 'AccountId',
LookupSource: 'AccountId',
Balance: 'u128',
AssetId: 'u64',
BlockNumber: 'u32',
AssetInfo: {
owner: 'AccountId',
data: 'AssetData'
},
AssetData: {
name: 'Vec<u8>',
description: 'Vec<u8>',
properties: 'Vec<u8>',
supporters: 'Vec<AccountId>'
},
AuctionId: 'u64',
AuctionItem: {
asset_id: 'AssetId',
recipient: 'AccountId',
initial_amount: 'Balance',
amount: 'Balance',
start_time: 'u32',
ed_time: 'u32'
},
AuctionInfo: {
bid: 'Option<(AccountId,Balance)>',
start: 'BlockNumber',
end: 'Option<BlockNumber>'
},
RentId: 'u64 ',
RentalInfo: {
owner: 'AccountId',
start: 'BlockNumber',
end: 'Option<BlockNumber>',
price_per_block: 'Balance'
},
CountryId: 'u64',
CollectionId: 'u64',
CurrencyId: 'u32',
TokenId: 'u64',
CurrencyIdOf: 'CurrencyId',
BalanceIdOf: 'Balance'
};

View File

@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import bifrost from './bifrost';
import bitcountry from './bitcountry';
import canvas from './canvas';
import centrifugeChain from './centrifuge-chain';
import crab from './crab';
@ -36,6 +37,7 @@ export default {
Darwinia: darwinia,
Equilibrium: equilibrium,
bifrost: bifrost,
'bitcountry-node': bitcountry,
canvas,
'centrifuge-chain': centrifugeChain,
crust,

View File

@ -41,6 +41,13 @@ export function createTesting (t: TFunction): LinkOption[] {
'Commonwealth Labs': 'wss://beresheet1.edgewa.re'
}
},
{
info: 'bitcountry',
text: t('rpc.bitcountry', 'Bit.Country Tewai', { ns: 'apps-config' }),
providers: {
'Bit.Country': 'wss://whenua.bit.country'
}
},
{
info: 'bifrost',
text: t('rpc.bifrost', 'Bifrost Asgard', { ns: 'apps-config' }),

View File

@ -9,6 +9,7 @@ const emptyColor = '#99999';
// based on chain name
// alphabetical
const chainBitCountry = '#191a2e';
const chainCrab = '#7C30DD';
const chainCrust = '#ff8812';
const chainDarwinia = 'linear-gradient(-45deg, #FE3876 0%, #7C30DD 71%, #3A30DD 100%)';
@ -36,6 +37,7 @@ const chainUniarts = '#b39ef7';
// based on node name
// alphabetical
const nodeBitCountry = '#191a2e';
const nodeBifrost = '#002cc3';
const nodeCanvas = '#c77cff';
const nodeCentrifuge = '#fcc367';
@ -60,6 +62,7 @@ export { emptyColor };
export const chainColors: Record<string, any> = [
['acala mandala pc1', chainRoccoAcala],
['acala mandala pc2', chainRoccoAcala],
['Bit.Country Tewai Chain', chainBitCountry],
['Bifrost PC1', chainRoccoBifrost],
['Darwinia Crab', chainCrab],
['crust maxwell cc2', chainCrust],
@ -97,6 +100,7 @@ export const chainColors: Record<string, any> = [
// Alphabetical overrides based on the actual software node type
// NOTE: This is as retrieved via the system.name RPC
export const nodeColors: Record<string, any> = [
['Bit.Country Node', nodeBitCountry],
['Bifrost Node', nodeBifrost],
['Canvas Node', nodeCanvas],
['centrifuge chain', nodeCentrifuge],

View File

@ -20,6 +20,7 @@ import externalPolkastats from './external/polkastats.png';
import externalSubscan from './external/subscan.svg';
import nodeAcala from './nodes/acala-circle.svg';
import nodeBifrost from './nodes/bifrost.svg';
import nodeBitCountry from './nodes/bitcountry.svg';
import nodeCanvas from './nodes/canvas-2.png';
import nodeCentrifuge from './nodes/centrifuge.png';
import nodeCrab from './nodes/crab.svg';
@ -87,6 +88,8 @@ export const nodeLogos: Record<string, unknown> = [
['airalab-robonomics', nodeRobonomics],
['Bifrost Node', nodeBifrost],
['Bifrost', nodeBifrost],
['BitCountry Node', nodeBitCountry],
['Bit.Country', nodeBitCountry],
['Canvas Node', nodeCanvas],
['centrifuge chain', nodeCentrifuge],
['Centrifuge Chain Node', nodeCentrifuge],
@ -137,6 +140,7 @@ export const namedLogos: Record<string, unknown> = {
acala: nodeAcala,
alexander: nodePolkadot,
bifrost: nodeBifrost,
bitcountry: nodeBitCountry,
canvas: nodeCanvas,
centrifuge: nodeCentrifuge,
crab: nodeCrab,

View File

@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><defs><style>.cls-1{fill:#2f3033;}.cls-2{fill:#a4fdff;}</style></defs><polygon class="cls-1" points="214.52 382.3 70.1 382.3 70.1 335.05 167.27 335.05 167.27 249.16 70.1 249.16 70.1 117.62 117.35 117.62 117.35 201.92 214.52 201.92 214.52 382.3"/><polygon class="cls-1" points="429.9 382.3 285.48 382.3 285.48 201.92 429.9 201.92 429.9 249.16 332.73 249.16 332.73 335.05 429.9 335.05 429.9 382.3"/><rect class="cls-2" x="229.73" y="341.85" width="40.53" height="40.53"/></svg>

After

Width:  |  Height:  |  Size: 570 B