@dedot/api 0.6.1 → 0.7.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.
@@ -234,7 +234,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
234
234
  **/
235
235
  TooManyWinners: GenericPalletError<Rv>;
236
236
  /**
237
- * Sumission was prepared for a different round.
237
+ * Submission was prepared for a different round.
238
238
  **/
239
239
  PreDispatchDifferentRound: GenericPalletError<Rv>;
240
240
  /**
@@ -358,6 +358,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
358
358
  * Used when attempting to use deprecated controller account logic.
359
359
  **/
360
360
  ControllerDeprecated: GenericPalletError<Rv>;
361
+ /**
362
+ * Cannot reset a ledger.
363
+ **/
364
+ CannotRestoreLedger: GenericPalletError<Rv>;
365
+ /**
366
+ * Provided reward destination is not allowed.
367
+ **/
368
+ RewardDestinationRestricted: GenericPalletError<Rv>;
369
+ /**
370
+ * Not enough funds available to withdraw.
371
+ **/
372
+ NotEnoughFunds: GenericPalletError<Rv>;
373
+ /**
374
+ * Operation not allowed for virtual stakers.
375
+ **/
376
+ VirtualStakerNotAllowed: GenericPalletError<Rv>;
361
377
  /**
362
378
  * Generic pallet error
363
379
  **/
@@ -546,6 +562,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
546
562
  * Prime account is not a member
547
563
  **/
548
564
  PrimeAccountNotMember: GenericPalletError<Rv>;
565
+ /**
566
+ * Proposal is still active.
567
+ **/
568
+ ProposalActive: GenericPalletError<Rv>;
549
569
  /**
550
570
  * Generic pallet error
551
571
  **/
@@ -599,6 +619,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
599
619
  * Prime account is not a member
600
620
  **/
601
621
  PrimeAccountNotMember: GenericPalletError<Rv>;
622
+ /**
623
+ * Proposal is still active.
624
+ **/
625
+ ProposalActive: GenericPalletError<Rv>;
602
626
  /**
603
627
  * Generic pallet error
604
628
  **/
@@ -745,10 +769,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
745
769
  * Pallet `Treasury`'s errors
746
770
  **/
