@pezkuwi/api-augment 16.5.5

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 (67) hide show
  1. package/README.md +3 -0
  2. package/build/base.d.ts +2 -0
  3. package/build/bundle.d.ts +2 -0
  4. package/build/index.d.ts +2 -0
  5. package/build/packageDetect.d.ts +1 -0
  6. package/build/packageInfo.d.ts +6 -0
  7. package/build/substrate/consts.d.ts +1876 -0
  8. package/build/substrate/errors.d.ts +3865 -0
  9. package/build/substrate/events.d.ts +4702 -0
  10. package/build/substrate/index.d.ts +8 -0
  11. package/build/substrate/query.d.ts +2767 -0
  12. package/build/substrate/registry.d.ts +1 -0
  13. package/build/substrate/runtime.d.ts +741 -0
  14. package/build/substrate/tx.d.ts +10869 -0
  15. package/package.json +32 -0
  16. package/src/assetHubKusama/consts.ts +1308 -0
  17. package/src/assetHubKusama/errors.ts +2779 -0
  18. package/src/assetHubKusama/events.ts +2296 -0
  19. package/src/assetHubKusama/index.ts +11 -0
  20. package/src/assetHubKusama/query.ts +2193 -0
  21. package/src/assetHubKusama/registry.ts +4 -0
  22. package/src/assetHubKusama/runtime.ts +518 -0
  23. package/src/assetHubKusama/tx.ts +6890 -0
  24. package/src/assetHubPolkadot/consts.ts +1125 -0
  25. package/src/assetHubPolkadot/errors.ts +2360 -0
  26. package/src/assetHubPolkadot/events.ts +2129 -0
  27. package/src/assetHubPolkadot/index.ts +11 -0
  28. package/src/assetHubPolkadot/query.ts +2002 -0
  29. package/src/assetHubPolkadot/registry.ts +4 -0
  30. package/src/assetHubPolkadot/runtime.ts +443 -0
  31. package/src/assetHubPolkadot/tx.ts +6242 -0
  32. package/src/base.ts +6 -0
  33. package/src/bundle.ts +6 -0
  34. package/src/index.ts +6 -0
  35. package/src/kusama/consts.ts +1035 -0
  36. package/src/kusama/errors.ts +2436 -0
  37. package/src/kusama/events.ts +1791 -0
  38. package/src/kusama/index.ts +11 -0
  39. package/src/kusama/query.ts +2505 -0
  40. package/src/kusama/registry.ts +6 -0
  41. package/src/kusama/runtime.ts +610 -0
  42. package/src/kusama/tx.ts +4725 -0
  43. package/src/mod.ts +4 -0
  44. package/src/packageDetect.ts +14 -0
  45. package/src/packageInfo.ts +6 -0
  46. package/src/polkadot/consts.ts +949 -0
  47. package/src/polkadot/errors.ts +2156 -0
  48. package/src/polkadot/events.ts +1600 -0
  49. package/src/polkadot/index.ts +11 -0
  50. package/src/polkadot/query.ts +2357 -0
  51. package/src/polkadot/registry.ts +5 -0
  52. package/src/polkadot/runtime.ts +621 -0
  53. package/src/polkadot/tx.ts +4240 -0
  54. package/src/substrate/consts.ts +1884 -0
  55. package/src/substrate/errors.ts +3873 -0
  56. package/src/substrate/events.ts +2889 -0
  57. package/src/substrate/index.ts +11 -0
  58. package/src/substrate/query.ts +2734 -0
  59. package/src/substrate/registry.ts +4 -0
  60. package/src/substrate/runtime.ts +593 -0
  61. package/src/substrate/tx.ts +8208 -0
  62. package/tsconfig.assetHubKusama.json +22 -0
  63. package/tsconfig.assetHubPolkadot.json +22 -0
  64. package/tsconfig.build.json +23 -0
  65. package/tsconfig.build.tsbuildinfo +1 -0
  66. package/tsconfig.kusama.json +22 -0
  67. package/tsconfig.polkadot.json +22 -0
