Peerplays types bundle (#10470)
* Peerplays types bundle * Fix lint errors * Peerplays types bundle * Fix yarn build:code * Fix yarn build:code * Fix yarn build:code * Fix yarn lint * Exporting types in api/spec/index.ts
This commit is contained in:
parent
5893ac911a
commit
04ada50aac
@ -93,6 +93,7 @@ import pangoro from './pangoro.js';
|
||||
import parallel from './parallel.js';
|
||||
import parami from './parami.js';
|
||||
import peaq from './peaq.js';
|
||||
import peerplays from './peerplays.js';
|
||||
import pendulum from './pendulum.js';
|
||||
import phoenix from './phoenix.js';
|
||||
import pichiu from './pichiu.js';
|
||||
@ -262,6 +263,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'peaq-node': peaq,
|
||||
'peaq-node-dev': peaq,
|
||||
'peaq-node-krest': peaq,
|
||||
peerplays,
|
||||
pendulum,
|
||||
'phoenix-node': phoenix,
|
||||
'phoenix-parachain': phoenix,
|
||||
|
||||
67
packages/apps-config/src/api/spec/peerplays.ts
Normal file
67
packages/apps-config/src/api/spec/peerplays.ts
Normal file
@ -0,0 +1,67 @@
|
||||
// Copyright 2017-2024 @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 = {
|
||||
rpc: {
|
||||
validatormanager: {
|
||||
activeValidators: {
|
||||
description: 'Get the list of active validators',
|
||||
params: [],
|
||||
type: 'Vec<AccountId>'
|
||||
},
|
||||
currentMaintenanceIndex: {
|
||||
description: 'Get current maintenance index',
|
||||
params: [],
|
||||
type: 'MaintenanceIndex'
|
||||
},
|
||||
nextMaintenanceIndex: {
|
||||
description: 'Get next maintenance index',
|
||||
params: [],
|
||||
type: 'MaintenanceIndex'
|
||||
},
|
||||
offenceValidators: {
|
||||
description: 'Get the list of active validators who made the offence',
|
||||
params: [],
|
||||
type: 'Vec<(AccountId, AuthIndex)>'
|
||||
},
|
||||
offlineValidators: {
|
||||
description: 'Get the list of active validators who went offline',
|
||||
params: [],
|
||||
type: 'Vec<(AccountId, AuthIndex)>'
|
||||
},
|
||||
validatorsPool: {
|
||||
description: 'Get the list of validator candidates',
|
||||
params: [],
|
||||
type: 'Vec<AccountId>'
|
||||
}
|
||||
}
|
||||
},
|
||||
types: [
|
||||
{
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
AccountId: 'EthereumAccountId',
|
||||
AccountId20: 'EthereumAccountId',
|
||||
AccountId32: 'EthereumAccountId',
|
||||
Address: 'AccountId',
|
||||
AuthIndex: 'u32',
|
||||
EthereumSignature: {
|
||||
r: 'H256',
|
||||
s: 'H256',
|
||||
v: 'U8'
|
||||
},
|
||||
ExtrinsicSignature: 'EthereumSignature',
|
||||
Lookup0: 'AccountId',
|
||||
LookupSource: 'AccountId',
|
||||
MaintenanceIndex: 'u32'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
File diff suppressed because one or more lines are too long
@ -113,6 +113,7 @@ export { nodesPangolinSVG } from './generated/pangolinSVG.js';
|
||||
export { nodesPangoroSVG } from './generated/pangoroSVG.js';
|
||||
export { nodesParallelSVG } from './generated/parallelSVG.js';
|
||||
export { nodesParamiJPEG } from './generated/paramiJPEG.js';
|
||||
export { nodesPeerplaysPNG } from './generated/peerplaysPNG.js';
|
||||
export { nodesPhalaSVG } from './generated/phalaSVG.js';
|
||||
export { nodesPhoenixPNG } from './generated/phoenixPNG.js';
|
||||
export { nodesPhykenNetworkPNG } from './generated/phyken-networkPNG.js';
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/peerplays.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/peerplays.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in New Issue
Block a user