@dedot/chaintypes 0.37.0 → 0.38.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.
@@ -531,6 +531,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
531
531
  **/
532
532
  [name: string]: any;
533
533
  };
534
+ /**
535
+ * Pallet `Parameters`'s constants
536
+ **/
537
+ parameters: {
538
+ /**
539
+ * Generic pallet constant
540
+ **/
541
+ [name: string]: any;
542
+ };
534
543
  /**
535
544
  * Pallet `EthereumChainId`'s constants
536
545
  **/
@@ -693,22 +702,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
693
702
  * Pallet `Treasury`'s constants
694
703
  **/
695
704
  treasury: {
696
- /**
697
- * Fraction of a proposal's value that should be bonded in order to place the proposal.
698
- * An accepted proposal gets these back. A rejected proposal does not.
699
- **/
700
- proposalBond: Permill;
701
-
702
- /**
703
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
704
- **/
705
- proposalBondMinimum: bigint;
706
-
707
- /**
708
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
709
- **/
710
- proposalBondMaximum: bigint | undefined;
711
-
712
705
  /**
713
706
  * Period between successive spends.
714
707
  **/
@@ -782,23 +775,35 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
782
775
  maxInboundSuspended: number;
783
776
 
784
777
  /**
785
- * Generic pallet constant
778
+ * Maximal number of outbound XCMP channels that can have messages queued at the same time.
779
+ *
780
+ * If this is reached, then no further messages can be sent to channels that do not yet
781
+ * have a message queued. This should be set to the expected maximum of outbound channels
782
+ * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
783
+ * since otherwise the congestion control protocol will not work as intended and messages
784
+ * may be dropped. This value increases the PoV and should therefore not be picked too
785
+ * high. Governance needs to pay attention to not open more channels than this value.
786
786
  **/
787
- [name: string]: any;
788
- };
789
- /**
790
- * Pallet `CumulusXcm`'s constants
791
- **/
792
- cumulusXcm: {
787
+ maxActiveOutboundChannels: number;
788
+
789
+ /**
790
+ * The maximal page size for HRMP message pages.
791
+ *
792
+ * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
793
+ * benchmarking. The limit for the size of a message is slightly below this, since some
794
+ * overhead is incurred for encoding the format.
795
+ **/
796
+ maxPageSize: number;
797
+
793
798
  /**
794
799
  * Generic pallet constant
795
800
  **/
796
801
  [name: string]: any;
797
802
  };
798
803
  /**
799
- * Pallet `DmpQueue`'s constants
804
+ * Pallet `CumulusXcm`'s constants
800
805
  **/
