@polkadot/api-augment 14.0.1 → 14.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/cjs/base.d.ts +2 -0
  2. package/cjs/bundle.d.ts +2 -0
  3. package/cjs/index.d.ts +2 -0
  4. package/cjs/kusama/consts.d.ts +1044 -0
  5. package/cjs/kusama/errors.d.ts +2355 -0
  6. package/cjs/kusama/events.d.ts +2543 -0
  7. package/cjs/kusama/index.d.ts +8 -0
  8. package/cjs/kusama/query.d.ts +2378 -0
  9. package/cjs/kusama/registry.d.ts +3 -0
  10. package/cjs/kusama/runtime.d.ts +683 -0
  11. package/cjs/kusama/tx.d.ts +5778 -0
  12. package/cjs/packageDetect.d.ts +1 -0
  13. package/cjs/packageInfo.d.ts +6 -0
  14. package/cjs/packageInfo.js +1 -1
  15. package/cjs/polkadot/consts.d.ts +864 -0
  16. package/cjs/polkadot/errors.d.ts +1954 -0
  17. package/cjs/polkadot/events.d.ts +2024 -0
  18. package/cjs/polkadot/index.d.ts +8 -0
  19. package/cjs/polkadot/query.d.ts +2133 -0
  20. package/cjs/polkadot/registry.d.ts +2 -0
  21. package/cjs/polkadot/runtime.d.ts +683 -0
  22. package/cjs/polkadot/tx.d.ts +4932 -0
  23. package/cjs/substrate/consts.d.ts +1763 -0
  24. package/cjs/substrate/errors.d.ts +3409 -0
  25. package/cjs/substrate/events.d.ts +4300 -0
  26. package/cjs/substrate/index.d.ts +8 -0
  27. package/cjs/substrate/query.d.ts +2582 -0
  28. package/cjs/substrate/registry.d.ts +1 -0
  29. package/cjs/substrate/runtime.d.ts +577 -0
  30. package/cjs/substrate/tx.d.ts +10200 -0
  31. package/kusama/runtime.d.ts +253 -212
  32. package/package.json +368 -128
  33. package/packageInfo.js +1 -1
  34. package/polkadot/consts.d.ts +50 -66
  35. package/polkadot/errors.d.ts +114 -183
  36. package/polkadot/events.d.ts +83 -144
  37. package/polkadot/query.d.ts +159 -100
  38. package/polkadot/runtime.d.ts +315 -179
  39. package/polkadot/tx.d.ts +2770 -636
  40. package/substrate/runtime.d.ts +217 -175
@@ -1,292 +1,310 @@
1
1
  import '@polkadot/api-base/types/calls';
2
2
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
3
- import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
3
+ import type { Bytes, Null, Option, Result, Struct, Text, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
- import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
6
- import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
7
- import type { ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
8
- import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
9
- import type { BlockHash } from '@polkadot/types/interfaces/chain';
10
- import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
11
- import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
5
+ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
12
6
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
13
- import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
14
- import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
15
7
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
16
- import type { Mixnode, MixnodesErr, SessionStatus } from '@polkadot/types/interfaces/mixnet';
17
- import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
18
- import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
19
- import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
20
- import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
21
- import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
22
- import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
23
- import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
24
- import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
25
- import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
26
- import type { SpConsensusBeefyDoubleVotingProof, SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
8
+ import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
9
+ import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
27
10
  import type { IExtrinsic, Observable } from '@polkadot/types/types';
28
11
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
29
12
  export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
30
13
  declare module '@polkadot/api-base/types/calls' {
31
14
  interface AugmentedCalls<ApiType extends ApiTypes> {
32
- /** 0xbc9d89904f5b923f/1 */
15
+ /** 0xbc9d89904f5b923f/ */
33
16
  accountNonceApi: {
34
17
  /**
35
- * The API to query account nonce (aka transaction index)
18
+ * Get current account nonce of given `AccountId`.
36
19
  **/
37
- accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
20
+ accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
38
21
  /**
39
22
  * Generic call
40
23
  **/
41
24
  [key: string]: DecoratedCallBase<ApiType>;
42
25
  };
43
- /** 0x8a8047a53a8277ec/1 */
26
+ /** 0x8a8047a53a8277ec/ */
44
27
  assetConversionApi: {
45
28
  /**
46
- * Get pool reserves
29
+ * Returns the size of the liquidity pool for the given asset pair.
47
30
  **/
48
- getReserves: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation) => Observable<Option<ITuple<[Balance, Balance]>>>>;
31
+ getReserves: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
32
+ Native: any;
33
+ } | {
34
+ WithId: any;
35
+ } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
36
+ Native: any;
37
+ } | {
38
+ WithId: any;
39
+ } | string | Uint8Array) => Observable<Option<ITuple<[u128, u128]>>>>;
49
40
  /**
50
- * Quote price: exact tokens for tokens
41
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_out_min` to control slippage.)
51
42
  **/
52
- quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
43
+ quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
44
+ Native: any;
45
+ } | {
46
+ WithId: any;
47
+ } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
48
+ Native: any;
49
+ } | {
50
+ WithId: any;
51
+ } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
53
52
  /**
54
- * Quote price: tokens for exact tokens
53
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].,, Note that the price may have changed by the time the transaction is executed., (Use `amount_in_max` to control slippage.)
55
54
  **/
