mybank.network (#5024)
This commit is contained in:
parent
23dad13c9e
commit
0ee376c45c
@ -40,6 +40,7 @@ import kulupu from './kulupu';
|
||||
import laminar from './laminar';
|
||||
import litentry from './litentry';
|
||||
import moonbeam from './moonbeam';
|
||||
import mybank from './mybank';
|
||||
import nodle from './nodle';
|
||||
import parami from './parami';
|
||||
import phala from './phala';
|
||||
@ -118,6 +119,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'moonbase-alphanet': moonbeam,
|
||||
moonbeam,
|
||||
'moonbeam-standalone': moonbeam,
|
||||
'mybank.network Testnet': mybank,
|
||||
nft: unique,
|
||||
'node-moonbeam': moonbeam,
|
||||
'node-polkadex': polkadex,
|
||||
|
||||
80
packages/apps-config/src/api/spec/mybank.ts
Normal file
80
packages/apps-config/src/api/spec/mybank.ts
Normal file
@ -0,0 +1,80 @@
|
||||
// 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: {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
PoolId: 'u8',
|
||||
PoolIdOf: 'PoolId',
|
||||
Loans: 'u8',
|
||||
LoansOf: 'Loans',
|
||||
CurrencyId: 'u8',
|
||||
CurrencyIdOf: 'CurrencyId',
|
||||
AssetPoolId: 'u8',
|
||||
AssetPoolIdOf: 'AssetPoolId',
|
||||
Price: 'FixedU128',
|
||||
PriceOf: 'Price',
|
||||
OracleKey: 'u8',
|
||||
OracleKeyOf: 'OracleKey',
|
||||
OracleValue: 'FixedU128',
|
||||
OracleValueOf: 'OracleValue',
|
||||
Amount: 'i128',
|
||||
AmountOf: 'Amount',
|
||||
Balance: 'u128',
|
||||
BalanceOf: 'Balance',
|
||||
Ratio: 'FixedU128',
|
||||
RatioOf: 'Ratio',
|
||||
InterestInfo: {
|
||||
critical_point: 'Ratio',
|
||||
base: 'Ratio',
|
||||
slope_1: 'Ratio',
|
||||
slope_2: 'Ratio'
|
||||
},
|
||||
InterestInfoOf: 'InterestInfo',
|
||||
AssetPoolInfo: {
|
||||
maximum_total_debit_ratio: 'Ratio',
|
||||
minimum_deposit: 'Balance',
|
||||
minimum_debit: 'Balance',
|
||||
health_ratio: 'Ratio',
|
||||
total_deposit: 'Balance',
|
||||
total_debit: 'Balance',
|
||||
deposit_rate: 'Ratio',
|
||||
debit_rate: 'Ratio',
|
||||
deposit_apy: 'Ratio',
|
||||
debit_apy: 'Ratio',
|
||||
reserve_factor: 'Ratio',
|
||||
interest_info: 'InterestInfo'
|
||||
},
|
||||
AssetPoolInfoOf: 'AssetPoolInfo',
|
||||
LoanInfo: {
|
||||
deposit: 'Balance',
|
||||
debit: 'Balance'
|
||||
},
|
||||
LoanInfoOf: 'LoanInfo',
|
||||
TimestampedValue: {
|
||||
value: 'OracleValue',
|
||||
timestamp: 'u64'
|
||||
},
|
||||
TimestampedValueOf: 'TimestampedValue',
|
||||
PoolInfo: {
|
||||
total_shares: 'Compact<u128>',
|
||||
total_rewards: 'Compact<u128>',
|
||||
total_withdrawn_rewards: 'Compact<u128>'
|
||||
},
|
||||
PoolInfoOf: 'PoolInfo'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -283,6 +283,13 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
providers: {
|
||||
ZERO: 'wss://alphaville.zero.io'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'mybank',
|
||||
text: t('rpc.mybank', 'mybank.network', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
MYBANK: 'wss://app.mybank.network/substrate'
|
||||
}
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
@ -32,6 +32,7 @@ const chainPolkaFoundry = '#ff527c';
|
||||
const chainKilt = '#8c175b';
|
||||
const chainKusama = '#000000';
|
||||
const chainLitentry = 'linear-gradient(45deg, #5cc27c 0%, #6de98f 100%)';
|
||||
const chainMybank = '#282736';
|
||||
const chainRocco = '#6f36dc';
|
||||
const chainRoccoAcala = '#173DC9';
|
||||
const chainRoccoAres = '#70FF8B';
|
||||
@ -72,6 +73,7 @@ const nodeGalital = '#00063F;';
|
||||
const nodeJupiter = '#7143ff';
|
||||
const nodeLitentry = 'linear-gradient(45deg, #5cc27c 0%, #6de98f 100%)';
|
||||
const nodeMoonbeam = '#53cbc9';
|
||||
const nodeMybank = '#282736';
|
||||
const nodeNodle = '#1ab394';
|
||||
const nodeParami = '#ee06e2';
|
||||
const nodePolkadex = '#7C30DD';
|
||||
@ -129,6 +131,7 @@ export const chainColors: Record<string, any> = [
|
||||
['Moonbase Alpha', nodeMoonbeam],
|
||||
['Moonbase Stage', nodeMoonbeam],
|
||||
['Moonbase Development Testnet', nodeMoonbeam],
|
||||
['mybank.network Testnet', chainMybank],
|
||||
['Parami PC2', chainParami],
|
||||
['Phala PC1', chainPhala],
|
||||
['Phala poc 3', chainPhala],
|
||||
@ -177,6 +180,7 @@ export const nodeColors: Record<string, any> = [
|
||||
['Equilibrium node', nodeEquilibrium],
|
||||
['Galital Parachain Collator', nodeGalital],
|
||||
['Litentry Collator', nodeLitentry],
|
||||
['mybank.network node', nodeMybank],
|
||||
['nodle chain node', nodeNodle],
|
||||
['Parami Collator', nodeParami],
|
||||
['Patract Node', nodeJupiter],
|
||||
|
||||
@ -52,6 +52,7 @@ import nodeLaminar from './nodes/laminar-circle.svg';
|
||||
import nodeLitentry from './nodes/litentry.png';
|
||||
import nodeMath from './nodes/math.svg';
|
||||
import moonbeam from './nodes/moonbeam.png';
|
||||
import mybank from './nodes/mybank.png';
|
||||
import nodeNodle from './nodes/nodle.svg';
|
||||
import nodeParami from './nodes/parami.png';
|
||||
import nodePhala from './nodes/phala.svg';
|
||||
@ -132,7 +133,8 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['Uniarts', nodeUniarts],
|
||||
['Unique', chainUnique],
|
||||
['Vln', nodeVln],
|
||||
['PHOENIX PC1', nodePhoenix]
|
||||
['PHOENIX PC1', nodePhoenix],
|
||||
['mybank.network PC1', mybank]
|
||||
].reduce((logos, [chain, logo]): Record<string, unknown> => ({
|
||||
...logos,
|
||||
[(chain as string).toLowerCase()]: logo
|
||||
@ -220,7 +222,8 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['PHOENIX Node', nodePhoenix],
|
||||
['PHOENIX Collator', nodePhoenix],
|
||||
['Zeitgeist Node', nodeZeitgeist],
|
||||
['Zeitgeist Collator', nodeZeitgeist]
|
||||
['Zeitgeist Collator', nodeZeitgeist],
|
||||
['mybank.network', mybank]
|
||||
].reduce((logos, [node, logo]): Record<string, unknown> => ({
|
||||
...logos,
|
||||
[(node as string).toLowerCase().replace(/-/g, ' ')]: logo
|
||||
@ -263,6 +266,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
laminar: nodeLaminar,
|
||||
litentry: nodeLitentry,
|
||||
moonbaseAlpha: moonbeam,
|
||||
mybank: mybank,
|
||||
nodle: nodeNodle,
|
||||
phala: nodePhala,
|
||||
phoenix: nodePhoenix,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/mybank.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/mybank.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Loading…
Reference in New Issue
Block a user