@dedot/chaintypes 0.121.0 → 0.122.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.
@@ -10,7 +10,7 @@ import type {
10
10
  SpWeightsWeightV2Weight,
11
11
  PalletReferendaTrackInfo,
12
12
  FrameSupportPalletId,
13
- StagingXcmV4Location,
13
+ StagingXcmV5Location,
14
14
  } from './types.js';
15
15
 
16
16
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -435,6 +435,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
435
435
  **/
436
436
  byteDeposit: bigint;
437
437
 
438
+ /**
439
+ * The amount held on deposit per registered username. This value should change only in
440
+ * runtime upgrades with proper migration of existing deposits.
441
+ **/
442
+ usernameDeposit: bigint;
443
+
438
444
  /**
439
445
  * The amount held on deposit for a registered subaccount. This should account for the fact
440
446
  * that one storage item's value will increase by the size of an account ID, and there will
@@ -458,6 +464,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
458
464
  **/
459
465
  pendingUsernameExpiration: number;
460
466
 
467
+ /**
468
+ * The number of blocks that must pass to enable the permanent deletion of a username by
469
+ * its respective authority.
470
+ **/
471
+ usernameGracePeriod: number;
472
+
461
473
  /**
462
474
  * The maximum length of a suffix.
463
475
  **/
@@ -718,6 +730,9 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
718
730
  palletId: FrameSupportPalletId;
719
731
 
720
732
  /**
733
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
734
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
735
+ *
721
736
  * The maximum number of approvals that can wait in the spending queue.
722
737
  *
723
738
  * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
@@ -882,7 +897,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
882
897
  /**
883
898
  * Self chain location.
884
899
  **/
885
- selfLocation: StagingXcmV4Location;
900
+ selfLocation: StagingXcmV5Location;
886
901
 
887
902
  /**
888
903
  *
@@ -985,6 +1000,31 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
985
1000
  **/
986
1001
  [name: string]: any;
987
1002
  };
1003
+ /**
1004
+ * Pallet `MultiBlockMigrations`'s constants
1005
+ **/
1006
+ multiBlockMigrations: {
1007
+ /**
1008
+ * The maximal length of an encoded cursor.
1009
+ *
1010
+ * A good default needs to selected such that no migration will ever have a cursor with MEL
1011
+ * above this limit. This is statically checked in `integrity_test`.
1012
+ **/
1013
+ cursorMaxLen: number;
1014
+
1015
+ /**
1016
+ * The maximal length of an encoded identifier.
1017
+ *
1018
+ * A good default needs to selected such that no migration will ever have an identifier
1019
+ * with MEL above this limit. This is statically checked in `integrity_test`.
1020
+ **/
1021
+ identifierMaxLen: number;
1022
+
1023
+ /**
1024
+ * Generic pallet constant
1025
+ **/
1026
+ [name: string]: any;
1027
+ };
988
1028
  /**
989
1029
  * Pallet `RelayStorageRoots`'s constants
990
1030
  **/
@@ -589,6 +589,27 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
589
589
  **/
590
590
  NotExpired: GenericPalletError<Rv>;
591
591
 
592
+ /**
593
+ * The username cannot be removed because it's still in the grace period.
594
+ **/
595
+ TooEarly: GenericPalletError<Rv>;
596
+
597
+ /**
598
+ * The username cannot be removed because it is not unbinding.
599
+ **/
600
+ NotUnbinding: GenericPalletError<Rv>;
601
+
602
+ /**
603
+ * The username cannot be unbound because it is already unbinding.
604
+ **/
605
+ AlreadyUnbinding: GenericPalletError<Rv>;
606
+
607
+ /**
608
+ * The action cannot be performed because of insufficient privileges (e.g. authority
609
+ * trying to unbind a username provided by the system).
610
+ **/
611
+ InsufficientPrivileges: GenericPalletError<Rv>;
612
+
592
613
  /**
593
614
  * Generic pallet error
594
615
  **/
@@ -1189,6 +1210,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1189
1210
  **/
1190
1211
  PrimeAccountNotMember: GenericPalletError<Rv>;
1191
1212
 
1213
+ /**
1214
+ * Proposal is still active.
1215
+ **/
1216
+ ProposalActive: GenericPalletError<Rv>;
1217
+
1192
1218
  /**
1193
1219
  * Generic pallet error
1194
1220
  **/
@@ -1253,6 +1279,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1253
1279
  **/
1254
1280
  PrimeAccountNotMember: GenericPalletError<Rv>;
1255
1281
 
1282
+ /**
1283
+ * Proposal is still active.
1284
+ **/
1285
+ ProposalActive: GenericPalletError<Rv>;
1286
+
1256
1287
  /**
1257
1288
  * Generic pallet error
1258
1289
  **/
@@ -1837,6 +1868,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1837
1868
  Erc20ContractCreationFail: GenericPalletError<Rv>;
1838
1869
  EvmCallPauseFail: GenericPalletError<Rv>;
1839
1870
  EvmCallUnpauseFail: GenericPalletError<Rv>;
1871
+ EvmCallMintIntoFail: GenericPalletError<Rv>;
1872
+ EvmCallTransferFail: GenericPalletError<Rv>;
1840
1873
  EvmInternalError: GenericPalletError<Rv>;
1841
1874
 
1842
1875
  /**
@@ -1890,6 +1923,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1890
1923
  **/
1891
1924
  PriceCannotBeZero: GenericPalletError<Rv>;
1892
1925
 
1926
+ /**
1927
+ * The relative price calculation overflowed
1928
+ **/
1929
+ PriceOverflow: GenericPalletError<Rv>;
1930
+
1893
1931
  /**
1894
1932
  * Generic pallet error
1895
1933
  **/
@@ -1909,6 +1947,20 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1909
1947
  **/
1910
1948
  [error: string]: GenericPalletError<Rv>;
1911
1949
  };
1950
+ /**
1951
+ * Pallet `MultiBlockMigrations`'s errors
1952
+ **/
1953
+ multiBlockMigrations: {
1954
+ /**
1955
+ * The operation cannot complete since some MBMs are ongoing.
1956
+ **/
1957
+ Ongoing: GenericPalletError<Rv>;
1958
+
1959
+ /**
1960
+ * Generic pallet error
1961
+ **/
1962
+ [error: string]: GenericPalletError<Rv>;
1963
+ };
1912
1964
  /**
1913
1965
  * Pallet `PrecompileBenchmarks`'s errors
1914
1966
  **/