@totochain/api-augment 0.0.0-stage → 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.
Files changed (59) hide show
  1. package/README.md +70 -2
  2. package/dist/definitions/definitions.d.ts +1 -0
  3. package/dist/definitions/definitions.js +2 -0
  4. package/dist/definitions/totochain/definitions.d.ts +5 -0
  5. package/dist/definitions/totochain/definitions.js +7 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +12 -0
  8. package/dist/interfaces/augment-api-consts.d.ts +861 -0
  9. package/dist/interfaces/augment-api-consts.js +5 -0
  10. package/dist/interfaces/augment-api-errors.d.ts +1183 -0
  11. package/dist/interfaces/augment-api-errors.js +5 -0
  12. package/dist/interfaces/augment-api-events.d.ts +2033 -0
  13. package/dist/interfaces/augment-api-events.js +5 -0
  14. package/dist/interfaces/augment-api-query.d.ts +1375 -0
  15. package/dist/interfaces/augment-api-query.js +5 -0
  16. package/dist/interfaces/augment-api-rpc.d.ts +683 -0
  17. package/dist/interfaces/augment-api-rpc.js +5 -0
  18. package/dist/interfaces/augment-api-runtime.d.ts +298 -0
  19. package/dist/interfaces/augment-api-runtime.js +5 -0
  20. package/dist/interfaces/augment-api-tx.d.ts +2356 -0
  21. package/dist/interfaces/augment-api-tx.js +5 -0
  22. package/dist/interfaces/augment-api.d.ts +7 -0
  23. package/dist/interfaces/augment-api.js +9 -0
  24. package/dist/interfaces/augment-types.d.ts +1368 -0
  25. package/dist/interfaces/augment-types.js +5 -0
  26. package/dist/interfaces/definitions.d.ts +1 -0
  27. package/dist/interfaces/definitions.js +2 -0
  28. package/dist/interfaces/index.d.ts +1 -0
  29. package/dist/interfaces/index.js +3 -0
  30. package/dist/interfaces/lookup.d.ts +3952 -0
  31. package/dist/interfaces/lookup.js +3954 -0
  32. package/dist/interfaces/registry.d.ts +279 -0
  33. package/dist/interfaces/registry.js +5 -0
  34. package/dist/interfaces/totochain/definitions.d.ts +5 -0
  35. package/dist/interfaces/totochain/definitions.js +7 -0
  36. package/dist/interfaces/types-lookup.d.ts +4085 -0
  37. package/dist/interfaces/types-lookup.js +5 -0
  38. package/dist/interfaces/types.d.ts +1 -0
  39. package/dist/interfaces/types.js +3 -0
  40. package/package.json +69 -4
  41. package/src/definitions/definitions.ts +2 -0
  42. package/src/definitions/totochain/definitions.ts +7 -0
  43. package/src/index.ts +15 -0
  44. package/src/interfaces/augment-api-consts.ts +869 -0
  45. package/src/interfaces/augment-api-errors.ts +1191 -0
  46. package/src/interfaces/augment-api-events.ts +1307 -0
  47. package/src/interfaces/augment-api-query.ts +1383 -0
  48. package/src/interfaces/augment-api-rpc.ts +621 -0
  49. package/src/interfaces/augment-api-runtime.ts +264 -0
  50. package/src/interfaces/augment-api-tx.ts +2175 -0
  51. package/src/interfaces/augment-api.ts +10 -0
  52. package/src/interfaces/augment-types.ts +1375 -0
  53. package/src/interfaces/definitions.ts +2 -0
  54. package/src/interfaces/index.ts +4 -0
  55. package/src/interfaces/lookup.ts +3956 -0
  56. package/src/interfaces/registry.ts +286 -0
  57. package/src/interfaces/totochain/definitions.ts +7 -0
  58. package/src/interfaces/types-lookup.ts +4352 -0
  59. package/src/interfaces/types.ts +4 -0
