@polkadot/api-augment 10.9.1 → 10.11.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 +82 -34
- package/kusama/errors.d.ts +150 -26
- package/kusama/events.d.ts +66 -19
- package/kusama/query.d.ts +206 -87
- package/kusama/runtime.d.ts +36 -4
- package/kusama/tx.d.ts +192 -53
- package/package.json +9 -9
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +15 -198
- package/polkadot/errors.d.ts +37 -340
- package/polkadot/events.d.ts +24 -376
- package/polkadot/query.d.ts +63 -272
- package/polkadot/runtime.d.ts +20 -3
- package/polkadot/tx.d.ts +62 -441
- package/substrate/consts.d.ts +118 -34
- package/substrate/errors.d.ts +303 -8
- package/substrate/events.d.ts +379 -25
- package/substrate/query.d.ts +160 -44
- package/substrate/runtime.d.ts +21 -1
- package/substrate/tx.d.ts +252 -29
package/polkadot/consts.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/consts';
|
|
2
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
3
|
-
import type { Bytes, Option,
|
|
3
|
+
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
|
5
|
-
import type { Perbill,
|
|
5
|
+
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
6
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
@@ -44,6 +44,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
44
44
|
* Max number of authorities allowed
|
|
45
45
|
**/
|
|
46
46
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
47
|
+
/**
|
|
48
|
+
* The maximum number of nominators for each validator.
|
|
49
|
+
**/
|
|
50
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
47
51
|
/**
|
|
48
52
|
* Generic const
|
|
49
53
|
**/
|
|
@@ -171,24 +175,15 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
171
175
|
**/
|
|
172
176
|
[key: string]: Codec;
|
|
173
177
|
};
|
|
174
|
-
council: {
|
|
175
|
-
/**
|
|
176
|
-
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
177
|
-
**/
|
|
178
|
-
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
179
|
-
/**
|
|
180
|
-
* Generic const
|
|
181
|
-
**/
|
|
182
|
-
[key: string]: Codec;
|
|
183
|
-
};
|
|
184
178
|
crowdloan: {
|
|
185
179
|
/**
|
|
186
|
-
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
|
|
187
|
-
* least `ExistentialDeposit`.
|
|
180
|
+
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
|
|
181
|
+
* at least `ExistentialDeposit`.
|
|
188
182
|
**/
|
|
189
183
|
minContribution: u128 & AugmentedConst<ApiType>;
|
|
190
184
|
/**
|
|
191
|
-
* `PalletId` for the crowdloan pallet. An appropriate value could be
|
|
185
|
+
* `PalletId` for the crowdloan pallet. An appropriate value could be
|
|
186
|
+
* `PalletId(*b"py/cfund")`
|
|
192
187
|
**/
|
|
193
188
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
194
189
|
/**
|
|
@@ -200,72 +195,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
200
195
|
**/
|
|
201
196
|
[key: string]: Codec;
|
|
202
197
|
};
|
|
203
|
-
democracy: {
|
|
204
|
-
/**
|
|
205
|
-
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
|
206
|
-
**/
|
|
207
|
-
cooloffPeriod: u32 & AugmentedConst<ApiType>;
|
|
208
|
-
/**
|
|
209
|
-
* The period between a proposal being approved and enacted.
|
|
210
|
-
*
|
|
211
|
-
* It should generally be a little more than the unstake period to ensure that
|
|
212
|
-
* voting stakers have an opportunity to remove themselves from the system in the case
|
|
213
|
-
* where they are on the losing side of a vote.
|
|
214
|
-
**/
|
|
215
|
-
enactmentPeriod: u32 & AugmentedConst<ApiType>;
|
|
216
|
-
/**
|
|
217
|
-
* Minimum voting period allowed for a fast-track referendum.
|
|
218
|
-
**/
|
|
219
|
-
fastTrackVotingPeriod: u32 & AugmentedConst<ApiType>;
|
|
220
|
-
/**
|
|
221
|
-
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
|
|
222
|
-
* want to set this permanently to `false`, others may want to condition it on things such
|
|
223
|
-
* as an upgrade having happened recently.
|
|
224
|
-
**/
|
|
225
|
-
instantAllowed: bool & AugmentedConst<ApiType>;
|
|
226
|
-
/**
|
|
227
|
-
* How often (in blocks) new public referenda are launched.
|
|
228
|
-
**/
|
|
229
|
-
launchPeriod: u32 & AugmentedConst<ApiType>;
|
|
230
|
-
/**
|
|
231
|
-
* The maximum number of items which can be blacklisted.
|
|
232
|
-
**/
|
|
233
|
-
maxBlacklisted: u32 & AugmentedConst<ApiType>;
|
|
234
|
-
/**
|
|
235
|
-
* The maximum number of deposits a public proposal may have at any time.
|
|
236
|
-
**/
|
|
237
|
-
maxDeposits: u32 & AugmentedConst<ApiType>;
|
|
238
|
-
/**
|
|
239
|
-
* The maximum number of public proposals that can exist at any time.
|
|
240
|
-
**/
|
|
241
|
-
maxProposals: u32 & AugmentedConst<ApiType>;
|
|
242
|
-
/**
|
|
243
|
-
* The maximum number of votes for an account.
|
|
244
|
-
*
|
|
245
|
-
* Also used to compute weight, an overly big value can
|
|
246
|
-
* lead to extrinsic with very big weight: see `delegate` for instance.
|
|
247
|
-
**/
|
|
248
|
-
maxVotes: u32 & AugmentedConst<ApiType>;
|
|
249
|
-
/**
|
|
250
|
-
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
251
|
-
**/
|
|
252
|
-
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
|
253
|
-
/**
|
|
254
|
-
* The minimum period of vote locking.
|
|
255
|
-
*
|
|
256
|
-
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
257
|
-
* those successful voters are locked into the consequences that their votes entail.
|
|
258
|
-
**/
|
|
259
|
-
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
|
260
|
-
/**
|
|
261
|
-
* How often (in blocks) to check for new votes.
|
|
262
|
-
**/
|
|
263
|
-
votingPeriod: u32 & AugmentedConst<ApiType>;
|
|
264
|
-
/**
|
|
265
|
-
* Generic const
|
|
266
|
-
**/
|
|
267
|
-
[key: string]: Codec;
|
|
268
|
-
};
|
|
269
198
|
electionProviderMultiPhase: {
|
|
270
199
|
/**
|
|
271
200
|
* The minimum amount of improvement to the solution score that defines a solution as
|
|
@@ -277,16 +206,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
277
206
|
* "better" in the Unsigned phase.
|
|
278
207
|
**/
|
|
279
208
|
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
280
|
-
/**
|
|
281
|
-
* The maximum number of electable targets to put in the snapshot.
|
|
282
|
-
**/
|
|
283
|
-
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
|
284
|
-
/**
|
|
285
|
-
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
|
286
|
-
* are only over a single block, but once multi-block elections are introduced they will
|
|
287
|
-
* take place over multiple blocks.
|
|
288
|
-
**/
|
|
289
|
-
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
290
209
|
/**
|
|
291
210
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
292
211
|
* implementation.
|
|
@@ -376,6 +295,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
376
295
|
* Max Authorities in use
|
|
377
296
|
**/
|
|
378
297
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
298
|
+
/**
|
|
299
|
+
* The maximum number of nominators for each validator.
|
|
300
|
+
**/
|
|
301
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
379
302
|
/**
|
|
380
303
|
* The maximum number of entries to keep in the set id to session index mapping.
|
|
381
304
|
*
|
|
@@ -532,70 +455,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
532
455
|
**/
|
|
533
456
|
[key: string]: Codec;
|
|
534
457
|
};
|
|
535
|
-
phragmenElection: {
|
|
536
|
-
/**
|
|
537
|
-
* How much should be locked up in order to submit one's candidacy.
|
|
538
|
-
**/
|
|
539
|
-
candidacyBond: u128 & AugmentedConst<ApiType>;
|
|
540
|
-
/**
|
|
541
|
-
* Number of members to elect.
|
|
542
|
-
**/
|
|
543
|
-
desiredMembers: u32 & AugmentedConst<ApiType>;
|
|
544
|
-
/**
|
|
545
|
-
* Number of runners_up to keep.
|
|
546
|
-
**/
|
|
547
|
-
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
|
548
|
-
/**
|
|
549
|
-
* The maximum number of candidates in a phragmen election.
|
|
550
|
-
*
|
|
551
|
-
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
552
|
-
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
553
|
-
*
|
|
554
|
-
* When this limit is reached no more candidates are accepted in the election.
|
|
555
|
-
**/
|
|
556
|
-
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
557
|
-
/**
|
|
558
|
-
* The maximum number of voters to allow in a phragmen election.
|
|
559
|
-
*
|
|
560
|
-
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
561
|
-
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
562
|
-
*
|
|
563
|
-
* When the limit is reached the new voters are ignored.
|
|
564
|
-
**/
|
|
565
|
-
maxVoters: u32 & AugmentedConst<ApiType>;
|
|
566
|
-
/**
|
|
567
|
-
* Maximum numbers of votes per voter.
|
|
568
|
-
*
|
|
569
|
-
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
570
|
-
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
571
|
-
**/
|
|
572
|
-
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
573
|
-
/**
|
|
574
|
-
* Identifier for the elections-phragmen pallet's lock
|
|
575
|
-
**/
|
|
576
|
-
palletId: U8aFixed & AugmentedConst<ApiType>;
|
|
577
|
-
/**
|
|
578
|
-
* How long each seat is kept. This defines the next block number at which an election
|
|
579
|
-
* round will happen. If set to zero, no elections are ever triggered and the module will
|
|
580
|
-
* be in passive mode.
|
|
581
|
-
**/
|
|
582
|
-
termDuration: u32 & AugmentedConst<ApiType>;
|
|
583
|
-
/**
|
|
584
|
-
* Base deposit associated with voting.
|
|
585
|
-
*
|
|
586
|
-
* This should be sensibly high to economically ensure the pallet cannot be attacked by
|
|
587
|
-
* creating a gigantic number of votes.
|
|
588
|
-
**/
|
|
589
|
-
votingBondBase: u128 & AugmentedConst<ApiType>;
|
|
590
|
-
/**
|
|
591
|
-
* The amount of bond that need to be locked for each vote (32 bytes).
|
|
592
|
-
**/
|
|
593
|
-
votingBondFactor: u128 & AugmentedConst<ApiType>;
|
|
594
|
-
/**
|
|
595
|
-
* Generic const
|
|
596
|
-
**/
|
|
597
|
-
[key: string]: Codec;
|
|
598
|
-
};
|
|
599
458
|
proxy: {
|
|
600
459
|
/**
|
|
601
460
|
* The base amount of currency needed to reserve for creating an announcement.
|
|
@@ -674,7 +533,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
674
533
|
**/
|
|
675
534
|
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
676
535
|
/**
|
|
677
|
-
* The deposit to be paid to run a
|
|
536
|
+
* The deposit to be paid to run a on-demand parachain.
|
|
678
537
|
* This should include the cost for storing the genesis head and validation code.
|
|
679
538
|
**/
|
|
680
539
|
paraDeposit: u128 & AugmentedConst<ApiType>;
|
|
@@ -743,10 +602,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
743
602
|
* The test `reducing_history_depth_abrupt` shows this effect.
|
|
744
603
|
**/
|
|
745
604
|
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
746
|
-
/**
|
|
747
|
-
* Maximum number of nominations per nominator.
|
|
748
|
-
**/
|
|
749
|
-
maxNominations: u32 & AugmentedConst<ApiType>;
|
|
750
605
|
/**
|
|
751
606
|
* The maximum number of nominators rewarded for each validator.
|
|
752
607
|
*
|
|
@@ -817,16 +672,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
817
672
|
**/
|
|
818
673
|
[key: string]: Codec;
|
|
819
674
|
};
|
|
820
|
-
technicalCommittee: {
|
|
821
|
-
/**
|
|
822
|
-
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
823
|
-
**/
|
|
824
|
-
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
825
|
-
/**
|
|
826
|
-
* Generic const
|
|
827
|
-
**/
|
|
828
|
-
[key: string]: Codec;
|
|
829
|
-
};
|
|
830
675
|
timestamp: {
|
|
831
676
|
/**
|
|
832
677
|
* The minimum period between blocks. Beware that this is different to the *expected*
|
|
@@ -840,34 +685,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
840
685
|
**/
|
|
841
686
|
[key: string]: Codec;
|
|
842
687
|
};
|
|
843
|
-
tips: {
|
|
844
|
-
/**
|
|
845
|
-
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
846
|
-
**/
|
|
847
|
-
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
848
|
-
/**
|
|
849
|
-
* Maximum acceptable reason length.
|
|
850
|
-
*
|
|
851
|
-
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
852
|
-
**/
|
|
853
|
-
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
|
854
|
-
/**
|
|
855
|
-
* The period for which a tip remains open after is has achieved threshold tippers.
|
|
856
|
-
**/
|
|
857
|
-
tipCountdown: u32 & AugmentedConst<ApiType>;
|
|
858
|
-
/**
|
|
859
|
-
* The percent of the final tip which goes to the original reporter of the tip.
|
|
860
|
-
**/
|
|
861
|
-
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
|
862
|
-
/**
|
|
863
|
-
* The amount held on deposit for placing a tip report.
|
|
864
|
-
**/
|
|
865
|
-
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
|
866
|
-
/**
|
|
867
|
-
* Generic const
|
|
868
|
-
**/
|
|
869
|
-
[key: string]: Codec;
|
|
870
|
-
};
|
|
871
688
|
transactionPayment: {
|
|
872
689
|
/**
|
|
873
690
|
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|