@dedot/chaintypes 0.53.0 → 0.55.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.
@@ -282,7 +282,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
282
282
  TooManyWinners: GenericPalletError<Rv>;
283
283
 
284
284
  /**
285
- * Sumission was prepared for a different round.
285
+ * Submission was prepared for a different round.
286
286
  **/
287
287
  PreDispatchDifferentRound: GenericPalletError<Rv>;
288
288
 
@@ -434,6 +434,26 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
434
434
  **/
435
435
  ControllerDeprecated: GenericPalletError<Rv>;
436
436
 
437
+ /**
438
+ * Cannot reset a ledger.
439
+ **/
440
+ CannotRestoreLedger: GenericPalletError<Rv>;
441
+
442
+ /**
443
+ * Provided reward destination is not allowed.
444
+ **/
445
+ RewardDestinationRestricted: GenericPalletError<Rv>;
446
+
447
+ /**
448
+ * Not enough funds available to withdraw.
449
+ **/
450
+ NotEnoughFunds: GenericPalletError<Rv>;
451
+
452
+ /**
453
+ * Operation not allowed for virtual stakers.
454
+ **/
455
+ VirtualStakerNotAllowed: GenericPalletError<Rv>;
456
+
437
457
  /**
438
458
  * Generic pallet error
439
459
  **/
@@ -662,6 +682,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
662
682
  **/
663
683
  PrimeAccountNotMember: GenericPalletError<Rv>;
664
684
 
685
+ /**
686
+ * Proposal is still active.
687
+ **/
688
+ ProposalActive: GenericPalletError<Rv>;
689
+
665
690
  /**
666
691
  * Generic pallet error
667
692
  **/
@@ -726,6 +751,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
726
751
  **/
727
752
  PrimeAccountNotMember: GenericPalletError<Rv>;
728
753
 
754
+ /**
755
+ * Proposal is still active.
756
+ **/
757
+ ProposalActive: GenericPalletError<Rv>;
758
+
729
759
  /**
730
760
  * Generic pallet error
731
761
  **/
@@ -899,11 +929,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
899
929
  * Pallet `Treasury`'s errors
900
930
  **/
