@polkadot/api-augment 8.10.1 → 8.11.3

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.
@@ -1,4 +1,5 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
2
+ export declare type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
2
3
  declare module '@polkadot/api-base/types/errors' {
3
4
  interface AugmentedErrors<ApiType extends ApiTypes> {
4
5
  auctions: {
@@ -493,6 +494,10 @@ declare module '@polkadot/api-base/types/errors' {
493
494
  * these are removed, either through `unvote` or `reap_vote`.
494
495
  **/
495
496
  VotesExist: AugmentedError<ApiType>;
497
+ /**
498
+ * Voting period too low
499
+ **/
500
+ VotingPeriodLow: AugmentedError<ApiType>;
496
501
  /**
497
502
  * Invalid upper bound.
498
503
  **/
@@ -1,9 +1,10 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
2
2
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
3
  import type { ITuple } from '@polkadot/types-codec/types';
4
4
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
5
5
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
6
  import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
7
8
  declare module '@polkadot/api-base/types/events' {
8
9
  interface AugmentedEvents<ApiType extends ApiTypes> {
9
10
  auctions: {
@@ -4,4 +4,5 @@ import './errors';
4
4
  import './events';
5
5
  import './query';
6
6
  import './registry';
7
+ import './runtime';
7
8
  import './tx';
package/polkadot/index.js CHANGED
@@ -6,4 +6,5 @@ import "./errors.js";
6
6
  import "./events.js";
7
7
  import "./query.js";
8
8
  import "./registry.js";
9
+ import "./runtime.js";
9
10
  import "./tx.js";
@@ -1,4 +1,4 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
2
2
  import type { Data } from '@polkadot/types';
3
3
  import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
@@ -6,6 +6,8 @@ import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
7
  import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
+ export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
10
+ export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
9
11
  declare module '@polkadot/api-base/types/storage' {
10
12
  interface AugmentedQueries<ApiType extends ApiTypes> {
11
13
  auctions: {
@@ -0,0 +1,390 @@
1
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
2
+ import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
3
+ import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
4
+ import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
5
+ import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
6
+ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
7
+ import type { BlockHash } from '@polkadot/types/interfaces/chain';
8
+ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
9
+ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
10
+ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
11
+ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
12
+ import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
13
+ import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
14
+ import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
15
+ import type { AccountId, Block, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
16
+ import type { SessionIndex } from '@polkadot/types/interfaces/session';
17
+ import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
18
+ import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
19
+ import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
20
+ import type { IExtrinsic, Observable } from '@polkadot/types/types';
21
+ export declare type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
22
+ export declare type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
23
+ declare module '@polkadot/api-base/types/calls' {
24
+ interface AugmentedCalls<ApiType extends ApiTypes> {
25
+ /** 0xbc9d89904f5b923f/1 */
26
+ accountNonceApi: {
27
+ /**
28
+ * The API to query account nonce (aka transaction index)
29
+ **/
30
+ accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
31
+ /**
32
+ * Generic call
33
+ **/
34
+ [key: string]: DecoratedCallBase<ApiType>;
35
+ };
36
+ /** 0x687ad44ad37f03c2/1 */
37
+ authorityDiscoveryApi: {
38
+ /**
39
+ * Retrieve authority identifiers of the current and next authority set.
40
+ **/
41
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
42
+ /**
43
+ * Generic call
44
+ **/
45
+ [key: string]: DecoratedCallBase<ApiType>;
46
+ };
47
+ /** 0xcbca25e39f142387/2 */
48
+ babeApi: {
49
+ /**
50
+ * Return the genesis configuration for BABE. The configuration is only read on genesis.
51
+ **/
52
+ configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
53
+ /**
54
+ * Returns information regarding the current epoch.
55
+ **/
56
+ currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
57
+ /**
58
+ * Returns the slot that started the current epoch.
59
+ **/
60
+ currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
61
+ /**
62
+ * Generates a proof of key ownership for the given authority in the current epoch.
63
+ **/
64
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
65
+ /**
66
+ * Returns information regarding the next epoch (which was already previously announced).
67
+ **/
68
+ nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
69
+ /**
70
+ * Submits an unsigned extrinsic to report an equivocation.
71
+ **/
72
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
73
+ offender?: any;
74
+ slotNumber?: any;
75
+ firstHeader?: any;
76
+ secondHeader?: any;
77
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
78
+ /**
79
+ * Generic call
80
+ **/
81
+ [key: string]: DecoratedCallBase<ApiType>;
82
+ };
83
+ /** 0x49eaaf1b548a0cb0/1 */
84
+ beefyApi: {
85
+ /**
86
+ * Return the current active BEEFY validator set
87
+ **/
88
+ validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
89
+ /**
90
+ * Generic call
91
+ **/
92
+ [key: string]: DecoratedCallBase<ApiType>;
93
+ };
94
+ /** 0x40fe3ad401f8959a/6 */
95
+ blockBuilder: {
96
+ /**
97
+ * Apply the given extrinsic.
98
+ **/
99
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
100
+ /**
101
+ * Check that the inherents are valid.
102
+ **/
103
+ checkInherents: AugmentedCall<ApiType, (block: Block | {
104
+ header?: any;
105
+ extrinsics?: any;
106
+ } | string | Uint8Array, data: InherentData | {
107
+ data?: any;
108
+ } | string | Uint8Array) => Observable<CheckInherentsResult>>;
109
+ /**
110
+ * Finish the current block.
111
+ **/
112
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
113
+ /**
114
+ * Generate inherent extrinsics.
115
+ **/
116
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
117
+ data?: any;
118
+ } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
119
+ /**
120
+ * Generic call
121
+ **/
122
+ [key: string]: DecoratedCallBase<ApiType>;
123
+ };
124
+ /** 0xdf6acb689907609b/4 */
125
+ core: {
126
+ /**
127
+ * Execute the given block.
128
+ **/
129
+ executeBlock: AugmentedCall<ApiType, (block: Block | {
130
+ header?: any;
131
+ extrinsics?: any;
132
+ } | string | Uint8Array) => Observable<Null>>;
133
+ /**
134
+ * Initialize a block with the given header.
135
+ **/
136
+ initializeBlock: AugmentedCall<ApiType, (header: Header | {
137
+ parentHash?: any;
138
+ number?: any;
139
+ stateRoot?: any;
140
+ extrinsicsRoot?: any;
141
+ digest?: any;
142
+ } | string | Uint8Array) => Observable<Null>>;
143
+ /**
144
+ * Returns the version of the runtime.
145
+ **/
146
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
147
+ /**
148
+ * Generic call
149
+ **/
150
+ [key: string]: DecoratedCallBase<ApiType>;
151
+ };
152
+ /** 0xed99c5acb25eedf5/3 */
153
+ grandpaApi: {
154
+ /**
155
+ * Get current GRANDPA authority set id.
156
+ **/
157
+ currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
158
+ /**
159
+ * Generates a proof of key ownership for the given authority in the given set.
160
+ **/
161
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
162
+ /**
163
+ * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
164
+ **/
165
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
166
+ /**
167
+ * Submits an unsigned extrinsic to report an equivocation.
168
+ **/
169
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
170
+ setId?: any;
171
+ equivocation?: any;
172
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
173
+ /**
174
+ * Generic call
175
+ **/
176
+ [key: string]: DecoratedCallBase<ApiType>;
177
+ };
178
+ /** 0x37e397fc7c91f5e4/1 */
179
+ metadata: {
180
+ /**
181
+ * Returns the metadata of a runtime
182
+ **/
183
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
184
+ /**
185
+ * Generic call
186
+ **/
187
+ [key: string]: DecoratedCallBase<ApiType>;
188
+ };
189
+ /** 0x91d5df18b0d2cf58/1 */
190
+ mmrApi: {
191
+ /**
192
+ * Generate MMR proof for a series of leaves under given indices.
193
+ **/
194
+ generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
195
+ /**
196
+ * Generate MMR proof for a leaf under given index.
197
+ **/
198
+ generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
199
+ /**
200
+ * Return the on-chain MMR root hash.
201
+ **/
202
+ mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
203
+ /**
204
+ * Verify MMR proof against on-chain MMR for a batch of leaves.
205
+ **/
206
+ verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
207
+ leafIndices?: any;
208
+ leafCount?: any;
209
+ items?: any;
210
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
211
+ /**
212
+ * Verify MMR proof against given root hash or a batch of leaves.
213
+ **/
214
+ verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
215
+ leafIndices?: any;
216
+ leafCount?: any;
217
+ items?: any;
218
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
219
+ /**
220
+ * Verify MMR proof against on-chain MMR.
221
+ **/
222
+ verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
223
+ leafIndex?: any;
224
+ leafCount?: any;
225
+ items?: any;
226
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
227
+ /**
228
+ * Verify MMR proof against given root hash.
229
+ **/
230
+ verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
231
+ leafIndex?: any;
232
+ leafCount?: any;
233
+ items?: any;
234
+ } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
235
+ /**
236
+ * Generic call
237
+ **/
238
+ [key: string]: DecoratedCallBase<ApiType>;
239
+ };
240
+ /** 0xf78b278be53f454c/2 */
241
+ offchainWorkerApi: {
242
+ /**
243
+ * Starts the off-chain task for given block header.
244
+ **/
245
+ offchainWorker: AugmentedCall<ApiType, (header: Header | {
246
+ parentHash?: any;
247
+ number?: any;
248
+ stateRoot?: any;
249
+ extrinsicsRoot?: any;
250
+ digest?: any;
251
+ } | string | Uint8Array) => Observable<Null>>;
252
+ /**
253
+ * Generic call
254
+ **/
255
+ [key: string]: DecoratedCallBase<ApiType>;
256
+ };
257
+ /** 0xaf2c0297a23e6d3d/2 */
258
+ parachainHost: {
259
+ /**
260
+ * Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
261
+ **/
262
+ assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
263
+ /**
264
+ * Yields information on all availability cores as relevant to the child block.
265
+ **/
266
+ availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
267
+ /**
268
+ * Get a vector of events concerning candidates that occurred within a block.
269
+ **/
270
+ candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
271
+ /**
272
+ * Get the receipt of a candidate pending availability.
273
+ **/
274
+ candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
275
+ /**
276
+ * Checks if the given validation outputs pass the acceptance criteria.
277
+ **/
278
+ checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | {
279
+ upwardMessages?: any;
280
+ horizontalMessages?: any;
281
+ newValidationCode?: any;
282
+ headData?: any;
283
+ processedDownwardMessages?: any;
284
+ hrmpWatermark?: any;
285
+ } | string | Uint8Array) => Observable<bool>>;
286
+ /**
287
+ * Get all the pending inbound messages in the downward message queue for a para.
288
+ **/
289
+ dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
290
+ /**
291
+ * Get the contents of all channels addressed to the given recipient.
292
+ **/
293
+ inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
294
+ /**
295
+ * Scrape dispute relevant from on-chain, backing votes and resolved disputes.
296
+ **/
297
+ onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
298
+ /**
299
+ * Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
300
+ **/
301
+ persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
302
+ /**
303
+ * Returns code hashes of PVFs that require pre-checking by validators in the active set.
304
+ **/
305
+ pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
306
+ /**
307
+ * Returns the session index expected at a child of the block.
308
+ **/
309
+ sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
310
+ /**
311
+ * Get the session info for the given session, if stored.
312
+ **/
313
+ sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
314
+ /**
315
+ * Submits a PVF pre-checking statement into the transaction pool.
316
+ **/
317
+ submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | {
318
+ accept?: any;
319
+ subject?: any;
320
+ sessionIndex?: any;
321
+ validatorIndex?: any;
322
+ } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
323
+ /**
324
+ * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
325
+ **/
326
+ validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<ValidationCode>>;
327
+ /**
328
+ * Get the validation code from its hash.
329
+ **/
330
+ validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
331
+ /**
332
+ * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
333
+ **/
334
+ validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
335
+ /**
336
+ * Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
337
+ **/
338
+ validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
339
+ /**
340
+ * Get the current validators.
341
+ **/
342
+ validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
343
+ /**
344
+ * Generic call
345
+ **/
346
+ [key: string]: DecoratedCallBase<ApiType>;
347
+ };
348
+ /** 0xab3c0572291feb8b/1 */
349
+ sessionKeys: {
350
+ /**
351
+ * Decode the given public session keys.
352
+ **/
353
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
354
+ /**
355
+ * Generate a set of session keys with optionally using the given seed.
356
+ **/
357
+ generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | object | string | Uint8Array) => Observable<Bytes>>;
358
+ /**
359
+ * Generic call
360
+ **/
361
+ [key: string]: DecoratedCallBase<ApiType>;
362
+ };
363
+ /** 0xd2bc9897eed08f15/3 */
364
+ taggedTransactionQueue: {
365
+ /**
366
+ * Validate the transaction.
367
+ **/
368
+ validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
369
+ /**
370
+ * Generic call
371
+ **/
372
+ [key: string]: DecoratedCallBase<ApiType>;
373
+ };
374
+ /** 0x37c8bb1350a9a2a8/1 */
375
+ transactionPaymentApi: {
376
+ /**
377
+ * The transaction fee details
378
+ **/
379
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
380
+ /**
381
+ * The transaction info
382
+ **/
383
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
384
+ /**
385
+ * Generic call
386
+ **/
387
+ [key: string]: DecoratedCallBase<ApiType>;
388
+ };
389
+ }
390
+ }
@@ -0,0 +1 @@
1
+ export {};
package/polkadot/tx.d.ts CHANGED
@@ -1,10 +1,13 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
2
2
  import type { Data } from '@polkadot/types';
3
3
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
7
  import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
+ export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
+ export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
+ export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
8
11
  declare module '@polkadot/api-base/types/submittable' {
9
12
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
10
13
  auctions: {
@@ -1271,8 +1274,9 @@ declare module '@polkadot/api-base/types/submittable' {
1271
1274
  * The dispatch of this call must be `FastTrackOrigin`.
1272
1275
  *
1273
1276
  * - `proposal_hash`: The hash of the current external proposal.
1274
- * - `voting_period`: The period that is allowed for voting on this proposal. Increased to
1275
- * `FastTrackVotingPeriod` if too low.
1277
+ * - `voting_period`: The period that is allowed for voting on this proposal.
1278
+ * Must be always greater than zero.
1279
+ * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
1276
1280
  * - `delay`: The number of block after voting has ended in approval and this should be
1277
1281
  * enacted. This doesn't have a minimum amount.
1278
1282
  *
@@ -1,8 +1,9 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
2
2
  import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
3
  import type { Codec } from '@polkadot/types-codec/types';
4
4
  import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
5
5
  import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
6
+ export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
6
7
  declare module '@polkadot/api-base/types/consts' {
7
8
  interface AugmentedConsts<ApiType extends ApiTypes> {
8
9
  alliance: {
@@ -1,4 +1,5 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
2
+ export declare type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
2
3
  declare module '@polkadot/api-base/types/errors' {
3
4
  interface AugmentedErrors<ApiType extends ApiTypes> {
4
5
  alliance: {
@@ -729,6 +730,10 @@ declare module '@polkadot/api-base/types/errors' {
729
730
  * these are removed, either through `unvote` or `reap_vote`.
730
731
  **/
731
732
  VotesExist: AugmentedError<ApiType>;
733
+ /**
734
+ * Voting period too low
735
+ **/
736
+ VotingPeriodLow: AugmentedError<ApiType>;
732
737
  /**
733
738
  * Invalid upper bound.
734
739
  **/
@@ -1,8 +1,9 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
2
2
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
3
  import type { ITuple } from '@polkadot/types-codec/types';
4
4
  import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
5
5
  import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
6
+ export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
6
7
  declare module '@polkadot/api-base/types/events' {
7
8
  interface AugmentedEvents<ApiType extends ApiTypes> {
8
9
  alliance: {
@@ -4,4 +4,5 @@ import './errors';
4
4
  import './events';
5
5
  import './query';
6
6
  import './registry';
7
+ import './runtime';
7
8
  import './tx';
@@ -6,4 +6,5 @@ import "./errors.js";
6
6
  import "./events.js";
7
7
  import "./query.js";
8
8
  import "./registry.js";
9
+ import "./runtime.js";
9
10
  import "./tx.js";
@@ -1,10 +1,12 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
2
2
  import type { Data } from '@polkadot/types';
3
3
  import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
6
6
  import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
7
7
  import type { Observable } from '@polkadot/types/types';
8
+ export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
9
+ export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
8
10
  declare module '@polkadot/api-base/types/storage' {
9
11
  interface AugmentedQueries<ApiType extends ApiTypes> {
10
12
  alliance: {