Register Opportunity Test Network on PolkadotJS apps (#5557)
* Add Opportunity test network * quotes * formatting * formatting; * quote * Update index.ts * Update index.ts * Update index.ts * Update testing.ts * Update packages/apps-config/src/api/spec/index.ts Co-authored-by: Jaco <jacogr@gmail.com> Co-authored-by: Jaco <jacogr@gmail.com>
This commit is contained in:
parent
8a87eee996
commit
d5b9aefc0c
@ -55,6 +55,7 @@ import neatcoin from './neatcoin';
|
||||
import nftmart from './nftmart';
|
||||
import nodle from './nodle';
|
||||
import oakTestnet from './oak-testnet';
|
||||
import opportunity from './opportunity';
|
||||
import origintrail from './origintrail';
|
||||
import pangolin from './pangolin';
|
||||
import parami from './parami';
|
||||
@ -167,6 +168,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'node-polkadex': polkadex,
|
||||
'nodle-chain': nodle,
|
||||
'oak-testnet': oakTestnet,
|
||||
'opportunity-node': opportunity,
|
||||
'origintrail-parachain': origintrail,
|
||||
parami,
|
||||
'phala-collator': phalaParachain,
|
||||
|
||||
47
packages/apps-config/src/api/spec/opportunity.ts
Normal file
47
packages/apps-config/src/api/spec/opportunity.ts
Normal file
@ -0,0 +1,47 @@
|
||||
// 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: {
|
||||
AccountInfo: 'AccountInfoWithTripleRefCount',
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
XCurrencyId: {
|
||||
chain_id: 'ChainId',
|
||||
currency_id: 'Bytes'
|
||||
},
|
||||
CurrencyIdOf: 'CurrencyId',
|
||||
CurrencyId: {
|
||||
_enum: {
|
||||
Token: 'TokenSymbol'
|
||||
}
|
||||
},
|
||||
TokenSymbol: {
|
||||
_enum: [
|
||||
'ACA',
|
||||
'AUSD',
|
||||
'DOT',
|
||||
'XBTC',
|
||||
'LDOT',
|
||||
'RENBTC',
|
||||
'SDN',
|
||||
'PLM'
|
||||
]
|
||||
},
|
||||
AmountOf: 'Amount',
|
||||
Amount: 'i128'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -260,6 +260,13 @@ export function createTesting (t: TFunction, firstOnly?: boolean): LinkOption[]
|
||||
'OAK Network': 'wss://rpc.testnet.oak.tech'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'opportunity',
|
||||
text: t('rpc.test.opportunity', 'Opportunity', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
Opportunity: 'wss://rpc.opportunity.standard.tech'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'pangolin',
|
||||
text: t('rpc.test.pangolin', 'Pangolin', { ns: 'apps-config' }),
|
||||
|
||||
@ -114,6 +114,7 @@ const nodeMybank = '#282736';
|
||||
const nodeNFTMart = '#307182';
|
||||
const nodeNodle = '#1ab394';
|
||||
const nodeOakTestnet = '#E38985';
|
||||
const nodeOpportunity = '#6143bc';
|
||||
const nodeOriginTrail = '#131415';
|
||||
const nodePangolin = '#5744ff';
|
||||
const nodeParami = '#ee06e2';
|
||||
@ -300,6 +301,7 @@ export const nodeColors: Record<string, string> = [
|
||||
['NFTMart Staging', nodeNFTMart],
|
||||
['nodle chain node', nodeNodle],
|
||||
['OAK Testnet', nodeOakTestnet],
|
||||
['Opportunity', nodeOpportunity],
|
||||
['OriginTrail Parachain', nodeOriginTrail],
|
||||
['Pangolin', nodePangolin],
|
||||
['Parami Collator', nodeParami],
|
||||
|
||||
@ -78,6 +78,7 @@ import mybank from './nodes/mybank.png';
|
||||
import nodeNFTMart from './nodes/nftmart.png';
|
||||
import nodeNodle from './nodes/nodle.svg';
|
||||
import oakTestnet from './nodes/oak-testnet.png';
|
||||
import nodeOpportunity from './nodes/opportunity.png';
|
||||
import nodeOriginTrail from './nodes/origintrail.png';
|
||||
import nodePangolin from './nodes/pangolin.svg';
|
||||
import nodeParami from './nodes/parami.png';
|
||||
@ -291,6 +292,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['node-template', nodeSubstrate],
|
||||
['Nodle Chain Node', nodeNodle],
|
||||
['OAK Testnet', oakTestnet],
|
||||
['Opportunity', nodeOpportunity],
|
||||
['OriginTrail Parachain', nodeOriginTrail],
|
||||
['Pangolin', nodePangolin],
|
||||
['Patract Node', nodeJupiter],
|
||||
@ -428,6 +430,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
nftmart: nodeNFTMart,
|
||||
nodle: nodeNodle,
|
||||
'oak-testnet': oakTestnet,
|
||||
opportunity: nodeOpportunity,
|
||||
origintrail: nodeOriginTrail,
|
||||
pangolin: nodePangolin,
|
||||
phala: nodePhala,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/opportunity.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/opportunity.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
@ -138,6 +138,7 @@
|
||||
"rpc.test.nftmart": "NFTMart",
|
||||
"rpc.test.nodle-arcadia": "Arcadia",
|
||||
"rpc.test.oak": "OAK Testnet",
|
||||
"rpc.test.opportunity": "Opportunity",
|
||||
"rpc.test.pangolin": "Pangolin",
|
||||
"rpc.test.phala": "Phala PoC-4",
|
||||
"rpc.test.phoenix": "Phoenix Mashnet",
|
||||
@ -168,4 +169,4 @@
|
||||
"rpc.westend.whala": "Whala Network",
|
||||
"ss58.default": "Default for the connected node",
|
||||
"testnet.kylin-node.co.uk": "Kylin Testnet"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1283,6 +1283,7 @@
|
||||
"rpc.mandala": "만달라(Acala 테스트넷, Acala가 운영함)",
|
||||
"rpc.nodle-arcadia": "Arcadia (Nodle 테스트넷, Nodle이 운영함)",
|
||||
"rpc.nodle-main": "노들 메인",
|
||||
"rpc.opportunity": "오퍼튜니티 (스탠다드 프로토콜 테스트넷, 스탠다드 프로토콜이 운영함)",
|
||||
"rpc.pangolin": "팬고린",
|
||||
"rpc.phala": "팔라 PoC-3",
|
||||
"rpc.plasm": "플라즈마",
|
||||
@ -1484,4 +1485,4 @@
|
||||
"{{threshold}}, not passing": "{{threshold}}, 통과되지 않았습니다",
|
||||
"{{threshold}}, passing": "{{threshold}}, 통과되었습니다",
|
||||
"{{value}}x voting balance, locked for {{lock}}x enactment ({{period}} days)": "{{value}}x 투표 발란스, 잠금 {{lock}}x제정 ({{period}} days)"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user