@polkadot/api-augment 10.12.2 → 10.12.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.
- package/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +66 -52
- package/kusama/errors.d.ts +239 -25
- package/kusama/events.d.ts +325 -92
- package/kusama/query.d.ts +247 -90
- package/kusama/runtime.d.ts +2 -120
- package/kusama/tx.d.ts +402 -132
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +68 -47
- package/polkadot/errors.d.ts +186 -24
- package/polkadot/events.d.ts +267 -85
- package/polkadot/query.d.ts +276 -87
- package/polkadot/runtime.d.ts +16 -1
- package/polkadot/tx.d.ts +355 -90
- package/substrate/runtime.d.ts +4 -4
package/kusama/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, Vec,
|
|
3
|
+
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
6
6
|
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
@@ -12,10 +12,8 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
|
|
|
12
12
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
13
13
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
|
14
14
|
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
|
15
|
-
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
|
16
15
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
17
|
-
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot,
|
|
18
|
-
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
|
16
|
+
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight } from '@polkadot/types/interfaces/runtime';
|
|
19
17
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
20
18
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
21
19
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
@@ -293,122 +291,6 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
293
291
|
**/
|
|
294
292
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
295
293
|
};
|
|
296
|
-
/** 0xaf2c0297a23e6d3d/5 */
|
|
297
|
-
parachainHost: {
|
|
298
|
-
/**
|
|
299
|
-
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
|
300
|
-
**/
|
|
301
|
-
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
|
|
302
|
-
/**
|
|
303
|
-
* Yields information on all availability cores as relevant to the child block.
|
|
304
|
-
**/
|
|
305
|
-
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
|
|
306
|
-
/**
|
|
307
|
-
* Get a vector of events concerning candidates that occurred within a block.
|
|
308
|
-
**/
|
|
309
|
-
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
|
|
310
|
-
/**
|
|
311
|
-
* Get the receipt of a candidate pending availability.
|
|
312
|
-
**/
|
|
313
|
-
candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
|
|
314
|
-
/**
|
|
315
|
-
* Checks if the given validation outputs pass the acceptance criteria.
|
|
316
|
-
**/
|
|
317
|
-
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | {
|
|
318
|
-
upwardMessages?: any;
|
|
319
|
-
horizontalMessages?: any;
|
|
320
|
-
newValidationCode?: any;
|
|
321
|
-
headData?: any;
|
|
322
|
-
processedDownwardMessages?: any;
|
|
323
|
-
hrmpWatermark?: any;
|
|
324
|
-
} | string | Uint8Array) => Observable<bool>>;
|
|
325
|
-
/**
|
|
326
|
-
* Returns all onchain disputes.
|
|
327
|
-
**/
|
|
328
|
-
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
|
329
|
-
/**
|
|
330
|
-
* Get all the pending inbound messages in the downward message queue for a para.
|
|
331
|
-
**/
|
|
332
|
-
dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
|
|
333
|
-
/**
|
|
334
|
-
* Get the contents of all channels addressed to the given recipient.
|
|
335
|
-
**/
|
|
336
|
-
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
|
|
337
|
-
/**
|
|
338
|
-
* Returns a merkle proof of a validator session key
|
|
339
|
-
**/
|
|
340
|
-
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
|
341
|
-
/**
|
|
342
|
-
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
|
343
|
-
**/
|
|
344
|
-
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
|
|
345
|
-
/**
|
|
346
|
-
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
|
|
347
|
-
**/
|
|
348
|
-
persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
|
|
349
|
-
/**
|
|
350
|
-
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
|
351
|
-
**/
|
|
352
|
-
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
|
353
|
-
/**
|
|
354
|
-
* Returns execution parameters for the session.
|
|
355
|
-
**/
|
|
356
|
-
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
|
357
|
-
/**
|
|
358
|
-
* Returns the session index expected at a child of the block.
|
|
359
|
-
**/
|
|
360
|
-
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
|
|
361
|
-
/**
|
|
362
|
-
* Get the session info for the given session, if stored.
|
|
363
|
-
**/
|
|
364
|
-
sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
|
|
365
|
-
/**
|
|
366
|
-
* Submits a PVF pre-checking statement into the transaction pool.
|
|
367
|
-
**/
|
|
368
|
-
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | {
|
|
369
|
-
accept?: any;
|
|
370
|
-
subject?: any;
|
|
371
|
-
sessionIndex?: any;
|
|
372
|
-
validatorIndex?: any;
|
|
373
|
-
} | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
|
|
374
|
-
/**
|
|
375
|
-
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
|
|
376
|
-
**/
|
|
377
|
-
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | {
|
|
378
|
-
timeSlot?: any;
|
|
379
|
-
kind?: any;
|
|
380
|
-
validatorIndex?: any;
|
|
381
|
-
validatorId?: any;
|
|
382
|
-
} | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
383
|
-
/**
|
|
384
|
-
* Returns a list of validators that lost a past session dispute and need to be slashed
|
|
385
|
-
**/
|
|
386
|
-
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
|
|
387
|
-
/**
|
|
388
|
-
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
|
389
|
-
**/
|
|
390
|
-
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<ValidationCode>>;
|
|
391
|
-
/**
|
|
392
|
-
* Get the validation code from its hash.
|
|
393
|
-
**/
|
|
394
|
-
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
|
|
395
|
-
/**
|
|
396
|
-
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
|
397
|
-
**/
|
|
398
|
-
validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
|
|
399
|
-
/**
|
|
400
|
-
* Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
|
|
401
|
-
**/
|
|
402
|
-
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
|
|
403
|
-
/**
|
|
404
|
-
* Get the current validators.
|
|
405
|
-
**/
|
|
406
|
-
validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
|
|
407
|
-
/**
|
|
408
|
-
* Generic call
|
|
409
|
-
**/
|
|
410
|
-
[key: string]: DecoratedCallBase<ApiType>;
|
|
411
|
-
};
|
|
412
294
|
/** 0xab3c0572291feb8b/1 */
|
|
413
295
|
sessionKeys: {
|
|
414
296
|
/**
|