56
- quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: StagingXcmV3MultiLocation, asset2: StagingXcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
55
+ quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
56
+ Native: any;
57
+ } | {
58
+ WithId: any;
59
+ } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
60
+ Native: any;
61
+ } | {
62
+ WithId: any;
63
+ } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
57
64
  /**
58
65
  * Generic call
59
66
  **/
60
67
  [key: string]: DecoratedCallBase<ApiType>;
61
68
  };
62
- /** 0x8453b50b22293977/1 */
69
+ /** 0x8453b50b22293977/ */
63
70
  assetsApi: {
64
71
  /**
65
- * Return the current set of authorities.
72
+ * Returns the list of `AssetId`s and corresponding balance that an `AccountId` has.
66
73
  **/
67
- accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
74
+ accountBalances: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>>;
68
75
  /**
69
76
  * Generic call
70
77
  **/
71
78
  [key: string]: DecoratedCallBase<ApiType>;
72
79
  };
73
- /** 0x687ad44ad37f03c2/1 */
80
+ /** 0x687ad44ad37f03c2/ */
74
81
  authorityDiscoveryApi: {
75
82
  /**
76
83
  * Retrieve authority identifiers of the current and next authority set.
77
84
  **/
78
- authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
85
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>>;
79
86
  /**
80
87
  * Generic call
81
88
  **/
82
89
  [key: string]: DecoratedCallBase<ApiType>;
83
90
  };
84
- /** 0xcbca25e39f142387/2 */
91
+ /** 0xcbca25e39f142387/ */
85
92
  babeApi: {
86
93
  /**
87
- * Return the genesis configuration for BABE. The configuration is only read on genesis.
94
+ * Return the configuration for BABE.
88
95
  **/
89
- configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
96
+ configuration: AugmentedCall<ApiType, () => Observable<SpConsensusBabeBabeConfiguration>>;
90
97
  /**
91
98
  * Returns information regarding the current epoch.
92
99
  **/
93
- currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
100
+ currentEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
94
101
  /**
95
102
  * Returns the slot that started the current epoch.
96
103
  **/
97
104
  currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
98
105
  /**
99
- * Generates a proof of key ownership for the given authority in the current epoch.
106
+ * Generates a proof of key ownership for the given authority in the, current epoch. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `slot` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the epoch for the given slot is live on-chain. Future, implementations will instead use indexed data through an offchain, worker, not requiring older states to be available.
100
107
  **/
101
- generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
108
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authority_id: SpConsensusBabeAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
102
109
  /**
103
- * Returns information regarding the next epoch (which was already previously announced).
110
+ * Returns information regarding the next epoch (which was already, previously announced).
104
111
  **/
105
- nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
112
+ nextEpoch: AugmentedCall<ApiType, () => Observable<SpConsensusBabeEpoch>>;
106
113
  /**
107
- * Submits an unsigned extrinsic to report an equivocation.
114
+ * Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
108
115
  **/
109
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
116
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusSlotsEquivocationProof | {
110
117
  offender?: any;
111
- slotNumber?: any;
118
+ slot?: any;
112
119
  firstHeader?: any;
113
120
  secondHeader?: any;
114
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
121
+ } | string | Uint8Array, key_owner_proof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
115
122
  /**
116
123
  * Generic call
117
124
  **/
118
125
  [key: string]: DecoratedCallBase<ApiType>;
119
126
  };
