@dedot/chaintypes 0.30.0 → 0.32.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.
@@ -980,6 +980,33 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
980
980
  **/
981
981
  [name: string]: any;
982
982
  };
983
+ /**
984
+ * Pallet `EvmForeignAssets`'s constants
985
+ **/
986
+ evmForeignAssets: {
987
+ /**
988
+ * Generic pallet constant
989
+ **/
990
+ [name: string]: any;
991
+ };
992
+ /**
993
+ * Pallet `XcmWeightTrader`'s constants
994
+ **/
995
+ xcmWeightTrader: {
996
+ /**
997
+ * Generic pallet constant
998
+ **/
999
+ [name: string]: any;
1000
+ };
1001
+ /**
1002
+ * Pallet `EmergencyParaXcm`'s constants
1003
+ **/
1004
+ emergencyParaXcm: {
1005
+ /**
1006
+ * Generic pallet constant
1007
+ **/
1008
+ [name: string]: any;
1009
+ };
983
1010
  /**
984
1011
  * Pallet `RelayStorageRoots`'s constants
985
1012
  **/
@@ -721,6 +721,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
721
721
  **/
722
722
  ContractNotCorrupted: GenericPalletError<Rv>;
723
723
 
724
+ /**
725
+ * The contract already have metadata
726
+ **/
727
+ ContractMetadataAlreadySet: GenericPalletError<Rv>;
728
+
729
+ /**
730
+ * Contract not exist
731
+ **/
732
+ ContractNotExist: GenericPalletError<Rv>;
733
+
724
734
  /**
725
735
  * Generic pallet error
726
736
  **/
@@ -1881,6 +1891,83 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1881
1891
  **/
1882
1892
  [error: string]: GenericPalletError<Rv>;
1883
1893
  };
1894
+ /**
1895
+ * Pallet `EvmForeignAssets`'s errors
1896
+ **/
1897
+ evmForeignAssets: {
1898
+ AssetAlreadyExists: GenericPalletError<Rv>;
1899
+ AssetAlreadyFrozen: GenericPalletError<Rv>;
1900
+ AssetDoesNotExist: GenericPalletError<Rv>;
1901
+ AssetIdFiltered: GenericPalletError<Rv>;
1902
+ AssetNotFrozen: GenericPalletError<Rv>;
1903
+ CorruptedStorageOrphanLocation: GenericPalletError<Rv>;
1904
+ Erc20ContractCreationFail: GenericPalletError<Rv>;
1905
+ EvmCallPauseFail: GenericPalletError<Rv>;
1906
+ EvmCallUnpauseFail: GenericPalletError<Rv>;
1907
+ EvmInternalError: GenericPalletError<Rv>;
1908
+ InvalidSymbol: GenericPalletError<Rv>;
1909
+ InvalidTokenName: GenericPalletError<Rv>;
1910
+ LocationAlreadyExists: GenericPalletError<Rv>;
1911
+ TooManyForeignAssets: GenericPalletError<Rv>;
1912
+
1913
+ /**
1914
+ * Generic pallet error
1915
+ **/
1916
+ [error: string]: GenericPalletError<Rv>;
1917
+ };
1918
+ /**
1919
+ * Pallet `XcmWeightTrader`'s errors
1920
+ **/
1921
+ xcmWeightTrader: {
1922
+ /**
1923
+ * The given asset was already added
1924
+ **/
1925
+ AssetAlreadyAdded: GenericPalletError<Rv>;
1926
+
1927
+ /**
1928
+ * The given asset was already paused
1929
+ **/
1930
+ AssetAlreadyPaused: GenericPalletError<Rv>;
1931
+
1932
+ /**
1933
+ * The given asset was not found
1934
+ **/
1935
+ AssetNotFound: GenericPalletError<Rv>;
1936
+
1937
+ /**
1938
+ * The given asset is not paused
1939
+ **/
1940
+ AssetNotPaused: GenericPalletError<Rv>;
1941
+
1942
+ /**
1943
+ * XCM location filtered
1944
+ **/
1945
+ XcmLocationFiltered: GenericPalletError<Rv>;
1946
+
1947
+ /**
1948
+ * The relative price cannot be zero
1949
+ **/
1950
+ PriceCannotBeZero: GenericPalletError<Rv>;
1951
+
1952
+ /**
1953
+ * Generic pallet error
1954
+ **/
1955
+ [error: string]: GenericPalletError<Rv>;
1956
+ };
1957
+ /**
1958
+ * Pallet `EmergencyParaXcm`'s errors
1959
+ **/
1960
+ emergencyParaXcm: {
1961
+ /**
1962
+ * The current XCM Mode is not Paused
1963
+ **/
1964
+ NotInPausedMode: GenericPalletError<Rv>;
1965
+
1966
+ /**
1967
+ * Generic pallet error
1968
+ **/
1969
+ [error: string]: GenericPalletError<Rv>;
1970
+ };
1884
1971
  /**
1885
1972
  * Pallet `PrecompileBenchmarks`'s errors
1886
1973
  **/
