// 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' }, 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' }, validators: { description: 'Get the list of validator candidates', params: [], type: 'Vec' }, selectedValidators: { description: 'Get the list of active validators', params: [], type: 'Vec' }, nextValidators: { description: 'Get the list of next session active validators', params: [], type: 'Vec' } } }, 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;