@polkadot/api-augment 10.8.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.
@@ -123,6 +123,10 @@ declare module '@polkadot/api-base/types/errors' {
123
123
  * Account is not a member
124
124
  **/
125
125
  NotMember: AugmentedError<ApiType>;
126
+ /**
127
+ * Prime account is not a member
128
+ **/
129
+ PrimeAccountNotMember: AugmentedError<ApiType>;
126
130
  /**
127
131
  * Proposal must exist
128
132
  **/
@@ -157,11 +161,16 @@ declare module '@polkadot/api-base/types/errors' {
157
161
  * Provided amount should be greater than or equal to the existential deposit/asset's
158
162
  * minimal amount.
159
163
  **/
160
- AmountLessThanMinimal: AugmentedError<ApiType>;
164
+ AmountOneLessThanMinimal: AugmentedError<ApiType>;
161
165
  /**
162
166
  * Desired amount can't be equal to the pool reserve.
163
167
  **/
164
168
  AmountOutTooHigh: AugmentedError<ApiType>;
169
+ /**
170
+ * Provided amount should be greater than or equal to the existential deposit/asset's
171
+ * minimal amount.
172
+ **/
173
+ AmountTwoLessThanMinimal: AugmentedError<ApiType>;
165
174
  /**
166
175
  * The minimal amount requirement for the first token in the pair wasn't met.
167
176
  **/
@@ -178,10 +187,20 @@ declare module '@polkadot/api-base/types/errors' {
178
187
  * The minimal amount requirement for the second token in the pair wasn't met.
179
188
  **/
180
189
  AssetTwoWithdrawalDidNotMeetMinimum: AugmentedError<ApiType>;
190
+ /**
191
+ * Unable to find an element in an array/vec that should have one-to-one correspondence
192
+ * with another. For example, an array of assets constituting a `path` should have a
193
+ * corresponding array of `amounts` along the path.
194
+ **/
195
+ CorrespondenceError: AugmentedError<ApiType>;
181
196
  /**
182
197
  * Provided assets are equal.
183
198
  **/
184
199
  EqualAssets: AugmentedError<ApiType>;
200
+ /**
201
+ * It was not possible to get or increment the Id of the pool.
202
+ **/
203
+ IncorrectPoolAssetId: AugmentedError<ApiType>;
185
204
  /**
186
205
  * Insufficient liquidity in the pool.
187
206
  **/
@@ -235,6 +254,10 @@ declare module '@polkadot/api-base/types/errors' {
235
254
  * minimal amount.
236
255
  **/
237
256
  ReserveLeftLessThanMinimal: AugmentedError<ApiType>;
257
+ /**
258
+ * Provided asset is not supported for pool.
259
+ **/
260
+ UnsupportedAsset: AugmentedError<ApiType>;
238
261
  /**
239
262
  * Desired amount can't be zero.
240
263
  **/
@@ -260,7 +283,7 @@ declare module '@polkadot/api-base/types/errors' {
260
283
  /**
261
284
  * The given asset ID is unknown.
262
285
  **/
263
- UnknownAssetId: AugmentedError<ApiType>;
286
+ UnknownAssetKind: AugmentedError<ApiType>;
264
287
  /**
265
288
  * Generic error
266
289
  **/
@@ -474,6 +497,127 @@ declare module '@polkadot/api-base/types/errors' {
474
497
  **/
475
498
  [key: string]: AugmentedError<ApiType>;
476
499
  };
500
+ broker: {
501
+ /**
502
+ * The lease expiry time has already passed.
503
+ **/
504
+ AlreadyExpired: AugmentedError<ApiType>;
505
+ /**
506
+ * The pivot mask for the interlacing is complete (and therefore not a strict subset).
507
+ **/
508
+ CompletePivot: AugmentedError<ApiType>;
509
+ /**
510
+ * The workplan of the pallet's state is invalid. This indicates a state corruption.
511
+ **/
512
+ CorruptWorkplan: AugmentedError<ApiType>;
513
+ /**
514
+ * The pivot mask for the interlacing is not contained within the region's interlace mask.
515
+ **/
516
+ ExteriorPivot: AugmentedError<ApiType>;
517
+ /**
518
+ * The workload assigned for renewal is incomplete. This is unexpected and indicates a
519
+ * logic error.
520
+ **/
521
+ IncompleteAssignment: AugmentedError<ApiType>;
522
+ /**
523
+ * The configuration could not be applied because it is invalid.
524
+ **/
525
+ InvalidConfig: AugmentedError<ApiType>;
526
+ /**
527
+ * The history item does not exist.
528
+ **/
529
+ NoHistory: AugmentedError<ApiType>;
530
+ /**
531
+ * There is no sale happening currently.
532
+ **/
533
+ NoSales: AugmentedError<ApiType>;
534
+ /**
535
+ * Invalid attempt to renew.
536
+ **/
537
+ NotAllowed: AugmentedError<ApiType>;
538
+ /**
539
+ * There is no work to be done.
540
+ **/
541
+ NothingToDo: AugmentedError<ApiType>;
542
+ /**
543
+ * The owner of the region is not the origin.
544
+ **/
545
+ NotOwner: AugmentedError<ApiType>;
546
+ /**
547
+ * The price limit is exceeded.
548
+ **/
549
+ Overpriced: AugmentedError<ApiType>;
550
+ /**
551
+ * The pivot point of the partition at the beginning of the region.
552
+ **/
553
+ PivotTooEarly: AugmentedError<ApiType>;
554
+ /**
555
+ * The pivot point of the partition at or after the end of the region.
556
+ **/
557
+ PivotTooLate: AugmentedError<ApiType>;
558
+ /**
559
+ * The sale limit has been reached.
560
+ **/
561
+ SoldOut: AugmentedError<ApiType>;
562
+ /**
563
+ * An item cannot be dropped because it is still valid.
564
+ **/
565
+ StillValid: AugmentedError<ApiType>;
566
+ /**
567
+ * The purchase cannot happen yet as the sale period is yet to begin.
568
+ **/
569
+ TooEarly: AugmentedError<ApiType>;
570
+ /**
571
+ * The maximum amount of leases has already been reached.
572
+ **/
573
+ TooManyLeases: AugmentedError<ApiType>;
574
+ /**
575
+ * The maximum amount of reservations has already been reached.
576
+ **/
577
+ TooManyReservations: AugmentedError<ApiType>;
578
+ /**
579
+ * There are no cores available.
580
+ **/
581
+ Unavailable: AugmentedError<ApiType>;
582
+ /**
583
+ * This pallet has not yet been initialized.
584
+ **/
585
+ Uninitialized: AugmentedError<ApiType>;
586
+ /**
587
+ * The identified contribution to the Instantaneous Core Pool is unknown.
588
+ **/
589
+ UnknownContribution: AugmentedError<ApiType>;
590
+ /**
591
+ * The given region identity is not known.
592
+ **/
593
+ UnknownRegion: AugmentedError<ApiType>;
594
+ /**
595
+ * The renewal record cannot be found.
596
+ **/
597
+ UnknownRenewal: AugmentedError<ApiType>;
598
+ /**
599
+ * No reservation of the given index exists.
600
+ **/
601
+ UnknownReservation: AugmentedError<ApiType>;
602
+ /**
603
+ * The revenue for the Instantaneous Core Sales of this period is not (yet) known and thus
604
+ * this operation cannot proceed.
605
+ **/
606
+ UnknownRevenue: AugmentedError<ApiType>;
607
+ /**
608
+ * The pivot mask for the interlacing is void (and therefore unschedulable).
609
+ **/
610
+ VoidPivot: AugmentedError<ApiType>;
611
+ /**
612
+ * The renewal operation is not valid at the current time (it may become valid in the next
613
+ * sale).
614
+ **/
615
+ WrongTime: AugmentedError<ApiType>;
616
+ /**
617
+ * Generic error
618
+ **/
619
+ [key: string]: AugmentedError<ApiType>;
620
+ };
477
621
  childBounties: {
478
622
  /**
479
623
  * The bounty balance is not enough to add new child-bounty.
@@ -493,6 +637,14 @@ declare module '@polkadot/api-base/types/errors' {
493
637
  [key: string]: AugmentedError<ApiType>;
494
638
  };
495
639
  contracts: {
640
+ /**
641
+ * Can not add a delegate dependency to the code hash of the contract itself.
642
+ **/
643
+ CannotAddSelfAsDelegateDependency: AugmentedError<ApiType>;
644
+ /**
645
+ * No code info could be found at the supplied code hash.
646
+ **/
647
+ CodeInfoNotFound: AugmentedError<ApiType>;
496
648
  /**
497
649
  * Code removal was denied because the code is still in use by at least one contract.
498
650
  **/
@@ -502,7 +654,7 @@ declare module '@polkadot/api-base/types/errors' {
502
654
  **/
503
655
  CodeNotFound: AugmentedError<ApiType>;
504
656
  /**
505
- * The contract's code was found to be invalid during validation or instrumentation.
657
+ * The contract's code was found to be invalid during validation.
506
658
  *
507
659
  * The most likely cause of this is that an API was used which is not supported by the
508
660
  * node. This happens if an older node is used with a new version of ink!. Try updating
@@ -536,6 +688,14 @@ declare module '@polkadot/api-base/types/errors' {
536
688
  * Input passed to a contract API function failed to decode as expected type.
537
689
  **/
538
690
  DecodingFailed: AugmentedError<ApiType>;
691
+ /**
692
+ * The contract already depends on the given delegate dependency.
693
+ **/
694
+ DelegateDependencyAlreadyExists: AugmentedError<ApiType>;
695
+ /**
696
+ * The dependency was not found in the contract's delegate dependencies.
697
+ **/
698
+ DelegateDependencyNotFound: AugmentedError<ApiType>;
539
699
  /**
540
700
  * A contract with the same AccountId already exists.
541
701
  **/
@@ -553,14 +713,18 @@ declare module '@polkadot/api-base/types/errors' {
553
713
  **/
554
714
  InvalidCallFlags: AugmentedError<ApiType>;
555
715
  /**
556
- * A new schedule must have a greater version than the current one.
716
+ * Invalid schedule supplied, e.g. with zero weight of a basic operation.
557
717
  **/
558
- InvalidScheduleVersion: AugmentedError<ApiType>;
718
+ InvalidSchedule: AugmentedError<ApiType>;
559
719
  /**
560
720
  * Performing a call was denied because the calling depth reached the limit
561
721
  * of what is specified in the schedule.
562
722
  **/
563
723
  MaxCallDepthReached: AugmentedError<ApiType>;
724
+ /**
725
+ * The contract has reached its maximum number of delegate dependencies.
726
+ **/
727
+ MaxDelegateDependenciesReached: AugmentedError<ApiType>;
564
728
  /**
565
729
  * A pending migration needs to complete before the extrinsic can be called.
566
730
  **/
@@ -751,6 +915,10 @@ declare module '@polkadot/api-base/types/errors' {
751
915
  * Account is not a member
752
916
  **/
753
917
  NotMember: AugmentedError<ApiType>;
918
+ /**
919
+ * Prime account is not a member
920
+ **/
921
+ PrimeAccountNotMember: AugmentedError<ApiType>;
754
922
  /**
755
923
  * Proposal must exist
756
924
  **/
@@ -1058,6 +1226,10 @@ declare module '@polkadot/api-base/types/errors' {
1058
1226
  * Set `witness_count` to `Some` to bypass this error.
1059
1227
  **/
1060
1228
  AlreadyInitialized: AugmentedError<ApiType>;
1229
+ /**
1230
+ * The limit was over [`crate::RESOURCE_HARD_LIMIT`].
1231
+ **/
1232
+ InsaneLimit: AugmentedError<ApiType>;
1061
1233
  /**
1062
1234
  * Generic error
1063
1235
  **/
@@ -1277,6 +1449,12 @@ declare module '@polkadot/api-base/types/errors' {
1277
1449
  * The message is queued for future execution.
1278
1450
  **/
1279
1451
  Queued: AugmentedError<ApiType>;
1452
+ /**
1453
+ * The queue is paused and no message can be executed from it.
1454
+ *
1455
+ * This can change at any time and may resolve in the future by re-trying.
1456
+ **/
1457
+ QueuePaused: AugmentedError<ApiType>;
1280
1458
  /**
1281
1459
  * This message is temporarily unprocessable.
1282
1460
  *
@@ -1652,6 +1830,10 @@ declare module '@polkadot/api-base/types/errors' {
1652
1830
  * Not enough blocks have surpassed since the last commission update.
1653
1831
  **/
1654
1832
  CommissionChangeThrottled: AugmentedError<ApiType>;
1833
+ /**
1834
+ * The supplied commission exceeds global maximum commission.
1835
+ **/
1836
+ CommissionExceedsGlobalMaximum: AugmentedError<ApiType>;
1655
1837
  /**
1656
1838
  * The supplied commission exceeds the max allowed commission.
1657
1839
  **/
@@ -2159,6 +2341,40 @@ declare module '@polkadot/api-base/types/errors' {
2159
2341
  **/
2160
2342
  [key: string]: AugmentedError<ApiType>;
2161
2343
  };
2344
+ safeMode: {
2345
+ /**
2346
+ * The account already has a deposit reserved and can therefore not enter or extend again.
2347
+ **/
2348
+ AlreadyDeposited: AugmentedError<ApiType>;
2349
+ /**
2350
+ * This deposit cannot be released yet.
2351
+ **/
2352
+ CannotReleaseYet: AugmentedError<ApiType>;
2353
+ /**
2354
+ * An error from the underlying `Currency`.
2355
+ **/
2356
+ CurrencyError: AugmentedError<ApiType>;
2357
+ /**
2358
+ * The safe-mode is (already or still) entered.
2359
+ **/
2360
+ Entered: AugmentedError<ApiType>;
2361
+ /**
2362
+ * The safe-mode is (already or still) exited.
2363
+ **/
2364
+ Exited: AugmentedError<ApiType>;
2365
+ /**
2366
+ * There is no balance reserved.
2367
+ **/
2368
+ NoDeposit: AugmentedError<ApiType>;
2369
+ /**
2370
+ * This functionality of the pallet is disabled by the configuration.
2371
+ **/
2372
+ NotConfigured: AugmentedError<ApiType>;
2373
+ /**
2374
+ * Generic error
2375
+ **/
2376
+ [key: string]: AugmentedError<ApiType>;
2377
+ };
2162
2378
  salary: {
2163
2379
  /**
2164
2380
  * The account is already inducted.
@@ -2279,6 +2495,10 @@ declare module '@polkadot/api-base/types/errors' {
2279
2495
  * User is already a candidate.
2280
2496
  **/
2281
2497
  AlreadyCandidate: AugmentedError<ApiType>;
2498
+ /**
2499
+ * The member is already elevated to this rank.
2500
+ **/
2501
+ AlreadyElevated: AugmentedError<ApiType>;
2282
2502
  /**
2283
2503
  * Society already founded.
2284
2504
  **/
@@ -2287,14 +2507,22 @@ declare module '@polkadot/api-base/types/errors' {
2287
2507
  * User is already a member.
2288
2508
  **/
2289
2509
  AlreadyMember: AugmentedError<ApiType>;
2510
+ /**
2511
+ * The skeptic has already been punished for this offence.
2512
+ **/
2513
+ AlreadyPunished: AugmentedError<ApiType>;
2290
2514
  /**
2291
2515
  * Member is already vouching or banned from vouching again.
2292
2516
  **/
2293
2517
  AlreadyVouching: AugmentedError<ApiType>;
2294
2518
  /**
2295
- * An incorrect position was provided.
2519
+ * The candidacy cannot be dropped as the candidate was clearly approved.
2520
+ **/
2521
+ Approved: AugmentedError<ApiType>;
2522
+ /**
2523
+ * The skeptic need not vote on candidates from expired rounds.
2296
2524
  **/
2297
- BadPosition: AugmentedError<ApiType>;
2525
+ Expired: AugmentedError<ApiType>;
2298
2526
  /**
2299
2527
  * Cannot remove the founder.
2300
2528
  **/
@@ -2303,6 +2531,14 @@ declare module '@polkadot/api-base/types/errors' {
2303
2531
  * Cannot remove the head of the chain.
2304
2532
  **/
2305
2533
  Head: AugmentedError<ApiType>;
2534
+ /**
2535
+ * The candidacy cannot be concluded as the voting is still in progress.
2536
+ **/
2537
+ InProgress: AugmentedError<ApiType>;
2538
+ /**
2539
+ * Funds are insufficient to pay off society debts.
2540
+ **/
2541
+ InsufficientFunds: AugmentedError<ApiType>;
2306
2542
  /**
2307
2543
  * Not enough in pot to accept candidate.
2308
2544
  **/
@@ -2311,10 +2547,22 @@ declare module '@polkadot/api-base/types/errors' {
2311
2547
  * Too many members in the society.
2312
2548
  **/
2313
2549
  MaxMembers: AugmentedError<ApiType>;
2550
+ /**
2551
+ * There is no defender currently.
2552
+ **/
2553
+ NoDefender: AugmentedError<ApiType>;
2314
2554
  /**
2315
2555
  * Nothing to payout.
2316
2556
  **/
2317
2557
  NoPayout: AugmentedError<ApiType>;
2558
+ /**
2559
+ * The membership cannot be claimed as the candidate was not clearly approved.
2560
+ **/
2561
+ NotApproved: AugmentedError<ApiType>;
2562
+ /**
2563
+ * User is not a bidder.
2564
+ **/
2565
+ NotBidder: AugmentedError<ApiType>;
2318
2566
  /**
2319
2567
  * User is not a candidate.
2320
2568
  **/
@@ -2323,6 +2571,10 @@ declare module '@polkadot/api-base/types/errors' {
2323
2571
  * The caller is not the founder.
2324
2572
  **/
2325
2573
  NotFounder: AugmentedError<ApiType>;
2574
+ /**
2575
+ * Group doesn't exist.
2576
+ **/
2577
+ NotGroup: AugmentedError<ApiType>;
2326
2578
  /**
2327
2579
  * The caller is not the head.
2328
2580
  **/
@@ -2331,6 +2583,10 @@ declare module '@polkadot/api-base/types/errors' {
2331
2583
  * User is not a member.
2332
2584
  **/
2333
2585
  NotMember: AugmentedError<ApiType>;
2586
+ /**
2587
+ * The candidate cannot be kicked as the candidate was not clearly rejected.
2588
+ **/
2589
+ NotRejected: AugmentedError<ApiType>;
2334
2590
  /**
2335
2591
  * User is not suspended.
2336
2592
  **/
@@ -2338,11 +2594,27 @@ declare module '@polkadot/api-base/types/errors' {
2338
2594
  /**
2339
2595
  * Member is not vouching.
2340
2596
  **/
2341
- NotVouching: AugmentedError<ApiType>;
2597
+ NotVouchingOnBidder: AugmentedError<ApiType>;
2598
+ /**
2599
+ * The candidate/defender has no stale votes to remove.
2600
+ **/
2601
+ NoVotes: AugmentedError<ApiType>;
2602
+ /**
2603
+ * The candidacy cannot be bestowed as the candidate was clearly rejected.
2604
+ **/
2605
+ Rejected: AugmentedError<ApiType>;
2342
2606
  /**
2343
2607
  * User is suspended.
2344
2608
  **/
2345
2609
  Suspended: AugmentedError<ApiType>;
2610
+ /**
2611
+ * The candidacy cannot be pruned until a full additional intake period has passed.
2612
+ **/
2613
+ TooEarly: AugmentedError<ApiType>;
2614
+ /**
2615
+ * The skeptic already voted.
2616
+ **/
2617
+ Voted: AugmentedError<ApiType>;
2346
2618
  /**
2347
2619
  * Generic error
2348
2620
  **/
@@ -2555,6 +2827,10 @@ declare module '@polkadot/api-base/types/errors' {
2555
2827
  * Account is not a member
2556
2828
  **/
2557
2829
  NotMember: AugmentedError<ApiType>;
2830
+ /**
2831
+ * Prime account is not a member
2832
+ **/
2833
+ PrimeAccountNotMember: AugmentedError<ApiType>;
2558
2834
  /**
2559
2835
  * Proposal must exist
2560
2836
  **/
@@ -2717,6 +2993,25 @@ declare module '@polkadot/api-base/types/errors' {
2717
2993
  **/
2718
2994
  [key: string]: AugmentedError<ApiType>;
2719
2995
  };
2996
+ txPause: {
2997
+ /**
2998
+ * The call is paused.
2999
+ **/
3000
+ IsPaused: AugmentedError<ApiType>;
3001
+ /**
3002
+ * The call is unpaused.
3003
+ **/
3004
+ IsUnpaused: AugmentedError<ApiType>;
3005
+ NotFound: AugmentedError<ApiType>;
3006
+ /**
3007
+ * The call is whitelisted and cannot be paused.
3008
+ **/
3009
+ Unpausable: AugmentedError<ApiType>;
3010
+ /**
3011
+ * Generic error
3012
+ **/
3013
+ [key: string]: AugmentedError<ApiType>;
3014
+ };
2720
3015
  uniques: {
2721
3016
  /**
2722
3017
  * The item ID has already been used for an item.