747
771
  treasury: {
748
- /**
749
- * Proposer's balance is too low.
750
- **/
751
- InsufficientProposersBalance: GenericPalletError<Rv>;
752
772
  /**
753
773
  * No proposal, bounty or spend at that index.
754
774
  **/
@@ -927,6 +947,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
927
947
  * contract code execution which is not supported.
928
948
  **/
929
949
  ReentranceDenied: GenericPalletError<Rv>;
950
+ /**
951
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
952
+ **/
953
+ StateChangeDenied: GenericPalletError<Rv>;
930
954
  /**
931
955
  * Origin doesn't have enough balance to pay the required storage deposits.
932
956
  **/
@@ -958,7 +982,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
958
982
  **/
959
983
  CodeRejected: GenericPalletError<Rv>;
960
984
  /**
961
- * An indetermistic code was used in a context where this is not permitted.
985
+ * An indeterministic code was used in a context where this is not permitted.
962
986
  **/
963
987
  Indeterministic: GenericPalletError<Rv>;
964
988
  /**
@@ -985,6 +1009,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
985
1009
  * Can not add a delegate dependency to the code hash of the contract itself.
986
1010
  **/
987
1011
  CannotAddSelfAsDelegateDependency: GenericPalletError<Rv>;
1012
+ /**
1013
+ * Can not add more data to transient storage.
1014
+ **/
1015
+ OutOfTransientStorage: GenericPalletError<Rv>;
988
1016
  /**
989
1017
  * Generic pallet error
990
1018
  **/
@@ -1128,6 +1156,23 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1128
1156
  * The username cannot be forcefully removed because it can still be accepted.
1129
1157
  **/
1130
1158
  NotExpired: GenericPalletError<Rv>;
1159
+ /**
1160
+ * The username cannot be removed because it's still in the grace period.
1161
+ **/
1162
+ TooEarly: GenericPalletError<Rv>;
1163
+ /**
1164
+ * The username cannot be removed because it is not unbinding.
1165
+ **/
1166
+ NotUnbinding: GenericPalletError<Rv>;
1167
+ /**
1168
+ * The username cannot be unbound because it is already unbinding.
1169
+ **/
1170
+ AlreadyUnbinding: GenericPalletError<Rv>;
1171
+ /**
1172
+ * The action cannot be performed because of insufficient privileges (e.g. authority
1173
+ * trying to unbind a username provided by the system).
1174
+ **/
1175
+ InsufficientPrivileges: GenericPalletError<Rv>;
1131
1176
  /**
1132
1177
  * Generic pallet error
1133
1178
  **/
@@ -1746,6 +1791,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1746
1791
  * Callback action resulted in error
1747
1792
  **/
1748
1793
  CallbackFailed: GenericPalletError<Rv>;
1794
+ /**
1795
+ * The asset ID must be equal to the [`NextAssetId`].
1796
+ **/
1797
+ BadAssetId: GenericPalletError<Rv>;
1749
1798
  /**
1750
1799
  * Generic pallet error
1751
1800
  **/
@@ -1838,6 +1887,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1838
1887
  * Callback action resulted in error
1839
1888
  **/
1840
1889
  CallbackFailed: GenericPalletError<Rv>;
1890
+ /**
1891
+ * The asset ID must be equal to the [`NextAssetId`].
1892
+ **/
1893
+ BadAssetId: GenericPalletError<Rv>;
1841
1894
  /**
1842
1895
  * Generic pallet error
1843
1896
  **/
@@ -1852,9 +1905,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1852
1905
  **/
1853
1906
  InvalidKeyOwnershipProof: GenericPalletError<Rv>;
1854
1907
  /**
1855
- * An equivocation proof provided as part of an equivocation report is invalid.
1908
+ * A double voting proof provided as part of an equivocation report is invalid.
1856
1909
  **/
1857
- InvalidEquivocationProof: GenericPalletError<Rv>;
1910
+ InvalidDoubleVotingProof: GenericPalletError<Rv>;
1911
+ /**
1912
+ * A fork voting proof provided as part of an equivocation report is invalid.
1913
+ **/
1914
+ InvalidForkVotingProof: GenericPalletError<Rv>;
1915
+ /**
1916
+ * A future block voting proof provided as part of an equivocation report is invalid.
1917
+ **/
1918
+ InvalidFutureBlockVotingProof: GenericPalletError<Rv>;
1919
+ /**
1920
+ * The session of the equivocation proof is invalid
1921
+ **/
1922
+ InvalidEquivocationProofSession: GenericPalletError<Rv>;
1858
1923
  /**
1859
1924
  * A given equivocation report is valid but already previously reported.
1860
1925
  **/
@@ -1959,7 +2024,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1959
2024
  **/
1960
2025
  Throttled: GenericPalletError<Rv>;
1961
2026
  /**
1962
- * The operation would result in a receipt worth an insignficant value.
2027
+ * The operation would result in a receipt worth an insignificant value.
1963
2028
  **/
1964
2029
  MakesDust: GenericPalletError<Rv>;
1965
2030
  /**
@@ -2408,7 +2473,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2408
2473
  **/
2409
2474
  MissingProof: GenericPalletError<Rv>;
2410
2475
  /**
2411
- * Unable to verify proof becasue state data is missing.
2476
+ * Unable to verify proof because state data is missing.
2412
2477
  **/
2413
2478
  MissingStateData: GenericPalletError<Rv>;
2414
2479
  /**
@@ -2565,6 +2630,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2565
2630
  * The preimage does not exist.
2566
2631
  **/
2567
2632
  PreimageNotExist: GenericPalletError<Rv>;
2633
+ /**
2634
+ * The preimage is stored with a different length than the one provided.
2635
+ **/
2636
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
2568
2637
  /**
2569
2638
  * Generic pallet error
2570
2639
  **/
@@ -2722,6 +2791,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2722
2791
  * Prime account is not a member
2723
2792
  **/
2724
2793
  PrimeAccountNotMember: GenericPalletError<Rv>;
2794
+ /**
2795
+ * Proposal is still active.
2796
+ **/
2797
+ ProposalActive: GenericPalletError<Rv>;
2725
2798
  /**
2726
2799
  * Generic pallet error
2727
2800
  **/
@@ -2973,6 +3046,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2973
3046
  * No imbalance in the ED deposit for the pool.
2974
3047
  **/
2975
3048
  NothingToAdjust: GenericPalletError<Rv>;
3049
+ /**
3050
+ * No slash pending that can be applied to the member.
3051
+ **/
3052
+ NothingToSlash: GenericPalletError<Rv>;
3053
+ /**
3054
+ * The pool or member delegation has already migrated to delegate stake.
3055
+ **/
3056
+ AlreadyMigrated: GenericPalletError<Rv>;
3057
+ /**
3058
+ * The pool or member delegation has not migrated yet to delegate stake.
3059
+ **/
3060
+ NotMigrated: GenericPalletError<Rv>;
3061
+ /**
3062
+ * This call is not allowed in the current state of the pallet.
3063
+ **/
3064
+ NotSupported: GenericPalletError<Rv>;
2976
3065
  /**
2977
3066
  * Generic pallet error
2978
3067
  **/
@@ -3034,6 +3123,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3034
3123
  * The preimage does not exist.
3035
3124
  **/
3036
3125
  PreimageNotExist: GenericPalletError<Rv>;
3126
+ /**
3127
+ * The preimage is stored with a different length than the one provided.
3128
+ **/
3129
+ PreimageStoredWithDifferentLength: GenericPalletError<Rv>;
3037
3130
  /**
3038
3131
  * Generic pallet error
3039
3132
  **/
@@ -3083,6 +3176,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3083
3176
  * The new member to exchange is the same as the old member
3084
3177
  **/
3085
3178
  SameMember: GenericPalletError<Rv>;
3179
+ /**
3180
+ * The max member count for the rank has been reached.
3181
+ **/
3182
+ TooManyMembers: GenericPalletError<Rv>;
3086
3183
  /**
3087
3184
  * Generic pallet error
3088
3185
  **/
@@ -3469,6 +3566,30 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3469
3566
  * The configuration could not be applied because it is invalid.
3470
3567
  **/
3471
3568
  InvalidConfig: GenericPalletError<Rv>;
3569
+ /**
3570
+ * The revenue must be claimed for 1 or more timeslices.
3571
+ **/
3572
+ NoClaimTimeslices: GenericPalletError<Rv>;
3573
+ /**
3574
+ * The caller doesn't have the permission to enable or disable auto-renewal.
3575
+ **/
3576
+ NoPermission: GenericPalletError<Rv>;
3577
+ /**
3578
+ * We reached the limit for auto-renewals.
3579
+ **/
3580
+ TooManyAutoRenewals: GenericPalletError<Rv>;
3581
+ /**
3582
+ * Only cores which are assigned to a task can be auto-renewed.
3583
+ **/
3584
+ NonTaskAutoRenewal: GenericPalletError<Rv>;
3585
+ /**
3586
+ * Failed to get the sovereign account of a task.
3587
+ **/
3588
+ SovereignAccountNotFound: GenericPalletError<Rv>;
3589
+ /**
3590
+ * Attempted to disable auto-renewal for a core that didn't have it enabled.
3591
+ **/
3592
+ AutoRenewalNotEnabled: GenericPalletError<Rv>;
3472
3593
  /**
3473
3594
  * Generic pallet error
3474
3595
  **/
@@ -3487,4 +3608,227 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3487
3608
  **/
3488
3609
  [error: string]: GenericPalletError<Rv>;
3489
3610
  };