@@ -0,0 +1,1191 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import '@polkadot/api-base/types/errors';
7
+
8
+ import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
9
+
10
+ export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
11
+
12
+ declare module '@polkadot/api-base/types/errors' {
13
+ interface AugmentedErrors<ApiType extends ApiTypes> {
14
+ activityTracker: {
15
+ /**
16
+ * Generic error
17
+ **/
18
+ [key: string]: AugmentedError<ApiType>;
19
+ };
20
+ attestation: {
21
+ AlreadyAProvider: AugmentedError<ApiType>;
22
+ AlreadyAttested: AugmentedError<ApiType>;
23
+ AlreadyRevoked: AugmentedError<ApiType>;
24
+ CtypeNotFound: AugmentedError<ApiType>;
25
+ CtypeWeightAlreadySet: AugmentedError<ApiType>;
26
+ CtypeWeightNotFound: AugmentedError<ApiType>;
27
+ /**
28
+ * The `(subject, ctype_hash)` slot holds another issuance than the one the call names.
29
+ **/
30
+ IssuanceMismatch: AugmentedError<ApiType>;
31
+ NotAProvider: AugmentedError<ApiType>;
32
+ NotFound: AugmentedError<ApiType>;
33
+ TooManyClaimsForSubject: AugmentedError<ApiType>;
34
+ TooManyProviders: AugmentedError<ApiType>;
35
+ Unauthorized: AugmentedError<ApiType>;
36
+ /**
37
+ * Generic error
38
+ **/
39
+ [key: string]: AugmentedError<ApiType>;
40
+ };
41
+ babe: {
42
+ /**
43
+ * A given equivocation report is valid but already previously reported.
44
+ **/
45
+ DuplicateOffenceReport: AugmentedError<ApiType>;
46
+ /**
47
+ * Submitted configuration is invalid.
48
+ **/
49
+ InvalidConfiguration: AugmentedError<ApiType>;
50
+ /**
51
+ * An equivocation proof provided as part of an equivocation report is invalid.
52
+ **/
53
+ InvalidEquivocationProof: AugmentedError<ApiType>;
54
+ /**
55
+ * A key ownership proof provided as part of an equivocation report is invalid.
56
+ **/
57
+ InvalidKeyOwnershipProof: AugmentedError<ApiType>;
58
+ /**
59
+ * Generic error
60
+ **/
61
+ [key: string]: AugmentedError<ApiType>;
62
+ };
63
+ balances: {
64
+ /**
65
+ * Beneficiary account must pre-exist.
66
+ **/
67
+ DeadAccount: AugmentedError<ApiType>;
68
+ /**
69
+ * The delta cannot be zero.
70
+ **/
71
+ DeltaZero: AugmentedError<ApiType>;
72
+ /**
73
+ * Value too low to create account due to existential deposit.
74
+ **/
75
+ ExistentialDeposit: AugmentedError<ApiType>;
76
+ /**
77
+ * A vesting schedule already exists for this account.
78
+ **/
79
+ ExistingVestingSchedule: AugmentedError<ApiType>;
80
+ /**
81
+ * Transfer/payment would kill account.
82
+ **/
83
+ Expendability: AugmentedError<ApiType>;
84
+ /**
85
+ * Balance too low to send value.
86
+ **/
87
+ InsufficientBalance: AugmentedError<ApiType>;
88
+ /**
89
+ * The issuance cannot be modified since it is already deactivated.
90
+ **/
91
+ IssuanceDeactivated: AugmentedError<ApiType>;
92
+ /**
93
+ * Account liquidity restrictions prevent withdrawal.
94
+ **/
95
+ LiquidityRestrictions: AugmentedError<ApiType>;
96
+ /**
97
+ * Number of freezes exceed `MaxFreezes`.
98
+ **/
99
+ TooManyFreezes: AugmentedError<ApiType>;
100
+ /**
101
+ * Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
102
+ **/
103
+ TooManyHolds: AugmentedError<ApiType>;
104
+ /**
105
+ * Number of named reserves exceed `MaxReserves`.
106
+ **/
107
+ TooManyReserves: AugmentedError<ApiType>;
108
+ /**
109
+ * Vesting balance too high to send value.
110
+ **/
111
+ VestingBalance: AugmentedError<ApiType>;
112
+ /**
113
+ * Generic error
114
+ **/
115
+ [key: string]: AugmentedError<ApiType>;
116
+ };
117
+ ctype: {
118
+ AlreadyExists: AugmentedError<ApiType>;
119
+ CannotPayFee: AugmentedError<ApiType>;
120
+ Empty: AugmentedError<ApiType>;
121
+ TooLong: AugmentedError<ApiType>;
122
+ /**
123
+ * Generic error
124
+ **/
125
+ [key: string]: AugmentedError<ApiType>;
126
+ };
127
+ did: {
128
+ AlreadyExists: AugmentedError<ApiType>;
129
+ CannotPayFee: AugmentedError<ApiType>;
130
+ /**
131
+ * Generic error
132
+ **/
133
+ [key: string]: AugmentedError<ApiType>;
134
+ };
135
+ ethereum: {
136
+ /**
137
+ * Signature is invalid.
138
+ **/
139
+ InvalidSignature: AugmentedError<ApiType>;
140
+ /**
141
+ * Pre-log is present, therefore transact is not allowed.
142
+ **/
143
+ PreLogExists: AugmentedError<ApiType>;
144
+ /**
145
+ * Generic error
146
+ **/
147
+ [key: string]: AugmentedError<ApiType>;
148
+ };
149
+ evm: {
150
+ /**
151
+ * Not enough balance to perform action
152
+ **/
153
+ BalanceLow: AugmentedError<ApiType>;
154
+ /**
155
+ * Address not allowed to deploy contracts either via CREATE or CALL(CREATE).
156
+ **/
157
+ CreateOriginNotAllowed: AugmentedError<ApiType>;
158
+ /**
159
+ * Calculating total fee overflowed
160
+ **/
161
+ FeeOverflow: AugmentedError<ApiType>;
162
+ /**
163
+ * Gas limit exceeds block gas limit.
164
+ **/
165
+ GasLimitExceedsBlockLimit: AugmentedError<ApiType>;
166
+ /**
167
+ * Gas limit is too low.
168
+ **/
169
+ GasLimitTooLow: AugmentedError<ApiType>;
170
+ /**
171
+ * Gas price is too low.
172
+ **/
173
+ GasPriceTooLow: AugmentedError<ApiType>;
174
+ /**
175
+ * The chain id is invalid.
176
+ **/
177
+ InvalidChainId: AugmentedError<ApiType>;
178
+ /**
179
+ * Nonce is invalid
180
+ **/
181
+ InvalidNonce: AugmentedError<ApiType>;
182
+ /**
183
+ * the signature is invalid.
184
+ **/
185
+ InvalidSignature: AugmentedError<ApiType>;
186
+ /**
187
+ * Calculating total payment overflowed
188
+ **/
189
+ PaymentOverflow: AugmentedError<ApiType>;
190
+ /**
191
+ * EVM reentrancy
192
+ **/
193
+ Reentrancy: AugmentedError<ApiType>;
194
+ /**
195
+ * EIP-7825: Transaction gas limit exceeds protocol cap (2^24).
196
+ **/
197
+ TransactionGasLimitExceedsCap: AugmentedError<ApiType>;
198
+ /**
199
+ * EIP-3607,
200
+ **/
201
+ TransactionMustComeFromEOA: AugmentedError<ApiType>;
202
+ /**
203
+ * Undefined error.
204
+ **/
205
+ Undefined: AugmentedError<ApiType>;
206
+ /**
207
+ * Withdraw fee failed
208
+ **/
209
+ WithdrawFailed: AugmentedError<ApiType>;
210
+ /**
211
+ * Generic error
212
+ **/
213
+ [key: string]: AugmentedError<ApiType>;
214
+ };
215
+ grandpa: {
216
+ /**
217
+ * Attempt to signal GRANDPA change with one already pending.
218
+ **/
219
+ ChangePending: AugmentedError<ApiType>;
220
+ /**
221
+ * A given equivocation report is valid but already previously reported.
222
+ **/
223
+ DuplicateOffenceReport: AugmentedError<ApiType>;
224
+ /**
225
+ * An equivocation proof provided as part of an equivocation report is invalid.
226
+ **/
227
+ InvalidEquivocationProof: AugmentedError<ApiType>;
228
+ /**
229
+ * A key ownership proof provided as part of an equivocation report is invalid.
230
+ **/
231
+ InvalidKeyOwnershipProof: AugmentedError<ApiType>;
232
+ /**
233
+ * Attempt to signal GRANDPA pause when the authority set isn't live
234
+ * (either paused or already pending pause).
235
+ **/
236
+ PauseFailed: AugmentedError<ApiType>;
237
+ /**
238
+ * Attempt to signal GRANDPA resume when the authority set isn't paused
239
+ * (either live or already pending resume).
240
+ **/
241
+ ResumeFailed: AugmentedError<ApiType>;
242
+ /**
243
+ * Cannot signal forced change so soon after last.
244
+ **/
245
+ TooSoon: AugmentedError<ApiType>;
246
+ /**
247
+ * Generic error
248
+ **/
249
+ [key: string]: AugmentedError<ApiType>;
250
+ };
251
+ handshake: {
252
+ /**
253
+ * Cannot confirm own handshake request - only the recipient can confirm
254
+ **/
255
+ CannotConfirmOwnHandshake: AugmentedError<ApiType>;
256
+ /**
257
+ * Cannot handshake with yourself
258
+ **/
259
+ CannotHandshakeWithYourself: AugmentedError<ApiType>;
260
+ /**
261
+ * Handshake already exists
262
+ **/
263
+ HandshakeAlreadyExists: AugmentedError<ApiType>;
264
+ /**
265
+ * Handshake does not exist
266
+ **/
267
+ HandshakeDoesNotExist: AugmentedError<ApiType>;
268
+ /**
269
+ * Handshake is not confirmed
270
+ **/
271
+ HandshakeIsNotConfirmed: AugmentedError<ApiType>;
272
+ /**
273
+ * Handshake is not pending
274
+ **/
275
+ HandshakeIsNotPending: AugmentedError<ApiType>;
276
+ /**
277
+ * Sender is not an attestation provider
278
+ **/
279
+ SenderIsNotAttestationProvider: AugmentedError<ApiType>;
280
+ /**
281
+ * Generic error
282
+ **/
283
+ [key: string]: AugmentedError<ApiType>;
284
+ };
285
+ identity: {
286
+ /**
287
+ * Account ID is already named.
288
+ **/
289
+ AlreadyClaimed: AugmentedError<ApiType>;
290
+ /**
291
+ * The username cannot be unbound because it is already unbinding.
292
+ **/
293
+ AlreadyUnbinding: AugmentedError<ApiType>;
294
+ /**
295
+ * Empty index.
296
+ **/
297
+ EmptyIndex: AugmentedError<ApiType>;
298
+ /**
299
+ * Fee is changed.
300
+ **/
301
+ FeeChanged: AugmentedError<ApiType>;
302
+ /**
303
+ * The action cannot be performed because of insufficient privileges (e.g. authority
304
+ * trying to unbind a username provided by the system).
305
+ **/
306
+ InsufficientPrivileges: AugmentedError<ApiType>;
307
+ /**
308
+ * The index is invalid.
309
+ **/
310
+ InvalidIndex: AugmentedError<ApiType>;
311
+ /**
312
+ * Invalid judgement.
313
+ **/
314
+ InvalidJudgement: AugmentedError<ApiType>;
315
+ /**
316
+ * The signature on a username was not valid.
317
+ **/
318
+ InvalidSignature: AugmentedError<ApiType>;
319
+ /**
320
+ * The provided suffix is too long.
321
+ **/
322
+ InvalidSuffix: AugmentedError<ApiType>;
323
+ /**
324
+ * The target is invalid.
325
+ **/
326
+ InvalidTarget: AugmentedError<ApiType>;
327
+ /**
328
+ * The username does not meet the requirements.
329
+ **/
330
+ InvalidUsername: AugmentedError<ApiType>;
331
+ /**
332
+ * The provided judgement was for a different identity.
333
+ **/
334
+ JudgementForDifferentIdentity: AugmentedError<ApiType>;
335
+ /**
336
+ * Judgement given.
337
+ **/
338
+ JudgementGiven: AugmentedError<ApiType>;
339
+ /**
340
+ * Error that occurs when there is an issue paying for judgement.
341
+ **/
342
+ JudgementPaymentFailed: AugmentedError<ApiType>;
343
+ /**
344
+ * The authority cannot allocate any more usernames.
345
+ **/
346
+ NoAllocation: AugmentedError<ApiType>;
347
+ /**
348
+ * No identity found.
349
+ **/
350
+ NoIdentity: AugmentedError<ApiType>;
351
+ /**
352
+ * The username cannot be forcefully removed because it can still be accepted.
353
+ **/
354
+ NotExpired: AugmentedError<ApiType>;
355
+ /**
356
+ * Account isn't found.
357
+ **/
358
+ NotFound: AugmentedError<ApiType>;
359
+ /**
360
+ * Account isn't named.
361
+ **/
362
+ NotNamed: AugmentedError<ApiType>;
363
+ /**
364
+ * Sub-account isn't owned by sender.
365
+ **/
366
+ NotOwned: AugmentedError<ApiType>;
367
+ /**
368
+ * Sender is not a sub-account.
369
+ **/
370
+ NotSub: AugmentedError<ApiType>;
371
+ /**
372
+ * The username cannot be removed because it is not unbinding.
373
+ **/
374
+ NotUnbinding: AugmentedError<ApiType>;
375
+ /**
376
+ * The sender does not have permission to issue a username.
377
+ **/
378
+ NotUsernameAuthority: AugmentedError<ApiType>;
379
+ /**
380
+ * The requested username does not exist.
381
+ **/
382
+ NoUsername: AugmentedError<ApiType>;
383
+ /**
384
+ * Setting this username requires a signature, but none was provided.
385
+ **/
386
+ RequiresSignature: AugmentedError<ApiType>;
387
+ /**
388
+ * Sticky judgement.
389
+ **/
390
+ StickyJudgement: AugmentedError<ApiType>;
391
+ /**
392
+ * The username cannot be removed because it's still in the grace period.
393
+ **/
394
+ TooEarly: AugmentedError<ApiType>;
395
+ /**
396
+ * Maximum amount of registrars reached. Cannot add any more.
397
+ **/
398
+ TooManyRegistrars: AugmentedError<ApiType>;
399
+ /**
400
+ * Too many subs-accounts.
401
+ **/
402
+ TooManySubAccounts: AugmentedError<ApiType>;
403
+ /**
404
+ * The username is already taken.
405
+ **/
406
+ UsernameTaken: AugmentedError<ApiType>;
407
+ /**
408
+ * Generic error
409
+ **/
410
+ [key: string]: AugmentedError<ApiType>;
411
+ };
412
+ imOnline: {
413
+ /**
414
+ * Duplicated heartbeat.
415
+ **/
416
+ DuplicatedHeartbeat: AugmentedError<ApiType>;
417
+ /**
418
+ * Non existent public key.
419
+ **/
420
+ InvalidKey: AugmentedError<ApiType>;
421
+ /**
422
+ * Generic error
423
+ **/
424
+ [key: string]: AugmentedError<ApiType>;
425
+ };
426
+ multisig: {
427
+ /**
428
+ * Call is already approved by this signatory.
429
+ **/
430
+ AlreadyApproved: AugmentedError<ApiType>;
431
+ /**
432
+ * The data to be stored is already stored.
433
+ **/
434
+ AlreadyStored: AugmentedError<ApiType>;
435
+ /**
436
+ * The maximum weight information provided was too low.
437
+ **/
438
+ MaxWeightTooLow: AugmentedError<ApiType>;
439
+ /**
440
+ * Threshold must be 2 or greater.
441
+ **/
442
+ MinimumThreshold: AugmentedError<ApiType>;
443
+ /**
444
+ * Call doesn't need any (more) approvals.
445
+ **/
446
+ NoApprovalsNeeded: AugmentedError<ApiType>;
447
+ /**
448
+ * Multisig operation not found in storage.
449
+ **/
450
+ NotFound: AugmentedError<ApiType>;
451
+ /**
452
+ * No timepoint was given, yet the multisig operation is already underway.
453
+ **/
454
+ NoTimepoint: AugmentedError<ApiType>;
455
+ /**
456
+ * Only the account that originally created the multisig is able to cancel it or update
457
+ * its deposits.
458
+ **/
459
+ NotOwner: AugmentedError<ApiType>;
460
+ /**
461
+ * The sender was contained in the other signatories; it shouldn't be.
462
+ **/
463
+ SenderInSignatories: AugmentedError<ApiType>;
464
+ /**
465
+ * The signatories were provided out of order; they should be ordered.
466
+ **/
467
+ SignatoriesOutOfOrder: AugmentedError<ApiType>;
468
+ /**
469
+ * There are too few signatories in the list.
470
+ **/
471
+ TooFewSignatories: AugmentedError<ApiType>;
472
+ /**
473
+ * There are too many signatories in the list.
474
+ **/
475
+ TooManySignatories: AugmentedError<ApiType>;
476
+ /**
477
+ * A timepoint was given, yet no multisig operation is underway.
478
+ **/
479
+ UnexpectedTimepoint: AugmentedError<ApiType>;
480
+ /**
481
+ * A different timepoint was given to the multisig operation that is underway.
482
+ **/
483
+ WrongTimepoint: AugmentedError<ApiType>;
484
+ /**
485
+ * Generic error
486
+ **/
487
+ [key: string]: AugmentedError<ApiType>;
488
+ };
489
+ potential: {
490
+ /**
491
+ * Cycle withdrawal from reward pool failed.
492
+ **/
493
+ CycleWithdrawalFailed: AugmentedError<ApiType>;
494
+ /**
495
+ * An error occurred during the minting process.
496
+ **/
497
+ MintFailed: AugmentedError<ApiType>;
498
+ /**
499
+ * An error occurred during the referral process.
500
+ **/
501
+ ReferralFailed: AugmentedError<ApiType>;
502
+ /**
503
+ * Set active referral share failed.
504
+ **/
505
+ SetActiveReferralShareFailed: AugmentedError<ApiType>;
506
+ /**
507
+ * Generic error
508
+ **/
509
+ [key: string]: AugmentedError<ApiType>;
510
+ };
511
+ preimage: {
512
+ /**
513
+ * Preimage has already been noted on-chain.
514
+ **/
515
+ AlreadyNoted: AugmentedError<ApiType>;
516
+ /**
517
+ * The user is not authorized to perform this action.
518
+ **/
519
+ NotAuthorized: AugmentedError<ApiType>;
520
+ /**
521
+ * The preimage cannot be removed since it has not yet been noted.
522
+ **/
523
+ NotNoted: AugmentedError<ApiType>;
524
+ /**
525
+ * The preimage request cannot be removed since no outstanding requests exist.
526
+ **/
527
+ NotRequested: AugmentedError<ApiType>;
528
+ /**
529
+ * A preimage may not be removed when there are outstanding requests.
530
+ **/
531
+ Requested: AugmentedError<ApiType>;
532
+ /**
533
+ * Preimage is too large to store on-chain.
534
+ **/
535
+ TooBig: AugmentedError<ApiType>;
536
+ /**
537
+ * Too few hashes were requested to be upgraded (i.e. zero).
538
+ **/
539
+ TooFew: AugmentedError<ApiType>;
540
+ /**
541
+ * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
542
+ **/
543
+ TooMany: AugmentedError<ApiType>;
544
+ /**
545
+ * Generic error
546
+ **/
547
+ [key: string]: AugmentedError<ApiType>;
548
+ };
549
+ proxy: {
550
+ /**
551
+ * Account is already a proxy.
552
+ **/
553
+ Duplicate: AugmentedError<ApiType>;
554
+ /**
555
+ * Call may not be made by proxy because it may escalate its privileges.
556
+ **/
557
+ NoPermission: AugmentedError<ApiType>;
558
+ /**
559
+ * Cannot add self as proxy.
560
+ **/
561
+ NoSelfProxy: AugmentedError<ApiType>;
562
+ /**
563
+ * Proxy registration not found.
564
+ **/
565
+ NotFound: AugmentedError<ApiType>;
566
+ /**
567
+ * Sender is not a proxy of the account to be proxied.
568
+ **/
569
+ NotProxy: AugmentedError<ApiType>;
570
+ /**
571
+ * There are too many proxies registered or too many announcements pending.
572
+ **/
573
+ TooMany: AugmentedError<ApiType>;
574
+ /**
575
+ * Announcement, if made at all, was made too recently.
576
+ **/
577
+ Unannounced: AugmentedError<ApiType>;
578
+ /**
579
+ * A call which is incompatible with the proxy type's filter was attempted.
580
+ **/
581
+ Unproxyable: AugmentedError<ApiType>;
582
+ /**
583
+ * Generic error
584
+ **/
585
+ [key: string]: AugmentedError<ApiType>;
586
+ };
587
+ puzzlePieces: {
588
+ ArithmeticOverflow: AugmentedError<ApiType>;
589
+ ArithmeticUnderflow: AugmentedError<ApiType>;
590
+ CollectionIdOverflow: AugmentedError<ApiType>;
591
+ /**
592
+ * A leftover piece of the retired collection still exists.
593
+ **/
594
+ CollectionNotEmpty: AugmentedError<ApiType>;
595
+ DistributePuzzlePieceRewardFailed: AugmentedError<ApiType>;
596
+ /**
597
+ * The block already holds the Normal class's `max_total` of weight, draw resolution
598
+ * included: a new draw waits for a later block, so `on_idle` keeps the rest.
599
+ **/
600
+ DrawBlockFull: AugmentedError<ApiType>;
601
+ /**
602
+ * `MaxPendingDraws` activation draws are already waiting.
603
+ **/
604
+ DrawQueueFull: AugmentedError<ApiType>;
605
+ InvalidWildcardThreshold: AugmentedError<ApiType>;
606
+ ItemIdOverflow: AugmentedError<ApiType>;
607
+ /**
608
+ * No reward set is open, so a reward piece has nowhere to go. Genesis opens every
609
+ * slot and a sealed set is replaced in the same mint, so this means corrupt storage.
610
+ **/
611
+ NoOpenSet: AugmentedError<ApiType>;
612
+ /**
613
+ * The collection was not retired by a partial unlock.
614
+ **/
615
+ NotRetiredCollection: AugmentedError<ApiType>;
616
+ /**
617
+ * Minting a reward piece failed inside the puzzle-piece layer.
618
+ **/
619
+ RewardMintFailed: AugmentedError<ApiType>;
620
+ /**
621
+ * A draw's upline is longer than the referrer plus `MaxLineageRewardDepth` ancestors.
622
+ **/
623
+ TooManyDrawRecipients: AugmentedError<ApiType>;
624
+ TotalPuzzlePiecesNotSet: AugmentedError<ApiType>;
625
+ TransferPuzzlePieceFailed: AugmentedError<ApiType>;
626
+ WildcardCollectionNotSet: AugmentedError<ApiType>;
627
+ WildcardThresholdNotSet: AugmentedError<ApiType>;
628
+ /**
629
+ * Generic error
630
+ **/
631
+ [key: string]: AugmentedError<ApiType>;
632
+ };
633
+ referenda: {
634
+ /**
635
+ * The referendum index provided is invalid in this context.
636
+ **/
637
+ BadReferendum: AugmentedError<ApiType>;
638
+ /**
639
+ * The referendum status is invalid for this operation.
640
+ **/
641
+ BadStatus: AugmentedError<ApiType>;
642
+ /**
643
+ * The track identifier given was invalid.
644
+ **/
645
+ BadTrack: AugmentedError<ApiType>;
646
+ /**
647
+ * There are already a full complement of referenda in progress for this track.
648
+ **/
649
+ Full: AugmentedError<ApiType>;
650
+ /**
651
+ * Referendum's decision deposit is already paid.
652
+ **/
653
+ HasDeposit: AugmentedError<ApiType>;
654
+ /**
655
+ * The deposit cannot be refunded since none was made.
656
+ **/
657
+ NoDeposit: AugmentedError<ApiType>;
658
+ /**
659
+ * The deposit refunder is not the depositor.
660
+ **/
661
+ NoPermission: AugmentedError<ApiType>;
662
+ /**
663
+ * There was nothing to do in the advancement.
664
+ **/
665
+ NothingToDo: AugmentedError<ApiType>;
666
+ /**
667
+ * Referendum is not ongoing.
668
+ **/
669
+ NotOngoing: AugmentedError<ApiType>;
670
+ /**
671
+ * No track exists for the proposal origin.
672
+ **/
673
+ NoTrack: AugmentedError<ApiType>;
674
+ /**
675
+ * The preimage does not exist.
676
+ **/
677
+ PreimageNotExist: AugmentedError<ApiType>;
678
+ /**
679
+ * The preimage is stored with a different length than the one provided.
680
+ **/
681
+ PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
682
+ /**
683
+ * The queue of the track is empty.
684
+ **/
685
+ QueueEmpty: AugmentedError<ApiType>;
686
+ /**
687
+ * Any deposit cannot be refunded until after the decision is over.
688
+ **/
689
+ Unfinished: AugmentedError<ApiType>;
690
+ /**
691
+ * Generic error
692
+ **/
693
+ [key: string]: AugmentedError<ApiType>;
694
+ };
695
+ referral: {
696
+ /**
697
+ * No pending referral for the caller.
698
+ **/
699
+ ActivateReferralFailed: AugmentedError<ApiType>;
700
+ /**
701
+ * The caller is already registered as a block producer, and block producers
702
+ * must be active-tree roots (see `split_tree`). Attaching the caller under
703
+ * its referrer would leave it a non-root node that `do_add_block_producer`
704
+ * can never split again, so the activation is rejected. Activate the pending
705
+ * referral *before* registering as a validator.
706
+ **/
707
+ BlockProducerCannotActivateReferral: AugmentedError<ApiType>;
708
+ /**
709
+ * The proposed referrer is a descendant of the proposed referral —
710
+ * adding the edge would close a cycle.
711
+ **/
712
+ CircularReferralDetected: AugmentedError<ApiType>;
713
+ /**
714
+ * Per-node cap (`MaxChildrenPerNode`) reached, counting active children plus
715
+ * pending entries.
716
+ **/
717
+ MaxChildrenPerNodeReached: AugmentedError<ApiType>;
718
+ /**
719
+ * Per-referrer cap (`MaxPendingReferrals`) reached.
720
+ **/
721
+ MaxPendingReferralsReached: AugmentedError<ApiType>;
722
+ /**
723
+ * The active ancestor chain from the immediate referrer to the tree root
724
+ * already has `MAX_REFERRAL_DEPTH` ancestors; activating this pending
725
+ * referral would extend the chain beyond the bound on which
726
+ * `activate_referral_depth` is benchmarked.
727
+ **/
728
+ MaxReferralDepthExceeded: AugmentedError<ApiType>;
729
+ /**
730
+ * `referral` already has a referrer (active or pending).
731
+ **/
732
+ ReferralAlreadyExists: AugmentedError<ApiType>;
733
+ /**
734
+ * The referrer's pending-or-active ancestor chain is deeper than
735
+ * `MAX_TREE_DEPTH`, so cycle detection cannot verify the new edge is
736
+ * safe. The call is rejected to fail closed.
737
+ **/
738
+ ReferralChainTooDeep: AugmentedError<ApiType>;
739
+ /**
740
+ * Referrer and referral are the same account.
741
+ **/
742
+ SelfReferralNotAllowed: AugmentedError<ApiType>;
743
+ /**
744
+ * Generic error
745
+ **/
746
+ [key: string]: AugmentedError<ApiType>;
747
+ };
748
+ reputationVoting: {
749
+ /**
750
+ * Account has already voted on this poll
751
+ **/
752
+ AlreadyVoted: AugmentedError<ApiType>;
753
+ /**
754
+ * Account does not have enough reputation to vote
755
+ **/
756
+ InsufficientReputation: AugmentedError<ApiType>;
757
+ /**
758
+ * Poll has reached the maximum number of voters
759
+ **/
760
+ MaxVotersReached: AugmentedError<ApiType>;
761
+ /**
762
+ * Account has reached the maximum number of simultaneous votes
763
+ **/
764
+ MaxVotesReached: AugmentedError<ApiType>;
765
+ /**
766
+ * The poll is not ongoing
767
+ **/
768
+ NotOngoing: AugmentedError<ApiType>;
769
+ /**
770
+ * Account has not voted on this poll
771
+ **/
772
+ NotVoted: AugmentedError<ApiType>;
773
+ /**
774
+ * Vote update attempted with the same direction as the existing vote
775
+ **/
776
+ SameDirection: AugmentedError<ApiType>;
777
+ /**
778
+ * Generic error
779
+ **/
780
+ [key: string]: AugmentedError<ApiType>;
781
+ };
782
+ rewardPool: {
783
+ CollectionIdOverflow: AugmentedError<ApiType>;
784
+ /**
785
+ * The target collection holds more valid items than a single `unlock` call
786
+ * can safely handle within block weight limits. Bounded by [`MAX_UNLOCK_ITEMS`].
787
+ **/
788
+ CollectionTooLargeToUnlock: AugmentedError<ApiType>;
789
+ UnlockFailed: AugmentedError<ApiType>;
790
+ /**
791
+ * Generic error
792
+ **/
793
+ [key: string]: AugmentedError<ApiType>;
794
+ };
795
+ safeMode: {
796
+ /**
797
+ * The account already has a deposit reserved and can therefore not enter or extend again.
798
+ **/
799
+ AlreadyDeposited: AugmentedError<ApiType>;
800
+ /**
801
+ * This deposit cannot be released yet.
802
+ **/
803
+ CannotReleaseYet: AugmentedError<ApiType>;
804
+ /**
805
+ * An error from the underlying `Currency`.
806
+ **/
807
+ CurrencyError: AugmentedError<ApiType>;
808
+ /**
809
+ * The safe-mode is (already or still) entered.
810
+ **/
811
+ Entered: AugmentedError<ApiType>;
812
+ /**
813
+ * The safe-mode is (already or still) exited.
814
+ **/
815
+ Exited: AugmentedError<ApiType>;
816
+ /**
817
+ * There is no balance reserved.
818
+ **/
819
+ NoDeposit: AugmentedError<ApiType>;
820
+ /**
821
+ * This functionality of the pallet is disabled by the configuration.
822
+ **/
823
+ NotConfigured: AugmentedError<ApiType>;
824
+ /**
825
+ * Generic error
826
+ **/
827
+ [key: string]: AugmentedError<ApiType>;
828
+ };
829
+ scheduler: {
830
+ /**
831
+ * Failed to schedule a call
832
+ **/
833
+ FailedToSchedule: AugmentedError<ApiType>;
834
+ /**
835
+ * Attempt to use a non-named function on a named task.
836
+ **/
837
+ Named: AugmentedError<ApiType>;
838
+ /**
839
+ * Cannot find the scheduled call.
840
+ **/
841
+ NotFound: AugmentedError<ApiType>;
842
+ /**
843
+ * Reschedule failed because it does not change scheduled time.
844
+ **/
845
+ RescheduleNoChange: AugmentedError<ApiType>;
846
+ /**
847
+ * Given target block number is in the past.
848
+ **/
849
+ TargetBlockNumberInPast: AugmentedError<ApiType>;
850
+ /**
851
+ * Generic error
852
+ **/
853
+ [key: string]: AugmentedError<ApiType>;
854
+ };
855
+ session: {
856
+ /**
857
+ * Registered duplicate key.
858
+ **/
859
+ DuplicatedKey: AugmentedError<ApiType>;
860
+ /**
861
+ * Invalid ownership proof.
862
+ **/
863
+ InvalidProof: AugmentedError<ApiType>;
864
+ /**
865
+ * Key setting account is not live, so it's impossible to associate keys.
866
+ **/
867
+ NoAccount: AugmentedError<ApiType>;
868
+ /**
869
+ * No associated validator ID for account.
870
+ **/
871
+ NoAssociatedValidatorId: AugmentedError<ApiType>;
872
+ /**
873
+ * No keys are associated with this account.
874
+ **/
875
+ NoKeys: AugmentedError<ApiType>;
876
+ /**
877
+ * Generic error
878
+ **/
879
+ [key: string]: AugmentedError<ApiType>;
880
+ };
881
+ system: {
882
+ /**
883
+ * The origin filter prevent the call to be dispatched.
884
+ **/
885
+ CallFiltered: AugmentedError<ApiType>;
886
+ /**
887
+ * Failed to extract the runtime version from the new runtime.
888
+ *
889
+ * Either calling `Core_version` or decoding `RuntimeVersion` failed.
890
+ **/
891
+ FailedToExtractRuntimeVersion: AugmentedError<ApiType>;
892
+ /**
893
+ * The name of specification does not match between the current runtime
894
+ * and the new runtime.
895
+ **/
896
+ InvalidSpecName: AugmentedError<ApiType>;
897
+ /**
898
+ * A multi-block migration is ongoing and prevents the current code from being replaced.
899
+ **/
900
+ MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
901
+ /**
902
+ * Suicide called when the account has non-default composite data.
903
+ **/
904
+ NonDefaultComposite: AugmentedError<ApiType>;
905
+ /**
906
+ * There is a non-zero reference count preventing the account from being purged.
907
+ **/
908
+ NonZeroRefCount: AugmentedError<ApiType>;
909
+ /**
910
+ * No upgrade authorized.
911
+ **/
912
+ NothingAuthorized: AugmentedError<ApiType>;
913
+ /**
914
+ * The specification version is not allowed to decrease between the current runtime
915
+ * and the new runtime.
916
+ **/
917
+ SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
918
+ /**
919
+ * The submitted code is not authorized.
920
+ **/
921
+ Unauthorized: AugmentedError<ApiType>;
922
+ /**
923
+ * Generic error
924
+ **/
925
+ [key: string]: AugmentedError<ApiType>;
926
+ };
927
+ techCommitteeManager: {
928
+ /**
929
+ * `force_unregister_candidate` banned the account from registering.
930
+ **/
931
+ CandidateBanned: AugmentedError<ApiType>;
932
+ /**
933
+ * The account's reputation is below `MinCandidateReputation`.
934
+ **/
935
+ InsufficientReputation: AugmentedError<ApiType>;
936
+ /**
937
+ * The maximum number of candidates has been reached.
938
+ **/
939
+ MaxCandidatesReached: AugmentedError<ApiType>;
940
+ /**
941
+ * The account is not banned.
942
+ **/
943
+ NotBanned: AugmentedError<ApiType>;
944
+ /**
945
+ * The account is neither a candidate nor a committee member.
946
+ **/
947
+ NotCandidate: AugmentedError<ApiType>;
948
+ /**
949
+ * The selection holds fewer members than `MinMembers`.
950
+ **/
951
+ TooFewMembers: AugmentedError<ApiType>;
952
+ /**
953
+ * The selection holds more members than `MaxMembers`.
954
+ **/
955
+ TooManyMembers: AugmentedError<ApiType>;
956
+ /**
957
+ * Generic error
958
+ **/
959
+ [key: string]: AugmentedError<ApiType>;
960
+ };
961
+ technicalCommittee: {
962
+ /**
963
+ * Members are already initialized!
964
+ **/
965
+ AlreadyInitialized: AugmentedError<ApiType>;
966
+ /**
967
+ * Duplicate proposals not allowed
968
+ **/
969
+ DuplicateProposal: AugmentedError<ApiType>;
970
+ /**
971
+ * Duplicate vote ignored
972
+ **/
973
+ DuplicateVote: AugmentedError<ApiType>;
974
+ /**
975
+ * Account is not a member
976
+ **/
977
+ NotMember: AugmentedError<ApiType>;
978
+ /**
979
+ * Prime account is not a member
980
+ **/
981
+ PrimeAccountNotMember: AugmentedError<ApiType>;
982
+ /**
983
+ * Proposal is still active.
984
+ **/
985
+ ProposalActive: AugmentedError<ApiType>;
986
+ /**
987
+ * Proposal must exist
988
+ **/
989
+ ProposalMissing: AugmentedError<ApiType>;
990
+ /**
991
+ * The close call was made too early, before the end of the voting.
992
+ **/
993
+ TooEarly: AugmentedError<ApiType>;
994
+ /**
995
+ * There can only be a maximum of `MaxProposals` active proposals.
996
+ **/
997
+ TooManyProposals: AugmentedError<ApiType>;
998
+ /**
999
+ * Mismatched index
1000
+ **/
1001
+ WrongIndex: AugmentedError<ApiType>;
1002
+ /**
1003
+ * The given length bound for the proposal was too low.
1004
+ **/
1005
+ WrongProposalLength: AugmentedError<ApiType>;
1006
+ /**
1007
+ * The given weight bound for the proposal was too low.
1008
+ **/
1009
+ WrongProposalWeight: AugmentedError<ApiType>;
1010
+ /**
1011
+ * Generic error
1012
+ **/
1013
+ [key: string]: AugmentedError<ApiType>;
1014
+ };
1015
+ txPause: {
1016
+ /**
1017
+ * The call is paused.
1018
+ **/
1019
+ IsPaused: AugmentedError<ApiType>;
1020
+ /**
1021
+ * The call is unpaused.
1022
+ **/
1023
+ IsUnpaused: AugmentedError<ApiType>;
1024
+ NotFound: AugmentedError<ApiType>;
1025
+ /**
1026
+ * The call is whitelisted and cannot be paused.
1027
+ **/
1028
+ Unpausable: AugmentedError<ApiType>;
1029
+ /**
1030
+ * Generic error
1031
+ **/
1032
+ [key: string]: AugmentedError<ApiType>;
1033
+ };
1034
+ uniques: {
1035
+ /**
1036
+ * The item ID has already been used for an item.
1037
+ **/
1038
+ AlreadyExists: AugmentedError<ApiType>;
1039
+ /**
1040
+ * An attribute is not found.
1041
+ **/
1042
+ AttributeNotFound: AugmentedError<ApiType>;
1043
+ /**
1044
+ * Invalid witness data given.
1045
+ **/
1046
+ BadWitness: AugmentedError<ApiType>;
1047
+ /**
1048
+ * The provided bid is too low.
1049
+ **/
1050
+ BidTooLow: AugmentedError<ApiType>;
1051
+ /**
1052
+ * The item or collection is frozen.
1053
+ **/
1054
+ Frozen: AugmentedError<ApiType>;
1055
+ /**
1056
+ * The item ID is already taken.
1057
+ **/
1058
+ InUse: AugmentedError<ApiType>;
1059
+ /**
1060
+ * The item is locked.
1061
+ **/
1062
+ Locked: AugmentedError<ApiType>;
1063
+ /**
1064
+ * The max supply has already been set.
1065
+ **/
1066
+ MaxSupplyAlreadySet: AugmentedError<ApiType>;
1067
+ /**
1068
+ * All items have been minted.
1069
+ **/
1070
+ MaxSupplyReached: AugmentedError<ApiType>;
1071
+ /**
1072
+ * The provided max supply is less to the amount of items a collection already has.
1073
+ **/
1074
+ MaxSupplyTooSmall: AugmentedError<ApiType>;
1075
+ /**
1076
+ * There is no delegate approved.
1077
+ **/
1078
+ NoDelegate: AugmentedError<ApiType>;
1079
+ /**
1080
+ * No metadata is found.
1081
+ **/
1082
+ NoMetadata: AugmentedError<ApiType>;
1083
+ /**
1084
+ * The signing account has no permission to do the operation.
1085
+ **/
1086
+ NoPermission: AugmentedError<ApiType>;
1087
+ /**
1088
+ * Item is not for sale.
1089
+ **/
1090
+ NotForSale: AugmentedError<ApiType>;
1091
+ /**
1092
+ * The named owner has not signed ownership of the collection is acceptable.
1093
+ **/
1094
+ Unaccepted: AugmentedError<ApiType>;
1095
+ /**
1096
+ * No approval exists that would allow the transfer.
1097
+ **/
1098
+ Unapproved: AugmentedError<ApiType>;
1099
+ /**
1100
+ * The given item ID is unknown.
1101
+ **/
1102
+ UnknownCollection: AugmentedError<ApiType>;
1103
+ /**
1104
+ * The given item ID is unknown.
1105
+ **/
1106
+ UnknownItem: AugmentedError<ApiType>;
1107
+ /**
1108
+ * Wrong attribute key/value bytes supplied.
1109
+ **/
1110
+ WrongAttribute: AugmentedError<ApiType>;
1111
+ /**
1112
+ * The delegate turned out to be different to what was expected.
1113
+ **/
1114
+ WrongDelegate: AugmentedError<ApiType>;
1115
+ /**
1116
+ * Wrong metadata key/value bytes supplied.
1117
+ **/
1118
+ WrongMetadata: AugmentedError<ApiType>;
1119
+ /**
1120
+ * The owner turned out to be different to what was expected.
1121
+ **/
1122
+ WrongOwner: AugmentedError<ApiType>;
1123
+ /**
1124
+ * Generic error
1125
+ **/
1126
+ [key: string]: AugmentedError<ApiType>;
1127
+ };
1128
+ utility: {
1129
+ /**
1130
+ * Too many calls batched.
1131
+ **/
1132
+ TooManyCalls: AugmentedError<ApiType>;
1133
+ /**
1134
+ * Generic error
1135
+ **/
1136
+ [key: string]: AugmentedError<ApiType>;
1137
+ };
1138
+ validatorManager: {
1139
+ /**
1140
+ * The account's reputation is below `MinValidatorReputation`.
1141
+ **/
1142
+ InsufficientReputation: AugmentedError<ApiType>;
1143
+ /**
1144
+ * The registered validators list is full.
1145
+ **/
1146
+ MaxRegisteredValidatorsReached: AugmentedError<ApiType>;
1147
+ /**
1148
+ * The account is not in the registered validators list.
1149
+ **/
1150
+ NotRegistered: AugmentedError<ApiType>;
1151
+ /**
1152
+ * The account has an active offline or offence penalty and cannot register.
1153
+ **/
1154
+ PenaltyActive: AugmentedError<ApiType>;
1155
+ /**
1156
+ * Unregistering would drop eligible (non-blacklisted) candidates below MinValidators.
1157
+ **/
1158
+ TooFewEligibleValidators: AugmentedError<ApiType>;
1159
+ /**
1160
+ * Generic error
1161
+ **/
1162
+ [key: string]: AugmentedError<ApiType>;
1163
+ };
1164
+ whitelist: {
1165
+ /**
1166
+ * The call was already whitelisted; No-Op.
1167
+ **/
1168
+ CallAlreadyWhitelisted: AugmentedError<ApiType>;
1169
+ /**
1170
+ * The call was not whitelisted.
1171
+ **/
1172
+ CallIsNotWhitelisted: AugmentedError<ApiType>;
1173
+ /**
1174
+ * The weight of the decoded call was higher than the witness.
1175
+ **/
1176
+ InvalidCallWeightWitness: AugmentedError<ApiType>;
1177
+ /**
1178
+ * The preimage of the call hash could not be loaded.
1179
+ **/
1180
+ UnavailablePreImage: AugmentedError<ApiType>;
1181
+ /**
1182
+ * The call could not be decoded.
1183
+ **/
1184
+ UndecodableCall: AugmentedError<ApiType>;
1185
+ /**
1186
+ * Generic error
1187
+ **/
1188
+ [key: string]: AugmentedError<ApiType>;
1189
+ };
1190
+ } // AugmentedErrors
1191
+ } // declare module