901
931
  treasury: {
902
- /**
903
- * Proposer's balance is too low.
904
- **/
905
- InsufficientProposersBalance: GenericPalletError<Rv>;
906
-
907
932
  /**
908
933
  * No proposal, bounty or spend at that index.
909
934
  **/
@@ -1119,6 +1144,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1119
1144
  **/
1120
1145
  ReentranceDenied: GenericPalletError<Rv>;
1121
1146
 
1147
+ /**
1148
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
1149
+ **/
1150
+ StateChangeDenied: GenericPalletError<Rv>;
1151
+
1122
1152
  /**
1123
1153
  * Origin doesn't have enough balance to pay the required storage deposits.
1124
1154
  **/
@@ -1155,7 +1185,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1155
1185
  CodeRejected: GenericPalletError<Rv>;
1156
1186
 
1157
1187
  /**
1158
- * An indetermistic code was used in a context where this is not permitted.
1188
+ * An indeterministic code was used in a context where this is not permitted.
1159
1189
  **/
1160
1190
  Indeterministic: GenericPalletError<Rv>;
1161
1191
 
@@ -1189,6 +1219,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1189
1219
  **/
1190
1220
  CannotAddSelfAsDelegateDependency: GenericPalletError<Rv>;
1191
1221
 
1222
+ /**
1223
+ * Can not add more data to transient storage.
1224
+ **/
1225
+ OutOfTransientStorage: GenericPalletError<Rv>;
1226
+
1192
1227
  /**
1193
1228
  * Generic pallet error
1194
1229
  **/
@@ -1361,6 +1396,27 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1361
1396
  **/
1362
1397
  NotExpired: GenericPalletError<Rv>;
1363
1398
 
1399
+ /**
1400
+ * The username cannot be removed because it's still in the grace period.
1401
+ **/
1402
+ TooEarly: GenericPalletError<Rv>;
1403
+
1404
+ /**
1405
+ * The username cannot be removed because it is not unbinding.
1406
+ **/
1407
+ NotUnbinding: GenericPalletError<Rv>;
1408
+
1409
+ /**
1410
+ * The username cannot be unbound because it is already unbinding.
1411
+ **/
1412
+ AlreadyUnbinding: GenericPalletError<Rv>;
1413
+
1414
+ /**
1415
+ * The action cannot be performed because of insufficient privileges (e.g. authority
1416
+ * trying to unbind a username provided by the system).
1417
+ **/
1418
+ InsufficientPrivileges: GenericPalletError<Rv>;
1419
+
1364
1420
  /**
1365
1421
  * Generic pallet error
1366
1422
  **/
@@ -2107,6 +2163,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2107
2163
  **/
2108
2164
  CallbackFailed: GenericPalletError<Rv>;
2109
2165
 
2166
+ /**
2167
+ * The asset ID must be equal to the [`NextAssetId`].
2168
+ **/
2169
+ BadAssetId: GenericPalletError<Rv>;
2170
+
2110
2171
  /**
2111
2172
  * Generic pallet error
2112
2173
  **/
@@ -2219,6 +2280,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2219
2280
  **/
2220
2281
  CallbackFailed: GenericPalletError<Rv>;
2221
2282
 
2283
+ /**
2284
+ * The asset ID must be equal to the [`NextAssetId`].
2285
+ **/
2286
+ BadAssetId: GenericPalletError<Rv>;
2287
+
2222
2288
  /**
2223
2289
  * Generic pallet error
2224
2290
  **/
@@ -2234,9 +2300,24 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2234
2300
  InvalidKeyOwnershipProof: GenericPalletError<Rv>;
2235
2301
 
2236
2302
  /**
2237
- * An equivocation proof provided as part of an equivocation report is invalid.
2303
+ * A double voting proof provided as part of an equivocation report is invalid.
2238
2304
  **/
2239
- InvalidEquivocationProof: GenericPalletError<Rv>;
2305
+ InvalidDoubleVotingProof: GenericPalletError<Rv>;
2306
+
2307
+ /**
2308
+ * A fork voting proof provided as part of an equivocation report is invalid.
2309
+ **/
2310
+ InvalidForkVotingProof: GenericPalletError<Rv>;
2311
+
2312
+ /**
2313
+ * A future block voting proof provided as part of an equivocation report is invalid.
2314
+ **/
2315
+ InvalidFutureBlockVotingProof: GenericPalletError<Rv>;
2316
+
2317
+ /**
2318
+ * The session of the equivocation proof is invalid
2319
+ **/
2320
+ InvalidEquivocationProofSession: GenericPalletError<Rv>;
2240
2321
 
2241
2322
  /**
2242
2323
  * A given equivocation report is valid but already previously reported.
@@ -2363,7 +2444,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2363
2444
  Throttled: GenericPalletError<Rv>;
2364
2445
 
2365
2446
  /**
2366
- * The operation would result in a receipt worth an insignficant value.
2447
+ * The operation would result in a receipt worth an insignificant value.
2367
2448
  **/
2368
2449
  MakesDust: GenericPalletError<Rv>;
2369
2450
 
@@ -2910,7 +2991,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2910
2991
  MissingProof: GenericPalletError<Rv>;
2911
2992
 
2912
2993
  /**
2913
- * Unable to verify proof becasue state data is missing.
2994
+ * Unable to verify proof because state data is missing.
2914
2995
  **/
2915
2996
  MissingStateData: GenericPalletError<Rv>;
2916
2997
 
@@ -3096,6 +3177,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3096
3177
  **/
3097
3178
  PreimageNotExist: GenericPalletError<Rv>;
3098
3179
 
3180
+ /**
3181
+ * The preimage is stored with a different length than the one provided.
3182
+ **/
3183
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
3184
+
3099
3185
  /**
3100
3186
  * Generic pallet error
3101
3187
  **/
@@ -3283,6 +3369,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3283
3369
  **/
3284
3370
  PrimeAccountNotMember: GenericPalletError<Rv>;
3285
3371
 
3372
+ /**
3373
+ * Proposal is still active.
3374
+ **/
3375
+ ProposalActive: GenericPalletError<Rv>;
3376
+
3286
3377
  /**
3287
3378
  * Generic pallet error
3288
3379
  **/
@@ -3590,6 +3681,26 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3590
3681
  **/
3591
3682
  NothingToAdjust: GenericPalletError<Rv>;
3592
3683
 
3684
+ /**
3685
+ * No slash pending that can be applied to the member.
3686
+ **/
3687
+ NothingToSlash: GenericPalletError<Rv>;
3688
+
3689
+ /**
3690
+ * The pool or member delegation has already migrated to delegate stake.
3691
+ **/
3692
+ AlreadyMigrated: GenericPalletError<Rv>;
3693
+
3694
+ /**
3695
+ * The pool or member delegation has not migrated yet to delegate stake.
3696
+ **/
3697
+ NotMigrated: GenericPalletError<Rv>;
3698
+
3699
+ /**
3700
+ * This call is not allowed in the current state of the pallet.
3701
+ **/
3702
+ NotSupported: GenericPalletError<Rv>;
3703
+
3593
3704
  /**
3594
3705
  * Generic pallet error
3595
3706
  **/
@@ -3664,6 +3775,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3664
3775
  **/
3665
3776
  PreimageNotExist: GenericPalletError<Rv>;
3666
3777
 
3778
+ /**
3779
+ * The preimage is stored with a different length than the one provided.
3780
+ **/
3781
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
3782
+
3667
3783
  /**
3668
3784
  * Generic pallet error
3669
3785
  **/
@@ -3723,6 +3839,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3723
3839
  **/
3724
3840
  SameMember: GenericPalletError<Rv>;
3725
3841
 
3842
+ /**
3843
+ * The max member count for the rank has been reached.
3844
+ **/
3845
+ TooManyMembers: GenericPalletError<Rv>;
3846
+
3726
3847
  /**
3727
3848
  * Generic pallet error
3728
3849
  **/
@@ -4186,6 +4307,36 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
4186
4307
  **/
4187
4308
  InvalidConfig: GenericPalletError<Rv>;
4188
4309
 
4310
+ /**
4311
+ * The revenue must be claimed for 1 or more timeslices.
4312
+ **/
4313
+ NoClaimTimeslices: GenericPalletError<Rv>;
4314
+
4315
+ /**
4316
+ * The caller doesn't have the permission to enable or disable auto-renewal.
4317
+ **/
4318
+ NoPermission: GenericPalletError<Rv>;
4319
+
4320
+ /**
4321
+ * We reached the limit for auto-renewals.
4322
+ **/
4323
+ TooManyAutoRenewals: GenericPalletError<Rv>;
4324
+
4325
+ /**
4326
+ * Only cores which are assigned to a task can be auto-renewed.
4327
+ **/
4328
+ NonTaskAutoRenewal: GenericPalletError<Rv>;
4329
+
4330
+ /**
4331
+ * Failed to get the sovereign account of a task.
4332
+ **/
4333
+ SovereignAccountNotFound: GenericPalletError<Rv>;
4334
+
4335
+ /**
4336
+ * Attempted to disable auto-renewal for a core that didn't have it enabled.
4337
+ **/
4338
+ AutoRenewalNotEnabled: GenericPalletError<Rv>;
4339
+
4189
4340
  /**
4190
4341
  * Generic pallet error
4191
4342
  **/
@@ -4200,6 +4351,276 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
4200
4351
  **/
4201
4352
  NotFound: GenericPalletError<Rv>;
4202
4353
 
4354
+ /**
4355
+ * Generic pallet error
4356
+ **/
4357
+ [error: string]: GenericPalletError<Rv>;
4358
+ };
4359
+ /**
4360
+ * Pallet `AssetConversionMigration`'s errors
4361
+ **/
4362
+ assetConversionMigration: {
4363
+ /**
4364
+ * Provided asset pair is not supported for pool.
4365
+ **/
4366
+ InvalidAssetPair: GenericPalletError<Rv>;
4367
+
4368
+ /**
4369
+ * The pool doesn't exist.
4370
+ **/
4371
+ PoolNotFound: GenericPalletError<Rv>;
4372
+
4373
+ /**
4374
+ * Pool's balance cannot be zero.
4375
+ **/
4376
+ ZeroBalance: GenericPalletError<Rv>;
4377
+
4378
+ /**
4379
+ * Indicates a partial transfer of balance to the new account during a migration.
4380
+ **/
4381
+ PartialTransfer: GenericPalletError<Rv>;
4382
+
4383
+ /**
4384
+ * Generic pallet error
4385
+ **/
4386
+ [error: string]: GenericPalletError<Rv>;
4387
+ };
4388
+ /**
4389
+ * Pallet `Revive`'s errors
4390
+ **/
4391
+ revive: {
4392
+ /**
4393
+ * Invalid schedule supplied, e.g. with zero weight of a basic operation.
4394
+ **/
4395
+ InvalidSchedule: GenericPalletError<Rv>;
4396
+
4397
+ /**
4398
+ * Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
4399
+ **/
4400
+ InvalidCallFlags: GenericPalletError<Rv>;
4401
+
4402
+ /**
4403
+ * The executed contract exhausted its gas limit.
4404
+ **/
4405
+ OutOfGas: GenericPalletError<Rv>;
4406
+
4407
+ /**
4408
+ * Performing the requested transfer failed. Probably because there isn't enough
4409
+ * free balance in the sender's account.
4410
+ **/
4411
+ TransferFailed: GenericPalletError<Rv>;
4412
+
4413
+ /**
4414
+ * Performing a call was denied because the calling depth reached the limit
4415
+ * of what is specified in the schedule.
4416
+ **/
4417
+ MaxCallDepthReached: GenericPalletError<Rv>;
4418
+
4419
+ /**
4420
+ * No contract was found at the specified address.
4421
+ **/
4422
+ ContractNotFound: GenericPalletError<Rv>;
4423
+
4424
+ /**
4425
+ * No code could be found at the supplied code hash.
4426
+ **/
4427
+ CodeNotFound: GenericPalletError<Rv>;
4428
+
4429
+ /**
4430
+ * No code info could be found at the supplied code hash.
4431
+ **/
4432
+ CodeInfoNotFound: GenericPalletError<Rv>;
4433
+
4434
+ /**
4435
+ * A buffer outside of sandbox memory was passed to a contract API function.
4436
+ **/
4437
+ OutOfBounds: GenericPalletError<Rv>;
4438
+
4439
+ /**
4440
+ * Input passed to a contract API function failed to decode as expected type.
4441
+ **/
4442
+ DecodingFailed: GenericPalletError<Rv>;
4443
+
4444
+ /**
4445
+ * Contract trapped during execution.
4446
+ **/
4447
+ ContractTrapped: GenericPalletError<Rv>;
4448
+
4449
+ /**
4450
+ * The size defined in `T::MaxValueSize` was exceeded.
4451
+ **/
4452
+ ValueTooLarge: GenericPalletError<Rv>;
4453
+
4454
+ /**
4455
+ * Termination of a contract is not allowed while the contract is already
4456
+ * on the call stack. Can be triggered by `seal_terminate`.
4457
+ **/
4458
+ TerminatedWhileReentrant: GenericPalletError<Rv>;
4459
+
4460
+ /**
4461
+ * `seal_call` forwarded this contracts input. It therefore is no longer available.
4462
+ **/
4463
+ InputForwarded: GenericPalletError<Rv>;
4464
+
4465
+ /**
4466
+ * The amount of topics passed to `seal_deposit_events` exceeds the limit.
4467
+ **/
4468
+ TooManyTopics: GenericPalletError<Rv>;
4469
+
4470
+ /**
4471
+ * The chain does not provide a chain extension. Calling the chain extension results
4472
+ * in this error. Note that this usually shouldn't happen as deploying such contracts
4473
+ * is rejected.
4474
+ **/
4475
+ NoChainExtension: GenericPalletError<Rv>;
4476
+
4477
+ /**
4478
+ * Failed to decode the XCM program.
4479
+ **/
4480
+ XcmDecodeFailed: GenericPalletError<Rv>;
4481
+
4482
+ /**
4483
+ * A contract with the same AccountId already exists.
4484
+ **/
4485
+ DuplicateContract: GenericPalletError<Rv>;
4486
+
4487
+ /**
4488
+ * A contract self destructed in its constructor.
4489
+ *
4490
+ * This can be triggered by a call to `seal_terminate`.
4491
+ **/
4492
+ TerminatedInConstructor: GenericPalletError<Rv>;
4493
+
4494
+ /**
4495
+ * A call tried to invoke a contract that is flagged as non-reentrant.
4496
+ **/
4497
+ ReentranceDenied: GenericPalletError<Rv>;
4498
+
4499
+ /**
4500
+ * A contract called into the runtime which then called back into this pallet.
4501
+ **/
4502
+ ReenteredPallet: GenericPalletError<Rv>;
4503
+
4504
+ /**
4505
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
4506
+ **/
4507
+ StateChangeDenied: GenericPalletError<Rv>;
4508
+
4509
+ /**
4510
+ * Origin doesn't have enough balance to pay the required storage deposits.
4511
+ **/
4512
+ StorageDepositNotEnoughFunds: GenericPalletError<Rv>;
4513
+
4514
+ /**
4515
+ * More storage was created than allowed by the storage deposit limit.
4516
+ **/
4517
+ StorageDepositLimitExhausted: GenericPalletError<Rv>;
4518
+
4519
+ /**
4520
+ * Code removal was denied because the code is still in use by at least one contract.
4521
+ **/
4522
+ CodeInUse: GenericPalletError<Rv>;
4523
+
4524
+ /**
4525
+ * The contract ran to completion but decided to revert its storage changes.
4526
+ * Please note that this error is only returned from extrinsics. When called directly
4527
+ * or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
4528
+ * to determine whether a reversion has taken place.
4529
+ **/
4530
+ ContractReverted: GenericPalletError<Rv>;
4531
+
4532
+ /**
4533
+ * The contract failed to compile or is missing the correct entry points.
4534
+ *
4535
+ * A more detailed error can be found on the node console if debug messages are enabled
4536
+ * by supplying `-lruntime::revive=debug`.
4537
+ **/
4538
+ CodeRejected: GenericPalletError<Rv>;
4539
+
4540
+ /**
4541
+ * The code blob supplied is larger than [`limits::code::BLOB_BYTES`].
4542
+ **/
4543
+ BlobTooLarge: GenericPalletError<Rv>;
4544
+
4545
+ /**
4546
+ * The static memory consumption of the blob will be larger than
4547
+ * [`limits::code::STATIC_MEMORY_BYTES`].
4548
+ **/
4549
+ StaticMemoryTooLarge: GenericPalletError<Rv>;
4550
+
4551
+ /**
4552
+ * The program contains a basic block that is larger than allowed.
4553
+ **/
4554
+ BasicBlockTooLarge: GenericPalletError<Rv>;
4555
+
4556
+ /**
4557
+ * The program contains an invalid instruction.
4558
+ **/
4559
+ InvalidInstruction: GenericPalletError<Rv>;
4560
+
4561
+ /**
4562
+ * The contract has reached its maximum number of delegate dependencies.
4563
+ **/
4564
+ MaxDelegateDependenciesReached: GenericPalletError<Rv>;
4565
+
4566
+ /**
4567
+ * The dependency was not found in the contract's delegate dependencies.
4568
+ **/
4569
+ DelegateDependencyNotFound: GenericPalletError<Rv>;
4570
+
4571
+ /**
4572
+ * The contract already depends on the given delegate dependency.
4573
+ **/
4574
+ DelegateDependencyAlreadyExists: GenericPalletError<Rv>;
4575
+
4576
+ /**
4577
+ * Can not add a delegate dependency to the code hash of the contract itself.
4578
+ **/
4579
+ CannotAddSelfAsDelegateDependency: GenericPalletError<Rv>;
4580
+
4581
+ /**
4582
+ * Can not add more data to transient storage.
4583
+ **/
4584
+ OutOfTransientStorage: GenericPalletError<Rv>;
4585
+
4586
+ /**
4587
+ * The contract tried to call a syscall which does not exist (at its current api level).
4588
+ **/
4589
+ InvalidSyscall: GenericPalletError<Rv>;
4590
+
4591
+ /**
4592
+ * Invalid storage flags were passed to one of the storage syscalls.
4593
+ **/
4594
+ InvalidStorageFlags: GenericPalletError<Rv>;
4595
+
4596
+ /**
4597
+ * PolkaVM failed during code execution. Probably due to a malformed program.
4598
+ **/
4599
+ ExecutionFailed: GenericPalletError<Rv>;
4600
+
4601
+ /**
4602
+ * Failed to convert a U256 to a Balance.
4603
+ **/
4604
+ BalanceConversionFailed: GenericPalletError<Rv>;
4605
+
4606
+ /**
4607
+ * Immutable data can only be set during deploys and only be read during calls.
4608
+ * Additionally, it is only valid to set the data once and it must not be empty.
4609
+ **/
4610
+ InvalidImmutableAccess: GenericPalletError<Rv>;
4611
+
4612
+ /**
4613
+ * An `AccountID32` account tried to interact with the pallet without having a mapping.
4614
+ *
4615
+ * Call [`Pallet::map_account`] in order to create a mapping for the account.
4616
+ **/
4617
+ AccountUnmapped: GenericPalletError<Rv>;
4618
+
4619
+ /**
4620
+ * Tried to map an account that is already mapped.
4621
+ **/
4622
+ AccountAlreadyMapped: GenericPalletError<Rv>;
4623
+
4203
4624
  /**
4204
4625
  * Generic pallet error
4205
4626
  **/