From e57ea8cdf75acd416e36828cd5d6c9fcf0357d80 Mon Sep 17 00:00:00 2001 From: serkixenos <70147861+serkixenos@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:48:54 +0100 Subject: [PATCH] Peerplays types bundle (#10347) * Peerplays types bundle * Fix lint errors --- packages/apps-config/src/api/typesBundle.ts | 84 +++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 8c81687fd1..8637e74fb2 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -70918,6 +70918,90 @@ export const typesBundle = { } } }, + "peerplays": { + "rpc": { + "validatormanager": { + "activeValidators": { + "description": "Get the list of active validators", + "params": [], + "type": "Vec", + "isSubscription": false, + "jsonrpc": "validatormanager_activeValidators", + "method": "activeValidators", + "section": "validatormanager" + }, + "currentMaintenanceIndex": { + "description": "Get current maintenance index", + "params": [], + "type": "MaintenanceIndex", + "isSubscription": false, + "jsonrpc": "validatormanager_currentMaintenanceIndex", + "method": "currentMaintenanceIndex", + "section": "validatormanager" + }, + "nextMaintenanceIndex": { + "description": "Get next maintenance index", + "params": [], + "type": "MaintenanceIndex", + "isSubscription": false, + "jsonrpc": "validatormanager_nextMaintenanceIndex", + "method": "nextMaintenanceIndex", + "section": "validatormanager" + }, + "offenceValidators": { + "description": "Get the list of active validators who made the offence", + "params": [], + "type": "Vec<(AccountId, AuthIndex)>", + "isSubscription": false, + "jsonrpc": "validatormanager_offenceValidators", + "method": "offenceValidators", + "section": "validatormanager" + }, + "offlineValidators": { + "description": "Get the list of active validators who went offline", + "params": [], + "type": "Vec<(AccountId, AuthIndex)>", + "isSubscription": false, + "jsonrpc": "validatormanager_offlineValidators", + "method": "offlineValidators", + "section": "validatormanager" + }, + "validatorsPool": { + "description": "Get the list of validator candidates", + "params": [], + "type": "Vec", + "isSubscription": false, + "jsonrpc": "validatormanager_validatorsPool", + "method": "validatorsPool", + "section": "validatormanager" + } + } + }, + "types": [ + { + "minmax": [ + 0, + null + ], + "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" + } + } + ] + }, "pendulum": { "rpc": { "issue": {