120
- /** 0x49eaaf1b548a0cb0/4 */
127
+ /** 0x49eaaf1b548a0cb0/ */
121
128
  beefyApi: {
122
129
  /**
123
130
  * Return the block number where BEEFY consensus is enabled/started
124
131
  **/
125
- beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
132
+ beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
126
133
  /**
127
- * Generates a proof of key ownership for the given authority in the given set.
134
+ * Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
128
135
  **/
129
- generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
136
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusBeefyEcdsaCryptoPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
130
137
  /**
131
- * Submits an unsigned extrinsic to report a double voting equivocation.
138
+ * Submits an unsigned extrinsic to report a double voting equivocation. The caller, must provide the double voting proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
132
139
  **/
133
- submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: SpConsensusBeefyDoubleVotingProof | {
140
+ submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | {
134
141
  first?: any;
135
142
  second?: any;
136
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
143
+ } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
137
144
  /**
138
145
  * Return the current active BEEFY validator set
139
146
  **/
140
- validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
147
+ validatorSet: AugmentedCall<ApiType, () => Observable<Option<SpConsensusBeefyValidatorSet>>>;
141
148
  /**
142
149
  * Generic call
143
150
  **/
144
151
  [key: string]: DecoratedCallBase<ApiType>;
145
152
  };
146
- /** 0x40fe3ad401f8959a/6 */
153
+ /** 0x40fe3ad401f8959a/ */
147
154
  blockBuilder: {
148
155
  /**
149
- * Apply the given extrinsic.
156
+ * Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
150
157
  **/
151
- applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
158
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
152
159
  /**
153
- * Check that the inherents are valid.
160
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
154
161
  **/
155
- checkInherents: AugmentedCall<ApiType, (block: Block | {
162
+ checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
156
163
  header?: any;
157
164
  extrinsics?: any;
158
- } | string | Uint8Array, data: InherentData | {
165
+ } | string | Uint8Array, data: SpInherentsInherentData | {
159
166
  data?: any;
160
- } | string | Uint8Array) => Observable<CheckInherentsResult>>;
167
+ } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
161
168
  /**
162
169
  * Finish the current block.
163
170
  **/
164
- finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
171
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
165
172
  /**
166
- * Generate inherent extrinsics.
173
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
167
174
  **/
168
- inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
175
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | {
169
176
  data?: any;
170
- } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
177
+ } | string | Uint8Array) => Observable<Vec<Bytes>>>;
171
178
  /**
172
179
  * Generic call
173
180
  **/
174
181
  [key: string]: DecoratedCallBase<ApiType>;
175
182
  };
176
- /** 0x68b66ba122c93fa7/2 */
183
+ /** 0x68b66ba122c93fa7/ */
177
184
  contractsApi: {
178
185
  /**
179
- * Perform a call from a specified account to a given contract.
186
+ * Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
180
187
  **/
181
- call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | {
188
+ call: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, dest: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | {
182
189
  refTime?: any;
183
190
  proofSize?: any;
184
- } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
191
+ } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable<{
192
+ readonly gasConsumed: SpWeightsWeightV2Weight;
193
+ readonly gasRequired: SpWeightsWeightV2Weight;
194
+ readonly storageDeposit: PalletContractsPrimitivesStorageDeposit;
195
+ readonly debugMessage: Bytes;
196
+ readonly result: Result<PalletContractsPrimitivesExecReturnValue, SpRuntimeDispatchError>;
197
+ readonly events: Option<Vec<FrameSystemEventRecord>>;
198
+ } & Struct>>;
185
199
  /**
186
- * Query a given storage key in a given contract.
200
+ * Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
187
201
  **/
188
- getStorage: AugmentedCall<ApiType, (address: AccountId | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
202
+ getStorage: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletContractsPrimitivesContractAccessError>>>;
189
203
  /**
190
- * Instantiate a new contract.
204
+ * Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
191
205
  **/
192
- instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | {
206
+ instantiate: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | {
193
207
  refTime?: any;
194
208
  proofSize?: any;
195
- } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | {
209
+ } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletContractsPrimitivesCode | {
196
210
  Upload: any;
197
211
  } | {
198
212
  Existing: any;
199
- } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
213
+ } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<PalletContractsPrimitivesContractResult>>;
200
214
  /**
201
- * Upload new code without instantiating a contract from it.
215
+ * Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
202
216
  **/
203
- uploadCode: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, code: Bytes | string | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber) => Observable<CodeUploadResult>>;
217
+ uploadCode: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, code: Bytes | string | Uint8Array, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => Observable<Result<PalletContractsPrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>>>;
204
218
  /**
205
219
  * Generic call
206
220
  **/
207
221
  [key: string]: DecoratedCallBase<ApiType>;
208
222
  };