3611
+ /**
3612
+ * Pallet `AssetConversionMigration`'s errors
3613
+ **/
3614
+ assetConversionMigration: {
3615
+ /**
3616
+ * Provided asset pair is not supported for pool.
3617
+ **/
3618
+ InvalidAssetPair: GenericPalletError<Rv>;
3619
+ /**
3620
+ * The pool doesn't exist.
3621
+ **/
3622
+ PoolNotFound: GenericPalletError<Rv>;
3623
+ /**
3624
+ * Pool's balance cannot be zero.
3625
+ **/
3626
+ ZeroBalance: GenericPalletError<Rv>;
3627
+ /**
3628
+ * Indicates a partial transfer of balance to the new account during a migration.
3629
+ **/
3630
+ PartialTransfer: GenericPalletError<Rv>;
3631
+ /**
3632
+ * Generic pallet error
3633
+ **/
3634
+ [error: string]: GenericPalletError<Rv>;
3635
+ };
3636
+ /**
3637
+ * Pallet `Revive`'s errors
3638
+ **/
3639
+ revive: {
3640
+ /**
3641
+ * Invalid schedule supplied, e.g. with zero weight of a basic operation.
3642
+ **/
3643
+ InvalidSchedule: GenericPalletError<Rv>;
3644
+ /**
3645
+ * Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
3646
+ **/
3647
+ InvalidCallFlags: GenericPalletError<Rv>;
3648
+ /**
3649
+ * The executed contract exhausted its gas limit.
3650
+ **/
3651
+ OutOfGas: GenericPalletError<Rv>;
3652
+ /**
3653
+ * Performing the requested transfer failed. Probably because there isn't enough
3654
+ * free balance in the sender's account.
3655
+ **/
3656
+ TransferFailed: GenericPalletError<Rv>;
3657
+ /**
3658
+ * Performing a call was denied because the calling depth reached the limit
3659
+ * of what is specified in the schedule.
3660
+ **/
3661
+ MaxCallDepthReached: GenericPalletError<Rv>;
3662
+ /**
3663
+ * No contract was found at the specified address.
3664
+ **/
3665
+ ContractNotFound: GenericPalletError<Rv>;
3666
+ /**
3667
+ * No code could be found at the supplied code hash.
3668
+ **/
3669
+ CodeNotFound: GenericPalletError<Rv>;
3670
+ /**
3671
+ * No code info could be found at the supplied code hash.
3672
+ **/
3673
+ CodeInfoNotFound: GenericPalletError<Rv>;
3674
+ /**
3675
+ * A buffer outside of sandbox memory was passed to a contract API function.
3676
+ **/
3677
+ OutOfBounds: GenericPalletError<Rv>;
3678
+ /**
3679
+ * Input passed to a contract API function failed to decode as expected type.
3680
+ **/
3681
+ DecodingFailed: GenericPalletError<Rv>;
3682
+ /**
3683
+ * Contract trapped during execution.
3684
+ **/
3685
+ ContractTrapped: GenericPalletError<Rv>;
3686
+ /**
3687
+ * The size defined in `T::MaxValueSize` was exceeded.
3688
+ **/
3689
+ ValueTooLarge: GenericPalletError<Rv>;
3690
+ /**
3691
+ * Termination of a contract is not allowed while the contract is already
3692
+ * on the call stack. Can be triggered by `seal_terminate`.
3693
+ **/
3694
+ TerminatedWhileReentrant: GenericPalletError<Rv>;
3695
+ /**
3696
+ * `seal_call` forwarded this contracts input. It therefore is no longer available.
3697
+ **/
3698
+ InputForwarded: GenericPalletError<Rv>;
3699
+ /**
3700
+ * The amount of topics passed to `seal_deposit_events` exceeds the limit.
3701
+ **/
3702
+ TooManyTopics: GenericPalletError<Rv>;
3703
+ /**
3704
+ * The chain does not provide a chain extension. Calling the chain extension results
3705
+ * in this error. Note that this usually shouldn't happen as deploying such contracts
3706
+ * is rejected.
3707
+ **/
3708
+ NoChainExtension: GenericPalletError<Rv>;
3709
+ /**
3710
+ * Failed to decode the XCM program.
3711
+ **/
3712
+ XcmDecodeFailed: GenericPalletError<Rv>;
3713
+ /**
3714
+ * A contract with the same AccountId already exists.
3715
+ **/
3716
+ DuplicateContract: GenericPalletError<Rv>;
3717
+ /**
3718
+ * A contract self destructed in its constructor.
3719
+ *
3720
+ * This can be triggered by a call to `seal_terminate`.
3721
+ **/
3722
+ TerminatedInConstructor: GenericPalletError<Rv>;
3723
+ /**
3724
+ * A call tried to invoke a contract that is flagged as non-reentrant.
3725
+ **/
3726
+ ReentranceDenied: GenericPalletError<Rv>;
3727
+ /**
3728
+ * A contract called into the runtime which then called back into this pallet.
3729
+ **/
3730
+ ReenteredPallet: GenericPalletError<Rv>;
3731
+ /**
3732
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
3733
+ **/
3734
+ StateChangeDenied: GenericPalletError<Rv>;
3735
+ /**
3736
+ * Origin doesn't have enough balance to pay the required storage deposits.
3737
+ **/
3738
+ StorageDepositNotEnoughFunds: GenericPalletError<Rv>;
3739
+ /**
3740
+ * More storage was created than allowed by the storage deposit limit.
3741
+ **/
3742
+ StorageDepositLimitExhausted: GenericPalletError<Rv>;
3743
+ /**
3744
+ * Code removal was denied because the code is still in use by at least one contract.
3745
+ **/
3746
+ CodeInUse: GenericPalletError<Rv>;
3747
+ /**
3748
+ * The contract ran to completion but decided to revert its storage changes.
3749
+ * Please note that this error is only returned from extrinsics. When called directly
3750
+ * or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
3751
+ * to determine whether a reversion has taken place.
3752
+ **/
3753
+ ContractReverted: GenericPalletError<Rv>;
3754
+ /**
3755
+ * The contract failed to compile or is missing the correct entry points.
3756
+ *
3757
+ * A more detailed error can be found on the node console if debug messages are enabled
3758
+ * by supplying `-lruntime::revive=debug`.
3759
+ **/
3760
+ CodeRejected: GenericPalletError<Rv>;
3761
+ /**
3762
+ * The code blob supplied is larger than [`limits::code::BLOB_BYTES`].
3763
+ **/
3764
+ BlobTooLarge: GenericPalletError<Rv>;
3765
+ /**
3766
+ * The static memory consumption of the blob will be larger than
3767
+ * [`limits::code::STATIC_MEMORY_BYTES`].
3768
+ **/
3769
+ StaticMemoryTooLarge: GenericPalletError<Rv>;
3770
+ /**
3771
+ * The program contains a basic block that is larger than allowed.
3772
+ **/
3773
+ BasicBlockTooLarge: GenericPalletError<Rv>;
3774
+ /**
3775
+ * The program contains an invalid instruction.
3776
+ **/
3777
+ InvalidInstruction: GenericPalletError<Rv>;
3778
+ /**
3779
+ * The contract has reached its maximum number of delegate dependencies.
3780
+ **/
3781
+ MaxDelegateDependenciesReached: GenericPalletError<Rv>;
3782
+ /**
3783
+ * The dependency was not found in the contract's delegate dependencies.
3784
+ **/
3785
+ DelegateDependencyNotFound: GenericPalletError<Rv>;
3786
+ /**
3787
+ * The contract already depends on the given delegate dependency.
3788
+ **/
3789
+ DelegateDependencyAlreadyExists: GenericPalletError<Rv>;
3790
+ /**
3791
+ * Can not add a delegate dependency to the code hash of the contract itself.
3792
+ **/
3793
+ CannotAddSelfAsDelegateDependency: GenericPalletError<Rv>;
3794
+ /**
3795
+ * Can not add more data to transient storage.
3796
+ **/
3797
+ OutOfTransientStorage: GenericPalletError<Rv>;
3798
+ /**
3799
+ * The contract tried to call a syscall which does not exist (at its current api level).
3800
+ **/
3801
+ InvalidSyscall: GenericPalletError<Rv>;
3802
+ /**
3803
+ * Invalid storage flags were passed to one of the storage syscalls.
3804
+ **/
3805
+ InvalidStorageFlags: GenericPalletError<Rv>;
3806
+ /**
3807
+ * PolkaVM failed during code execution. Probably due to a malformed program.
3808
+ **/
3809
+ ExecutionFailed: GenericPalletError<Rv>;
3810
+ /**
3811
+ * Failed to convert a U256 to a Balance.
3812
+ **/
3813
+ BalanceConversionFailed: GenericPalletError<Rv>;
3814
+ /**
3815
+ * Immutable data can only be set during deploys and only be read during calls.
3816
+ * Additionally, it is only valid to set the data once and it must not be empty.
3817
+ **/
3818
+ InvalidImmutableAccess: GenericPalletError<Rv>;
3819
+ /**
3820
+ * An `AccountID32` account tried to interact with the pallet without having a mapping.
3821
+ *
3822
+ * Call [`Pallet::map_account`] in order to create a mapping for the account.
3823
+ **/
3824
+ AccountUnmapped: GenericPalletError<Rv>;
3825
+ /**
3826
+ * Tried to map an account that is already mapped.
3827
+ **/
3828
+ AccountAlreadyMapped: GenericPalletError<Rv>;
3829
+ /**
3830
+ * Generic pallet error
3831
+ **/
3832
+ [error: string]: GenericPalletError<Rv>;
3833
+ };
3490
3834
  }