@polkadot/api-augment 10.9.1 → 10.10.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.
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
9
9
  declare module '@polkadot/api-base/types/events' {
10
10
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -35,8 +35,8 @@ declare module '@polkadot/api-base/types/events' {
35
35
  lastSlot: u32;
36
36
  }>;
37
37
  /**
38
- * Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve
39
- * but no parachain slot has been leased.
38
+ * Someone attempted to lease the same slot twice for a parachain. The amount is held in
39
+ * reserve but no parachain slot has been leased.
40
40
  **/
41
41
  ReserveConfiscated: AugmentedEvent<ApiType, [paraId: u32, leaser: AccountId32, amount: u128], {
42
42
  paraId: u32;
@@ -60,7 +60,8 @@ declare module '@polkadot/api-base/types/events' {
60
60
  amount: u128;
61
61
  }>;
62
62
  /**
63
- * The winning offset was chosen for an auction. This will map into the `Winning` storage map.
63
+ * The winning offset was chosen for an auction. This will map into the `Winning` storage
64
+ * map.
64
65
  **/
65
66
  WinningOffset: AugmentedEvent<ApiType, [auctionIndex: u32, blockNumber: u32], {
66
67
  auctionIndex: u32;
@@ -343,67 +344,6 @@ declare module '@polkadot/api-base/types/events' {
343
344
  **/
344
345
  [key: string]: AugmentedEvent<ApiType>;
345
346
  };
346
- council: {
347
- /**
348
- * A motion was approved by the required threshold.
349
- **/
350
- Approved: AugmentedEvent<ApiType, [proposalHash: H256], {
351
- proposalHash: H256;
352
- }>;
353
- /**
354
- * A proposal was closed because its threshold was reached or after its duration was up.
355
- **/
356
- Closed: AugmentedEvent<ApiType, [proposalHash: H256, yes: u32, no: u32], {
357
- proposalHash: H256;
358
- yes: u32;
359
- no: u32;
360
- }>;
361
- /**
362
- * A motion was not approved by the required threshold.
363
- **/
364
- Disapproved: AugmentedEvent<ApiType, [proposalHash: H256], {
365
- proposalHash: H256;
366
- }>;
367
- /**
368
- * A motion was executed; result will be `Ok` if it returned without error.
369
- **/
370
- Executed: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], {
371
- proposalHash: H256;
372
- result: Result<Null, SpRuntimeDispatchError>;
373
- }>;
374
- /**
375
- * A single member did some action; result will be `Ok` if it returned without error.
376
- **/
377
- MemberExecuted: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], {
378
- proposalHash: H256;
379
- result: Result<Null, SpRuntimeDispatchError>;
380
- }>;
381
- /**
382
- * A motion (given hash) has been proposed (by given account) with a threshold (given
383
- * `MemberCount`).
384
- **/
385
- Proposed: AugmentedEvent<ApiType, [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], {
386
- account: AccountId32;
387
- proposalIndex: u32;
388
- proposalHash: H256;
389
- threshold: u32;
390
- }>;
391
- /**
392
- * A motion (given hash) has been voted on by given account, leaving
393
- * a tally (yes votes and no votes given respectively as `MemberCount`).
394
- **/
395
- Voted: AugmentedEvent<ApiType, [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], {
396
- account: AccountId32;
397
- proposalHash: H256;
398
- voted: bool;
399
- yes: u32;
400
- no: u32;
401
- }>;
402
- /**
403
- * Generic event
404
- **/
405
- [key: string]: AugmentedEvent<ApiType>;
406
- };
407
347
  crowdloan: {
408
348
  /**
409
349
  * A parachain has been moved to `NewRaise`
@@ -478,125 +418,6 @@ declare module '@polkadot/api-base/types/events' {
478
418
  **/
479
419
  [key: string]: AugmentedEvent<ApiType>;
480
420
  };
481
- democracy: {
482
- /**
483
- * A proposal_hash has been blacklisted permanently.
484
- **/
485
- Blacklisted: AugmentedEvent<ApiType, [proposalHash: H256], {
486
- proposalHash: H256;
487
- }>;
488
- /**
489
- * A referendum has been cancelled.
490
- **/
491
- Cancelled: AugmentedEvent<ApiType, [refIndex: u32], {
492
- refIndex: u32;
493
- }>;
494
- /**
495
- * An account has delegated their vote to another account.
496
- **/
497
- Delegated: AugmentedEvent<ApiType, [who: AccountId32, target: AccountId32], {
498
- who: AccountId32;
499
- target: AccountId32;
500
- }>;
501
- /**
502
- * An external proposal has been tabled.
503
- **/
504
- ExternalTabled: AugmentedEvent<ApiType, []>;
505
- /**
506
- * Metadata for a proposal or a referendum has been cleared.
507
- **/
508
- MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
509
- owner: PalletDemocracyMetadataOwner;
510
- hash_: H256;
511
- }>;
512
- /**
513
- * Metadata for a proposal or a referendum has been set.
514
- **/
515
- MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
516
- owner: PalletDemocracyMetadataOwner;
517
- hash_: H256;
518
- }>;
519
- /**
520
- * Metadata has been transferred to new owner.
521
- **/
522
- MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], {
523
- prevOwner: PalletDemocracyMetadataOwner;
524
- owner: PalletDemocracyMetadataOwner;
525
- hash_: H256;
526
- }>;
527
- /**
528
- * A proposal has been rejected by referendum.
529
- **/
530
- NotPassed: AugmentedEvent<ApiType, [refIndex: u32], {
531
- refIndex: u32;
532
- }>;
533
- /**
534
- * A proposal has been approved by referendum.
535
- **/
536
- Passed: AugmentedEvent<ApiType, [refIndex: u32], {
537
- refIndex: u32;
538
- }>;
539
- /**
540
- * A proposal got canceled.
541
- **/
542
- ProposalCanceled: AugmentedEvent<ApiType, [propIndex: u32], {
543
- propIndex: u32;
544
- }>;
545
- /**
546
- * A motion has been proposed by a public account.
547
- **/
548
- Proposed: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], {
549
- proposalIndex: u32;
550
- deposit: u128;
551
- }>;
552
- /**
553
- * An account has secconded a proposal
554
- **/
555
- Seconded: AugmentedEvent<ApiType, [seconder: AccountId32, propIndex: u32], {
556
- seconder: AccountId32;
557
- propIndex: u32;
558
- }>;
559
- /**
560
- * A referendum has begun.
561
- **/
562
- Started: AugmentedEvent<ApiType, [refIndex: u32, threshold: PalletDemocracyVoteThreshold], {
563
- refIndex: u32;
564
- threshold: PalletDemocracyVoteThreshold;
565
- }>;
566
- /**
567
- * A public proposal has been tabled for referendum vote.
568
- **/
569
- Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], {
570
- proposalIndex: u32;
571
- deposit: u128;
572
- }>;
573
- /**
574
- * An account has cancelled a previous delegation operation.
575
- **/
576
- Undelegated: AugmentedEvent<ApiType, [account: AccountId32], {
577
- account: AccountId32;
578
- }>;
579
- /**
580
- * An external proposal has been vetoed.
581
- **/
582
- Vetoed: AugmentedEvent<ApiType, [who: AccountId32, proposalHash: H256, until: u32], {
583
- who: AccountId32;
584
- proposalHash: H256;
585
- until: u32;
586
- }>;
587
- /**
588
- * An account has voted in a referendum
589
- **/
590
- Voted: AugmentedEvent<ApiType, [voter: AccountId32, refIndex: u32, vote: PalletDemocracyVoteAccountVote], {
591
- voter: AccountId32;
592
- refIndex: u32;
593
- vote: PalletDemocracyVoteAccountVote;
594
- }>;
595
- /**
596
- * Generic event
597
- **/
598
- [key: string]: AugmentedEvent<ApiType>;
599
- };
600
421
  electionProviderMultiPhase: {
601
422
  /**
602
423
  * An election failed.
@@ -1104,15 +925,15 @@ declare module '@polkadot/api-base/types/events' {
1104
925
  /**
1105
926
  * A candidate was backed. `[candidate, head_data]`
1106
927
  **/
1107
- CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
928
+ CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
1108
929
  /**
1109
930
  * A candidate was included. `[candidate, head_data]`
1110
931
  **/
1111
- CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
932
+ CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
1112
933
  /**
1113
934
  * A candidate timed out. `[candidate, head_data]`
1114
935
  **/
1115
- CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32]>;
936
+ CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32]>;
1116
937
  /**
1117
938
  * Some upward messages have been received and will be processed.
1118
939
  **/
@@ -1188,61 +1009,6 @@ declare module '@polkadot/api-base/types/events' {
1188
1009
  **/
1189
1010
  [key: string]: AugmentedEvent<ApiType>;
1190
1011
  };
1191
- phragmenElection: {
1192
- /**
1193
- * A candidate was slashed by amount due to failing to obtain a seat as member or
1194
- * runner-up.
1195
- *
1196
- * Note that old members and runners-up are also candidates.
1197
- **/
1198
- CandidateSlashed: AugmentedEvent<ApiType, [candidate: AccountId32, amount: u128], {
1199
- candidate: AccountId32;
1200
- amount: u128;
1201
- }>;
1202
- /**
1203
- * Internal error happened while trying to perform election.
1204
- **/
1205
- ElectionError: AugmentedEvent<ApiType, []>;
1206
- /**
1207
- * No (or not enough) candidates existed for this round. This is different from
1208
- * `NewTerm(\[\])`. See the description of `NewTerm`.
1209
- **/
1210
- EmptyTerm: AugmentedEvent<ApiType, []>;
1211
- /**
1212
- * A member has been removed. This should always be followed by either `NewTerm` or
1213
- * `EmptyTerm`.
1214
- **/
1215
- MemberKicked: AugmentedEvent<ApiType, [member: AccountId32], {
1216
- member: AccountId32;
1217
- }>;
1218
- /**
1219
- * A new term with new_members. This indicates that enough candidates existed to run
1220
- * the election, not that enough have has been elected. The inner value must be examined
1221
- * for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
1222
- * slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
1223
- * begin with.
1224
- **/
1225
- NewTerm: AugmentedEvent<ApiType, [newMembers: Vec<ITuple<[AccountId32, u128]>>], {
1226
- newMembers: Vec<ITuple<[AccountId32, u128]>>;
1227
- }>;
1228
- /**
1229
- * Someone has renounced their candidacy.
1230
- **/
1231
- Renounced: AugmentedEvent<ApiType, [candidate: AccountId32], {
1232
- candidate: AccountId32;
1233
- }>;
1234
- /**
1235
- * A seat holder was slashed by amount by being forcefully removed from the set.
1236
- **/
1237
- SeatHolderSlashed: AugmentedEvent<ApiType, [seatHolder: AccountId32, amount: u128], {
1238
- seatHolder: AccountId32;
1239
- amount: u128;
1240
- }>;
1241
- /**
1242
- * Generic event
1243
- **/
1244
- [key: string]: AugmentedEvent<ApiType>;
1245
- };
1246
1012
  preimage: {
1247
1013
  /**
1248
1014
  * A preimage has ben cleared.
@@ -1614,6 +1380,18 @@ declare module '@polkadot/api-base/types/events' {
1614
1380
  fraction: Perbill;
1615
1381
  slashEra: u32;
1616
1382
  }>;
1383
+ /**
1384
+ * Targets size limit reached.
1385
+ **/
1386
+ SnapshotTargetsSizeExceeded: AugmentedEvent<ApiType, [size_: u32], {
1387
+ size_: u32;
1388
+ }>;
1389
+ /**
1390
+ * Voters size limit reached.
1391
+ **/
1392
+ SnapshotVotersSizeExceeded: AugmentedEvent<ApiType, [size_: u32], {
1393
+ size_: u32;
1394
+ }>;
1617
1395
  /**
1618
1396
  * A new set of stakers was elected.
1619
1397
  **/
@@ -1691,137 +1469,6 @@ declare module '@polkadot/api-base/types/events' {
1691
1469
  **/
1692
1470
  [key: string]: AugmentedEvent<ApiType>;
1693
1471
  };
1694
- technicalCommittee: {
1695
- /**
1696
- * A motion was approved by the required threshold.
1697
- **/
1698
- Approved: AugmentedEvent<ApiType, [proposalHash: H256], {
1699
- proposalHash: H256;
1700
- }>;
1701
- /**
1702
- * A proposal was closed because its threshold was reached or after its duration was up.
1703
- **/
1704
- Closed: AugmentedEvent<ApiType, [proposalHash: H256, yes: u32, no: u32], {
1705
- proposalHash: H256;
1706
- yes: u32;
1707
- no: u32;
1708
- }>;
1709
- /**
1710
- * A motion was not approved by the required threshold.
1711
- **/
1712
- Disapproved: AugmentedEvent<ApiType, [proposalHash: H256], {
1713
- proposalHash: H256;
1714
- }>;
1715
- /**
1716
- * A motion was executed; result will be `Ok` if it returned without error.
1717
- **/
1718
- Executed: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], {
1719
- proposalHash: H256;
1720
- result: Result<Null, SpRuntimeDispatchError>;
1721
- }>;
1722
- /**
1723
- * A single member did some action; result will be `Ok` if it returned without error.
1724
- **/
1725
- MemberExecuted: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], {
1726
- proposalHash: H256;
1727
- result: Result<Null, SpRuntimeDispatchError>;
1728
- }>;
1729
- /**
1730
- * A motion (given hash) has been proposed (by given account) with a threshold (given
1731
- * `MemberCount`).
1732
- **/
1733
- Proposed: AugmentedEvent<ApiType, [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], {
1734
- account: AccountId32;
1735
- proposalIndex: u32;
1736
- proposalHash: H256;
1737
- threshold: u32;
1738
- }>;
1739
- /**
1740
- * A motion (given hash) has been voted on by given account, leaving
1741
- * a tally (yes votes and no votes given respectively as `MemberCount`).
1742
- **/
1743
- Voted: AugmentedEvent<ApiType, [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], {
1744
- account: AccountId32;
1745
- proposalHash: H256;
1746
- voted: bool;
1747
- yes: u32;
1748
- no: u32;
1749
- }>;
1750
- /**
1751
- * Generic event
1752
- **/
1753
- [key: string]: AugmentedEvent<ApiType>;
1754
- };
1755
- technicalMembership: {
1756
- /**
1757
- * Phantom member, never used.
1758
- **/
1759
- Dummy: AugmentedEvent<ApiType, []>;
1760
- /**
1761
- * One of the members' keys changed.
1762
- **/
1763
- KeyChanged: AugmentedEvent<ApiType, []>;
1764
- /**
1765
- * The given member was added; see the transaction for who.
1766
- **/
1767
- MemberAdded: AugmentedEvent<ApiType, []>;
1768
- /**
1769
- * The given member was removed; see the transaction for who.
1770
- **/
1771
- MemberRemoved: AugmentedEvent<ApiType, []>;
1772
- /**
1773
- * The membership was reset; see the transaction for who the new set is.
1774
- **/
1775
- MembersReset: AugmentedEvent<ApiType, []>;
1776
- /**
1777
- * Two members were swapped; see the transaction for who.
1778
- **/
1779
- MembersSwapped: AugmentedEvent<ApiType, []>;
1780
- /**
1781
- * Generic event
1782
- **/
1783
- [key: string]: AugmentedEvent<ApiType>;
1784
- };
1785
- tips: {
1786
- /**
1787
- * A new tip suggestion has been opened.
1788
- **/
1789
- NewTip: AugmentedEvent<ApiType, [tipHash: H256], {
1790
- tipHash: H256;
1791
- }>;
1792
- /**
1793
- * A tip suggestion has been closed.
1794
- **/
1795
- TipClosed: AugmentedEvent<ApiType, [tipHash: H256, who: AccountId32, payout: u128], {
1796
- tipHash: H256;
1797
- who: AccountId32;
1798
- payout: u128;
1799
- }>;
1800
- /**
1801
- * A tip suggestion has reached threshold and is closing.
1802
- **/
1803
- TipClosing: AugmentedEvent<ApiType, [tipHash: H256], {
1804
- tipHash: H256;
1805
- }>;
1806
- /**
1807
- * A tip suggestion has been retracted.
1808
- **/
1809
- TipRetracted: AugmentedEvent<ApiType, [tipHash: H256], {
1810
- tipHash: H256;
1811
- }>;
1812
- /**
1813
- * A tip suggestion has been slashed.
1814
- **/
1815
- TipSlashed: AugmentedEvent<ApiType, [tipHash: H256, finder: AccountId32, deposit: u128], {
1816
- tipHash: H256;
1817
- finder: AccountId32;
1818
- deposit: u128;
1819
- }>;
1820
- /**
1821
- * Generic event
1822
- **/
1823
- [key: string]: AugmentedEvent<ApiType>;
1824
- };
1825
1472
  transactionPayment: {
1826
1473
  /**
1827
1474
  * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
@@ -2104,8 +1751,8 @@ declare module '@polkadot/api-base/types/events' {
2104
1751
  callIndex: u8;
2105
1752
  }>;
2106
1753
  /**
2107
- * Query response has been received and query is removed. The registered notification could
2108
- * not be dispatched because the dispatch weight is greater than the maximum weight
1754
+ * Query response has been received and query is removed. The registered notification
1755
+ * could not be dispatched because the dispatch weight is greater than the maximum weight
2109
1756
  * originally budgeted by this runtime for the query result.
2110
1757
  **/
2111
1758
  NotifyOverweight: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8, actualWeight: SpWeightsWeightV2Weight, maxBudgetedWeight: SpWeightsWeightV2Weight], {
@@ -2201,7 +1848,8 @@ declare module '@polkadot/api-base/types/events' {
2201
1848
  messageId: U8aFixed;
2202
1849
  }>;
2203
1850
  /**
2204
- * We have requested that a remote chain stops sending us XCM version change notifications.
1851
+ * We have requested that a remote chain stops sending us XCM version change
1852
+ * notifications.
2205
1853
  **/
2206
1854
  VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], {
2207
1855
  destination: XcmV3MultiLocation;