801
- dmpQueue: {
806
+ cumulusXcm: {
802
807
  /**
803
808
  * Generic pallet constant
804
809
  **/
@@ -870,33 +875,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
870
875
  **/
871
876
  [name: string]: any;
872
877
  };
873
- /**
874
- * Pallet `XTokens`'s constants
875
- **/
876
- xTokens: {
877
- /**
878
- * Self chain location.
879
- **/
880
- selfLocation: StagingXcmV4Location;
881
-
882
- /**
883
- * Base XCM weight.
884
- *
885
- * The actually weight for an XCM message is `T::BaseXcmWeight +
886
- * T::Weigher::weight(&msg)`.
887
- **/
888
- baseXcmWeight: SpWeightsWeightV2Weight;
889
-
890
- /**
891
- * The id of the RateLimiter.
892
- **/
893
- rateLimiterId: [];
894
-
895
- /**
896
- * Generic pallet constant
897
- **/
898
- [name: string]: any;
899
- };
900
878
  /**
901
879
  * Pallet `XcmTransactor`'s constants
902
880
  **/
@@ -211,6 +211,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
211
211
  CannotSetBelowMin: GenericPalletError<Rv>;
212
212
  RoundLengthMustBeGreaterThanTotalSelectedCollators: GenericPalletError<Rv>;
213
213
  NoWritingSameValue: GenericPalletError<Rv>;
214
+ TotalInflationDistributionPercentExceeds100: GenericPalletError<Rv>;
214
215
  TooLowCandidateCountWeightHintJoinCandidates: GenericPalletError<Rv>;
215
216
  TooLowCandidateCountWeightHintCancelLeaveCandidates: GenericPalletError<Rv>;
216
217
  TooLowCandidateCountToLeaveCandidates: GenericPalletError<Rv>;
@@ -731,6 +732,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
731
732
  **/
732
733
  ContractNotExist: GenericPalletError<Rv>;
733
734
 
735
+ /**
736
+ * The key lengths exceeds the maximum allowed
737
+ **/
738
+ KeyTooLong: GenericPalletError<Rv>;
739
+
734
740
  /**
735
741
  * Generic pallet error
736
742
  **/
@@ -907,6 +913,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
907
913
  **/
908
914
  TooFew: GenericPalletError<Rv>;
909
915
 
916
+ /**
917
+ * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
918
+ **/
919
+ NoCost: GenericPalletError<Rv>;
920
+
910
921
  /**
911
922
  * Generic pallet error
912
923
  **/
@@ -1227,11 +1238,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1227
1238
  * Pallet `Treasury`'s errors
1228
1239
  **/
1229
1240
  treasury: {
1230
- /**
1231
- * Proposer's balance is too low.
1232
- **/
1233
- InsufficientProposersBalance: GenericPalletError<Rv>;
1234
-
1235
1241
  /**
1236
1242
  * No proposal, bounty or spend at that index.
1237
1243
  **/
@@ -1401,6 +1407,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1401
1407
  **/
1402
1408
  AlreadyResumed: GenericPalletError<Rv>;
1403
1409
 
1410
+ /**
1411
+ * There are too many active outbound channels.
1412
+ **/
1413
+ TooManyActiveOutboundChannels: GenericPalletError<Rv>;
1414
+
1415
+ /**
1416
+ * The message is too big.
1417
+ **/
1418
+ TooBig: GenericPalletError<Rv>;
1419
+
1404
1420
  /**
1405
1421
  * Generic pallet error
1406
1422
  **/
@@ -1645,6 +1661,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1645
1661
  **/
1646
1662
  CallbackFailed: GenericPalletError<Rv>;
1647
1663
 
1664
+ /**
1665
+ * The asset ID must be equal to the [`NextAssetId`].
1666
+ **/
1667
+ BadAssetId: GenericPalletError<Rv>;
1668
+
1648
1669
  /**
1649
1670
  * Generic pallet error
1650
1671
  **/
@@ -1668,118 +1689,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1668
1689
  **/
1669
1690
  [error: string]: GenericPalletError<Rv>;
1670
1691
  };
1671
- /**
1672
- * Pallet `XTokens`'s errors
1673
- **/
1674
- xTokens: {
1675
- /**
1676
- * Asset has no reserve location.
1677
- **/
1678
- AssetHasNoReserve: GenericPalletError<Rv>;
1679
-
1680
- /**
1681
- * Not cross-chain transfer.
1682
- **/
1683
- NotCrossChainTransfer: GenericPalletError<Rv>;
1684
-
1685
- /**
1686
- * Invalid transfer destination.
1687
- **/
1688
- InvalidDest: GenericPalletError<Rv>;
1689
-
1690
- /**
1691
- * Currency is not cross-chain transferable.
1692
- **/
1693
- NotCrossChainTransferableCurrency: GenericPalletError<Rv>;
1694
-
1695
- /**
1696
- * The message's weight could not be determined.
1697
- **/
1698
- UnweighableMessage: GenericPalletError<Rv>;
1699
-
1700
- /**
1701
- * XCM execution failed.
1702
- **/
1703
- XcmExecutionFailed: GenericPalletError<Rv>;
1704
-
1705
- /**
1706
- * Could not re-anchor the assets to declare the fees for the
1707
- * destination chain.
1708
- **/
1709
- CannotReanchor: GenericPalletError<Rv>;
1710
-
1711
- /**
1712
- * Could not get ancestry of asset reserve location.
1713
- **/
1714
- InvalidAncestry: GenericPalletError<Rv>;
1715
-
1716
- /**
1717
- * The Asset is invalid.
1718
- **/
1719
- InvalidAsset: GenericPalletError<Rv>;
1720
-
1721
- /**
1722
- * The destination `Location` provided cannot be inverted.
1723
- **/
1724
- DestinationNotInvertible: GenericPalletError<Rv>;
1725
-
1726
- /**
1727
- * The version of the `Versioned` value used is not able to be
1728
- * interpreted.
1729
- **/
1730
- BadVersion: GenericPalletError<Rv>;
1731
-
1732
- /**
1733
- * We tried sending distinct asset and fee but they have different
1734
- * reserve chains.
1735
- **/
1736
- DistinctReserveForAssetAndFee: GenericPalletError<Rv>;
1737
-
1738
- /**
1739
- * The fee is zero.
1740
- **/
1741
- ZeroFee: GenericPalletError<Rv>;
1742
-
1743
- /**
1744
- * The transfering asset amount is zero.
1745
- **/
1746
- ZeroAmount: GenericPalletError<Rv>;
1747
-
1748
- /**
1749
- * The number of assets to be sent is over the maximum.
1750
- **/
1751
- TooManyAssetsBeingSent: GenericPalletError<Rv>;
1752
-
1753
- /**
1754
- * The specified index does not exist in a Assets struct.
1755
- **/
1756
- AssetIndexNonExistent: GenericPalletError<Rv>;
1757
-
1758
- /**
1759
- * Fee is not enough.
1760
- **/
1761
- FeeNotEnough: GenericPalletError<Rv>;
1762
-
1763
- /**
1764
- * Not supported Location
1765
- **/
1766
- NotSupportedLocation: GenericPalletError<Rv>;
1767
-
1768
- /**
1769
- * MinXcmFee not registered for certain reserve location
1770
- **/
1771
- MinXcmFeeNotDefined: GenericPalletError<Rv>;
1772
-
1773
- /**
1774
- * Asset transfer is limited by RateLimiter.
1775
- **/
1776
- RateLimited: GenericPalletError<Rv>;
1777
-
1778
- /**
1779
- * Generic pallet error
1780
- **/
1781
- [error: string]: GenericPalletError<Rv>;
1782
- };
1783
1692
  /**
1784
1693
  * Pallet `XcmTransactor`'s errors
1785
1694
  **/
@@ -18,11 +18,14 @@ import type {
18
18
  FrameSupportTokensMiscBalanceStatus,
19
19
  PalletParachainStakingDelegationRequestsCancelledScheduledRequest,
20
20
  PalletParachainStakingDelegatorAdded,
21
+ PalletParachainStakingInflationDistributionConfig,
21
22
  PalletAuthorSlotFilterNumNonZeroU32,
22
23
  NimbusPrimitivesNimbusCryptoPublic,
23
24
  SessionKeysPrimitivesVrfVrfCryptoPublic,
24
25
  MoonbeamRuntimeProxyType,
25
26
  PalletMultisigTimepoint,
27
+ MoonbeamRuntimeRuntimeParamsRuntimeParametersKey,
28
+ MoonbeamRuntimeRuntimeParamsRuntimeParametersValue,
26
29
  EthereumLog,
27
30
  EvmCoreErrorExitReason,
28
31
  FrameSupportPreimagesBounded,
@@ -39,7 +42,6 @@ import type {
39
42
  XcmVersionedLocation,
40
43
  MoonbeamRuntimeXcmConfigAssetType,
41
44
  MoonbeamRuntimeAssetConfigAssetRegistrarMetadata,
42
- StagingXcmV4Asset,
43
45
  PalletXcmTransactorRemoteTransactInfoWithMaxWeight,
44
46
  PalletXcmTransactorHrmpOperation,
45
47
  CumulusPrimitivesCoreAggregateMessageOrigin,
@@ -559,31 +561,17 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
559
561
  /**
560
562
  * Transferred to account which holds funds reserved for parachain bond.
561
563
  **/
562
- ReservedForParachainBond: GenericPalletEvent<
564
+ InflationDistributed: GenericPalletEvent<
563
565
  Rv,
564
566
  'ParachainStaking',
565
- 'ReservedForParachainBond',
566
- { account: AccountId20; value: bigint }
567
+ 'InflationDistributed',
568
+ { index: number; account: AccountId20; value: bigint }
567
569
  >;
568
-
569
- /**
570
- * Account (re)set for parachain bond treasury.
571
- **/
572
- ParachainBondAccountSet: GenericPalletEvent<
570
+ InflationDistributionConfigUpdated: GenericPalletEvent<
573
571
  Rv,
574
572
  'ParachainStaking',
575
- 'ParachainBondAccountSet',
576
- { old: AccountId20; new: AccountId20 }
577
- >;
578
-
579
- /**
580
- * Percent of inflation reserved for parachain bond (re)set.
581
- **/
582
- ParachainBondReservePercentSet: GenericPalletEvent<
583
- Rv,
584
- 'ParachainStaking',
585
- 'ParachainBondReservePercentSet',
586
- { old: Percent; new: Percent }
573
+ 'InflationDistributionConfigUpdated',
574
+ { old: PalletParachainStakingInflationDistributionConfig; new: PalletParachainStakingInflationDistributionConfig }
587
575
  >;
588
576
 
589
577
  /**
@@ -1175,6 +1163,42 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1175
1163
  **/
1176
1164
  [prop: string]: GenericPalletEvent<Rv>;
1177
1165
  };
1166
+ /**
1167
+ * Pallet `Parameters`'s events
1168
+ **/
1169
+ parameters: {
1170
+ /**
1171
+ * A Parameter was set.
1172
+ *
1173
+ * Is also emitted when the value was not changed.
1174
+ **/
1175
+ Updated: GenericPalletEvent<
1176
+ Rv,
1177
+ 'Parameters',
1178
+ 'Updated',
1179
+ {
1180
+ /**
1181
+ * The key that was updated.
1182
+ **/
1183
+ key: MoonbeamRuntimeRuntimeParamsRuntimeParametersKey;
1184
+
1185
+ /**
1186
+ * The old value before this call.
1187
+ **/
1188
+ oldValue?: MoonbeamRuntimeRuntimeParamsRuntimeParametersValue | undefined;
1189
+
1190
+ /**
1191
+ * The new value after this call.
1192
+ **/
1193
+ newValue?: MoonbeamRuntimeRuntimeParamsRuntimeParametersValue | undefined;
1194
+ }
1195
+ >;
1196
+
1197
+ /**
1198
+ * Generic pallet event
1199
+ **/
1200
+ [prop: string]: GenericPalletEvent<Rv>;
1201
+ };
1178
1202
  /**
1179
1203
  * Pallet `EVM`'s events
1180
1204
  **/
@@ -1861,11 +1885,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1861
1885
  * Pallet `Treasury`'s events
1862
1886
  **/
1863
1887
  treasury: {
1864
- /**
1865
- * New proposal.
1866
- **/
1867
- Proposed: GenericPalletEvent<Rv, 'Treasury', 'Proposed', { proposalIndex: number }>;
1868
-
1869
1888
  /**
1870
1889
  * We have ended a spend period and will now allocate funds.
1871
1890
  **/
@@ -1881,11 +1900,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1881
1900
  { proposalIndex: number; award: bigint; account: AccountId20 }
1882
1901
  >;
1883
1902
 
1884
- /**
1885
- * A proposal was rejected; funds were slashed.
1886
- **/
1887
- Rejected: GenericPalletEvent<Rv, 'Treasury', 'Rejected', { proposalIndex: number; slashed: bigint }>;
1888
-
1889
1903
  /**
1890
1904
  * Some of our funds have been burnt.
1891
1905
  **/
@@ -2064,74 +2078,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2064
2078
  **/
2065
2079
  [prop: string]: GenericPalletEvent<Rv>;
2066
2080
  };
2067
- /**
2068
- * Pallet `DmpQueue`'s events
2069
- **/
2070
- dmpQueue: {
2071
- /**
2072
- * The export of pages started.
2073
- **/
2074
- StartedExport: GenericPalletEvent<Rv, 'DmpQueue', 'StartedExport', null>;
2075
-
2076
- /**
2077
- * The export of a page completed.
2078
- **/
2079
- Exported: GenericPalletEvent<Rv, 'DmpQueue', 'Exported', { page: number }>;
2080
-
2081
- /**
2082
- * The export of a page failed.
2083
- *
2084
- * This should never be emitted.
2085
- **/
2086
- ExportFailed: GenericPalletEvent<Rv, 'DmpQueue', 'ExportFailed', { page: number }>;
2087
-
2088
- /**
2089
- * The export of pages completed.
2090
- **/
2091
- CompletedExport: GenericPalletEvent<Rv, 'DmpQueue', 'CompletedExport', null>;
2092
-
2093
- /**
2094
- * The export of overweight messages started.
2095
- **/
2096
- StartedOverweightExport: GenericPalletEvent<Rv, 'DmpQueue', 'StartedOverweightExport', null>;
2097
-
2098
- /**
2099
- * The export of an overweight message completed.
2100
- **/
2101
- ExportedOverweight: GenericPalletEvent<Rv, 'DmpQueue', 'ExportedOverweight', { index: bigint }>;
2102
-
2103
- /**
2104
- * The export of an overweight message failed.
2105
- *
2106
- * This should never be emitted.
2107
- **/
2108
- ExportOverweightFailed: GenericPalletEvent<Rv, 'DmpQueue', 'ExportOverweightFailed', { index: bigint }>;
2109
-
2110
- /**
2111
- * The export of overweight messages completed.
2112
- **/
2113
- CompletedOverweightExport: GenericPalletEvent<Rv, 'DmpQueue', 'CompletedOverweightExport', null>;
2114
-
2115
- /**
2116
- * The cleanup of remaining pallet storage started.
2117
- **/
2118
- StartedCleanup: GenericPalletEvent<Rv, 'DmpQueue', 'StartedCleanup', null>;
2119
-
2120
- /**
2121
- * Some debris was cleaned up.
2122
- **/
2123
- CleanedSome: GenericPalletEvent<Rv, 'DmpQueue', 'CleanedSome', { keysRemoved: number }>;
2124
-
2125
- /**
2126
- * The cleanup of remaining pallet storage completed.
2127
- **/
2128
- Completed: GenericPalletEvent<Rv, 'DmpQueue', 'Completed', { error: boolean }>;
2129
-
2130
- /**
2131
- * Generic pallet event
2132
- **/
2133
- [prop: string]: GenericPalletEvent<Rv>;
2134
- };
2135
2081
  /**
2136
2082
  * Pallet `PolkadotXcm`'s events
2137
2083
  **/
@@ -2584,6 +2530,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2584
2530
  **/
2585
2531
  Blocked: GenericPalletEvent<Rv, 'Assets', 'Blocked', { assetId: bigint; who: AccountId20 }>;
2586
2532
 
2533
+ /**
2534
+ * Some assets were deposited (e.g. for transaction fees).
2535
+ **/
2536
+ Deposited: GenericPalletEvent<Rv, 'Assets', 'Deposited', { assetId: bigint; who: AccountId20; amount: bigint }>;
2537
+
2538
+ /**
2539
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
2540
+ **/
2541
+ Withdrawn: GenericPalletEvent<Rv, 'Assets', 'Withdrawn', { assetId: bigint; who: AccountId20; amount: bigint }>;
2542
+
2587
2543
  /**
2588
2544
  * Generic pallet event
2589
2545
  **/
@@ -2662,25 +2618,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2662
2618
  **/
2663
2619
  [prop: string]: GenericPalletEvent<Rv>;
2664
2620
  };
2665
- /**
2666
- * Pallet `XTokens`'s events
2667
- **/
2668
- xTokens: {
2669
- /**
2670
- * Transferred `Asset` with fee.
2671
- **/
2672
- TransferredAssets: GenericPalletEvent<
2673
- Rv,
2674
- 'XTokens',
2675
- 'TransferredAssets',
2676
- { sender: AccountId20; assets: StagingXcmV4AssetAssets; fee: StagingXcmV4Asset; dest: StagingXcmV4Location }
2677
- >;
2678
-
2679
- /**
2680
- * Generic pallet event
2681
- **/
2682
- [prop: string]: GenericPalletEvent<Rv>;
2683
- };
2684
2621
  /**
2685
2622
  * Pallet `XcmTransactor`'s events
2686
2623
  **/
@@ -23,7 +23,7 @@ export interface VersionedMoonbeamApi<Rv extends RpcVersion> extends GenericSubs
23
23
 
24
24
  /**
25
25
  * @name: MoonbeamApi
26
- * @specVersion: 3200
26
+ * @specVersion: 3300
27
27
  **/
28
28
  export interface MoonbeamApi {
29
29
  legacy: VersionedMoonbeamApi<RpcLegacy>;