Refactor: Opportunity Testnet spec, Resolve: Opportunity Testnet Logo and Color display issues on Menu (#5579)
* 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> * fix: opportunitytypes d.ts * refactor: opportunity hardcoded -> module, fix: logo and color for opportunity * update: @digitalnative/type-defintions version bump * remove: newlines at apps-config, ko/translations jsons Co-authored-by: Jaco <jacogr@gmail.com>
This commit is contained in:
parent
30a613fe99
commit
dcab44607d
@ -11,6 +11,7 @@
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@crustio/type-definitions": "0.0.10",
|
||||
"@darwinia/types": "^1.1.0-alpha.21",
|
||||
"@digitalnative/type-definitions": "^1.1.9",
|
||||
"@docknetwork/node-types": "^0.4.6",
|
||||
"@edgeware/node-types": "^3.5.1-erup-4",
|
||||
"@equilab/definitions": "1.2.2",
|
||||
|
||||
@ -1,55 +1,6 @@
|
||||
// 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',
|
||||
DataVersion: 'u64',
|
||||
RequestIdentifier: 'u64',
|
||||
SpecIndex: 'Vec<u8>',
|
||||
CDP: {
|
||||
liquidation_fee: ('Balance'),
|
||||
max_collateraization_rate: ('U256'),
|
||||
stability_fee: ('Balance')
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
import definitions from '@digitalnative/type-definitions/opportunity';
|
||||
|
||||
export default definitions;
|
||||
|
||||
@ -310,7 +310,7 @@ export const nodeColors = Object.entries({
|
||||
'NFTMart Testnet': nodeNFTMart,
|
||||
'nodle chain node': nodeNodle,
|
||||
'OAK Testnet': nodeOakTestnet,
|
||||
Opportunity: nodeOpportunity,
|
||||
'Opportunity Standalone Testnet': nodeOpportunity,
|
||||
'OriginTrail Parachain': nodeOriginTrail,
|
||||
Pangolin: nodePangolin,
|
||||
'Parami Collator': nodeParami,
|
||||
|
||||
@ -298,7 +298,7 @@ export const nodeLogos = Object.entries({
|
||||
'node-template': nodeSubstrate,
|
||||
'Nodle Chain Node': nodeNodle,
|
||||
'OAK Testnet': oakTestnet,
|
||||
Opportunity: nodeOpportunity,
|
||||
'Opportunity Standalone Testnet': nodeOpportunity,
|
||||
'OriginTrail Parachain': nodeOriginTrail,
|
||||
Pangolin: nodePangolin,
|
||||
Parami: nodeParami,
|
||||
|
||||
10
yarn.lock
10
yarn.lock
@ -1509,6 +1509,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@digitalnative/type-definitions@npm:^1.1.9":
|
||||
version: 1.1.9
|
||||
resolution: "@digitalnative/type-definitions@npm:1.1.9"
|
||||
dependencies:
|
||||
"@polkadot/types": ^4.13.1
|
||||
checksum: 7fd8c0a6c6704cc2358efb3949c7062b8a2e1cc18be8df9b64ba51203a0d7d210515c3a7c6978d517e07db1a2059cd034e2f234ab2c234cf7217d253931b030a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@discoveryjs/json-ext@npm:^0.5.0":
|
||||
version: 0.5.2
|
||||
resolution: "@discoveryjs/json-ext@npm:0.5.2"
|
||||
@ -2533,6 +2542,7 @@ __metadata:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@crustio/type-definitions": 0.0.10
|
||||
"@darwinia/types": ^1.1.0-alpha.21
|
||||
"@digitalnative/type-definitions": ^1.1.9
|
||||
"@docknetwork/node-types": ^0.4.6
|
||||
"@edgeware/node-types": ^3.5.1-erup-4
|
||||
"@equilab/definitions": 1.2.2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user