Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/apps-config/src/api/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import mybank from './mybank';
import neatcoin from './neatcoin';
import nftmart from './nftmart';
import nodle from './nodle';
import oakTestnet from './oak-testnet';
import pangolin from './pangolin';
import parami from './parami';
import phala from './phala';
Expand Down Expand Up @@ -157,6 +158,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
'node-moonbeam': moonbeam,
'node-polkadex': polkadex,
'nodle-chain': nodle,
'oak-testnet': oakTestnet,
parami,
'phala-collator': phalaParachain,
'phala-node': phala,
Expand Down
53 changes: 53 additions & 0 deletions packages/apps-config/src/api/spec/oak-testnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// 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: {
ProjectIndex: 'u32',
ProjectOf: 'Project',
RoundIndex: 'u32',
RoundOf: 'Round',
Round: {
start: 'BlockNumber',
end: 'BlockNumber',
matching_fund: 'Balance',
grants: 'Vec<Grant>',
is_canceled: 'bool',
is_finalized: 'bool'
},
Grant: {
project_index: 'ProjectIndex',
contributions: 'Vec<Contribution>',
is_approved: 'bool',
is_canceled: 'bool',
is_withdrawn: 'bool',
withdrawal_expiration: 'BlockNumber',
matching_fund: 'Balance'
},
Contribution: {
account_id: 'AccountId',
value: 'Balance'
},
Project: {
name: 'Vec<u8>',
logo: 'Vec<u8>',
description: 'Vec<u8>',
website: 'Vec<u8>',
owner: 'AccountId',
create_block_number: 'BlockNumber'
}
}
}
]
};

export default definitions;
7 changes: 7 additions & 0 deletions packages/apps-config/src/endpoints/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ export function createTesting (t: TFunction): LinkOption[] {
NFTMartStaging: 'wss://staging-ws.nftmart.io'
}
},
{
info: 'oak-testnet',
text: t('rpc.testnet.oak.tech', 'OAK Testnet', { ns: 'apps-config' }),
providers: {
'OAK Foundation': 'wss://testnet.oak.tech'
}
},
{
info: 'pangolin',
text: t('rpc.test.pangolin', 'Pangolin', { ns: 'apps-config' }),
Expand Down
2 changes: 2 additions & 0 deletions packages/apps-config/src/ui/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const nodeMoonbeam = '#53cbc9';
const nodeMybank = '#282736';
const nodeNFTMart = '#307182';
const nodeNodle = '#1ab394';
const nodeOakTestnet = '#4f46e5';
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

颜色是在这里调整的

const nodePangolin = '#5744ff';
const nodeParami = '#ee06e2';
const nodePolkadex = '#7C30DD';
Expand Down Expand Up @@ -247,6 +248,7 @@ export const nodeColors: Record<string, string> = [
['NFTMart Testnet', nodeNFTMart],
['NFTMart Staging', nodeNFTMart],
['nodle chain node', nodeNodle],
['OAK Testnet', nodeOakTestnet],
['Pangolin', nodePangolin],
['Parami Collator', nodeParami],
['Patract Node', nodeJupiter],
Expand Down
4 changes: 4 additions & 0 deletions packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import nodeMoonrock from './nodes/moonrock.png';
import mybank from './nodes/mybank.png';
import nodeNFTMart from './nodes/nftmart.png';
import nodeNodle from './nodes/nodle.svg';
import nodeOakTestnet from './nodes/oak-testnet.png';
import nodePangolin from './nodes/pangolin.svg';
import nodeParami from './nodes/parami.png';
import nodePhala from './nodes/phala.svg';
Expand Down Expand Up @@ -145,6 +146,7 @@ export const chainLogos: Record<string, unknown> = [
['mybank.network PC1', mybank],
['NFTMart Testnet', nodeNFTMart],
['NFTMart Staging', nodeNFTMart],
['OAK Testnet', nodeOakTestnet],
['Pangolin', nodePangolin],
['Parami PC2', nodeParami],
['PHOENIX PC1', nodePhoenix],
Expand Down Expand Up @@ -243,6 +245,7 @@ export const nodeLogos: Record<string, unknown> = [
['NFTMart Staging', nodeNFTMart],
['node-template', nodeSubstrate],
['Nodle Chain Node', nodeNodle],
['OAK Testnet', nodeOakTestnet],
['Pangolin', nodePangolin],
['Patract Node', nodeJupiter],
['Polkadex Node', nodePolkadex],
Expand Down Expand Up @@ -352,6 +355,7 @@ export const namedLogos: Record<string, unknown> = {
mybank: mybank,
nftmart: nodeNFTMart,
nodle: nodeNodle,
'oak-testnet': nodeOakTestnet,
pangolin: nodePangolin,
phala: nodePhala,
phoenix: nodePhoenix,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/apps/public/locales/en/apps-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
"rpc.test.mybank": "mybank.network",
"rpc.test.nftmart": "NFTMart",
"rpc.test.nodle-arcadia": "Arcadia",
"rpc.testnet.oak.tech": "OAK Testnet",
"rpc.test.pangolin": "Pangolin",
"rpc.test.phala": "Phala PoC-4",
"rpc.test.phoenix": "Phoenix Mashnet",
Expand Down