@dedot/api 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chaintypes/substrate/consts.d.ts +81 -11
- package/chaintypes/substrate/errors.d.ts +230 -2
- package/chaintypes/substrate/events.d.ts +335 -85
- package/chaintypes/substrate/query.d.ts +132 -19
- package/chaintypes/substrate/runtime.d.ts +92 -11
- package/chaintypes/substrate/tx.d.ts +559 -27
- package/chaintypes/substrate/types.d.ts +1752 -258
- package/cjs/extrinsic/submittable/BaseSubmittableExtrinsic.js +28 -3
- package/cjs/extrinsic/submittable/SubmittableExtrinsic.js +30 -22
- package/cjs/extrinsic/submittable/SubmittableExtrinsicV2.js +31 -22
- package/cjs/extrinsic/submittable/errors.js +10 -1
- package/cjs/extrinsic/submittable/utils.js +39 -1
- package/extrinsic/submittable/BaseSubmittableExtrinsic.d.ts +7 -7
- package/extrinsic/submittable/BaseSubmittableExtrinsic.js +29 -4
- package/extrinsic/submittable/SubmittableExtrinsic.d.ts +4 -4
- package/extrinsic/submittable/SubmittableExtrinsic.js +31 -23
- package/extrinsic/submittable/SubmittableExtrinsicV2.d.ts +3 -4
- package/extrinsic/submittable/SubmittableExtrinsicV2.js +32 -23
- package/extrinsic/submittable/errors.d.ts +6 -0
- package/extrinsic/submittable/errors.js +8 -0
- package/extrinsic/submittable/utils.d.ts +8 -2
- package/extrinsic/submittable/utils.js +38 -1
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Bytes, FixedBytes, Perbill, Percent, Permill, Perquintill, RuntimeVersion } from '@dedot/codecs';
|
|
1
|
+
import type { AccountId32, Bytes, FixedBytes, Perbill, Percent, Permill, Perquintill, RuntimeVersion } from '@dedot/codecs';
|
|
2
2
|
import type { GenericChainConsts, RpcVersion } from '@dedot/types';
|
|
3
|
-
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsApiVersion, PalletContractsEnvironment, PalletContractsSchedule, PalletNftsBitFlagsPalletFeature,
|
|
3
|
+
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsApiVersion, PalletContractsEnvironment, PalletContractsSchedule, PalletNftsBitFlagsPalletFeature, PalletReferendaTrackDetailsStr, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from './types.js';
|
|
4
4
|
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
5
5
|
/**
|
|
6
6
|
* Pallet `System`'s constants
|
|
@@ -581,6 +581,10 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
581
581
|
* The period during which an approved treasury spend has to be claimed.
|
|
582
582
|
**/
|
|
583
583
|
payoutPeriod: number;
|
|
584
|
+
/**
|
|
585
|
+
* Gets this pallet's derived pot account.
|
|
586
|
+
**/
|
|
587
|
+
potAccount: AccountId32;
|
|
584
588
|
/**
|
|
585
589
|
* Generic pallet constant
|
|
586
590
|
**/
|
|
@@ -1031,7 +1035,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1031
1035
|
**/
|
|
1032
1036
|
bountyDepositPayoutDelay: number;
|
|
1033
1037
|
/**
|
|
1034
|
-
*
|
|
1038
|
+
* The time limit for a curator to act before a bounty expires.
|
|
1039
|
+
*
|
|
1040
|
+
* The period that starts when a curator is approved, during which they must execute or
|
|
1041
|
+
* update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
|
|
1042
|
+
* curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
|
|
1043
|
+
* removing the need for `extend_bounty_expiry`.
|
|
1035
1044
|
**/
|
|
1036
1045
|
bountyUpdatePeriod: number;
|
|
1037
1046
|
/**
|
|
@@ -1643,9 +1652,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1643
1652
|
**/
|
|
1644
1653
|
alarmInterval: number;
|
|
1645
1654
|
/**
|
|
1646
|
-
*
|
|
1655
|
+
* A list of tracks.
|
|
1656
|
+
*
|
|
1657
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
1647
1658
|
**/
|
|
1648
|
-
tracks: Array<[number,
|
|
1659
|
+
tracks: Array<[number, PalletReferendaTrackDetailsStr]>;
|
|
1649
1660
|
/**
|
|
1650
1661
|
* Generic pallet constant
|
|
1651
1662
|
**/
|
|
@@ -1799,9 +1810,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1799
1810
|
**/
|
|
1800
1811
|
alarmInterval: number;
|
|
1801
1812
|
/**
|
|
1802
|
-
*
|
|
1813
|
+
* A list of tracks.
|
|
1814
|
+
*
|
|
1815
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
1803
1816
|
**/
|
|
1804
|
-
tracks: Array<[number,
|
|
1817
|
+
tracks: Array<[number, PalletReferendaTrackDetailsStr]>;
|
|
1805
1818
|
/**
|
|
1806
1819
|
* Generic pallet constant
|
|
1807
1820
|
**/
|
|
@@ -2049,7 +2062,16 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2049
2062
|
* Maximum number of system cores.
|
|
2050
2063
|
**/
|
|
2051
2064
|
maxReservedCores: number;
|
|
2065
|
+
/**
|
|
2066
|
+
* Given that we are performing all auto-renewals in a single block, it has to be limited.
|
|
2067
|
+
**/
|
|
2052
2068
|
maxAutoRenewals: number;
|
|
2069
|
+
/**
|
|
2070
|
+
* The smallest amount of credits a user can purchase.
|
|
2071
|
+
*
|
|
2072
|
+
* Needed to prevent spam attacks.
|
|
2073
|
+
**/
|
|
2074
|
+
minimumCreditPurchase: bigint;
|
|
2053
2075
|
/**
|
|
2054
2076
|
* Generic pallet constant
|
|
2055
2077
|
**/
|
|
@@ -2177,9 +2199,8 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2177
2199
|
depositPerItem: bigint;
|
|
2178
2200
|
/**
|
|
2179
2201
|
* The percentage of the storage deposit that should be held for using a code hash.
|
|
2180
|
-
* Instantiating a contract,
|
|
2181
|
-
*
|
|
2182
|
-
* protected with a percentage of the code deposit.
|
|
2202
|
+
* Instantiating a contract, protects the code from being removed. In order to prevent
|
|
2203
|
+
* abuse these actions are protected with a percentage of the code deposit.
|
|
2183
2204
|
**/
|
|
2184
2205
|
codeHashLockupDepositPercent: Perbill;
|
|
2185
2206
|
/**
|
|
@@ -2205,7 +2226,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2205
2226
|
* The ratio between the decimal representation of the native token and the ETH token.
|
|
2206
2227
|
**/
|
|
2207
2228
|
nativeToEthRatio: number;
|
|
2208
|
-
apiVersion: number;
|
|
2209
2229
|
/**
|
|
2210
2230
|
* Generic pallet constant
|
|
2211
2231
|
**/
|
|
@@ -2220,4 +2240,54 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2220
2240
|
**/
|
|
2221
2241
|
[name: string]: any;
|
|
2222
2242
|
};
|
|
2243
|
+
/**
|
|
2244
|
+
* Pallet `DelegatedStaking`'s constants
|
|
2245
|
+
**/
|
|
2246
|
+
delegatedStaking: {
|
|
2247
|
+
/**
|
|
2248
|
+
* Injected identifier for the pallet.
|
|
2249
|
+
**/
|
|
2250
|
+
palletId: FrameSupportPalletId;
|
|
2251
|
+
/**
|
|
2252
|
+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
|
2253
|
+
**/
|
|
2254
|
+
slashRewardFraction: Perbill;
|
|
2255
|
+
/**
|
|
2256
|
+
* Generic pallet constant
|
|
2257
|
+
**/
|
|
2258
|
+
[name: string]: any;
|
|
2259
|
+
};
|
|
2260
|
+
/**
|
|
2261
|
+
* Pallet `AssetRewards`'s constants
|
|
2262
|
+
**/
|
|
2263
|
+
assetRewards: {
|
|
2264
|
+
/**
|
|
2265
|
+
* The pallet's unique identifier, used to derive the pool's account ID.
|
|
2266
|
+
*
|
|
2267
|
+
* The account ID is derived once during pool creation and stored in the storage.
|
|
2268
|
+
**/
|
|
2269
|
+
palletId: FrameSupportPalletId;
|
|
2270
|
+
/**
|
|
2271
|
+
* Generic pallet constant
|
|
2272
|
+
**/
|
|
2273
|
+
[name: string]: any;
|
|
2274
|
+
};
|
|
2275
|
+
/**
|
|
2276
|
+
* Pallet `AssetsFreezer`'s constants
|
|
2277
|
+
**/
|
|
2278
|
+
assetsFreezer: {
|
|
2279
|
+
/**
|
|
2280
|
+
* Generic pallet constant
|
|
2281
|
+
**/
|
|
2282
|
+
[name: string]: any;
|
|
2283
|
+
};
|
|
2284
|
+
/**
|
|
2285
|
+
* Pallet `MetaTx`'s constants
|
|
2286
|
+
**/
|
|
2287
|
+
metaTx: {
|
|
2288
|
+
/**
|
|
2289
|
+
* Generic pallet constant
|
|
2290
|
+
**/
|
|
2291
|
+
[name: string]: any;
|
|
2292
|
+
};
|
|
2223
2293
|
}
|
|
@@ -374,6 +374,19 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
374
374
|
* Operation not allowed for virtual stakers.
|
|
375
375
|
**/
|
|
376
376
|
VirtualStakerNotAllowed: GenericPalletError<Rv>;
|
|
377
|
+
/**
|
|
378
|
+
* Stash could not be reaped as other pallet might depend on it.
|
|
379
|
+
**/
|
|
380
|
+
CannotReapStash: GenericPalletError<Rv>;
|
|
381
|
+
/**
|
|
382
|
+
* The stake of this account is already migrated to `Fungible` holds.
|
|
383
|
+
**/
|
|
384
|
+
AlreadyMigrated: GenericPalletError<Rv>;
|
|
385
|
+
/**
|
|
386
|
+
* Account is restricted from participation in staking. This may happen if the account is
|
|
387
|
+
* staking in another way already, such as via pool.
|
|
388
|
+
**/
|
|
389
|
+
Restricted: GenericPalletError<Rv>;
|
|
377
390
|
/**
|
|
378
391
|
* Generic pallet error
|
|
379
392
|
**/
|
|
@@ -1581,11 +1594,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1581
1594
|
**/
|
|
1582
1595
|
SenderInSignatories: GenericPalletError<Rv>;
|
|
1583
1596
|
/**
|
|
1584
|
-
* Multisig operation not found
|
|
1597
|
+
* Multisig operation not found in storage.
|
|
1585
1598
|
**/
|
|
1586
1599
|
NotFound: GenericPalletError<Rv>;
|
|
1587
1600
|
/**
|
|
1588
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
1601
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
1602
|
+
* its deposits.
|
|
1589
1603
|
**/
|
|
1590
1604
|
NotOwner: GenericPalletError<Rv>;
|
|
1591
1605
|
/**
|
|
@@ -1795,6 +1809,14 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1795
1809
|
* The asset ID must be equal to the [`NextAssetId`].
|
|
1796
1810
|
**/
|
|
1797
1811
|
BadAssetId: GenericPalletError<Rv>;
|
|
1812
|
+
/**
|
|
1813
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
1814
|
+
**/
|
|
1815
|
+
ContainsFreezes: GenericPalletError<Rv>;
|
|
1816
|
+
/**
|
|
1817
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
1818
|
+
**/
|
|
1819
|
+
ContainsHolds: GenericPalletError<Rv>;
|
|
1798
1820
|
/**
|
|
1799
1821
|
* Generic pallet error
|
|
1800
1822
|
**/
|
|
@@ -1891,6 +1913,14 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1891
1913
|
* The asset ID must be equal to the [`NextAssetId`].
|
|
1892
1914
|
**/
|
|
1893
1915
|
BadAssetId: GenericPalletError<Rv>;
|
|
1916
|
+
/**
|
|
1917
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
1918
|
+
**/
|
|
1919
|
+
ContainsFreezes: GenericPalletError<Rv>;
|
|
1920
|
+
/**
|
|
1921
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
1922
|
+
**/
|
|
1923
|
+
ContainsHolds: GenericPalletError<Rv>;
|
|
1894
1924
|
/**
|
|
1895
1925
|
* Generic pallet error
|
|
1896
1926
|
**/
|
|
@@ -3050,6 +3080,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3050
3080
|
* No slash pending that can be applied to the member.
|
|
3051
3081
|
**/
|
|
3052
3082
|
NothingToSlash: GenericPalletError<Rv>;
|
|
3083
|
+
/**
|
|
3084
|
+
* The slash amount is too low to be applied.
|
|
3085
|
+
**/
|
|
3086
|
+
SlashTooLow: GenericPalletError<Rv>;
|
|
3053
3087
|
/**
|
|
3054
3088
|
* The pool or member delegation has already migrated to delegate stake.
|
|
3055
3089
|
**/
|
|
@@ -3062,6 +3096,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3062
3096
|
* This call is not allowed in the current state of the pallet.
|
|
3063
3097
|
**/
|
|
3064
3098
|
NotSupported: GenericPalletError<Rv>;
|
|
3099
|
+
/**
|
|
3100
|
+
* Account is restricted from participation in pools. This may happen if the account is
|
|
3101
|
+
* staking in another way already.
|
|
3102
|
+
**/
|
|
3103
|
+
Restricted: GenericPalletError<Rv>;
|
|
3065
3104
|
/**
|
|
3066
3105
|
* Generic pallet error
|
|
3067
3106
|
**/
|
|
@@ -3528,6 +3567,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3528
3567
|
* The maximum amount of leases has already been reached.
|
|
3529
3568
|
**/
|
|
3530
3569
|
TooManyLeases: GenericPalletError<Rv>;
|
|
3570
|
+
/**
|
|
3571
|
+
* The lease does not exist.
|
|
3572
|
+
**/
|
|
3573
|
+
LeaseNotFound: GenericPalletError<Rv>;
|
|
3531
3574
|
/**
|
|
3532
3575
|
* The revenue for the Instantaneous Core Sales of this period is not (yet) known and thus
|
|
3533
3576
|
* this operation cannot proceed.
|
|
@@ -3590,6 +3633,15 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3590
3633
|
* Attempted to disable auto-renewal for a core that didn't have it enabled.
|
|
3591
3634
|
**/
|
|
3592
3635
|
AutoRenewalNotEnabled: GenericPalletError<Rv>;
|
|
3636
|
+
/**
|
|
3637
|
+
* Attempted to force remove an assignment that doesn't exist.
|
|
3638
|
+
**/
|
|
3639
|
+
AssignmentNotFound: GenericPalletError<Rv>;
|
|
3640
|
+
/**
|
|
3641
|
+
* Needed to prevent spam attacks.The amount of credits the user attempted to purchase is
|
|
3642
|
+
* below `T::MinimumCreditPurchase`.
|
|
3643
|
+
**/
|
|
3644
|
+
CreditPurchaseTooSmall: GenericPalletError<Rv>;
|
|
3593
3645
|
/**
|
|
3594
3646
|
* Generic pallet error
|
|
3595
3647
|
**/
|
|
@@ -3811,6 +3863,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3811
3863
|
* Failed to convert a U256 to a Balance.
|
|
3812
3864
|
**/
|
|
3813
3865
|
BalanceConversionFailed: GenericPalletError<Rv>;
|
|
3866
|
+
/**
|
|
3867
|
+
* Failed to convert an EVM balance to a native balance.
|
|
3868
|
+
**/
|
|
3869
|
+
DecimalPrecisionLoss: GenericPalletError<Rv>;
|
|
3814
3870
|
/**
|
|
3815
3871
|
* Immutable data can only be set during deploys and only be read during calls.
|
|
3816
3872
|
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
@@ -3826,6 +3882,178 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3826
3882
|
* Tried to map an account that is already mapped.
|
|
3827
3883
|
**/
|
|
3828
3884
|
AccountAlreadyMapped: GenericPalletError<Rv>;
|
|
3885
|
+
/**
|
|
3886
|
+
* The transaction used to dry-run a contract is invalid.
|
|
3887
|
+
**/
|
|
3888
|
+
InvalidGenericTransaction: GenericPalletError<Rv>;
|
|
3889
|
+
/**
|
|
3890
|
+
* The refcount of a code either over or underflowed.
|
|
3891
|
+
**/
|
|
3892
|
+
RefcountOverOrUnderflow: GenericPalletError<Rv>;
|
|
3893
|
+
/**
|
|
3894
|
+
* Unsupported precompile address
|
|
3895
|
+
**/
|
|
3896
|
+
UnsupportedPrecompileAddress: GenericPalletError<Rv>;
|
|
3897
|
+
/**
|
|
3898
|
+
* Precompile Error
|
|
3899
|
+
**/
|
|
3900
|
+
PrecompileFailure: GenericPalletError<Rv>;
|
|
3901
|
+
/**
|
|
3902
|
+
* Generic pallet error
|
|
3903
|
+
**/
|
|
3904
|
+
[error: string]: GenericPalletError<Rv>;
|
|
3905
|
+
};
|
|
3906
|
+
/**
|
|
3907
|
+
* Pallet `DelegatedStaking`'s errors
|
|
3908
|
+
**/
|
|
3909
|
+
delegatedStaking: {
|
|
3910
|
+
/**
|
|
3911
|
+
* The account cannot perform this operation.
|
|
3912
|
+
**/
|
|
3913
|
+
NotAllowed: GenericPalletError<Rv>;
|
|
3914
|
+
/**
|
|
3915
|
+
* An existing staker cannot perform this action.
|
|
3916
|
+
**/
|
|
3917
|
+
AlreadyStaking: GenericPalletError<Rv>;
|
|
3918
|
+
/**
|
|
3919
|
+
* Reward Destination cannot be same as `Agent` account.
|
|
3920
|
+
**/
|
|
3921
|
+
InvalidRewardDestination: GenericPalletError<Rv>;
|
|
3922
|
+
/**
|
|
3923
|
+
* Delegation conditions are not met.
|
|
3924
|
+
*
|
|
3925
|
+
* Possible issues are
|
|
3926
|
+
* 1) Cannot delegate to self,
|
|
3927
|
+
* 2) Cannot delegate to multiple delegates.
|
|
3928
|
+
**/
|
|
3929
|
+
InvalidDelegation: GenericPalletError<Rv>;
|
|
3930
|
+
/**
|
|
3931
|
+
* The account does not have enough funds to perform the operation.
|
|
3932
|
+
**/
|
|
3933
|
+
NotEnoughFunds: GenericPalletError<Rv>;
|
|
3934
|
+
/**
|
|
3935
|
+
* Not an existing `Agent` account.
|
|
3936
|
+
**/
|
|
3937
|
+
NotAgent: GenericPalletError<Rv>;
|
|
3938
|
+
/**
|
|
3939
|
+
* Not a Delegator account.
|
|
3940
|
+
**/
|
|
3941
|
+
NotDelegator: GenericPalletError<Rv>;
|
|
3942
|
+
/**
|
|
3943
|
+
* Some corruption in internal state.
|
|
3944
|
+
**/
|
|
3945
|
+
BadState: GenericPalletError<Rv>;
|
|
3946
|
+
/**
|
|
3947
|
+
* Unapplied pending slash restricts operation on `Agent`.
|
|
3948
|
+
**/
|
|
3949
|
+
UnappliedSlash: GenericPalletError<Rv>;
|
|
3950
|
+
/**
|
|
3951
|
+
* `Agent` has no pending slash to be applied.
|
|
3952
|
+
**/
|
|
3953
|
+
NothingToSlash: GenericPalletError<Rv>;
|
|
3954
|
+
/**
|
|
3955
|
+
* Failed to withdraw amount from Core Staking.
|
|
3956
|
+
**/
|
|
3957
|
+
WithdrawFailed: GenericPalletError<Rv>;
|
|
3958
|
+
/**
|
|
3959
|
+
* Operation not supported by this pallet.
|
|
3960
|
+
**/
|
|
3961
|
+
NotSupported: GenericPalletError<Rv>;
|
|
3962
|
+
/**
|
|
3963
|
+
* Generic pallet error
|
|
3964
|
+
**/
|
|
3965
|
+
[error: string]: GenericPalletError<Rv>;
|
|
3966
|
+
};
|
|
3967
|
+
/**
|
|
3968
|
+
* Pallet `AssetRewards`'s errors
|
|
3969
|
+
**/
|
|
3970
|
+
assetRewards: {
|
|
3971
|
+
/**
|
|
3972
|
+
* The staker does not have enough tokens to perform the operation.
|
|
3973
|
+
**/
|
|
3974
|
+
NotEnoughTokens: GenericPalletError<Rv>;
|
|
3975
|
+
/**
|
|
3976
|
+
* An operation was attempted on a non-existent pool.
|
|
3977
|
+
**/
|
|
3978
|
+
NonExistentPool: GenericPalletError<Rv>;
|
|
3979
|
+
/**
|
|
3980
|
+
* An operation was attempted for a non-existent staker.
|
|
3981
|
+
**/
|
|
3982
|
+
NonExistentStaker: GenericPalletError<Rv>;
|
|
3983
|
+
/**
|
|
3984
|
+
* An operation was attempted with a non-existent asset.
|
|
3985
|
+
**/
|
|
3986
|
+
NonExistentAsset: GenericPalletError<Rv>;
|
|
3987
|
+
/**
|
|
3988
|
+
* There was an error converting a block number.
|
|
3989
|
+
**/
|
|
3990
|
+
BlockNumberConversionError: GenericPalletError<Rv>;
|
|
3991
|
+
/**
|
|
3992
|
+
* The expiry block must be in the future.
|
|
3993
|
+
**/
|
|
3994
|
+
ExpiryBlockMustBeInTheFuture: GenericPalletError<Rv>;
|
|
3995
|
+
/**
|
|
3996
|
+
* Insufficient funds to create the freeze.
|
|
3997
|
+
**/
|
|
3998
|
+
InsufficientFunds: GenericPalletError<Rv>;
|
|
3999
|
+
/**
|
|
4000
|
+
* The expiry block can be only extended.
|
|
4001
|
+
**/
|
|
4002
|
+
ExpiryCut: GenericPalletError<Rv>;
|
|
4003
|
+
/**
|
|
4004
|
+
* The reward rate per block can be only increased.
|
|
4005
|
+
**/
|
|
4006
|
+
RewardRateCut: GenericPalletError<Rv>;
|
|
4007
|
+
/**
|
|
4008
|
+
* The pool still has staked tokens or rewards.
|
|
4009
|
+
**/
|
|
4010
|
+
NonEmptyPool: GenericPalletError<Rv>;
|
|
4011
|
+
/**
|
|
4012
|
+
* Generic pallet error
|
|
4013
|
+
**/
|
|
4014
|
+
[error: string]: GenericPalletError<Rv>;
|
|
4015
|
+
};
|
|
4016
|
+
/**
|
|
4017
|
+
* Pallet `AssetsFreezer`'s errors
|
|
4018
|
+
**/
|
|
4019
|
+
assetsFreezer: {
|
|
4020
|
+
/**
|
|
4021
|
+
* Number of freezes on an account would exceed `MaxFreezes`.
|
|
4022
|
+
**/
|
|
4023
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
4024
|
+
/**
|
|
4025
|
+
* Generic pallet error
|
|
4026
|
+
**/
|
|
4027
|
+
[error: string]: GenericPalletError<Rv>;
|
|
4028
|
+
};
|
|
4029
|
+
/**
|
|
4030
|
+
* Pallet `MetaTx`'s errors
|
|
4031
|
+
**/
|
|
4032
|
+
metaTx: {
|
|
4033
|
+
/**
|
|
4034
|
+
* Invalid proof (e.g. signature).
|
|
4035
|
+
**/
|
|
4036
|
+
BadProof: GenericPalletError<Rv>;
|
|
4037
|
+
/**
|
|
4038
|
+
* The meta transaction is not yet valid (e.g. nonce too high).
|
|
4039
|
+
**/
|
|
4040
|
+
Future: GenericPalletError<Rv>;
|
|
4041
|
+
/**
|
|
4042
|
+
* The meta transaction is outdated (e.g. nonce too low).
|
|
4043
|
+
**/
|
|
4044
|
+
Stale: GenericPalletError<Rv>;
|
|
4045
|
+
/**
|
|
4046
|
+
* The meta transactions's birth block is ancient.
|
|
4047
|
+
**/
|
|
4048
|
+
AncientBirthBlock: GenericPalletError<Rv>;
|
|
4049
|
+
/**
|
|
4050
|
+
* The transaction extension did not authorize any origin.
|
|
4051
|
+
**/
|
|
4052
|
+
UnknownOrigin: GenericPalletError<Rv>;
|
|
4053
|
+
/**
|
|
4054
|
+
* The meta transaction is invalid.
|
|
4055
|
+
**/
|
|
4056
|
+
Invalid: GenericPalletError<Rv>;
|
|
3829
4057
|
/**
|
|
3830
4058
|
* Generic pallet error
|
|
3831
4059
|
**/
|