Add nftmart network config (#5059)
* feat: add nftmart network config * chore: fix lint error
This commit is contained in:
parent
a2af146019
commit
71a7c7025d
@ -44,6 +44,7 @@ import litentry from './litentry';
|
||||
import manta from './manta';
|
||||
import moonbeam from './moonbeam';
|
||||
import mybank from './mybank';
|
||||
import nftmart from './nftmart';
|
||||
import nodle from './nodle';
|
||||
import parami from './parami';
|
||||
import phala from './phala';
|
||||
@ -128,6 +129,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'moonbeam-standalone': moonbeam,
|
||||
'mybank.network Testnet': mybank,
|
||||
nft: unique,
|
||||
nftmart,
|
||||
'node-moonbeam': moonbeam,
|
||||
'node-polkadex': polkadex,
|
||||
'nodle-chain': nodle,
|
||||
|
||||
69
packages/apps-config/src/api/spec/nftmart.ts
Normal file
69
packages/apps-config/src/api/spec/nftmart.ts
Normal file
@ -0,0 +1,69 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
/* eslint-disable camelcase */
|
||||
|
||||
import { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
const definitions: OverrideBundleDefinition = {
|
||||
types: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
Properties: 'u8',
|
||||
NFTMetadata: 'Vec<u8>',
|
||||
BlockNumber: 'u32',
|
||||
BlockNumberOf: 'BlockNumber',
|
||||
|
||||
OrderData: {
|
||||
currencyId: 'Compact<CurrencyIdOf>',
|
||||
price: 'Compact<Balance>',
|
||||
deposit: 'Compact<Balance>',
|
||||
deadline: 'Compact<BlockNumberOf>',
|
||||
categoryId: 'Compact<CategoryIdOf>'
|
||||
},
|
||||
|
||||
CategoryId: 'u32',
|
||||
CategoryIdOf: 'CategoryId',
|
||||
CategoryData: {
|
||||
metadata: 'NFTMetadata',
|
||||
nftCount: 'Compact<Balance>'
|
||||
},
|
||||
|
||||
CurrencyId: 'u32',
|
||||
CurrencyIdOf: 'CurrencyId',
|
||||
Amount: 'i128',
|
||||
AmountOf: 'Amount',
|
||||
|
||||
ClassId: 'u32',
|
||||
ClassIdOf: 'ClassId',
|
||||
ClassInfoOf: {
|
||||
metadata: 'NFTMetadata',
|
||||
totalIssuance: 'TokenId',
|
||||
owner: 'AccountId',
|
||||
data: 'ClassData'
|
||||
},
|
||||
ClassData: {
|
||||
deposit: 'Compact<Balance>',
|
||||
properties: 'Properties',
|
||||
name: 'Vec<u8>',
|
||||
description: 'Vec<u8>',
|
||||
createBlock: 'Compact<BlockNumberOf>'
|
||||
},
|
||||
|
||||
TokenId: 'u64',
|
||||
TokenIdOf: 'TokenId',
|
||||
TokenInfoOf: { metadata: 'NFTMetadata', owner: 'AccountId', data: 'TokenData' },
|
||||
TokenData: {
|
||||
deposit: 'Compact<Balance>',
|
||||
createBlock: 'Compact<BlockNumberOf>'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -297,6 +297,14 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
providers: {
|
||||
'Unit Network': 'wss://unitventures.io/'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'nftmart',
|
||||
text: t('rpc.nftmart', 'Nftmart', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
NftmartDev: 'ws://8.136.111.191:9944',
|
||||
NftmartStaging: 'ws://82.157.37.77:9944'
|
||||
}
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
@ -24,6 +24,7 @@ const chainHydrate = '#000000';
|
||||
const chainIntegritee = '#15bcff';
|
||||
const chainKulupu = '#003366';
|
||||
const chainManta = '#2070a6';
|
||||
const chainNftmart = '#815287';
|
||||
const chainParami = '#ee06e2';
|
||||
const chainPhala = '#a7e300';
|
||||
const chainPhoenix = '#d42181';
|
||||
@ -80,6 +81,7 @@ const nodeLitentry = 'linear-gradient(45deg, #5cc27c 0%, #6de98f 100%)';
|
||||
const nodeManta = '#2070a6';
|
||||
const nodeMoonbeam = '#53cbc9';
|
||||
const nodeMybank = '#282736';
|
||||
const nodeNftmart = '#307182';
|
||||
const nodeNodle = '#1ab394';
|
||||
const nodeParami = '#ee06e2';
|
||||
const nodePolkadex = '#7C30DD';
|
||||
@ -143,6 +145,8 @@ export const chainColors: Record<string, any> = [
|
||||
['Moonbase Stage', nodeMoonbeam],
|
||||
['Moonbase Development Testnet', nodeMoonbeam],
|
||||
['mybank.network Testnet', chainMybank],
|
||||
['Nftmart Testnet', chainNftmart],
|
||||
['Nftmart Staging', chainNftmart],
|
||||
['Parami PC2', chainParami],
|
||||
['Phala PC1', chainPhala],
|
||||
['Phala poc 3', chainPhala],
|
||||
@ -195,6 +199,8 @@ export const nodeColors: Record<string, any> = [
|
||||
['Litentry Collator', nodeLitentry],
|
||||
['Manta Collator', nodeManta],
|
||||
['mybank.network node', nodeMybank],
|
||||
['Nftmart Testnet', nodeNftmart],
|
||||
['Nftmart Staging', nodeNftmart],
|
||||
['nodle chain node', nodeNodle],
|
||||
['Parami Collator', nodeParami],
|
||||
['Patract Node', nodeJupiter],
|
||||
|
||||
@ -57,6 +57,7 @@ import nodeManta from './nodes/manta.png';
|
||||
import nodeMath from './nodes/math.svg';
|
||||
import moonbeam from './nodes/moonbeam.png';
|
||||
import mybank from './nodes/mybank.png';
|
||||
import nodeNftmart from './nodes/nftmart.png';
|
||||
import nodeNodle from './nodes/nodle.svg';
|
||||
import nodeParami from './nodes/parami.png';
|
||||
import nodePhala from './nodes/phala.svg';
|
||||
@ -121,6 +122,8 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['Moonbase Alpha', moonbeam],
|
||||
['Moonbase Stage', moonbeam],
|
||||
['Moonbase Development Testnet', moonbeam],
|
||||
['Nftmart Testnet', nodeNftmart],
|
||||
['Nftmart Staging', nodeNftmart],
|
||||
['Parami PC2', nodeParami],
|
||||
['PolkaBTC', nodePolkaBTC],
|
||||
['PolkaBTC Staging', nodePolkaBTC],
|
||||
@ -198,6 +201,8 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['Litentry Collator', nodeLitentry],
|
||||
['Manta Node', nodeManta],
|
||||
['Manta Parachain Collator', nodeManta],
|
||||
['Nftmart Testnet', nodeNftmart],
|
||||
['Nftmart Staging', nodeNftmart],
|
||||
['node-template', nodeSubstrate],
|
||||
['Nodle Chain Node', nodeNodle],
|
||||
['Patract Node', nodeJupiter],
|
||||
@ -287,6 +292,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
manta: nodeManta,
|
||||
moonbaseAlpha: moonbeam,
|
||||
mybank: mybank,
|
||||
nftmart: nodeNftmart,
|
||||
nodle: nodeNodle,
|
||||
phala: nodePhala,
|
||||
phoenix: nodePhoenix,
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/nftmart.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/nftmart.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@ -53,6 +53,7 @@
|
||||
"rpc.manta": "Manta",
|
||||
"rpc.moonbeam": "Moonbase Alpha",
|
||||
"rpc.mybank": "mybank.network",
|
||||
"rpc.nftmart": "Nftmart",
|
||||
"rpc.nodle-arcadia": "Arcadia",
|
||||
"rpc.nodle-main": "Nodle",
|
||||
"rpc.phala": "Phala PoC-3",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user