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:
serkixenos 2024-04-18 20:52:40 +03:00 committed by GitHub
parent 5893ac911a
commit 04ada50aac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 76 additions and 0 deletions

View File

@ -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,

View 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

View File

@ -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';

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB