@polkadot/api-augment 9.2.2 → 9.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -486,6 +486,21 @@ declare module '@polkadot/api-base/types/consts' {
486
486
  * Number of runners_up to keep.
487
487
  **/
488
488
  desiredRunnersUp: u32 & AugmentedConst<ApiType>;
489
+ /**
490
+ * The maximum number of candidates in a phragmen election.
491
+ *
492
+ * Warning: The election happens onchain, and this value will determine
493
+ * the size of the election. When this limit is reached no more
494
+ * candidates are accepted in the election.
495
+ **/
496
+ maxCandidates: u32 & AugmentedConst<ApiType>;
497
+ /**
498
+ * The maximum number of voters to allow in a phragmen election.
499
+ *
500
+ * Warning: This impacts the size of the election which is run onchain.
501
+ * When the limit is reached the new voters are ignored.
502
+ **/
503
+ maxVoters: u32 & AugmentedConst<ApiType>;
489
504
  /**
490
505
  * Identifier for the elections-phragmen pallet's lock
491
506
  **/
@@ -2077,12 +2077,6 @@ declare module '@polkadot/api-base/types/errors' {
2077
2077
  * The provided max supply is less to the amount of items a collection already has.
2078
2078
  **/
2079
2079
  MaxSupplyTooSmall: AugmentedError<ApiType>;
2080
- /**
2081
- * The `CollectionId` in `NextCollectionId` is not being used.
2082
- *
2083
- * This means that you can directly proceed to call `create`.
2084
- **/
2085
- NextIdNotUsed: AugmentedError<ApiType>;
2086
2080
  /**
2087
2081
  * There is no delegate approved.
2088
2082
  **/
@@ -2321,12 +2321,6 @@ declare module '@polkadot/api-base/types/events' {
2321
2321
  data: Bytes;
2322
2322
  isFrozen: bool;
2323
2323
  }>;
2324
- /**
2325
- * Event gets emmited when the `NextCollectionId` gets incremented.
2326
- **/
2327
- NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: u32], {
2328
- nextId: u32;
2329
- }>;
2330
2324
  /**
2331
2325
  * The owner changed.
2332
2326
  **/
@@ -1771,11 +1771,6 @@ declare module '@polkadot/api-base/types/storage' {
1771
1771
  * Price of an asset instance.
1772
1772
  **/
1773
1773
  itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
1774
- /**
1775
- * Stores the `CollectionId` that is going to be used for the next collection.
1776
- * This gets incremented by 1 whenever a new collection is created.
1777
- **/
1778
- nextCollectionId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1779
1774
  /**
1780
1775
  * The collection, if any, of which an account is willing to take ownership.
1781
1776
  **/