@@ -2610,12 +2610,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2610
2610
  /**
2611
2611
  * Changed the amount of units we are charging per execution second for a given asset
2612
2612
  **/
2613
- UnitsPerSecondChanged: GenericPalletEvent<
2614
- Rv,
2615
- 'AssetManager',
2616
- 'UnitsPerSecondChanged',
2617
- { assetType: MoonbeamRuntimeXcmConfigAssetType; unitsPerSecond: bigint }
2618
- >;
2613
+ UnitsPerSecondChanged: GenericPalletEvent<Rv, 'AssetManager', 'UnitsPerSecondChanged', null>;
2619
2614
 
2620
2615
  /**
2621
2616
  * Changed the xcm type mapping for a given asset id
@@ -2927,6 +2922,125 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2927
2922
  **/
2928
2923
  [prop: string]: GenericPalletEvent<Rv>;
2929
2924
  };
2925
+ /**
2926
+ * Pallet `EvmForeignAssets`'s events
2927
+ **/
2928
+ evmForeignAssets: {
2929
+ /**
2930
+ * New asset with the asset manager is registered
2931
+ **/
2932
+ ForeignAssetCreated: GenericPalletEvent<
2933
+ Rv,
2934
+ 'EvmForeignAssets',
2935
+ 'ForeignAssetCreated',
2936
+ { contractAddress: H160; assetId: bigint; xcmLocation: StagingXcmV4Location }
2937
+ >;
2938
+
2939
+ /**
2940
+ * Changed the xcm type mapping for a given asset id
2941
+ **/
2942
+ ForeignAssetXcmLocationChanged: GenericPalletEvent<
2943
+ Rv,
2944
+ 'EvmForeignAssets',
2945
+ 'ForeignAssetXcmLocationChanged',
2946
+ { assetId: bigint; newXcmLocation: StagingXcmV4Location }
2947
+ >;
2948
+ ForeignAssetFrozen: GenericPalletEvent<
2949
+ Rv,
2950
+ 'EvmForeignAssets',
2951
+ 'ForeignAssetFrozen',
2952
+ { assetId: bigint; xcmLocation: StagingXcmV4Location }
2953
+ >;
2954
+ ForeignAssetUnfrozen: GenericPalletEvent<
2955
+ Rv,
2956
+ 'EvmForeignAssets',
2957
+ 'ForeignAssetUnfrozen',
2958
+ { assetId: bigint; xcmLocation: StagingXcmV4Location }
2959
+ >;
2960
+
2961
+ /**
2962
+ * Generic pallet event
2963
+ **/
2964
+ [prop: string]: GenericPalletEvent<Rv>;
2965
+ };
2966
+ /**
2967
+ * Pallet `XcmWeightTrader`'s events
2968
+ **/
2969
+ xcmWeightTrader: {
2970
+ /**
2971
+ * New supported asset is registered
2972
+ **/
2973
+ SupportedAssetAdded: GenericPalletEvent<
2974
+ Rv,
2975
+ 'XcmWeightTrader',
2976
+ 'SupportedAssetAdded',
2977
+ { location: StagingXcmV4Location; relativePrice: bigint }
2978
+ >;
2979
+
2980
+ /**
2981
+ * Changed the amount of units we are charging per execution second for a given asset
2982
+ **/
2983
+ SupportedAssetEdited: GenericPalletEvent<
2984
+ Rv,
2985
+ 'XcmWeightTrader',
2986
+ 'SupportedAssetEdited',
2987
+ { location: StagingXcmV4Location; relativePrice: bigint }
2988
+ >;
2989
+
2990
+ /**
2991
+ * Pause support for a given asset
2992
+ **/
2993
+ PauseAssetSupport: GenericPalletEvent<
2994
+ Rv,
2995
+ 'XcmWeightTrader',
2996
+ 'PauseAssetSupport',
2997
+ { location: StagingXcmV4Location }
2998
+ >;
2999
+
3000
+ /**
3001
+ * Resume support for a given asset
3002
+ **/
3003
+ ResumeAssetSupport: GenericPalletEvent<
3004
+ Rv,
3005
+ 'XcmWeightTrader',
3006
+ 'ResumeAssetSupport',
3007
+ { location: StagingXcmV4Location }
3008
+ >;
3009
+
3010
+ /**
3011
+ * Supported asset type for fee payment removed
3012
+ **/
3013
+ SupportedAssetRemoved: GenericPalletEvent<
3014
+ Rv,
3015
+ 'XcmWeightTrader',
3016
+ 'SupportedAssetRemoved',
3017
+ { location: StagingXcmV4Location }
3018
+ >;
3019
+
3020
+ /**
3021
+ * Generic pallet event
3022
+ **/
3023
+ [prop: string]: GenericPalletEvent<Rv>;
3024
+ };
3025
+ /**
3026
+ * Pallet `EmergencyParaXcm`'s events
3027
+ **/
3028
+ emergencyParaXcm: {
3029
+ /**
3030
+ * The XCM incoming execution was Paused
3031
+ **/
3032
+ EnteredPausedXcmMode: GenericPalletEvent<Rv, 'EmergencyParaXcm', 'EnteredPausedXcmMode', undefined>;
3033
+
3034
+ /**
3035
+ * The XCM incoming execution returned to normal operation
3036
+ **/
3037
+ NormalXcmOperationResumed: GenericPalletEvent<Rv, 'EmergencyParaXcm', 'NormalXcmOperationResumed', undefined>;
3038
+
3039
+ /**
3040
+ * Generic pallet event
3041
+ **/
3042
+ [prop: string]: GenericPalletEvent<Rv>;
3043
+ };
2930
3044
  /**
2931
3045
  * Pallet `Randomness`'s events
2932
3046
  **/
