@polkadot/api-augment 7.2.2-6 → 7.3.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.
- package/detectPackage.cjs +1 -1
- package/detectPackage.js +1 -1
- package/kusama/query.d.ts +9 -4
- package/kusama/tx.d.ts +40 -9
- package/package.json +10 -10
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/polkadot/query.d.ts +9 -4
- package/polkadot/tx.d.ts +40 -9
- package/substrate/consts.d.ts +21 -1
- package/substrate/query.d.ts +2 -2
- package/substrate/tx.d.ts +3 -4
package/detectPackage.cjs
CHANGED
|
@@ -11,4 +11,4 @@ var _packageInfo = require("./packageInfo.cjs");
|
|
|
11
11
|
// Copyright 2017-2022 @polkadot/api-augment authors & contributors
|
|
12
12
|
// SPDX-License-Identifier: Apache-2.0
|
|
13
13
|
// Do not edit, auto-generated by @polkadot/dev
|
|
14
|
-
(0, _util.detectPackage)(_packageInfo.packageInfo,
|
|
14
|
+
(0, _util.detectPackage)(_packageInfo.packageInfo, null, _detectOther.default);
|
package/detectPackage.js
CHANGED
package/kusama/query.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
2
|
import type { Data } from '@polkadot/types';
|
|
3
|
-
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
|
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';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes,
|
|
7
|
+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
declare module '@polkadot/api-base/types/storage' {
|
|
10
10
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
@@ -260,6 +260,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
260
260
|
* The active configuration for the current session.
|
|
261
261
|
**/
|
|
262
262
|
activeConfig: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsConfigurationHostConfiguration>, []> & QueryableStorageEntry<ApiType, []>;
|
|
263
|
+
/**
|
|
264
|
+
* If this is set, then the configuration setters will bypass the consistency checks. This
|
|
265
|
+
* is meant to be used only as the last resort.
|
|
266
|
+
**/
|
|
267
|
+
bypassConsistencyCheck: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
263
268
|
/**
|
|
264
269
|
* Pending configuration (if any) for the next session.
|
|
265
270
|
*
|
|
@@ -773,7 +778,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
773
778
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
774
779
|
};
|
|
775
780
|
multisig: {
|
|
776
|
-
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[
|
|
781
|
+
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[WrapperKeepOpaque<Call>, AccountId32, u128]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
777
782
|
/**
|
|
778
783
|
* The set of open multisig operations.
|
|
779
784
|
**/
|
|
@@ -1080,7 +1085,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1080
1085
|
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
|
1081
1086
|
* Does not have any entries before the session index in the first session change notification.
|
|
1082
1087
|
**/
|
|
1083
|
-
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1088
|
+
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1084
1089
|
/**
|
|
1085
1090
|
* Generic query
|
|
1086
1091
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
2
|
import type { Data } from '@polkadot/types';
|
|
3
|
-
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, 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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData,
|
|
7
|
+
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
8
|
declare module '@polkadot/api-base/types/submittable' {
|
|
9
9
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
10
10
|
auctions: {
|
|
@@ -549,6 +549,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
549
549
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
550
550
|
};
|
|
551
551
|
configuration: {
|
|
552
|
+
/**
|
|
553
|
+
* Setting this to true will disable consistency checks for the configuration setters.
|
|
554
|
+
* Use with caution.
|
|
555
|
+
**/
|
|
556
|
+
setBypassConsistencyCheck: AugmentedSubmittable<(updated: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
552
557
|
/**
|
|
553
558
|
* Set the availability period for parachains.
|
|
554
559
|
**/
|
|
@@ -665,6 +670,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
665
670
|
/**
|
|
666
671
|
* Sets the minimum delay between announcing the upgrade block for a parachain until the
|
|
667
672
|
* upgrade taking place.
|
|
673
|
+
*
|
|
674
|
+
* See the field documentation for information and constraints for the new value.
|
|
668
675
|
**/
|
|
669
676
|
setMinimumValidationUpgradeDelay: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
670
677
|
/**
|
|
@@ -717,13 +724,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
717
724
|
**/
|
|
718
725
|
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
719
726
|
/**
|
|
720
|
-
* Set the validation upgrade
|
|
727
|
+
* Set the validation upgrade cooldown.
|
|
721
728
|
**/
|
|
722
|
-
|
|
729
|
+
setValidationUpgradeCooldown: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
723
730
|
/**
|
|
724
|
-
* Set the validation upgrade
|
|
731
|
+
* Set the validation upgrade delay.
|
|
725
732
|
**/
|
|
726
|
-
|
|
733
|
+
setValidationUpgradeDelay: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
727
734
|
/**
|
|
728
735
|
* Set the zeroth delay tranche width.
|
|
729
736
|
**/
|
|
@@ -2168,7 +2175,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2168
2175
|
* - Plus Call Weight
|
|
2169
2176
|
* # </weight>
|
|
2170
2177
|
**/
|
|
2171
|
-
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call:
|
|
2178
|
+
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
|
2172
2179
|
/**
|
|
2173
2180
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
2174
2181
|
*
|
|
@@ -2250,6 +2257,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2250
2257
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2251
2258
|
};
|
|
2252
2259
|
paras: {
|
|
2260
|
+
/**
|
|
2261
|
+
* Adds the validation code to the storage.
|
|
2262
|
+
*
|
|
2263
|
+
* The code will not be added if it is already present. Additionally, if PVF pre-checking
|
|
2264
|
+
* is running for that code, it will be instantly accepted.
|
|
2265
|
+
*
|
|
2266
|
+
* Otherwise, the code will be added into the storage. Note that the code will be added
|
|
2267
|
+
* into storage with reference count 0. This is to account the fact that there are no users
|
|
2268
|
+
* for this code yet. The caller will have to make sure that this code eventually gets
|
|
2269
|
+
* used by some parachain or removed from the storage to avoid storage leaks. For the latter
|
|
2270
|
+
* prefer to use the `poke_unused_validation_code` dispatchable to raw storage manipulation.
|
|
2271
|
+
*
|
|
2272
|
+
* This function is mainly meant to be used for upgrading parachains that do not follow
|
|
2273
|
+
* the go-ahead signal while the PVF pre-checking feature is enabled.
|
|
2274
|
+
**/
|
|
2275
|
+
addTrustedValidationCode: AugmentedSubmittable<(validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
2253
2276
|
/**
|
|
2254
2277
|
* Note a new block head for para within the context of the current block.
|
|
2255
2278
|
**/
|
|
@@ -2276,12 +2299,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2276
2299
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
2277
2300
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
2278
2301
|
**/
|
|
2279
|
-
includePvfCheckStatement: AugmentedSubmittable<(stmt:
|
|
2302
|
+
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV2PvfCheckStatement | {
|
|
2280
2303
|
accept?: any;
|
|
2281
2304
|
subject?: any;
|
|
2282
2305
|
sessionIndex?: any;
|
|
2283
2306
|
validatorIndex?: any;
|
|
2284
|
-
} | string | Uint8Array, signature: PolkadotPrimitivesV0ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2307
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV0ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV0ValidatorAppSignature]>;
|
|
2308
|
+
/**
|
|
2309
|
+
* Remove the validation code from the storage iff the reference count is 0.
|
|
2310
|
+
*
|
|
2311
|
+
* This is better than removing the storage directly, because it will not remove the code
|
|
2312
|
+
* that was suddenly got used by some parachain while this dispatchable was pending
|
|
2313
|
+
* dispatching.
|
|
2314
|
+
**/
|
|
2315
|
+
pokeUnusedValidationCode: AugmentedSubmittable<(validationCodeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2285
2316
|
/**
|
|
2286
2317
|
* Generic tx
|
|
2287
2318
|
**/
|
package/package.json
CHANGED
|
@@ -20,17 +20,8 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "7.
|
|
23
|
+
"version": "7.3.1",
|
|
24
24
|
"main": "index.cjs",
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.16.7",
|
|
27
|
-
"@polkadot/api-base": "7.2.2-6",
|
|
28
|
-
"@polkadot/rpc-augment": "7.2.2-6",
|
|
29
|
-
"@polkadot/types": "7.2.2-6",
|
|
30
|
-
"@polkadot/types-augment": "7.2.2-6",
|
|
31
|
-
"@polkadot/types-codec": "7.2.2-6",
|
|
32
|
-
"@polkadot/util": "^8.2.3-29"
|
|
33
|
-
},
|
|
34
25
|
"module": "index.js",
|
|
35
26
|
"types": "index.d.ts",
|
|
36
27
|
"exports": {
|
|
@@ -157,5 +148,14 @@
|
|
|
157
148
|
"require": "./substrate/tx.cjs",
|
|
158
149
|
"default": "./substrate/tx.js"
|
|
159
150
|
}
|
|
151
|
+
},
|
|
152
|
+
"dependencies": {
|
|
153
|
+
"@babel/runtime": "^7.16.7",
|
|
154
|
+
"@polkadot/api-base": "7.3.1",
|
|
155
|
+
"@polkadot/rpc-augment": "7.3.1",
|
|
156
|
+
"@polkadot/types": "7.3.1",
|
|
157
|
+
"@polkadot/types-augment": "7.3.1",
|
|
158
|
+
"@polkadot/types-codec": "7.3.1",
|
|
159
|
+
"@polkadot/util": "^8.3.1"
|
|
160
160
|
}
|
|
161
161
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/polkadot/query.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
2
|
import type { Data } from '@polkadot/types';
|
|
3
|
-
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
|
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';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes,
|
|
7
|
+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
declare module '@polkadot/api-base/types/storage' {
|
|
10
10
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
@@ -260,6 +260,11 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
260
260
|
* The active configuration for the current session.
|
|
261
261
|
**/
|
|
262
262
|
activeConfig: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsConfigurationHostConfiguration>, []> & QueryableStorageEntry<ApiType, []>;
|
|
263
|
+
/**
|
|
264
|
+
* If this is set, then the configuration setters will bypass the consistency checks. This
|
|
265
|
+
* is meant to be used only as the last resort.
|
|
266
|
+
**/
|
|
267
|
+
bypassConsistencyCheck: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
263
268
|
/**
|
|
264
269
|
* Pending configuration (if any) for the next session.
|
|
265
270
|
*
|
|
@@ -747,7 +752,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
747
752
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
748
753
|
};
|
|
749
754
|
multisig: {
|
|
750
|
-
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[
|
|
755
|
+
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[WrapperKeepOpaque<Call>, AccountId32, u128]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
751
756
|
/**
|
|
752
757
|
* The set of open multisig operations.
|
|
753
758
|
**/
|
|
@@ -1019,7 +1024,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1019
1024
|
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
|
1020
1025
|
* Does not have any entries before the session index in the first session change notification.
|
|
1021
1026
|
**/
|
|
1022
|
-
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1027
|
+
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1023
1028
|
/**
|
|
1024
1029
|
* Generic query
|
|
1025
1030
|
**/
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
2
|
import type { Data } from '@polkadot/types';
|
|
3
|
-
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, 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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData,
|
|
7
|
+
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
8
|
declare module '@polkadot/api-base/types/submittable' {
|
|
9
9
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
10
10
|
auctions: {
|
|
@@ -549,6 +549,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
549
549
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
550
550
|
};
|
|
551
551
|
configuration: {
|
|
552
|
+
/**
|
|
553
|
+
* Setting this to true will disable consistency checks for the configuration setters.
|
|
554
|
+
* Use with caution.
|
|
555
|
+
**/
|
|
556
|
+
setBypassConsistencyCheck: AugmentedSubmittable<(updated: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
552
557
|
/**
|
|
553
558
|
* Set the availability period for parachains.
|
|
554
559
|
**/
|
|
@@ -665,6 +670,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
665
670
|
/**
|
|
666
671
|
* Sets the minimum delay between announcing the upgrade block for a parachain until the
|
|
667
672
|
* upgrade taking place.
|
|
673
|
+
*
|
|
674
|
+
* See the field documentation for information and constraints for the new value.
|
|
668
675
|
**/
|
|
669
676
|
setMinimumValidationUpgradeDelay: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
670
677
|
/**
|
|
@@ -717,13 +724,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
717
724
|
**/
|
|
718
725
|
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
719
726
|
/**
|
|
720
|
-
* Set the validation upgrade
|
|
727
|
+
* Set the validation upgrade cooldown.
|
|
721
728
|
**/
|
|
722
|
-
|
|
729
|
+
setValidationUpgradeCooldown: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
723
730
|
/**
|
|
724
|
-
* Set the validation upgrade
|
|
731
|
+
* Set the validation upgrade delay.
|
|
725
732
|
**/
|
|
726
|
-
|
|
733
|
+
setValidationUpgradeDelay: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
727
734
|
/**
|
|
728
735
|
* Set the zeroth delay tranche width.
|
|
729
736
|
**/
|
|
@@ -2117,7 +2124,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2117
2124
|
* - Plus Call Weight
|
|
2118
2125
|
* # </weight>
|
|
2119
2126
|
**/
|
|
2120
|
-
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call:
|
|
2127
|
+
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
|
2121
2128
|
/**
|
|
2122
2129
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
2123
2130
|
*
|
|
@@ -2199,6 +2206,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2199
2206
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2200
2207
|
};
|
|
2201
2208
|
paras: {
|
|
2209
|
+
/**
|
|
2210
|
+
* Adds the validation code to the storage.
|
|
2211
|
+
*
|
|
2212
|
+
* The code will not be added if it is already present. Additionally, if PVF pre-checking
|
|
2213
|
+
* is running for that code, it will be instantly accepted.
|
|
2214
|
+
*
|
|
2215
|
+
* Otherwise, the code will be added into the storage. Note that the code will be added
|
|
2216
|
+
* into storage with reference count 0. This is to account the fact that there are no users
|
|
2217
|
+
* for this code yet. The caller will have to make sure that this code eventually gets
|
|
2218
|
+
* used by some parachain or removed from the storage to avoid storage leaks. For the latter
|
|
2219
|
+
* prefer to use the `poke_unused_validation_code` dispatchable to raw storage manipulation.
|
|
2220
|
+
*
|
|
2221
|
+
* This function is mainly meant to be used for upgrading parachains that do not follow
|
|
2222
|
+
* the go-ahead signal while the PVF pre-checking feature is enabled.
|
|
2223
|
+
**/
|
|
2224
|
+
addTrustedValidationCode: AugmentedSubmittable<(validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
2202
2225
|
/**
|
|
2203
2226
|
* Note a new block head for para within the context of the current block.
|
|
2204
2227
|
**/
|
|
@@ -2225,12 +2248,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2225
2248
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
2226
2249
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
2227
2250
|
**/
|
|
2228
|
-
includePvfCheckStatement: AugmentedSubmittable<(stmt:
|
|
2251
|
+
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV2PvfCheckStatement | {
|
|
2229
2252
|
accept?: any;
|
|
2230
2253
|
subject?: any;
|
|
2231
2254
|
sessionIndex?: any;
|
|
2232
2255
|
validatorIndex?: any;
|
|
2233
|
-
} | string | Uint8Array, signature: PolkadotPrimitivesV0ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2256
|
+
} | string | Uint8Array, signature: PolkadotPrimitivesV0ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV0ValidatorAppSignature]>;
|
|
2257
|
+
/**
|
|
2258
|
+
* Remove the validation code from the storage iff the reference count is 0.
|
|
2259
|
+
*
|
|
2260
|
+
* This is better than removing the storage directly, because it will not remove the code
|
|
2261
|
+
* that was suddenly got used by some parachain while this dispatchable was pending
|
|
2262
|
+
* dispatching.
|
|
2263
|
+
**/
|
|
2264
|
+
pokeUnusedValidationCode: AugmentedSubmittable<(validationCodeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2234
2265
|
/**
|
|
2235
2266
|
* Generic tx
|
|
2236
2267
|
**/
|
package/substrate/consts.d.ts
CHANGED
|
@@ -202,11 +202,30 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
202
202
|
};
|
|
203
203
|
contracts: {
|
|
204
204
|
/**
|
|
205
|
-
* The maximum number of
|
|
205
|
+
* The maximum number of contracts that can be pending for deletion.
|
|
206
|
+
*
|
|
207
|
+
* When a contract is deleted by calling `seal_terminate` it becomes inaccessible
|
|
208
|
+
* immediately, but the deletion of the storage items it has accumulated is performed
|
|
209
|
+
* later. The contract is put into the deletion queue. This defines how many
|
|
210
|
+
* contracts can be queued up at the same time. If that limit is reached `seal_terminate`
|
|
211
|
+
* will fail. The action must be retried in a later block in that case.
|
|
212
|
+
*
|
|
213
|
+
* The reasons for limiting the queue depth are:
|
|
214
|
+
*
|
|
215
|
+
* 1. The queue is in storage in order to be persistent between blocks. We want to limit
|
|
216
|
+
* the amount of storage that can be consumed.
|
|
217
|
+
* 2. The queue is stored in a vector and needs to be decoded as a whole when reading
|
|
218
|
+
* it at the end of each block. Longer queues take more weight to decode and hence
|
|
219
|
+
* limit the amount of items that can be deleted per block.
|
|
206
220
|
**/
|
|
207
221
|
deletionQueueDepth: u32 & AugmentedConst<ApiType>;
|
|
208
222
|
/**
|
|
209
223
|
* The maximum amount of weight that can be consumed per block for lazy trie removal.
|
|
224
|
+
*
|
|
225
|
+
* The amount of weight that is dedicated per block to work on the deletion queue. Larger
|
|
226
|
+
* values allow more trie keys to be deleted in each block but reduce the amount of
|
|
227
|
+
* weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
|
|
228
|
+
* information about the deletion queue.
|
|
210
229
|
**/
|
|
211
230
|
deletionWeightLimit: u64 & AugmentedConst<ApiType>;
|
|
212
231
|
/**
|
|
@@ -219,6 +238,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
219
238
|
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
220
239
|
/**
|
|
221
240
|
* The amount of balance a caller has to pay for each storage item.
|
|
241
|
+
*
|
|
222
242
|
* # Note
|
|
223
243
|
*
|
|
224
244
|
* Changing this value for an existing chain might need a storage migration.
|
package/substrate/query.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
2
|
import type { Data } from '@polkadot/types';
|
|
3
|
-
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, 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, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
@@ -719,7 +719,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
719
719
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
720
720
|
};
|
|
721
721
|
multisig: {
|
|
722
|
-
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[
|
|
722
|
+
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[WrapperKeepOpaque<Call>, AccountId32, u128]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
723
723
|
/**
|
|
724
724
|
* The set of open multisig operations.
|
|
725
725
|
**/
|
package/substrate/tx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
2
|
import type { Data } from '@polkadot/types';
|
|
3
|
-
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, 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, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
6
|
import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
@@ -829,7 +829,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
829
829
|
* Set the balances of a given account.
|
|
830
830
|
*
|
|
831
831
|
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
|
832
|
-
* also
|
|
832
|
+
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
|
833
833
|
* If the new free or reserved balance is below the existential deposit,
|
|
834
834
|
* it will reset the account nonce (`frame_system::AccountNonce`).
|
|
835
835
|
*
|
|
@@ -850,7 +850,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
850
850
|
* Transfer some liquid free balance to another account.
|
|
851
851
|
*
|
|
852
852
|
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
|
853
|
-
* It will decrease the total issuance of the system by the `TransferFee`.
|
|
854
853
|
* If the sender's account is below the existential deposit as a result
|
|
855
854
|
* of the transfer, the account will be reaped.
|
|
856
855
|
*
|
|
@@ -2828,7 +2827,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2828
2827
|
* - Plus Call Weight
|
|
2829
2828
|
* # </weight>
|
|
2830
2829
|
**/
|
|
2831
|
-
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call:
|
|
2830
|
+
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
|
2832
2831
|
/**
|
|
2833
2832
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
2834
2833
|
*
|