@@ -0,0 +1,4 @@
1
+ // Copyright 2017-2025 @polkadot/api-augment authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import '@pezkuwi/types-augment/registry/assetHubKusama';
@@ -0,0 +1,518 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import '@polkadot/api-base/types/calls';
7
+
8
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@pezkuwi/api-base/types';
9
+ import type { Bytes, Null, Option, Result, Text, U256, U8aFixed, Vec, bool, u128, u32 } from '@pezkuwi/types-codec';
10
+ import type { AnyNumber, IMethod, ITuple } from '@pezkuwi/types-codec/types';
11
+ import type { Extrinsic } from '@pezkuwi/types/interfaces/extrinsics';
12
+ import type { OpaqueMetadata } from '@pezkuwi/types/interfaces/metadata';
13
+ import type { ParaId } from '@pezkuwi/types/interfaces/parachains';
14
+ import type { AccountId32, H160, H256, RuntimeCall, Slot, SlotDuration } from '@pezkuwi/types/interfaces/runtime';
15
+ import type { AssetHubKusamaRuntimeOriginCaller, AssetsCommonRuntimeApiFungiblesAccessError, CumulusPrimitivesCoreCollationInfo, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, PalletReviveEvmApiDebugRpcTypesTrace, PalletReviveEvmApiDebugRpcTypesTracerType, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpVersionRuntimeVersion, SpWeightsWeightV2Weight, StagingXcmV5Location, XcmRuntimeApisAuthorizedAliasesError, XcmRuntimeApisAuthorizedAliasesOriginAliaser, XcmRuntimeApisConversionsError, XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError, XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisFeesError, XcmRuntimeApisTrustedQueryError, XcmVersionedAsset, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@pezkuwi/types/lookup';
16
+ import type { IExtrinsic, Observable } from '@pezkuwi/types/types';
17
+
18
+ export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
19
+ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
20
+
21
+ declare module '@polkadot/api-base/types/calls' {
22
+ interface AugmentedCalls<ApiType extends ApiTypes> {
23
+ /** 0xbc9d89904f5b923f/ */
24
+ accountNonceApi: {
25
+ /**
26
+ * Get current account nonce of given `AccountId`.
27
+ **/
28
+ accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
29
+ /**
30
+ * Generic call
31
+ **/
32
+ [key: string]: DecoratedCallBase<ApiType>;
33
+ };
34
+ /** 0x8a8047a53a8277ec/ */
35
+ assetConversionApi: {
36
+ /**
37
+ * Returns the size of the liquidity pool for the given asset pair.
38
+ **/
39
+ getReserves: AugmentedCall<ApiType, (asset1: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array) => Observable<Option<ITuple<[u128, u128]>>>>;
40
+ /**
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.)
42
+ **/
43
+ quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
44
+ /**
45
+ * 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.)
46
+ **/
47
+ quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, asset2: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<u128>>>;
48
+ /**
49
+ * Generic call
50
+ **/
51
+ [key: string]: DecoratedCallBase<ApiType>;
52
+ };
53
+ /** 0xdd718d5cc53262d4/ */
54
+ auraApi: {
55
+ /**
56
+ * Return the current set of authorities.
57
+ **/
58
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>>;
59
+ /**
60
+ * Returns the slot duration for Aura.,, Currently, only the value provided by this type at genesis will be used.
61
+ **/
62
+ slotDuration: AugmentedCall<ApiType, () => Observable<SlotDuration>>;
63
+ /**
64
+ * Generic call
65
+ **/
66
+ [key: string]: DecoratedCallBase<ApiType>;
67
+ };
68
+ /** 0xd7bdd8a272ca0d65/ */
69
+ auraUnincludedSegmentApi: {
70
+ /**
71
+ * Whether it is legal to extend the chain, assuming the given block is the most, recently included one as-of the relay parent that will be built against, and, the given relay chain slot.,, This should be consistent with the logic the runtime uses when validating blocks to, avoid issues.,, When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block, whose state we are querying against, this must always return `true` as long as the slot, is more recent than the included block itself.
72
+ **/
73
+ canBuildUpon: AugmentedCall<ApiType, (included_hash: H256 | string | Uint8Array, slot: Slot | AnyNumber | Uint8Array) => Observable<bool>>;
74
+ /**
75
+ * Generic call
76
+ **/
77
+ [key: string]: DecoratedCallBase<ApiType>;
78
+ };
79
+ /** 0x12c8e3d4d7e06de0/ */
80
+ authorizedAliasersApi: {
81
+ /**
82
+ * Returns locations allowed to alias into and act as `target`.
83
+ **/
84
+ authorizedAliasers: AugmentedCall<ApiType, (target: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<Vec<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>>;
85
+ /**
86
+ * Returns whether `origin` is allowed to alias into and act as `target`.
87
+ **/
88
+ isAuthorizedAlias: AugmentedCall<ApiType, (origin: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, target: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<bool, XcmRuntimeApisAuthorizedAliasesError>>>;
89
+ /**
90
+ * Generic call
91
+ **/
92
+ [key: string]: DecoratedCallBase<ApiType>;
93
+ };
94
+ /** 0x40fe3ad401f8959a/ */
95
+ blockBuilder: {
96
+ /**
97
+ * Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
98
+ **/
99
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
100
+ /**
101
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
102
+ **/
103
+ checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
104
+ /**
105
+ * Finish the current block.
106
+ **/
107
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
108
+ /**
109
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
110
+ **/
111
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
112
+ /**
113
+ * Generic call
114
+ **/
115
+ [key: string]: DecoratedCallBase<ApiType>;
116
+ };
117
+ /** 0xea93e3f16f3d6962/ */
118
+ collectCollationInfo: {
119
+ /**
120
+ * Collect information about a collation.,, The given `header` is the header of the built block for that, we are collecting the collation info for.
121
+ **/
122
+ collectCollationInfo: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<CumulusPrimitivesCoreCollationInfo>>;
123
+ /**
124
+ * Generic call
125
+ **/
126
+ [key: string]: DecoratedCallBase<ApiType>;
127
+ };
128
+ /** 0xdf6acb689907609b/ */
129
+ core: {
130
+ /**
131
+ * Execute the given block.
132
+ **/
133
+ executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
134
+ /**
135
+ * Initialize a block with the given header and return the runtime executive mode.
136
+ **/
137
+ initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
138
+ /**
139
+ * Returns the version of the runtime.
140
+ **/
141
+ version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
142
+ /**
143
+ * Generic call
144
+ **/
145
+ [key: string]: DecoratedCallBase<ApiType>;
146
+ };
147
+ /** 0x91b1c8b16328eb92/ */
148
+ dryRunApi: {
149
+ /**
150
+ * Dry run call V2.
151
+ **/
152
+ dryRunCall: AugmentedCall<ApiType, (origin: AssetHubKusamaRuntimeOriginCaller | { system: any } | { PolkadotXcm: any } | { CumulusXcm: any } | { Origins: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array, result_xcms_version: u32 | AnyNumber | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
153
+ /**
154
+ * Dry run XCM program
155
+ **/
156
+ dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
157
+ /**
158
+ * Generic call
159
+ **/
160
+ [key: string]: DecoratedCallBase<ApiType>;
161
+ };
162
+ /** 0xde92b8a0426b9bf6/ */
163
+ fungiblesApi: {
164
+ /**
165
+ * Returns the list of all [`Asset`] that an `AccountId` has.
166
+ **/
167
+ queryAccountBalances: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>>;
168
+ /**
169
+ * Generic call
170
+ **/
171
+ [key: string]: DecoratedCallBase<ApiType>;
172
+ };
173
+ /** 0xfbc577b9d747efd6/ */
174
+ genesisBuilder: {
175
+ /**
176
+ * 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.
177
+ **/
178
+ buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
179
+ /**
180
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function should return 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, exist. 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.
181
+ **/
182
+ getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
183
+ /**
184
+ * 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.
185
+ **/
186
+ presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
187
+ /**
188
+ * Generic call
189
+ **/
190
+ [key: string]: DecoratedCallBase<ApiType>;
191
+ };
192
+ /** 0xa2ddb6a58477bf63/ */
193
+ getParachainInfo: {
194
+ /**
195
+ * Retrieve the parachain id used for runtime.
196
+ **/
197
+ parachainId: AugmentedCall<ApiType, () => Observable<ParaId>>;
198
+ /**
199
+ * Generic call
200
+ **/
201
+ [key: string]: DecoratedCallBase<ApiType>;
202
+ };
203
+ /** 0x9ffb505aa738d69c/ */
204
+ locationToAccountApi: {
205
+ /**
206
+ * Converts `Location` to `AccountId`.
207
+ **/
208
+ convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
209
+ /**
210
+ * Generic call
211
+ **/
212
+ [key: string]: DecoratedCallBase<ApiType>;
213
+ };
214
+ /** 0x37e397fc7c91f5e4/ */
215
+ metadata: {
216
+ /**
217
+ * Returns the metadata of a runtime.
218
+ **/
219
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
220
+ /**
221
+ * 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.
222
+ **/
223
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
224
+ /**
225
+ * Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
226
+ **/
227
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
228
+ /**
229
+ * Generic call
230
+ **/
231
+ [key: string]: DecoratedCallBase<ApiType>;
232
+ };
233
+ /** 0x17a6bc0d0062aeb3/ */
234
+ nominationPoolsApi: {
235
+ /**
236
+ * Returns the equivalent points of `new_funds` for a given pool.
237
+ **/
238
+ balanceToPoints: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, new_funds: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
239
+ /**
240
+ * 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.
241
+ **/
242
+ memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
243
+ /**
244
+ * Returns the pending slash for a given pool member.,, If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on, chain.
245
+ **/
246
+ memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
247
+ /**
248
+ * Returns the total contribution of a pool member including any balance that is unbonding.
249
+ **/
250
+ memberTotalBalance: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
251
+ /**
252
+ * Returns the pending rewards for the member that the AccountId was given for.
253
+ **/
254
+ pendingRewards: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
255
+ /**
256
+ * Returns the equivalent balance of `points` for a given pool.
257
+ **/
258
+ pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
259
+ /**
260
+ * Returns the bonded account and reward account associated with the pool_id.
261
+ **/
262
+ poolAccounts: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<ITuple<[AccountId32, AccountId32]>>>;
263
+ /**
264
+ * Total balance contributed to the pool.
265
+ **/
266
+ poolBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
267
+ /**
268
+ * 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.
269
+ **/
270
+ poolNeedsDelegateMigration: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<bool>>;
271
+ /**
272
+ * Returns the pending slash for a given pool.
273
+ **/
274
+ poolPendingSlash: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
275
+ /**
276
+ * Generic call
277
+ **/
278
+ [key: string]: DecoratedCallBase<ApiType>;
279
+ };
280
+ /** 0xf78b278be53f454c/ */
281
+ offchainWorkerApi: {
282
+ /**
283
+ * Starts the off-chain task for given block header.
284
+ **/
285
+ offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
286
+ /**
287
+ * Generic call
288
+ **/
289
+ [key: string]: DecoratedCallBase<ApiType>;
290
+ };
291
+ /** 0x04e70521a0d3d2f8/ */
292
+ relayParentOffsetApi: {
293
+ /**
294
+ * Fetch the slot offset that is expected from the relay chain.
295
+ **/
296
+ relayParentOffset: AugmentedCall<ApiType, () => Observable<u32>>;
297
+ /**
298
+ * Generic call
299
+ **/
300
+ [key: string]: DecoratedCallBase<ApiType>;
301
+ };
302
+ /** 0x8c403e5c4a9fd442/ */
303
+ reviveApi: {
304
+ /**
305
+ * Get the H160 address associated to this account id
306
+ **/
307
+ address: AugmentedCall<ApiType, (account_id: AccountId32 | string | Uint8Array) => Observable<H160>>;
308
+ /**
309
+ * Returns the free balance of the given `[H160]` address, using EVM decimals.
310
+ **/
311
+ balance: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<U256>>;
312
+ /**
313
+ * The address of the validator that produced the current block.
314
+ **/
315
+ blockAuthor: AugmentedCall<ApiType, () => Observable<Option<H160>>>;
316
+ /**
317
+ * Returns the block gas limit.
318
+ **/
319
+ blockGasLimit: AugmentedCall<ApiType, () => Observable<U256>>;
320
+ /**
321
+ * Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
322
+ **/
323
+ call: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, dest: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable<PalletRevivePrimitivesContractResultExecReturnValue>>;
324
+ /**
325
+ * The code at the specified address taking pre-compiles into account.
326
+ **/
327
+ code: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<Bytes>>;
328
+ /**
329
+ * Perform an Ethereum call.,, See [`crate::Pallet::dry_run_eth_transact`]
330
+ **/
331
+ ethTransact: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | { accessList?: any; blobVersionedHashes?: any; blobs?: any; chainId?: any; from?: any; gas?: any; gasPrice?: any; input?: any; maxFeePerBlobGas?: any; maxFeePerGas?: any; maxPriorityFeePerGas?: any; nonce?: any; to?: any; r_type?: any; value?: any } | string | Uint8Array) => Observable<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>>;
332
+ /**
333
+ * Returns the gas price.
334
+ **/
335
+ gasPrice: AugmentedCall<ApiType, () => Observable<U256>>;
336
+ /**
337
+ * 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.
338
+ **/
339
+ getStorage: AugmentedCall<ApiType, (address: H160 | string | Uint8Array, key: U8aFixed | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletRevivePrimitivesContractAccessError>>>;
340
+ /**
341
+ * Query a given variable-sized 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.
342
+ **/
343
+ getStorageVarKey: AugmentedCall<ApiType, (address: H160 | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletRevivePrimitivesContractAccessError>>>;
344
+ /**
345
+ * Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
346
+ **/
347
+ instantiate: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletRevivePrimitivesCode | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Option<U8aFixed> | null | Uint8Array | U8aFixed | string) => Observable<PalletRevivePrimitivesContractResultInstantiateReturnValue>>;
348
+ /**
349
+ * Returns the nonce of the given `[H160]` address.
350
+ **/
351
+ nonce: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<u32>>;
352
+ /**
353
+ * The address used to call the runtime's pallets dispatchables
354
+ **/
355
+ runtimePalletsAddress: AugmentedCall<ApiType, () => Observable<H160>>;
356
+ /**
357
+ * Traces the execution of an entire block and returns call traces.,, This is intended to be called through `state_call` to replay the block from the, parent block.,, See eth-rpc `debug_traceBlockByNumber` for usage.
358
+ **/
359
+ traceBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | { CallTracer: any } | { PrestateTracer: any } | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesTrace]>>>>;
360
+ /**
361
+ * Dry run and return the trace of the given call.,, See eth-rpc `debug_traceCall` for usage.
362
+ **/
363
+ traceCall: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | { accessList?: any; blobVersionedHashes?: any; blobs?: any; chainId?: any; from?: any; gas?: any; gasPrice?: any; input?: any; maxFeePerBlobGas?: any; maxFeePerGas?: any; maxPriorityFeePerGas?: any; nonce?: any; to?: any; r_type?: any; value?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | { CallTracer: any } | { PrestateTracer: any } | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>>;
364
+ /**
365
+ * Traces the execution of a specific transaction within a block.,, This is intended to be called through `state_call` to replay the block from the, parent hash up to the transaction.,, See eth-rpc `debug_traceTransaction` for usage.
366
+ **/
367
+ traceTx: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | { CallTracer: any } | { PrestateTracer: any } | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesTrace>>>;
368
+ /**
369
+ * Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
370
+ **/
371
+ uploadCode: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, code: Bytes | string | Uint8Array, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber) => Observable<Result<PalletRevivePrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>>>;
372
+ /**
373
+ * Generic call
374
+ **/
375
+ [key: string]: DecoratedCallBase<ApiType>;
376
+ };
377
+ /** 0xccd9de6396c899ca/ */
378
+ runtimeViewFunction: {
379
+ /**
380
+ * Execute a view function query.
381
+ **/
382
+ executeViewFunction: AugmentedCall<ApiType, (query_id: FrameSupportViewFunctionsViewFunctionId | { prefix?: any; suffix?: any } | string | Uint8Array, input: Bytes | string | Uint8Array) => Observable<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>>;
383
+ /**
384
+ * Generic call
385
+ **/
386
+ [key: string]: DecoratedCallBase<ApiType>;
387
+ };
388
+ /** 0xab3c0572291feb8b/ */
389
+ sessionKeys: {
390
+ /**
391
+ * Decode the given public session keys.,, Returns the list of public raw public keys + key type.
392
+ **/
393
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
394
+ /**
395
+ * 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.
396
+ **/
397
+ generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
398
+ /**
399
+ * Generic call
400
+ **/
401
+ [key: string]: DecoratedCallBase<ApiType>;
402
+ };
403
+ /** 0x18ef58a3b67ba770/ */
404
+ stakingApi: {
405
+ /**
406
+ * Returns the page count of exposures for a validator `account` in a given era.
407
+ **/
408
+ erasStakersPageCount: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<u32>>;
409
+ /**
410
+ * Returns the nominations quota for a nominator with a given balance.
411
+ **/
412
+ nominationsQuota: AugmentedCall<ApiType, (balance: u128 | AnyNumber | Uint8Array) => Observable<u32>>;
413
+ /**
414
+ * Returns true if validator `account` has pages to be claimed for the given era.
415
+ **/
416
+ pendingRewards: AugmentedCall<ApiType, (era: u32 | AnyNumber | Uint8Array, account: AccountId32 | string | Uint8Array) => Observable<bool>>;
417
+ /**
418
+ * Generic call
419
+ **/
420
+ [key: string]: DecoratedCallBase<ApiType>;
421
+ };
422
+ /** 0xd2bc9897eed08f15/ */
423
+ taggedTransactionQueue: {
424
+ /**
425
+ * 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.
426
+ **/
427
+ validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
428
+ /**
429
+ * Generic call
430
+ **/
431
+ [key: string]: DecoratedCallBase<ApiType>;
432
+ };
433
+ /** 0x37c8bb1350a9a2a8/ */
434
+ transactionPaymentApi: {
435
+ /**
436
+ *
437
+ **/
438
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
439
+ /**
440
+ *
441
+ **/
442
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
443
+ /**
444
+ *
445
+ **/
446
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
447
+ /**
448
+ *
449
+ **/
450
+ queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
451
+ /**
452
+ * Generic call
453
+ **/
454
+ [key: string]: DecoratedCallBase<ApiType>;
455
+ };
456
+ /** 0xf3ff14d5ab527059/ */
457
+ transactionPaymentCallApi: {
458
+ /**
459
+ * Query fee details of a given encoded `Call`.
460
+ **/
461
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
462
+ /**
463
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
464
+ **/
465
+ queryCallInfo: AugmentedCall<ApiType, (call: RuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
466
+ /**
467
+ * Query the output of the current `LengthToFee` given some input.
468
+ **/
469
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
470
+ /**
471
+ * Query the output of the current `WeightToFee` given some input.
472
+ **/
473
+ queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
474
+ /**
475
+ * Generic call
476
+ **/
477
+ [key: string]: DecoratedCallBase<ApiType>;
478
+ };
479
+ /** 0x2609be83ac4468dc/ */
480
+ trustedQueryApi: {
481
+ /**
482
+ * Returns if the location is a trusted reserve for the asset.,, # Arguments, * `asset`: `VersionedAsset`., * `location`: `VersionedLocation`.
483
+ **/
484
+ isTrustedReserve: AugmentedCall<ApiType, (asset: XcmVersionedAsset | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<bool, XcmRuntimeApisTrustedQueryError>>>;
485
+ /**
486
+ * Returns if the asset can be teleported to the location.,, # Arguments, * `asset`: `VersionedAsset`., * `location`: `VersionedLocation`.
487
+ **/
488
+ isTrustedTeleporter: AugmentedCall<ApiType, (asset: XcmVersionedAsset | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<bool, XcmRuntimeApisTrustedQueryError>>>;
489
+ /**
490
+ * Generic call
491
+ **/
492
+ [key: string]: DecoratedCallBase<ApiType>;
493
+ };
494
+ /** 0x6ff52ee858e6c5bd/ */
495
+ xcmPaymentApi: {
496
+ /**
497
+ * Returns a list of acceptable payment assets.,, # Arguments,, * `xcm_version`: Version.
498
+ **/
499
+ queryAcceptablePaymentAssets: AugmentedCall<ApiType, (xcm_version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>>;
500
+ /**
501
+ * Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
502
+ **/
503
+ queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
504
+ /**
505
+ * Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
506
+ **/
507
+ queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
508
+ /**
509
+ * Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
510
+ **/
511
+ queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
512
+ /**
513
+ * Generic call
514
+ **/
515
+ [key: string]: DecoratedCallBase<ApiType>;
516
+ };
517
+ } // AugmentedCalls
518
+ } // declare module