@totochain/api-augment 0.1.0 → 0.2.0
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/README.md +1 -1
- package/dist/interfaces/augment-api-consts.d.ts +113 -71
- package/dist/interfaces/augment-api-errors.d.ts +71 -44
- package/dist/interfaces/augment-api-events.d.ts +235 -201
- package/dist/interfaces/augment-api-query.d.ts +145 -104
- package/dist/interfaces/augment-api-tx.d.ts +52 -29
- package/dist/interfaces/lookup.d.ts +319 -266
- package/dist/interfaces/lookup.js +334 -281
- package/dist/interfaces/registry.d.ts +7 -6
- package/dist/interfaces/types-lookup.d.ts +367 -308
- package/package.json +1 -1
- package/src/interfaces/augment-api-consts.ts +113 -71
- package/src/interfaces/augment-api-errors.ts +71 -44
- package/src/interfaces/augment-api-events.ts +153 -140
- package/src/interfaces/augment-api-query.ts +145 -104
- package/src/interfaces/augment-api-tx.ts +52 -29
- package/src/interfaces/lookup.ts +334 -281
- package/src/interfaces/registry.ts +7 -6
- package/src/interfaces/types-lookup.ts +369 -309
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Without it, `api.tx.ctype.add` accepts any arguments and returns `AnyTuple`. Wit
|
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
api.tx.ctype.add(ctypeHash); // ctype: string | Uint8Array | Bytes
|
|
26
|
-
api.query.attestation.attestations(
|
|
26
|
+
api.query.attestation.attestations(subject, ctypeHash); // typed storage result
|
|
27
27
|
api.consts.potential.minPotential; // typed constant
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -2,6 +2,7 @@ import '@polkadot/api-base/types/consts';
|
|
|
2
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
3
3
|
import type { 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, Permill } from '@polkadot/types/interfaces/runtime';
|
|
5
6
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
6
7
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
7
8
|
declare module '@polkadot/api-base/types/consts' {
|
|
@@ -118,49 +119,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
118
119
|
**/
|
|
119
120
|
[key: string]: Codec;
|
|
120
121
|
};
|
|
121
|
-
fractionalNft: {
|
|
122
|
-
/**
|
|
123
|
-
* Block number at which the genesis boost period ends.
|
|
124
|
-
* During the boost period, GenesisWildcardThreshold is used instead of WildcardThreshold.
|
|
125
|
-
**/
|
|
126
|
-
genesisBoostEndBlock: u32 & AugmentedConst<ApiType>;
|
|
127
|
-
/**
|
|
128
|
-
* Wildcard threshold during the genesis boost period.
|
|
129
|
-
* After GenesisBoostEndBlock, the normal WildcardThreshold applies.
|
|
130
|
-
**/
|
|
131
|
-
genesisWildcardThreshold: u32 & AugmentedConst<ApiType>;
|
|
132
|
-
/**
|
|
133
|
-
* Maximum depth for lineage chain walking during block reward distribution.
|
|
134
|
-
* Prevents unbounded iteration in `on_finalize` if a lineage chain is very deep.
|
|
135
|
-
**/
|
|
136
|
-
maxLineageRewardDepth: u32 & AugmentedConst<ApiType>;
|
|
137
|
-
/**
|
|
138
|
-
* Maximum unused collection/item IDs tracked for fNFT distribution.
|
|
139
|
-
**/
|
|
140
|
-
maxUnusedIds: u32 & AugmentedConst<ApiType>;
|
|
141
|
-
/**
|
|
142
|
-
* Maximum delay in blocks before wildcard distribution (e.g. 24 hours).
|
|
143
|
-
**/
|
|
144
|
-
maxWildcardDistributionDelay: u32 & AugmentedConst<ApiType>;
|
|
145
|
-
/**
|
|
146
|
-
* Minimum delay in blocks before wildcard distribution (e.g. 1 hour).
|
|
147
|
-
**/
|
|
148
|
-
minWildcardDistributionDelay: u32 & AugmentedConst<ApiType>;
|
|
149
|
-
/**
|
|
150
|
-
* Because this pallet emits events, it depends on the runtime's definition of an event.
|
|
151
|
-
* The reward pool's pallet id, used for deriving its sovereign account ID.
|
|
152
|
-
**/
|
|
153
|
-
rewardPoolPalletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
154
|
-
/**
|
|
155
|
-
* The collection ID used for wildcard NFTs.
|
|
156
|
-
* Set once at genesis; must match the ID assigned by `pallet_uniques::create`.
|
|
157
|
-
**/
|
|
158
|
-
wildcardCollectionId: u32 & AugmentedConst<ApiType>;
|
|
159
|
-
/**
|
|
160
|
-
* Generic const
|
|
161
|
-
**/
|
|
162
|
-
[key: string]: Codec;
|
|
163
|
-
};
|
|
164
122
|
grandpa: {
|
|
165
123
|
/**
|
|
166
124
|
* Max Authorities in use
|
|
@@ -385,6 +343,76 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
385
343
|
**/
|
|
386
344
|
[key: string]: Codec;
|
|
387
345
|
};
|
|
346
|
+
puzzlePieces: {
|
|
347
|
+
/**
|
|
348
|
+
* Block-channel cadence: the block author (tier 1) and its lineage winners (tier 2)
|
|
349
|
+
* are paid only on blocks whose number is a multiple of this. The activation channel
|
|
350
|
+
* (`pallet_referral::activate_referral`) is an event, not a cadence, and is never
|
|
351
|
+
* throttled.
|
|
352
|
+
**/
|
|
353
|
+
blocksPerRewardPiece: u32 & AugmentedConst<ApiType>;
|
|
354
|
+
/**
|
|
355
|
+
* Block entropy outputs, produced after the commit block, that an activation draw
|
|
356
|
+
* waits for. The commit block's own output, which its author knows, adds one more.
|
|
357
|
+
**/
|
|
358
|
+
drawEntropyDelay: u32 & AugmentedConst<ApiType>;
|
|
359
|
+
/**
|
|
360
|
+
* Block number at which the genesis boost period ends.
|
|
361
|
+
* During the boost period, GenesisWildcardThreshold is used instead of WildcardThreshold.
|
|
362
|
+
**/
|
|
363
|
+
genesisBoostEndBlock: u32 & AugmentedConst<ApiType>;
|
|
364
|
+
/**
|
|
365
|
+
* Wildcard threshold during the genesis boost period.
|
|
366
|
+
* After GenesisBoostEndBlock, the normal WildcardThreshold applies.
|
|
367
|
+
**/
|
|
368
|
+
genesisWildcardThreshold: u32 & AugmentedConst<ApiType>;
|
|
369
|
+
/**
|
|
370
|
+
* Maximum depth for lineage chain walking during block reward distribution.
|
|
371
|
+
* Prevents unbounded iteration in `on_finalize` if a lineage chain is very deep.
|
|
372
|
+
**/
|
|
373
|
+
maxLineageRewardDepth: u32 & AugmentedConst<ApiType>;
|
|
374
|
+
/**
|
|
375
|
+
* Most activation draws waiting at once. An activation beyond it fails with
|
|
376
|
+
* [`Error::DrawQueueFull`] and its referral stays pending. An activation in a block
|
|
377
|
+
* whose weight, draw resolution included, already passed the Normal class's
|
|
378
|
+
* `max_total` fails with [`Error::DrawBlockFull`], which keeps the rest of the block for
|
|
379
|
+
* `on_idle`.
|
|
380
|
+
**/
|
|
381
|
+
maxPendingDraws: u32 & AugmentedConst<ApiType>;
|
|
382
|
+
/**
|
|
383
|
+
* Pieces in the largest reward set. A new set's size is drawn from
|
|
384
|
+
* [`SET_SIZE_TIERS`](crate::types::SET_SIZE_TIERS) scaled to this cap, so it must
|
|
385
|
+
* be a multiple of the ladder's largest divisor (16).
|
|
386
|
+
**/
|
|
387
|
+
maxSetSize: u32 & AugmentedConst<ApiType>;
|
|
388
|
+
/**
|
|
389
|
+
* Maximum delay in blocks before wildcard distribution (e.g. 24 hours).
|
|
390
|
+
**/
|
|
391
|
+
maxWildcardDistributionDelay: u32 & AugmentedConst<ApiType>;
|
|
392
|
+
/**
|
|
393
|
+
* Minimum delay in blocks before wildcard distribution (e.g. 1 hour).
|
|
394
|
+
**/
|
|
395
|
+
minWildcardDistributionDelay: u32 & AugmentedConst<ApiType>;
|
|
396
|
+
/**
|
|
397
|
+
* Reward sets filling at once. Every reward piece lands in one of them, picked at
|
|
398
|
+
* random, so the pieces of one set end up spread over many holders.
|
|
399
|
+
**/
|
|
400
|
+
openSetCount: u32 & AugmentedConst<ApiType>;
|
|
401
|
+
/**
|
|
402
|
+
* Because this pallet emits events, it depends on the runtime's definition of an event.
|
|
403
|
+
* The reward pool's pallet id, used for deriving its sovereign account ID.
|
|
404
|
+
**/
|
|
405
|
+
rewardPoolPalletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
406
|
+
/**
|
|
407
|
+
* The collection ID used for wildcard puzzle pieces.
|
|
408
|
+
* Set once at genesis; must match the ID assigned by `pallet_uniques::create`.
|
|
409
|
+
**/
|
|
410
|
+
wildcardCollectionId: u32 & AugmentedConst<ApiType>;
|
|
411
|
+
/**
|
|
412
|
+
* Generic const
|
|
413
|
+
**/
|
|
414
|
+
[key: string]: Codec;
|
|
415
|
+
};
|
|
388
416
|
referenda: {
|
|
389
417
|
/**
|
|
390
418
|
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
@@ -480,21 +508,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
480
508
|
};
|
|
481
509
|
rewardPool: {
|
|
482
510
|
/**
|
|
483
|
-
*
|
|
484
|
-
**/
|
|
485
|
-
blocksPerDay: u32 & AugmentedConst<ApiType>;
|
|
486
|
-
/**
|
|
487
|
-
* Maximum number of NFTs a user can submit per day
|
|
488
|
-
**/
|
|
489
|
-
maxDailyNftSubmissions: u32 & AugmentedConst<ApiType>;
|
|
490
|
-
/**
|
|
491
|
-
* Maximum number of fractional NFTs
|
|
511
|
+
* Maximum number of puzzle pieces
|
|
492
512
|
**/
|
|
493
513
|
maxVectorLength: u32 & AugmentedConst<ApiType>;
|
|
494
|
-
/**
|
|
495
|
-
* Minimum reputation a sender must hold to submit an NFT to the pool.
|
|
496
|
-
**/
|
|
497
|
-
minReputationForNftSubmission: u32 & AugmentedConst<ApiType>;
|
|
498
514
|
/**
|
|
499
515
|
* The reward pool's pallet id, used for deriving its sovereign account ID.
|
|
500
516
|
**/
|
|
@@ -511,18 +527,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
511
527
|
* Reward calculator Gamma parameter (Noisy-OR combination exponent)
|
|
512
528
|
**/
|
|
513
529
|
rewardGamma: u32 & AugmentedConst<ApiType>;
|
|
514
|
-
/**
|
|
515
|
-
* Reward calculator H_nft parameter (Hill function half-maximal for NFT count)
|
|
516
|
-
**/
|
|
517
|
-
rewardHNft: u128 & AugmentedConst<ApiType>;
|
|
518
530
|
/**
|
|
519
531
|
* Reward calculator H_ref parameter (Hill function half-maximal for referral count)
|
|
520
532
|
**/
|
|
521
533
|
rewardHRef: u128 & AugmentedConst<ApiType>;
|
|
522
|
-
/**
|
|
523
|
-
* Reward calculator K_nft parameter (Hill function exponent for NFT count)
|
|
524
|
-
**/
|
|
525
|
-
rewardKNft: u32 & AugmentedConst<ApiType>;
|
|
526
534
|
/**
|
|
527
535
|
* Reward calculator K_ref parameter (Hill function exponent for referral count)
|
|
528
536
|
**/
|
|
@@ -531,6 +539,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
531
539
|
* Reward calculator minimum percentage (floor) in Permill parts
|
|
532
540
|
**/
|
|
533
541
|
rewardMinParts: u32 & AugmentedConst<ApiType>;
|
|
542
|
+
/**
|
|
543
|
+
* Unlock score of a sealed reward set by its size tier, in the order of
|
|
544
|
+
* [`pallet_puzzle_pieces::types::SET_SIZE_TIERS`] (smallest set first). It is the
|
|
545
|
+
* set's side of the noisy-OR, in place of a curve over the piece count: a sealed set
|
|
546
|
+
* only ever has one of these sizes.
|
|
547
|
+
**/
|
|
548
|
+
rewardSetScores: Vec<Permill> & AugmentedConst<ApiType>;
|
|
534
549
|
/**
|
|
535
550
|
* Unlock coefficient
|
|
536
551
|
**/
|
|
@@ -643,6 +658,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
643
658
|
};
|
|
644
659
|
techCommitteeManager: {
|
|
645
660
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
661
|
+
/**
|
|
662
|
+
* Reputation an account needs to register as a candidate and to be seated.
|
|
663
|
+
*
|
|
664
|
+
* Checked on registration and again at every selection, because reputation also
|
|
665
|
+
* falls (activity ages out, offence penalties are subtracted). A candidate below it
|
|
666
|
+
* keeps its registration and is seated again once it recovers.
|
|
667
|
+
*
|
|
668
|
+
* Must be at least 1: zero would admit accounts that have done nothing on the
|
|
669
|
+
* chain, which is the hole this floor closes. Enforced in `integrity_test`.
|
|
670
|
+
**/
|
|
671
|
+
minCandidateReputation: u32 & AugmentedConst<ApiType>;
|
|
646
672
|
/**
|
|
647
673
|
* Smallest committee that may act.
|
|
648
674
|
**/
|
|
@@ -770,9 +796,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
770
796
|
};
|
|
771
797
|
validatorManager: {
|
|
772
798
|
/**
|
|
773
|
-
*
|
|
799
|
+
* Share of reputation taken per equivocation offence, whatever the slash
|
|
800
|
+
* fraction the offence reports
|
|
774
801
|
**/
|
|
775
|
-
|
|
802
|
+
equivocationPenalty: Perbill & AugmentedConst<ApiType>;
|
|
776
803
|
/**
|
|
777
804
|
* The maximal number of active validators
|
|
778
805
|
**/
|
|
@@ -792,24 +819,39 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
792
819
|
/**
|
|
793
820
|
* Maximum cumulative reputation penalty
|
|
794
821
|
**/
|
|
795
|
-
maxReputationPenalty:
|
|
822
|
+
maxReputationPenalty: Perbill & AugmentedConst<ApiType>;
|
|
796
823
|
/**
|
|
797
824
|
* Maximum total reputation cap
|
|
798
825
|
**/
|
|
799
826
|
maxTotalReputation: u32 & AugmentedConst<ApiType>;
|
|
827
|
+
/**
|
|
828
|
+
* Reputation an account must hold to enter, and stay in, the pool the
|
|
829
|
+
* active validator set is drawn from.
|
|
830
|
+
*
|
|
831
|
+
* Checked twice on purpose: `register_validator` rejects an account
|
|
832
|
+
* below it, and `execute_maintenance` re-checks every session, because
|
|
833
|
+
* reputation moves — it decays with activity age and is reduced by
|
|
834
|
+
* offence penalties, so a candidate that qualified on registration need
|
|
835
|
+
* not still qualify at the draw.
|
|
836
|
+
*
|
|
837
|
+
* Must be at least 1: the draw weights a candidate by its reputation,
|
|
838
|
+
* and a zero-reputation candidate holds no tickets, so admitting one
|
|
839
|
+
* would quietly shrink the active set. Enforced in `integrity_test`.
|
|
840
|
+
**/
|
|
841
|
+
minValidatorReputation: u32 & AugmentedConst<ApiType>;
|
|
800
842
|
/**
|
|
801
843
|
* Minimum number of validators a new selection must contain; below it the
|
|
802
844
|
* previous validator set and candidate registry are retained.
|
|
803
845
|
**/
|
|
804
846
|
minValidators: u32 & AugmentedConst<ApiType>;
|
|
805
847
|
/**
|
|
806
|
-
*
|
|
848
|
+
* Share of reputation taken per offline offence
|
|
807
849
|
**/
|
|
808
|
-
offlinePenalty:
|
|
850
|
+
offlinePenalty: Perbill & AugmentedConst<ApiType>;
|
|
809
851
|
/**
|
|
810
|
-
*
|
|
852
|
+
* Share of penalty decayed (subtracted) each session during maintenance
|
|
811
853
|
**/
|
|
812
|
-
penaltyDecayPerSession:
|
|
854
|
+
penaltyDecayPerSession: Perbill & AugmentedConst<ApiType>;
|
|
813
855
|
/**
|
|
814
856
|
* Generic const
|
|
815
857
|
**/
|
|
@@ -13,10 +13,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
13
13
|
AlreadyAProvider: AugmentedError<ApiType>;
|
|
14
14
|
AlreadyAttested: AugmentedError<ApiType>;
|
|
15
15
|
AlreadyRevoked: AugmentedError<ApiType>;
|
|
16
|
-
AuthorizationNotSupported: AugmentedError<ApiType>;
|
|
17
16
|
CtypeNotFound: AugmentedError<ApiType>;
|
|
18
17
|
CtypeWeightAlreadySet: AugmentedError<ApiType>;
|
|
19
18
|
CtypeWeightNotFound: AugmentedError<ApiType>;
|
|
19
|
+
/**
|
|
20
|
+
* The `(subject, ctype_hash)` slot holds another issuance than the one the call names.
|
|
21
|
+
**/
|
|
22
|
+
IssuanceMismatch: AugmentedError<ApiType>;
|
|
20
23
|
NotAProvider: AugmentedError<ApiType>;
|
|
21
24
|
NotFound: AugmentedError<ApiType>;
|
|
22
25
|
TooManyClaimsForSubject: AugmentedError<ApiType>;
|
|
@@ -201,34 +204,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
201
204
|
**/
|
|
202
205
|
[key: string]: AugmentedError<ApiType>;
|
|
203
206
|
};
|
|
204
|
-
fractionalNft: {
|
|
205
|
-
ArithmeticOverflow: AugmentedError<ApiType>;
|
|
206
|
-
ArithmeticUnderflow: AugmentedError<ApiType>;
|
|
207
|
-
CollectionIdOverflow: AugmentedError<ApiType>;
|
|
208
|
-
DistributeFractionalNftRewardFailed: AugmentedError<ApiType>;
|
|
209
|
-
InvalidWildcardThreshold: AugmentedError<ApiType>;
|
|
210
|
-
ItemIdOverflow: AugmentedError<ApiType>;
|
|
211
|
-
/**
|
|
212
|
-
* Maximum unused IDs exceeded.
|
|
213
|
-
**/
|
|
214
|
-
MaxUnusedIdsExceeded: AugmentedError<ApiType>;
|
|
215
|
-
TotalFNFTsNotSet: AugmentedError<ApiType>;
|
|
216
|
-
TransferFractionalNftFailed: AugmentedError<ApiType>;
|
|
217
|
-
/**
|
|
218
|
-
* The unused-NFT pool is internally inconsistent beyond what
|
|
219
|
-
* `distribute_unused_nft` can self-heal, so a reward could not be picked.
|
|
220
|
-
* Distinct from an empty pool (true scarcity): this signals storage
|
|
221
|
-
* corruption that needs manual repair, and it aborts the surrounding
|
|
222
|
-
* distribution as an error rather than a silent shortfall.
|
|
223
|
-
**/
|
|
224
|
-
UnusedNftPoolInconsistent: AugmentedError<ApiType>;
|
|
225
|
-
WildcardCollectionNotSet: AugmentedError<ApiType>;
|
|
226
|
-
WildcardThresholdNotSet: AugmentedError<ApiType>;
|
|
227
|
-
/**
|
|
228
|
-
* Generic error
|
|
229
|
-
**/
|
|
230
|
-
[key: string]: AugmentedError<ApiType>;
|
|
231
|
-
};
|
|
232
207
|
grandpa: {
|
|
233
208
|
/**
|
|
234
209
|
* Attempt to signal GRANDPA change with one already pending.
|
|
@@ -601,6 +576,52 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
601
576
|
**/
|
|
602
577
|
[key: string]: AugmentedError<ApiType>;
|
|
603
578
|
};
|
|
579
|
+
puzzlePieces: {
|
|
580
|
+
ArithmeticOverflow: AugmentedError<ApiType>;
|
|
581
|
+
ArithmeticUnderflow: AugmentedError<ApiType>;
|
|
582
|
+
CollectionIdOverflow: AugmentedError<ApiType>;
|
|
583
|
+
/**
|
|
584
|
+
* A leftover piece of the retired collection still exists.
|
|
585
|
+
**/
|
|
586
|
+
CollectionNotEmpty: AugmentedError<ApiType>;
|
|
587
|
+
DistributePuzzlePieceRewardFailed: AugmentedError<ApiType>;
|
|
588
|
+
/**
|
|
589
|
+
* The block already holds the Normal class's `max_total` of weight, draw resolution
|
|
590
|
+
* included: a new draw waits for a later block, so `on_idle` keeps the rest.
|
|
591
|
+
**/
|
|
592
|
+
DrawBlockFull: AugmentedError<ApiType>;
|
|
593
|
+
/**
|
|
594
|
+
* `MaxPendingDraws` activation draws are already waiting.
|
|
595
|
+
**/
|
|
596
|
+
DrawQueueFull: AugmentedError<ApiType>;
|
|
597
|
+
InvalidWildcardThreshold: AugmentedError<ApiType>;
|
|
598
|
+
ItemIdOverflow: AugmentedError<ApiType>;
|
|
599
|
+
/**
|
|
600
|
+
* No reward set is open, so a reward piece has nowhere to go. Genesis opens every
|
|
601
|
+
* slot and a sealed set is replaced in the same mint, so this means corrupt storage.
|
|
602
|
+
**/
|
|
603
|
+
NoOpenSet: AugmentedError<ApiType>;
|
|
604
|
+
/**
|
|
605
|
+
* The collection was not retired by a partial unlock.
|
|
606
|
+
**/
|
|
607
|
+
NotRetiredCollection: AugmentedError<ApiType>;
|
|
608
|
+
/**
|
|
609
|
+
* Minting a reward piece failed inside the puzzle-piece layer.
|
|
610
|
+
**/
|
|
611
|
+
RewardMintFailed: AugmentedError<ApiType>;
|
|
612
|
+
/**
|
|
613
|
+
* A draw's upline is longer than the referrer plus `MaxLineageRewardDepth` ancestors.
|
|
614
|
+
**/
|
|
615
|
+
TooManyDrawRecipients: AugmentedError<ApiType>;
|
|
616
|
+
TotalPuzzlePiecesNotSet: AugmentedError<ApiType>;
|
|
617
|
+
TransferPuzzlePieceFailed: AugmentedError<ApiType>;
|
|
618
|
+
WildcardCollectionNotSet: AugmentedError<ApiType>;
|
|
619
|
+
WildcardThresholdNotSet: AugmentedError<ApiType>;
|
|
620
|
+
/**
|
|
621
|
+
* Generic error
|
|
622
|
+
**/
|
|
623
|
+
[key: string]: AugmentedError<ApiType>;
|
|
624
|
+
};
|
|
604
625
|
referenda: {
|
|
605
626
|
/**
|
|
606
627
|
* The referendum index provided is invalid in this context.
|
|
@@ -665,8 +686,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
665
686
|
};
|
|
666
687
|
referral: {
|
|
667
688
|
/**
|
|
668
|
-
* No pending referral for the caller
|
|
669
|
-
* rejected a reward — the whole activation rolls back.
|
|
689
|
+
* No pending referral for the caller.
|
|
670
690
|
**/
|
|
671
691
|
ActivateReferralFailed: AugmentedError<ApiType>;
|
|
672
692
|
/**
|
|
@@ -758,19 +778,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
758
778
|
* can safely handle within block weight limits. Bounded by [`MAX_UNLOCK_ITEMS`].
|
|
759
779
|
**/
|
|
760
780
|
CollectionTooLargeToUnlock: AugmentedError<ApiType>;
|
|
761
|
-
DailyNftSubmissionLimitExceeded: AugmentedError<ApiType>;
|
|
762
|
-
InsufficientReputationForNftSubmission: AugmentedError<ApiType>;
|
|
763
|
-
/**
|
|
764
|
-
* The `(contract address, token id)` pair is already backing a live collection.
|
|
765
|
-
**/
|
|
766
|
-
NftAlreadyDeposited: AugmentedError<ApiType>;
|
|
767
|
-
/**
|
|
768
|
-
* The submission would mint more fractional-NFT items than [`MAX_SUBMIT_ITEMS`],
|
|
769
|
-
* which is both the benchmarked gas-pricing envelope and the largest collection
|
|
770
|
-
* `unlock` can ever handle.
|
|
771
|
-
**/
|
|
772
|
-
SubmissionTooLarge: AugmentedError<ApiType>;
|
|
773
|
-
SubmitNftFailed: AugmentedError<ApiType>;
|
|
774
781
|
UnlockFailed: AugmentedError<ApiType>;
|
|
775
782
|
/**
|
|
776
783
|
* Generic error
|
|
@@ -910,10 +917,26 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
910
917
|
[key: string]: AugmentedError<ApiType>;
|
|
911
918
|
};
|
|
912
919
|
techCommitteeManager: {
|
|
920
|
+
/**
|
|
921
|
+
* `force_unregister_candidate` banned the account from registering.
|
|
922
|
+
**/
|
|
923
|
+
CandidateBanned: AugmentedError<ApiType>;
|
|
924
|
+
/**
|
|
925
|
+
* The account's reputation is below `MinCandidateReputation`.
|
|
926
|
+
**/
|
|
927
|
+
InsufficientReputation: AugmentedError<ApiType>;
|
|
913
928
|
/**
|
|
914
929
|
* The maximum number of candidates has been reached.
|
|
915
930
|
**/
|
|
916
931
|
MaxCandidatesReached: AugmentedError<ApiType>;
|
|
932
|
+
/**
|
|
933
|
+
* The account is not banned.
|
|
934
|
+
**/
|
|
935
|
+
NotBanned: AugmentedError<ApiType>;
|
|
936
|
+
/**
|
|
937
|
+
* The account is neither a candidate nor a committee member.
|
|
938
|
+
**/
|
|
939
|
+
NotCandidate: AugmentedError<ApiType>;
|
|
917
940
|
/**
|
|
918
941
|
* The selection holds fewer members than `MinMembers`.
|
|
919
942
|
**/
|
|
@@ -1105,6 +1128,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1105
1128
|
[key: string]: AugmentedError<ApiType>;
|
|
1106
1129
|
};
|
|
1107
1130
|
validatorManager: {
|
|
1131
|
+
/**
|
|
1132
|
+
* The account's reputation is below `MinValidatorReputation`.
|
|
1133
|
+
**/
|
|
1134
|
+
InsufficientReputation: AugmentedError<ApiType>;
|
|
1108
1135
|
/**
|
|
1109
1136
|
* The registered validators list is full.
|
|
1110
1137
|
**/
|