209
- /** 0xdf6acb689907609b/5 */
223
+ /** 0xdf6acb689907609b/ */
210
224
  core: {
211
225
  /**
212
226
  * Execute the given block.
213
227
  **/
214
- executeBlock: AugmentedCall<ApiType, (block: Block | {
228
+ executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
215
229
  header?: any;
216
230
  extrinsics?: any;
217
231
  } | string | Uint8Array) => Observable<Null>>;
218
232
  /**
219
- * Initialize a block with the given header.
233
+ * Initialize a block with the given header and return the runtime executive mode.
220
234
  **/
221
- initializeBlock: AugmentedCall<ApiType, (header: Header | {
235
+ initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
222
236
  parentHash?: any;
223
237
  number?: any;
224
238
  stateRoot?: any;
225
239
  extrinsicsRoot?: any;
226
240
  digest?: any;
227
- } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
241
+ } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
228
242
  /**
229
243
  * Returns the version of the runtime.
230
244
  **/
231
- version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
245
+ version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
232
246
  /**
233
247
  * Generic call
234
248
  **/
235
249
  [key: string]: DecoratedCallBase<ApiType>;
236
250
  };
237
- /** 0xfbc577b9d747efd6/1 */
251
+ /** 0xfbc577b9d747efd6/ */
238
252
  genesisBuilder: {
239
253
  /**
240
- * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
254
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
241
255
  **/
242
- buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
256
+ buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
243
257
  /**
244
- * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
258
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
245
259
  **/
246
- createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
260
+ getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
261
+ /**
262
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
263
+ **/
264
+ presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
247
265
  /**
248
266
  * Generic call
249
267
  **/
250
268
  [key: string]: DecoratedCallBase<ApiType>;
251
269
  };
252
- /** 0xed99c5acb25eedf5/3 */
270
+ /** 0xed99c5acb25eedf5/ */
253
271
  grandpaApi: {
254
272
  /**
255
273
  * Get current GRANDPA authority set id.
256
274
  **/
257
- currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
275
+ currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
258
276
  /**
259
- * Generates a proof of key ownership for the given authority in the given set.
277
+ * Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
260
278
  **/
261
- generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
279
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
262
280
  /**
263
- * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
281
+ * Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
264
282
  **/
265
- grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
283
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
266
284
  /**
267
- * Submits an unsigned extrinsic to report an equivocation.
285
+ * Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
268
286
  **/
269
- submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
287
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | {
270
288
  setId?: any;
271
289
  equivocation?: any;
272
- } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
290
+ } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
273
291
  /**
274
292
  * Generic call
275
293
  **/
276
294
  [key: string]: DecoratedCallBase<ApiType>;
277
295
  };
278
- /** 0x37e397fc7c91f5e4/2 */
296
+ /** 0x37e397fc7c91f5e4/ */
279
297
  metadata: {
280
298
  /**
281
- * Returns the metadata of a runtime
299
+ * Returns the metadata of a runtime.
282
300
  **/
283
301
  metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
284
302
  /**
285
- * Returns the metadata at a given version.
303
+ * Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
286
304
  **/
287
305
  metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
288
306
  /**
289
- * Returns the supported metadata versions.
307
+ * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
290
308
  **/
291
309
  metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
292
310
  /**
@@ -294,124 +312,140 @@ declare module '@polkadot/api-base/types/calls' {
294
312
  **/
295
313
  [key: string]: DecoratedCallBase<ApiType>;
296
314
  };
