diff --git a/packages/apps-config/src/api/spec/aleph-zero.ts b/packages/apps-config/src/api/spec/aleph-zero.ts index 92b0e99c665e..06d2773b8430 100644 --- a/packages/apps-config/src/api/spec/aleph-zero.ts +++ b/packages/apps-config/src/api/spec/aleph-zero.ts @@ -90,6 +90,16 @@ export default { description: '', params: [], type: 'u32' + }, + yearly_inflation: { + description: 'Returns inflation from now to now + one year.', + params: [], + type: 'Perbill' + }, + current_era_payout: { + description: 'Returns payout. First tuple item is a validators payout, second is the rest.', + params: [], + type: '(Balance, Balance)' } }, version: 1 diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 680682da78c3..15adf0c14584 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -98,6 +98,16 @@ export const typesBundle = { "description": "", "params": [], "type": "u32" + }, + "yearly_inflation": { + "description": "Returns inflation from now to now + one year.", + "params": [], + "type": "Perbill" + }, + "current_era_payout": { + "description": "Returns payout. First tuple item is a validators payout, second is the rest.", + "params": [], + "type": "(Balance, Balance)" } }, "version": 1 diff --git a/packages/apps-config/src/types.ts b/packages/apps-config/src/types.ts index 8d57eda9ffae..3d0a8811d9cc 100644 --- a/packages/apps-config/src/types.ts +++ b/packages/apps-config/src/types.ts @@ -1,6 +1,26 @@ // Copyright 2017-2024 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 +import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; +import type { Perbill } from '@polkadot/types/interfaces/runtime'; +import type { Observable } from '@polkadot/types/types'; + +declare module '@polkadot/api-base/types/calls' { + interface AugmentedCalls { + /** 0xbc9d89904f5b923f/1 */ + alephSessionApi: { + /** + * The API to query account nonce (aka transaction index) + **/ + yearlyInflation: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + } +} + export interface TOptions { ns?: string; replace?: Record