@@ -23,7 +23,7 @@ export interface VersionedMoonbeamApi<Rv extends RpcVersion> extends GenericSubs
23
23
 
24
24
  /**
25
25
  * @name: MoonbeamApi
26
- * @specVersion: 3102
26
+ * @specVersion: 3200
27
27
  **/
28
28
  export interface MoonbeamApi {
29
29
  legacy: VersionedMoonbeamApi<RpcLegacy>;
@@ -98,6 +98,8 @@ import type {
98
98
  PalletMessageQueueBookState,
99
99
  CumulusPrimitivesCoreAggregateMessageOrigin,
100
100
  PalletMessageQueuePage,
101
+ PalletMoonbeamForeignAssetsAssetStatus,
102
+ PalletEmergencyParaXcmXcmMode,
101
103
  PalletRandomnessRequestState,
102
104
  PalletRandomnessRandomnessResult,
103
105
  PalletRandomnessRequestType,
@@ -2065,27 +2067,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2065
2067
  MoonbeamRuntimeXcmConfigAssetType
2066
2068
  >;
2067
2069
 
2068
- /**
2069
- * Stores the units per second for local execution for a AssetType.
2070
- * This is used to know how to charge for XCM execution in a particular
2071
- * asset
2072
- * Not all assets might contain units per second, hence the different storage
2073
- *
2074
- * @param {MoonbeamRuntimeXcmConfigAssetType} arg
2075
- * @param {Callback<bigint | undefined> =} callback
2076
- **/
2077
- assetTypeUnitsPerSecond: GenericStorageQuery<
2078
- Rv,
2079
- (arg: MoonbeamRuntimeXcmConfigAssetType) => bigint | undefined,
2080
- MoonbeamRuntimeXcmConfigAssetType
2081
- >;
2082
-
2083
- /**
2084
- *
2085
- * @param {Callback<Array<MoonbeamRuntimeXcmConfigAssetType>> =} callback
2086
- **/
2087
- supportedFeePaymentAssets: GenericStorageQuery<Rv, () => Array<MoonbeamRuntimeXcmConfigAssetType>>;
2088
-
2089
2070
  /**
2090
2071
  * Generic pallet storage query
2091
2072
  **/
@@ -2216,6 +2197,85 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2216
2197
  **/
2217
2198
  [storage: string]: GenericStorageQuery<Rv>;
2218
2199
  };
2200
+ /**
2201
+ * Pallet `EvmForeignAssets`'s storage queries
2202
+ **/
2203
+ evmForeignAssets: {
2204
+ /**
2205
+ * Mapping from an asset id to a Foreign asset type.
2206
+ * This is mostly used when receiving transaction specifying an asset directly,
2207
+ * like transferring an asset from this chain to another.
2208
+ *
2209
+ * @param {bigint} arg
2210
+ * @param {Callback<StagingXcmV4Location | undefined> =} callback
2211
+ **/
2212
+ assetsById: GenericStorageQuery<Rv, (arg: bigint) => StagingXcmV4Location | undefined, bigint>;
2213
+
2214
+ /**
2215
+ * Counter for the related counted storage map
2216
+ *
2217
+ * @param {Callback<number> =} callback
2218
+ **/
2219
+ counterForAssetsById: GenericStorageQuery<Rv, () => number>;
2220
+
2221
+ /**
2222
+ * Reverse mapping of AssetsById. Mapping from a foreign asset to an asset id.
2223
+ * This is mostly used when receiving a multilocation XCM message to retrieve
2224
+ * the corresponding asset in which tokens should me minted.
2225
+ *
2226
+ * @param {StagingXcmV4Location} arg
2227
+ * @param {Callback<[bigint, PalletMoonbeamForeignAssetsAssetStatus] | undefined> =} callback
2228
+ **/
2229
+ assetsByLocation: GenericStorageQuery<
2230
+ Rv,
2231
+ (arg: StagingXcmV4Location) => [bigint, PalletMoonbeamForeignAssetsAssetStatus] | undefined,
2232
+ StagingXcmV4Location
2233
+ >;
2234
+
2235
+ /**
2236
+ * Generic pallet storage query
2237
+ **/
2238
+ [storage: string]: GenericStorageQuery<Rv>;
2239
+ };
2240
+ /**
2241
+ * Pallet `XcmWeightTrader`'s storage queries
2242
+ **/
2243
+ xcmWeightTrader: {
2244
+ /**
2245
+ * Stores all supported assets per XCM Location.
2246
+ * The u128 is the asset price relative to native asset with 18 decimals
2247
+ * The boolean specify if the support for this asset is active
2248
+ *
2249
+ * @param {StagingXcmV4Location} arg
2250
+ * @param {Callback<[boolean, bigint] | undefined> =} callback
2251
+ **/
2252
+ supportedAssets: GenericStorageQuery<
2253
+ Rv,
2254
+ (arg: StagingXcmV4Location) => [boolean, bigint] | undefined,
2255
+ StagingXcmV4Location
2256
+ >;
2257
+
2258
+ /**
2259
+ * Generic pallet storage query
2260
+ **/
2261
+ [storage: string]: GenericStorageQuery<Rv>;
2262
+ };
2263
+ /**
2264
+ * Pallet `EmergencyParaXcm`'s storage queries
2265
+ **/
2266
+ emergencyParaXcm: {
2267
+ /**
2268
+ * Whether incoming XCM is enabled or paused
2269
+ *
2270
+ * @param {Callback<PalletEmergencyParaXcmXcmMode> =} callback
2271
+ **/
2272
+ mode: GenericStorageQuery<Rv, () => PalletEmergencyParaXcmXcmMode>;
2273
+
2274
+ /**
2275
+ * Generic pallet storage query
2276
+ **/
2277
+ [storage: string]: GenericStorageQuery<Rv>;
2278
+ };
2219
2279
  /**
2220
2280
  * Pallet `RelayStorageRoots`'s storage queries
2221
2281
  **/