297
- /** 0x6fd7c327202e4a8d/1 */
315
+ /** 0x6fd7c327202e4a8d/ */
298
316
  mixnetApi: {
299
317
  /**
300
- * Get the index and phase of the current session.
318
+ * Get the mixnode set for the current session.
301
319
  **/
302
- currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
320
+ currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Vec<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
303
321
  /**
304
- * Try to register a mixnode for the next session.
322
+ * Try to register a mixnode for the next session.,, If a registration extrinsic is submitted, `true` is returned. The caller should avoid, calling `maybe_register` again for a few blocks, to give the submitted extrinsic a, chance to get included.,, With the above exception, `maybe_register` is designed to be called every block. Most, of the time it will not do anything, for example:,, - If it is not an appropriate time to submit a registration extrinsic., - If the local node has already registered a mixnode for the next session., - If the local node is not permitted to register a mixnode for the next session.,, `session_index` should match `session_status().current_index`; if it does not, `false`, is returned immediately.
305
323
  **/
306
- maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: Mixnode | {
307
- externalAddresses?: any;
324
+ maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: SpMixnetMixnode | {
308
325
  kxPublic?: any;
309
326
  peerId?: any;
327
+ externalAddresses?: any;
310
328
  } | string | Uint8Array) => Observable<bool>>;
311
329
  /**
312
- * Get the index and phase of the current session.
330
+ * Get the mixnode set for the previous session.
313
331
  **/
314
- prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
332
+ prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Vec<SpMixnetMixnode>, SpMixnetMixnodesErr>>>;
315
333
  /**
316
334
  * Get the index and phase of the current session.
317
335
  **/
318
- sessionStatus: AugmentedCall<ApiType, () => Observable<SessionStatus>>;
336
+ sessionStatus: AugmentedCall<ApiType, () => Observable<SpMixnetSessionStatus>>;
319
337
  /**
320
338
  * Generic call
321
339
  **/
322
340
  [key: string]: DecoratedCallBase<ApiType>;
323
341
  };
