@polkadot/api-augment 10.2.1 → 10.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/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +20 -2
- package/kusama/errors.d.ts +0 -3
- package/kusama/events.d.ts +28 -0
- package/kusama/runtime.d.ts +1 -1
- package/kusama/tx.d.ts +14 -7
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +12 -1
- package/polkadot/events.d.ts +14 -0
- package/polkadot/runtime.d.ts +1 -1
- package/polkadot/tx.d.ts +14 -61
- package/substrate/consts.d.ts +4 -27
- package/substrate/errors.d.ts +0 -11
- package/substrate/query.d.ts +8 -3
- package/substrate/runtime.d.ts +1 -1
- package/substrate/tx.d.ts +0 -87
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.3.1' };
|
package/kusama/consts.d.ts
CHANGED
|
@@ -51,7 +51,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
51
51
|
};
|
|
52
52
|
balances: {
|
|
53
53
|
/**
|
|
54
|
-
* The minimum amount required to keep an account open.
|
|
54
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
55
|
+
*
|
|
56
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
57
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
58
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
59
|
+
* behaviour if you set this to zero.
|
|
60
|
+
*
|
|
61
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
55
62
|
**/
|
|
56
63
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
57
64
|
/**
|
|
@@ -487,7 +494,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
487
494
|
};
|
|
488
495
|
nisCounterpartBalances: {
|
|
489
496
|
/**
|
|
490
|
-
* The minimum amount required to keep an account open.
|
|
497
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
498
|
+
*
|
|
499
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
500
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
501
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
502
|
+
* behaviour if you set this to zero.
|
|
503
|
+
*
|
|
504
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
491
505
|
**/
|
|
492
506
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
493
507
|
/**
|
|
@@ -678,6 +692,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
678
692
|
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
679
693
|
/**
|
|
680
694
|
* The maximum number of scheduled calls in the queue for a single block.
|
|
695
|
+
*
|
|
696
|
+
* NOTE:
|
|
697
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
698
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
681
699
|
**/
|
|
682
700
|
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
683
701
|
/**
|
package/kusama/errors.d.ts
CHANGED
|
@@ -906,9 +906,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
906
906
|
* The portion supplied is beyond the value of the receipt.
|
|
907
907
|
**/
|
|
908
908
|
PortionTooBig: AugmentedError<ApiType>;
|
|
909
|
-
Release1: AugmentedError<ApiType>;
|
|
910
|
-
Release2: AugmentedError<ApiType>;
|
|
911
|
-
Tah: AugmentedError<ApiType>;
|
|
912
909
|
/**
|
|
913
910
|
* The thaw throttle has been reached for this period.
|
|
914
911
|
**/
|
package/kusama/events.d.ts
CHANGED
|
@@ -114,6 +114,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
114
114
|
Issued: AugmentedEvent<ApiType, [amount: u128], {
|
|
115
115
|
amount: u128;
|
|
116
116
|
}>;
|
|
117
|
+
/**
|
|
118
|
+
* Some balance was locked.
|
|
119
|
+
**/
|
|
120
|
+
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
121
|
+
who: AccountId32;
|
|
122
|
+
amount: u128;
|
|
123
|
+
}>;
|
|
117
124
|
/**
|
|
118
125
|
* Some amount was minted into an account.
|
|
119
126
|
**/
|
|
@@ -173,6 +180,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
173
180
|
to: AccountId32;
|
|
174
181
|
amount: u128;
|
|
175
182
|
}>;
|
|
183
|
+
/**
|
|
184
|
+
* Some balance was unlocked.
|
|
185
|
+
**/
|
|
186
|
+
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
187
|
+
who: AccountId32;
|
|
188
|
+
amount: u128;
|
|
189
|
+
}>;
|
|
176
190
|
/**
|
|
177
191
|
* Some balance was unreserved (moved from reserved to free).
|
|
178
192
|
**/
|
|
@@ -958,6 +972,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
958
972
|
Issued: AugmentedEvent<ApiType, [amount: u128], {
|
|
959
973
|
amount: u128;
|
|
960
974
|
}>;
|
|
975
|
+
/**
|
|
976
|
+
* Some balance was locked.
|
|
977
|
+
**/
|
|
978
|
+
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
979
|
+
who: AccountId32;
|
|
980
|
+
amount: u128;
|
|
981
|
+
}>;
|
|
961
982
|
/**
|
|
962
983
|
* Some amount was minted into an account.
|
|
963
984
|
**/
|
|
@@ -1017,6 +1038,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1017
1038
|
to: AccountId32;
|
|
1018
1039
|
amount: u128;
|
|
1019
1040
|
}>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Some balance was unlocked.
|
|
1043
|
+
**/
|
|
1044
|
+
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
1045
|
+
who: AccountId32;
|
|
1046
|
+
amount: u128;
|
|
1047
|
+
}>;
|
|
1020
1048
|
/**
|
|
1021
1049
|
* Some balance was unreserved (moved from reserved to free).
|
|
1022
1050
|
**/
|
package/kusama/runtime.d.ts
CHANGED
package/kusama/tx.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeParachainsDisputesSlashingDisputeProof, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeParachainsDisputesSlashingDisputeProof, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
10
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
11
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -706,6 +706,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
706
706
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
707
707
|
};
|
|
708
708
|
configuration: {
|
|
709
|
+
/**
|
|
710
|
+
* Set the asynchronous backing parameters.
|
|
711
|
+
**/
|
|
712
|
+
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingAsyncBackingParams | {
|
|
713
|
+
maxCandidateDepth?: any;
|
|
714
|
+
allowedAncestryLen?: any;
|
|
715
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingAsyncBackingParams]>;
|
|
709
716
|
/**
|
|
710
717
|
* Setting this to true will disable consistency checks for the configuration setters.
|
|
711
718
|
* Use with caution.
|
|
@@ -3110,7 +3117,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3110
3117
|
Address32: any;
|
|
3111
3118
|
} | {
|
|
3112
3119
|
Address20: any;
|
|
3113
|
-
} | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
|
|
3120
|
+
} | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
|
|
3114
3121
|
/**
|
|
3115
3122
|
* Publish the hash of a proxy-call that will be made in the future.
|
|
3116
3123
|
*
|
|
@@ -3159,7 +3166,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3159
3166
|
*
|
|
3160
3167
|
* Fails if there are insufficient funds to pay for deposit.
|
|
3161
3168
|
**/
|
|
3162
|
-
createPure: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>;
|
|
3169
|
+
createPure: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>;
|
|
3163
3170
|
/**
|
|
3164
3171
|
* Removes a previously spawned pure proxy.
|
|
3165
3172
|
*
|
|
@@ -3188,7 +3195,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3188
3195
|
Address32: any;
|
|
3189
3196
|
} | {
|
|
3190
3197
|
Address20: any;
|
|
3191
|
-
} | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
3198
|
+
} | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
3192
3199
|
/**
|
|
3193
3200
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
3194
3201
|
* `add_proxy`.
|
|
@@ -3210,7 +3217,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3210
3217
|
Address32: any;
|
|
3211
3218
|
} | {
|
|
3212
3219
|
Address20: any;
|
|
3213
|
-
} | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
|
|
3220
|
+
} | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
|
|
3214
3221
|
/**
|
|
3215
3222
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
3216
3223
|
* `add_proxy`.
|
|
@@ -3244,7 +3251,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3244
3251
|
Address32: any;
|
|
3245
3252
|
} | {
|
|
3246
3253
|
Address20: any;
|
|
3247
|
-
} | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
|
|
3254
|
+
} | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<KusamaRuntimeProxyType>, Call]>;
|
|
3248
3255
|
/**
|
|
3249
3256
|
* Remove the given announcement of a delegate.
|
|
3250
3257
|
*
|
|
@@ -3319,7 +3326,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3319
3326
|
Address32: any;
|
|
3320
3327
|
} | {
|
|
3321
3328
|
Address20: any;
|
|
3322
|
-
} | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
|
|
3329
|
+
} | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KusamaRuntimeProxyType, u32]>;
|
|
3323
3330
|
/**
|
|
3324
3331
|
* Generic tx
|
|
3325
3332
|
**/
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/detectPackage.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "10.
|
|
21
|
+
"version": "10.3.1",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -186,12 +186,12 @@
|
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
"dependencies": {
|
|
189
|
-
"@polkadot/api-base": "10.
|
|
190
|
-
"@polkadot/rpc-augment": "10.
|
|
191
|
-
"@polkadot/types": "10.
|
|
192
|
-
"@polkadot/types-augment": "10.
|
|
193
|
-
"@polkadot/types-codec": "10.
|
|
194
|
-
"@polkadot/util": "^11.1.
|
|
189
|
+
"@polkadot/api-base": "10.3.1",
|
|
190
|
+
"@polkadot/rpc-augment": "10.3.1",
|
|
191
|
+
"@polkadot/types": "10.3.1",
|
|
192
|
+
"@polkadot/types-augment": "10.3.1",
|
|
193
|
+
"@polkadot/types-codec": "10.3.1",
|
|
194
|
+
"@polkadot/util": "^11.1.3",
|
|
195
195
|
"tslib": "^2.5.0"
|
|
196
196
|
}
|
|
197
197
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.
|
|
1
|
+
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.3.1' };
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -51,7 +51,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
51
51
|
};
|
|
52
52
|
balances: {
|
|
53
53
|
/**
|
|
54
|
-
* The minimum amount required to keep an account open.
|
|
54
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
55
|
+
*
|
|
56
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
57
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
58
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
59
|
+
* behaviour if you set this to zero.
|
|
60
|
+
*
|
|
61
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
55
62
|
**/
|
|
56
63
|
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
57
64
|
/**
|
|
@@ -645,6 +652,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
645
652
|
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
646
653
|
/**
|
|
647
654
|
* The maximum number of scheduled calls in the queue for a single block.
|
|
655
|
+
*
|
|
656
|
+
* NOTE:
|
|
657
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
658
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
648
659
|
**/
|
|
649
660
|
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
650
661
|
/**
|
package/polkadot/events.d.ts
CHANGED
|
@@ -114,6 +114,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
114
114
|
Issued: AugmentedEvent<ApiType, [amount: u128], {
|
|
115
115
|
amount: u128;
|
|
116
116
|
}>;
|
|
117
|
+
/**
|
|
118
|
+
* Some balance was locked.
|
|
119
|
+
**/
|
|
120
|
+
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
121
|
+
who: AccountId32;
|
|
122
|
+
amount: u128;
|
|
123
|
+
}>;
|
|
117
124
|
/**
|
|
118
125
|
* Some amount was minted into an account.
|
|
119
126
|
**/
|
|
@@ -173,6 +180,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
173
180
|
to: AccountId32;
|
|
174
181
|
amount: u128;
|
|
175
182
|
}>;
|
|
183
|
+
/**
|
|
184
|
+
* Some balance was unlocked.
|
|
185
|
+
**/
|
|
186
|
+
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
187
|
+
who: AccountId32;
|
|
188
|
+
amount: u128;
|
|
189
|
+
}>;
|
|
176
190
|
/**
|
|
177
191
|
* Some balance was unreserved (moved from reserved to free).
|
|
178
192
|
**/
|
package/polkadot/runtime.d.ts
CHANGED
package/polkadot/tx.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
10
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
11
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -706,6 +706,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
706
706
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
707
707
|
};
|
|
708
708
|
configuration: {
|
|
709
|
+
/**
|
|
710
|
+
* Set the asynchronous backing parameters.
|
|
711
|
+
**/
|
|
712
|
+
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingAsyncBackingParams | {
|
|
713
|
+
maxCandidateDepth?: any;
|
|
714
|
+
allowedAncestryLen?: any;
|
|
715
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingAsyncBackingParams]>;
|
|
709
716
|
/**
|
|
710
717
|
* Setting this to true will disable consistency checks for the configuration setters.
|
|
711
718
|
* Use with caution.
|
|
@@ -1086,33 +1093,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1086
1093
|
refTime?: any;
|
|
1087
1094
|
proofSize?: any;
|
|
1088
1095
|
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
1089
|
-
/**
|
|
1090
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
1091
|
-
*
|
|
1092
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
1093
|
-
*
|
|
1094
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
1095
|
-
* has enough votes to be approved or disapproved.
|
|
1096
|
-
*
|
|
1097
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
1098
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
1099
|
-
*
|
|
1100
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
1101
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
1102
|
-
*
|
|
1103
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
1104
|
-
* proposal.
|
|
1105
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
1106
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
1107
|
-
*
|
|
1108
|
-
* ## Complexity
|
|
1109
|
-
* - `O(B + M + P1 + P2)` where:
|
|
1110
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1111
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
1112
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
1113
|
-
* - `P2` is proposal-count (code-bounded)
|
|
1114
|
-
**/
|
|
1115
|
-
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
1116
1096
|
/**
|
|
1117
1097
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
1118
1098
|
* state.
|
|
@@ -3234,7 +3214,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3234
3214
|
Address32: any;
|
|
3235
3215
|
} | {
|
|
3236
3216
|
Address20: any;
|
|
3237
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3217
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3238
3218
|
/**
|
|
3239
3219
|
* Publish the hash of a proxy-call that will be made in the future.
|
|
3240
3220
|
*
|
|
@@ -3283,7 +3263,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3283
3263
|
*
|
|
3284
3264
|
* Fails if there are insufficient funds to pay for deposit.
|
|
3285
3265
|
**/
|
|
3286
|
-
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
|
3266
|
+
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
|
3287
3267
|
/**
|
|
3288
3268
|
* Removes a previously spawned pure proxy.
|
|
3289
3269
|
*
|
|
@@ -3312,7 +3292,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3312
3292
|
Address32: any;
|
|
3313
3293
|
} | {
|
|
3314
3294
|
Address20: any;
|
|
3315
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
3295
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
3316
3296
|
/**
|
|
3317
3297
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
3318
3298
|
* `add_proxy`.
|
|
@@ -3334,7 +3314,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3334
3314
|
Address32: any;
|
|
3335
3315
|
} | {
|
|
3336
3316
|
Address20: any;
|
|
3337
|
-
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3317
|
+
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3338
3318
|
/**
|
|
3339
3319
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
3340
3320
|
* `add_proxy`.
|
|
@@ -3368,7 +3348,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3368
3348
|
Address32: any;
|
|
3369
3349
|
} | {
|
|
3370
3350
|
Address20: any;
|
|
3371
|
-
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3351
|
+
} | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
|
3372
3352
|
/**
|
|
3373
3353
|
* Remove the given announcement of a delegate.
|
|
3374
3354
|
*
|
|
@@ -3443,7 +3423,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3443
3423
|
Address32: any;
|
|
3444
3424
|
} | {
|
|
3445
3425
|
Address20: any;
|
|
3446
|
-
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3426
|
+
} | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
|
3447
3427
|
/**
|
|
3448
3428
|
* Generic tx
|
|
3449
3429
|
**/
|
|
@@ -4295,33 +4275,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4295
4275
|
refTime?: any;
|
|
4296
4276
|
proofSize?: any;
|
|
4297
4277
|
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
4298
|
-
/**
|
|
4299
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
4300
|
-
*
|
|
4301
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
4302
|
-
*
|
|
4303
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
4304
|
-
* has enough votes to be approved or disapproved.
|
|
4305
|
-
*
|
|
4306
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
4307
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
4308
|
-
*
|
|
4309
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
4310
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
4311
|
-
*
|
|
4312
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
4313
|
-
* proposal.
|
|
4314
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
4315
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
4316
|
-
*
|
|
4317
|
-
* ## Complexity
|
|
4318
|
-
* - `O(B + M + P1 + P2)` where:
|
|
4319
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
4320
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
4321
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
4322
|
-
* - `P2` is proposal-count (code-bounded)
|
|
4323
|
-
**/
|
|
4324
|
-
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
4325
4278
|
/**
|
|
4326
4279
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
4327
4280
|
* state.
|
package/substrate/consts.d.ts
CHANGED
|
@@ -191,33 +191,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
191
191
|
[key: string]: Codec;
|
|
192
192
|
};
|
|
193
193
|
contracts: {
|
|
194
|
-
/**
|
|
195
|
-
* The maximum number of contracts that can be pending for deletion.
|
|
196
|
-
*
|
|
197
|
-
* When a contract is deleted by calling `seal_terminate` it becomes inaccessible
|
|
198
|
-
* immediately, but the deletion of the storage items it has accumulated is performed
|
|
199
|
-
* later. The contract is put into the deletion queue. This defines how many
|
|
200
|
-
* contracts can be queued up at the same time. If that limit is reached `seal_terminate`
|
|
201
|
-
* will fail. The action must be retried in a later block in that case.
|
|
202
|
-
*
|
|
203
|
-
* The reasons for limiting the queue depth are:
|
|
204
|
-
*
|
|
205
|
-
* 1. The queue is in storage in order to be persistent between blocks. We want to limit
|
|
206
|
-
* the amount of storage that can be consumed.
|
|
207
|
-
* 2. The queue is stored in a vector and needs to be decoded as a whole when reading
|
|
208
|
-
* it at the end of each block. Longer queues take more weight to decode and hence
|
|
209
|
-
* limit the amount of items that can be deleted per block.
|
|
210
|
-
**/
|
|
211
|
-
deletionQueueDepth: u32 & AugmentedConst<ApiType>;
|
|
212
|
-
/**
|
|
213
|
-
* The maximum amount of weight that can be consumed per block for lazy trie removal.
|
|
214
|
-
*
|
|
215
|
-
* The amount of weight that is dedicated per block to work on the deletion queue. Larger
|
|
216
|
-
* values allow more trie keys to be deleted in each block but reduce the amount of
|
|
217
|
-
* weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
|
|
218
|
-
* information about the deletion queue.
|
|
219
|
-
**/
|
|
220
|
-
deletionWeightLimit: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
221
194
|
/**
|
|
222
195
|
* The amount of balance a caller has to pay for each byte of storage.
|
|
223
196
|
*
|
|
@@ -1017,6 +990,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1017
990
|
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
1018
991
|
/**
|
|
1019
992
|
* The maximum number of scheduled calls in the queue for a single block.
|
|
993
|
+
*
|
|
994
|
+
* NOTE:
|
|
995
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
996
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
1020
997
|
**/
|
|
1021
998
|
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
1022
999
|
/**
|
package/substrate/errors.d.ts
CHANGED
|
@@ -422,14 +422,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
422
422
|
* Input passed to a contract API function failed to decode as expected type.
|
|
423
423
|
**/
|
|
424
424
|
DecodingFailed: AugmentedError<ApiType>;
|
|
425
|
-
/**
|
|
426
|
-
* Removal of a contract failed because the deletion queue is full.
|
|
427
|
-
*
|
|
428
|
-
* This can happen when calling `seal_terminate`.
|
|
429
|
-
* The queue is filled by deleting contracts and emptied by a fixed amount each block.
|
|
430
|
-
* Trying again during another block is the only way to resolve this issue.
|
|
431
|
-
**/
|
|
432
|
-
DeletionQueueFull: AugmentedError<ApiType>;
|
|
433
425
|
/**
|
|
434
426
|
* A contract with the same AccountId already exists.
|
|
435
427
|
**/
|
|
@@ -1465,9 +1457,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1465
1457
|
* The portion supplied is beyond the value of the receipt.
|
|
1466
1458
|
**/
|
|
1467
1459
|
PortionTooBig: AugmentedError<ApiType>;
|
|
1468
|
-
Release1: AugmentedError<ApiType>;
|
|
1469
|
-
Release2: AugmentedError<ApiType>;
|
|
1470
|
-
Tah: AugmentedError<ApiType>;
|
|
1471
1460
|
/**
|
|
1472
1461
|
* The thaw throttle has been reached for this period.
|
|
1473
1462
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, 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';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -363,9 +363,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
363
363
|
* Evicted contracts that await child trie deletion.
|
|
364
364
|
*
|
|
365
365
|
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
366
|
-
* stored in said trie. Therefore this operation is performed lazily in `
|
|
366
|
+
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
|
367
367
|
**/
|
|
368
|
-
deletionQueue: AugmentedQuery<ApiType, () => Observable<
|
|
368
|
+
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
369
|
+
/**
|
|
370
|
+
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
371
|
+
* and the latest deleted contract in queue.
|
|
372
|
+
**/
|
|
373
|
+
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
|
369
374
|
/**
|
|
370
375
|
* This is a **monotonic** counter incremented on contract instantiation.
|
|
371
376
|
*
|
package/substrate/runtime.d.ts
CHANGED
package/substrate/tx.d.ts
CHANGED
|
@@ -42,12 +42,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
42
42
|
refTime?: any;
|
|
43
43
|
proofSize?: any;
|
|
44
44
|
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
45
|
-
/**
|
|
46
|
-
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
|
47
|
-
*
|
|
48
|
-
* Must be called by a Fellow.
|
|
49
|
-
**/
|
|
50
|
-
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
51
45
|
/**
|
|
52
46
|
* Disband the Alliance, remove all active members and unreserve deposits.
|
|
53
47
|
*
|
|
@@ -196,33 +190,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
196
190
|
refTime?: any;
|
|
197
191
|
proofSize?: any;
|
|
198
192
|
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
199
|
-
/**
|
|
200
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
201
|
-
*
|
|
202
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
203
|
-
*
|
|
204
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
205
|
-
* has enough votes to be approved or disapproved.
|
|
206
|
-
*
|
|
207
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
208
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
209
|
-
*
|
|
210
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
211
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
212
|
-
*
|
|
213
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
214
|
-
* proposal.
|
|
215
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
216
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
217
|
-
*
|
|
218
|
-
* ## Complexity
|
|
219
|
-
* - `O(B + M + P1 + P2)` where:
|
|
220
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
221
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
222
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
223
|
-
* - `P2` is proposal-count (code-bounded)
|
|
224
|
-
**/
|
|
225
|
-
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
226
193
|
/**
|
|
227
194
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
228
195
|
* state.
|
|
@@ -2031,33 +1998,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2031
1998
|
refTime?: any;
|
|
2032
1999
|
proofSize?: any;
|
|
2033
2000
|
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
2034
|
-
/**
|
|
2035
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
2036
|
-
*
|
|
2037
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
2038
|
-
*
|
|
2039
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
2040
|
-
* has enough votes to be approved or disapproved.
|
|
2041
|
-
*
|
|
2042
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
2043
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
2044
|
-
*
|
|
2045
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
2046
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
2047
|
-
*
|
|
2048
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
2049
|
-
* proposal.
|
|
2050
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
2051
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
2052
|
-
*
|
|
2053
|
-
* ## Complexity
|
|
2054
|
-
* - `O(B + M + P1 + P2)` where:
|
|
2055
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
2056
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
2057
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
2058
|
-
* - `P2` is proposal-count (code-bounded)
|
|
2059
|
-
**/
|
|
2060
|
-
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
2061
2001
|
/**
|
|
2062
2002
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
2063
2003
|
* state.
|
|
@@ -6810,33 +6750,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6810
6750
|
refTime?: any;
|
|
6811
6751
|
proofSize?: any;
|
|
6812
6752
|
} | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
6813
|
-
/**
|
|
6814
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
6815
|
-
*
|
|
6816
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
6817
|
-
*
|
|
6818
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
6819
|
-
* has enough votes to be approved or disapproved.
|
|
6820
|
-
*
|
|
6821
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
6822
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
6823
|
-
*
|
|
6824
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
6825
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
6826
|
-
*
|
|
6827
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
6828
|
-
* proposal.
|
|
6829
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
6830
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
6831
|
-
*
|
|
6832
|
-
* ## Complexity
|
|
6833
|
-
* - `O(B + M + P1 + P2)` where:
|
|
6834
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
6835
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
6836
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
6837
|
-
* - `P2` is proposal-count (code-bounded)
|
|
6838
|
-
**/
|
|
6839
|
-
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
6840
6753
|
/**
|
|
6841
6754
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
6842
6755
|
* state.
|