324
- /** 0x91d5df18b0d2cf58/2 */
342
+ /** 0x91d5df18b0d2cf58/ */
325
343
  mmrApi: {
326
344
  /**
327
- * Generate MMR proof for the given block numbers.
345
+ * Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,, use historical MMR state at given block height `n`. Else, use current MMR state.
328
346
  **/
329
- generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
347
+ generateProof: AugmentedCall<ApiType, (block_numbers: Vec<u32> | (u32 | AnyNumber | Uint8Array)[], best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Result<ITuple<[Vec<Bytes>, SpMmrPrimitivesLeafProof]>, SpMmrPrimitivesError>>>;
330
348
  /**
331
349
  * Return the number of MMR blocks in the chain.
332
350
  **/
333
- mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
351
+ mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<u64, SpMmrPrimitivesError>>>;
334
352
  /**
335
353
  * Return the on-chain MMR root hash.
336
354
  **/
337
- mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
355
+ mmrRoot: AugmentedCall<ApiType, () => Observable<Result<H256, SpMmrPrimitivesError>>>;
338
356
  /**
339
- * Verify MMR proof against on-chain MMR.
357
+ * Verify MMR proof against on-chain MMR for a batch of leaves.,, Note this function will use on-chain MMR root hash and check if the proof matches the hash., Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
340
358
  **/
341
- verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
359
+ verifyProof: AugmentedCall<ApiType, (leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | {
342
360
  leafIndices?: any;
343
361
  leafCount?: any;
344
362
  items?: any;
345
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
363
+ } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
346
364
  /**
347
- * Verify MMR proof against given root hash.
365
+ * Verify MMR proof against given root hash for a batch of leaves.,, Note this function does not require any on-chain storage - the, proof is verified against given MMR root hash.,, Note, the leaves should be sorted such that corresponding leaves and leaf indices have the, same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]
348
366
  **/
349
- verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
367
+ verifyProofStateless: AugmentedCall<ApiType, (root: H256 | string | Uint8Array, leaves: Vec<Bytes> | (Bytes | string | Uint8Array)[], proof: SpMmrPrimitivesLeafProof | {
350
368
  leafIndices?: any;
351
369
  leafCount?: any;
352
370
  items?: any;
353
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
371
+ } | string | Uint8Array) => Observable<Result<Null, SpMmrPrimitivesError>>>;
354
372
  /**
355
373
  * Generic call
356
374
  **/
357
375
  [key: string]: DecoratedCallBase<ApiType>;
358
376
  };
359
- /** 0x899a250cbe84f250/1 */
377
+ /** 0x899a250cbe84f250/ */
360
378
  nftsApi: {
361
379
  /**
362
- * An attribute
380
+ *
363
381
  **/
364
- attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
382
+ attribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
365
383
  /**
366
- * A collection attribute
384
+ *
367
385
  **/
368
- collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
386
+ collectionAttribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
369
387
  /**
370
- * A collection owner
388
+ *
371
389
  **/
372
- collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
390
+ collectionOwner: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>>;
373
391
  /**
374
- * A custom attribute
392
+ *
375
393
  **/
376
- customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
394
+ customAttribute: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
377
395
  /**
378
- * Collection owner
396
+ *
379
397
  **/
380
- owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
398
+ owner: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>>;
381
399
  /**
382
- * System attribute
400
+ *
383
401
  **/
384
- systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
402
+ systemAttribute: AugmentedCall<ApiType, (collection: u32 | AnyNumber | Uint8Array, item: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
385
403
  /**
386
404
  * Generic call
387
405
  **/
388
406
  [key: string]: DecoratedCallBase<ApiType>;
389
407
  };
390
- /** 0x17a6bc0d0062aeb3/1 */
408
+ /** 0x17a6bc0d0062aeb3/ */
391
409
  nominationPoolsApi: {
392
410
  /**
393
411
  * Returns the equivalent points of `new_funds` for a given pool.
394
412
  **/
395
- balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
413
+ balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
396
414
  /**
397
- * Returns the pending rewards for the given member.
415
+ * Returns true if the delegated funds of the pool `member` needs migration.,, Once a pool has successfully migrated to the strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the, member can be migrated from pool account to the member's account. Use, [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation), to migrate the funds of the pool member.
398
416
  **/
399
- pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
417
+ memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
418
+ /**
419
+ * Returns the pending slash for a given pool member.
420
+ **/
421
+ memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
422
+ /**
423
+ * Returns the pending rewards for the member that the AccountId was given for.
424
+ **/
425
+ pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
400
426
  /**
401
427
  * Returns the equivalent balance of `points` for a given pool.
402
428
  **/
403
- pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
429
+ pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
430
+ /**
431
+ * Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool.
432
+ **/
433
+ poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
434
+ /**
435
+ * Returns the pending slash for a given pool.
436
+ **/
437
+ poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
404
438
  /**
405
439
  * Generic call
406
440
  **/
407
441
  [key: string]: DecoratedCallBase<ApiType>;
408
442
  };
409
- /** 0xf78b278be53f454c/2 */
443
+ /** 0xf78b278be53f454c/ */
410
444
  offchainWorkerApi: {
411
445
  /**
412
446
  * Starts the off-chain task for given block header.
413
447
  **/
414
- offchainWorker: AugmentedCall<ApiType, (header: Header | {
448
+ offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | {
415
449
  parentHash?: any;
416
450
  number?: any;
417
451
  stateRoot?: any;
@@ -423,14 +457,14 @@ declare module '@polkadot/api-base/types/calls' {
423
457
  **/
424
458
  [key: string]: DecoratedCallBase<ApiType>;
425
459
  };
426
- /** 0xab3c0572291feb8b/1 */
460
+ /** 0xab3c0572291feb8b/ */
427
461
  sessionKeys: {
428
462
  /**
429
- * Decode the given public session keys.
463
+ * Decode the given public session keys.,, Returns the list of public raw public keys + key type.
430
464
  **/
431
- decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
465
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
432
466
  /**
433
- * Generate a set of session keys with optionally using the given seed.
467
+ * Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
434
468
  **/
435
469
  generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
436
470
  /**
@@ -438,86 +472,94 @@ declare module '@polkadot/api-base/types/calls' {
438
472
  **/
439
473
  [key: string]: DecoratedCallBase<ApiType>;
440
474
  };
441
- /** 0x18ef58a3b67ba770/1 */
475
+ /** 0x18ef58a3b67ba770/ */
442
476
  stakingApi: {
477
+ /**
478
+ * Returns the page count of exposures for a validator `account` in a given era.
479
+ **/
480
+ erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
443
481
  /**
444
482
  * Returns the nominations quota for a nominator with a given balance.
445
483
  **/
446
- nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
484
+ nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
485
+ /**
486
+ * Returns true if validator `account` has pages to be claimed for the given era.
487
+ **/
488
+ pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
447
489
  /**
448
490
  * Generic call
449
491
  **/
450
492
  [key: string]: DecoratedCallBase<ApiType>;
451
493
  };
452
- /** 0xd2bc9897eed08f15/3 */
494
+ /** 0xd2bc9897eed08f15/ */
453
495
  taggedTransactionQueue: {
454
496
  /**
455
- * Validate the transaction.
497
+ * Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
456
498
  **/
457
- validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
499
+ validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
458
500
  /**
459
501
  * Generic call
460
502
  **/
461
503
  [key: string]: DecoratedCallBase<ApiType>;
462
504
  };
463
- /** 0x37c8bb1350a9a2a8/4 */
505
+ /** 0x37c8bb1350a9a2a8/ */
464
506
  transactionPaymentApi: {
465
507
  /**
466
- * The transaction fee details
508
+ *
467
509
  **/
468
- queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
510
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
469
511
  /**
470
- * The transaction info
512
+ *
471
513
  **/
472
- queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
514
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
473
515
  /**
474
- * Query the output of the current LengthToFee given some input
516
+ *
475
517
  **/
476
- queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
518
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
477
519
  /**
478
- * Query the output of the current WeightToFee given some input
520
+ *
479
521
  **/
480
- queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
522
+ queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
481
523
  refTime?: any;
482
524
  proofSize?: any;
483
- } | string | Uint8Array) => Observable<Balance>>;
525
+ } | string | Uint8Array) => Observable<u128>>;
484
526
  /**
485
527
  * Generic call
486
528
  **/
487
529
  [key: string]: DecoratedCallBase<ApiType>;
488
530
  };
489
- /** 0xf3ff14d5ab527059/3 */
531
+ /** 0xf3ff14d5ab527059/ */
490
532
  transactionPaymentCallApi: {
491
533
  /**
492
- * The call fee details
534
+ * Query fee details of a given encoded `Call`.
493
535
  **/
494
- queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
536
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
495
537
  /**
496
- * The call info
538
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
497
539
  **/
498
- queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
540
+ queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
499
541
  /**
500
- * Query the output of the current LengthToFee given some input
542
+ * Query the output of the current `LengthToFee` given some input.
501
543
  **/
502
- queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
544
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
503
545
  /**
504
- * Query the output of the current WeightToFee given some input
546
+ * Query the output of the current `WeightToFee` given some input.
505
547
  **/
506
- queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
548
+ queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | {
507
549
  refTime?: any;
508
550
  proofSize?: any;
509
- } | string | Uint8Array) => Observable<Balance>>;
551
+ } | string | Uint8Array) => Observable<u128>>;
510
552
  /**
511
553
  * Generic call
512
554
  **/
513
555
  [key: string]: DecoratedCallBase<ApiType>;
514
556
  };
515
- /** 0xbe9fb0c91a8046cf/1 */
557
+ /** 0xbe9fb0c91a8046cf/ */
516
558
  validateStatement: {
517
559
  /**
518
560
  * Validate the statement.
519
561
  **/
520
- valdateStatement: AugmentedCall<ApiType, (source: StatementStoreStatementSource | 'Chain' | 'Network' | 'Local' | number | Uint8Array, statement: SpStatementStoreStatement | {
562
+ validateStatement: AugmentedCall<ApiType, (source: SpStatementStoreRuntimeApiStatementSource | 'Chain' | 'Network' | 'Local' | number | Uint8Array, statement: SpStatementStoreStatement | {
521
563
  proof?: any;
522
564
  decryptionKey?: any;
523
565
  channel?: any;
@@ -525,7 +567,7 @@ declare module '@polkadot/api-base/types/calls' {
525
567
  numTopics?: any;
526
568
  topics?: any;
527
569
  data?: any;
528
- } | string | Uint8Array) => Observable<Result<StatementStoreValidStatement, StatementStoreInvalidStatement>>>;
570
+ } | string | Uint8Array) => Observable<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>>;
529
571
  /**
530
572
  * Generic call
531
573
  **/