@dedot/chaintypes 0.31.0 → 0.33.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/moonbeam/consts.d.ts +27 -0
- package/moonbeam/errors.d.ts +87 -0
- package/moonbeam/events.d.ts +120 -6
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +81 -21
- package/moonbeam/tx.d.ts +281 -52
- package/moonbeam/types.d.ts +243 -34
- package/package.json +2 -2
- package/westend-asset-hub/index.d.ts +1 -1
package/moonbeam/consts.d.ts
CHANGED
|
@@ -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
|
**/
|
package/moonbeam/errors.d.ts
CHANGED
|
@@ -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
|
**/
|
package/moonbeam/events.d.ts
CHANGED
|
@@ -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
|
**/
|
package/moonbeam/index.d.ts
CHANGED
package/moonbeam/query.d.ts
CHANGED
|
@@ -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
|
**/
|
package/moonbeam/tx.d.ts
CHANGED
|
@@ -3240,6 +3240,24 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3240
3240
|
>
|
|
3241
3241
|
>;
|
|
3242
3242
|
|
|
3243
|
+
/**
|
|
3244
|
+
*
|
|
3245
|
+
* @param {H160} address
|
|
3246
|
+
**/
|
|
3247
|
+
createContractMetadata: GenericTxCall<
|
|
3248
|
+
Rv,
|
|
3249
|
+
(address: H160) => ChainSubmittableExtrinsic<
|
|
3250
|
+
Rv,
|
|
3251
|
+
{
|
|
3252
|
+
pallet: 'MoonbeamLazyMigrations';
|
|
3253
|
+
palletCall: {
|
|
3254
|
+
name: 'CreateContractMetadata';
|
|
3255
|
+
params: { address: H160 };
|
|
3256
|
+
};
|
|
3257
|
+
}
|
|
3258
|
+
>
|
|
3259
|
+
>;
|
|
3260
|
+
|
|
3243
3261
|
/**
|
|
3244
3262
|
* Generic pallet tx call
|
|
3245
3263
|
**/
|
|
@@ -7226,36 +7244,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7226
7244
|
>
|
|
7227
7245
|
>;
|
|
7228
7246
|
|
|
7229
|
-
/**
|
|
7230
|
-
* Change the amount of units we are charging per execution second
|
|
7231
|
-
* for a given ForeignAssetType
|
|
7232
|
-
*
|
|
7233
|
-
* @param {MoonbeamRuntimeXcmConfigAssetType} assetType
|
|
7234
|
-
* @param {bigint} unitsPerSecond
|
|
7235
|
-
* @param {number} numAssetsWeightHint
|
|
7236
|
-
**/
|
|
7237
|
-
setAssetUnitsPerSecond: GenericTxCall<
|
|
7238
|
-
Rv,
|
|
7239
|
-
(
|
|
7240
|
-
assetType: MoonbeamRuntimeXcmConfigAssetType,
|
|
7241
|
-
unitsPerSecond: bigint,
|
|
7242
|
-
numAssetsWeightHint: number,
|
|
7243
|
-
) => ChainSubmittableExtrinsic<
|
|
7244
|
-
Rv,
|
|
7245
|
-
{
|
|
7246
|
-
pallet: 'AssetManager';
|
|
7247
|
-
palletCall: {
|
|
7248
|
-
name: 'SetAssetUnitsPerSecond';
|
|
7249
|
-
params: {
|
|
7250
|
-
assetType: MoonbeamRuntimeXcmConfigAssetType;
|
|
7251
|
-
unitsPerSecond: bigint;
|
|
7252
|
-
numAssetsWeightHint: number;
|
|
7253
|
-
};
|
|
7254
|
-
};
|
|
7255
|
-
}
|
|
7256
|
-
>
|
|
7257
|
-
>;
|
|
7258
|
-
|
|
7259
7247
|
/**
|
|
7260
7248
|
* Change the xcm type mapping for a given assetId
|
|
7261
7249
|
* We also change this if the previous units per second where pointing at the old
|
|
@@ -7283,28 +7271,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7283
7271
|
>
|
|
7284
7272
|
>;
|
|
7285
7273
|
|
|
7286
|
-
/**
|
|
7287
|
-
*
|
|
7288
|
-
* @param {MoonbeamRuntimeXcmConfigAssetType} assetType
|
|
7289
|
-
* @param {number} numAssetsWeightHint
|
|
7290
|
-
**/
|
|
7291
|
-
removeSupportedAsset: GenericTxCall<
|
|
7292
|
-
Rv,
|
|
7293
|
-
(
|
|
7294
|
-
assetType: MoonbeamRuntimeXcmConfigAssetType,
|
|
7295
|
-
numAssetsWeightHint: number,
|
|
7296
|
-
) => ChainSubmittableExtrinsic<
|
|
7297
|
-
Rv,
|
|
7298
|
-
{
|
|
7299
|
-
pallet: 'AssetManager';
|
|
7300
|
-
palletCall: {
|
|
7301
|
-
name: 'RemoveSupportedAsset';
|
|
7302
|
-
params: { assetType: MoonbeamRuntimeXcmConfigAssetType; numAssetsWeightHint: number };
|
|
7303
|
-
};
|
|
7304
|
-
}
|
|
7305
|
-
>
|
|
7306
|
-
>;
|
|
7307
|
-
|
|
7308
7274
|
/**
|
|
7309
7275
|
* Remove a given assetId -> assetType association
|
|
7310
7276
|
*
|
|
@@ -8150,6 +8116,269 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8150
8116
|
**/
|
|
8151
8117
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8152
8118
|
};
|
|
8119
|
+
/**
|
|
8120
|
+
* Pallet `EvmForeignAssets`'s transaction calls
|
|
8121
|
+
**/
|
|
8122
|
+
evmForeignAssets: {
|
|
8123
|
+
/**
|
|
8124
|
+
* Create new asset with the ForeignAssetCreator
|
|
8125
|
+
*
|
|
8126
|
+
* @param {bigint} assetId
|
|
8127
|
+
* @param {StagingXcmV4Location} xcmLocation
|
|
8128
|
+
* @param {number} decimals
|
|
8129
|
+
* @param {BytesLike} symbol
|
|
8130
|
+
* @param {BytesLike} name
|
|
8131
|
+
**/
|
|
8132
|
+
createForeignAsset: GenericTxCall<
|
|
8133
|
+
Rv,
|
|
8134
|
+
(
|
|
8135
|
+
assetId: bigint,
|
|
8136
|
+
xcmLocation: StagingXcmV4Location,
|
|
8137
|
+
decimals: number,
|
|
8138
|
+
symbol: BytesLike,
|
|
8139
|
+
name: BytesLike,
|
|
8140
|
+
) => ChainSubmittableExtrinsic<
|
|
8141
|
+
Rv,
|
|
8142
|
+
{
|
|
8143
|
+
pallet: 'EvmForeignAssets';
|
|
8144
|
+
palletCall: {
|
|
8145
|
+
name: 'CreateForeignAsset';
|
|
8146
|
+
params: {
|
|
8147
|
+
assetId: bigint;
|
|
8148
|
+
xcmLocation: StagingXcmV4Location;
|
|
8149
|
+
decimals: number;
|
|
8150
|
+
symbol: BytesLike;
|
|
8151
|
+
name: BytesLike;
|
|
8152
|
+
};
|
|
8153
|
+
};
|
|
8154
|
+
}
|
|
8155
|
+
>
|
|
8156
|
+
>;
|
|
8157
|
+
|
|
8158
|
+
/**
|
|
8159
|
+
* Change the xcm type mapping for a given assetId
|
|
8160
|
+
* We also change this if the previous units per second where pointing at the old
|
|
8161
|
+
* assetType
|
|
8162
|
+
*
|
|
8163
|
+
* @param {bigint} assetId
|
|
8164
|
+
* @param {StagingXcmV4Location} newXcmLocation
|
|
8165
|
+
**/
|
|
8166
|
+
changeXcmLocation: GenericTxCall<
|
|
8167
|
+
Rv,
|
|
8168
|
+
(
|
|
8169
|
+
assetId: bigint,
|
|
8170
|
+
newXcmLocation: StagingXcmV4Location,
|
|
8171
|
+
) => ChainSubmittableExtrinsic<
|
|
8172
|
+
Rv,
|
|
8173
|
+
{
|
|
8174
|
+
pallet: 'EvmForeignAssets';
|
|
8175
|
+
palletCall: {
|
|
8176
|
+
name: 'ChangeXcmLocation';
|
|
8177
|
+
params: { assetId: bigint; newXcmLocation: StagingXcmV4Location };
|
|
8178
|
+
};
|
|
8179
|
+
}
|
|
8180
|
+
>
|
|
8181
|
+
>;
|
|
8182
|
+
|
|
8183
|
+
/**
|
|
8184
|
+
* Freeze a given foreign assetId
|
|
8185
|
+
*
|
|
8186
|
+
* @param {bigint} assetId
|
|
8187
|
+
* @param {boolean} allowXcmDeposit
|
|
8188
|
+
**/
|
|
8189
|
+
freezeForeignAsset: GenericTxCall<
|
|
8190
|
+
Rv,
|
|
8191
|
+
(
|
|
8192
|
+
assetId: bigint,
|
|
8193
|
+
allowXcmDeposit: boolean,
|
|
8194
|
+
) => ChainSubmittableExtrinsic<
|
|
8195
|
+
Rv,
|
|
8196
|
+
{
|
|
8197
|
+
pallet: 'EvmForeignAssets';
|
|
8198
|
+
palletCall: {
|
|
8199
|
+
name: 'FreezeForeignAsset';
|
|
8200
|
+
params: { assetId: bigint; allowXcmDeposit: boolean };
|
|
8201
|
+
};
|
|
8202
|
+
}
|
|
8203
|
+
>
|
|
8204
|
+
>;
|
|
8205
|
+
|
|
8206
|
+
/**
|
|
8207
|
+
* Unfreeze a given foreign assetId
|
|
8208
|
+
*
|
|
8209
|
+
* @param {bigint} assetId
|
|
8210
|
+
**/
|
|
8211
|
+
unfreezeForeignAsset: GenericTxCall<
|
|
8212
|
+
Rv,
|
|
8213
|
+
(assetId: bigint) => ChainSubmittableExtrinsic<
|
|
8214
|
+
Rv,
|
|
8215
|
+
{
|
|
8216
|
+
pallet: 'EvmForeignAssets';
|
|
8217
|
+
palletCall: {
|
|
8218
|
+
name: 'UnfreezeForeignAsset';
|
|
8219
|
+
params: { assetId: bigint };
|
|
8220
|
+
};
|
|
8221
|
+
}
|
|
8222
|
+
>
|
|
8223
|
+
>;
|
|
8224
|
+
|
|
8225
|
+
/**
|
|
8226
|
+
* Generic pallet tx call
|
|
8227
|
+
**/
|
|
8228
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8229
|
+
};
|
|
8230
|
+
/**
|
|
8231
|
+
* Pallet `XcmWeightTrader`'s transaction calls
|
|
8232
|
+
**/
|
|
8233
|
+
xcmWeightTrader: {
|
|
8234
|
+
/**
|
|
8235
|
+
*
|
|
8236
|
+
* @param {StagingXcmV4Location} location
|
|
8237
|
+
* @param {bigint} relativePrice
|
|
8238
|
+
**/
|
|
8239
|
+
addAsset: GenericTxCall<
|
|
8240
|
+
Rv,
|
|
8241
|
+
(
|
|
8242
|
+
location: StagingXcmV4Location,
|
|
8243
|
+
relativePrice: bigint,
|
|
8244
|
+
) => ChainSubmittableExtrinsic<
|
|
8245
|
+
Rv,
|
|
8246
|
+
{
|
|
8247
|
+
pallet: 'XcmWeightTrader';
|
|
8248
|
+
palletCall: {
|
|
8249
|
+
name: 'AddAsset';
|
|
8250
|
+
params: { location: StagingXcmV4Location; relativePrice: bigint };
|
|
8251
|
+
};
|
|
8252
|
+
}
|
|
8253
|
+
>
|
|
8254
|
+
>;
|
|
8255
|
+
|
|
8256
|
+
/**
|
|
8257
|
+
*
|
|
8258
|
+
* @param {StagingXcmV4Location} location
|
|
8259
|
+
* @param {bigint} relativePrice
|
|
8260
|
+
**/
|
|
8261
|
+
editAsset: GenericTxCall<
|
|
8262
|
+
Rv,
|
|
8263
|
+
(
|
|
8264
|
+
location: StagingXcmV4Location,
|
|
8265
|
+
relativePrice: bigint,
|
|
8266
|
+
) => ChainSubmittableExtrinsic<
|
|
8267
|
+
Rv,
|
|
8268
|
+
{
|
|
8269
|
+
pallet: 'XcmWeightTrader';
|
|
8270
|
+
palletCall: {
|
|
8271
|
+
name: 'EditAsset';
|
|
8272
|
+
params: { location: StagingXcmV4Location; relativePrice: bigint };
|
|
8273
|
+
};
|
|
8274
|
+
}
|
|
8275
|
+
>
|
|
8276
|
+
>;
|
|
8277
|
+
|
|
8278
|
+
/**
|
|
8279
|
+
*
|
|
8280
|
+
* @param {StagingXcmV4Location} location
|
|
8281
|
+
**/
|
|
8282
|
+
pauseAssetSupport: GenericTxCall<
|
|
8283
|
+
Rv,
|
|
8284
|
+
(location: StagingXcmV4Location) => ChainSubmittableExtrinsic<
|
|
8285
|
+
Rv,
|
|
8286
|
+
{
|
|
8287
|
+
pallet: 'XcmWeightTrader';
|
|
8288
|
+
palletCall: {
|
|
8289
|
+
name: 'PauseAssetSupport';
|
|
8290
|
+
params: { location: StagingXcmV4Location };
|
|
8291
|
+
};
|
|
8292
|
+
}
|
|
8293
|
+
>
|
|
8294
|
+
>;
|
|
8295
|
+
|
|
8296
|
+
/**
|
|
8297
|
+
*
|
|
8298
|
+
* @param {StagingXcmV4Location} location
|
|
8299
|
+
**/
|
|
8300
|
+
resumeAssetSupport: GenericTxCall<
|
|
8301
|
+
Rv,
|
|
8302
|
+
(location: StagingXcmV4Location) => ChainSubmittableExtrinsic<
|
|
8303
|
+
Rv,
|
|
8304
|
+
{
|
|
8305
|
+
pallet: 'XcmWeightTrader';
|
|
8306
|
+
palletCall: {
|
|
8307
|
+
name: 'ResumeAssetSupport';
|
|
8308
|
+
params: { location: StagingXcmV4Location };
|
|
8309
|
+
};
|
|
8310
|
+
}
|
|
8311
|
+
>
|
|
8312
|
+
>;
|
|
8313
|
+
|
|
8314
|
+
/**
|
|
8315
|
+
*
|
|
8316
|
+
* @param {StagingXcmV4Location} location
|
|
8317
|
+
**/
|
|
8318
|
+
removeAsset: GenericTxCall<
|
|
8319
|
+
Rv,
|
|
8320
|
+
(location: StagingXcmV4Location) => ChainSubmittableExtrinsic<
|
|
8321
|
+
Rv,
|
|
8322
|
+
{
|
|
8323
|
+
pallet: 'XcmWeightTrader';
|
|
8324
|
+
palletCall: {
|
|
8325
|
+
name: 'RemoveAsset';
|
|
8326
|
+
params: { location: StagingXcmV4Location };
|
|
8327
|
+
};
|
|
8328
|
+
}
|
|
8329
|
+
>
|
|
8330
|
+
>;
|
|
8331
|
+
|
|
8332
|
+
/**
|
|
8333
|
+
* Generic pallet tx call
|
|
8334
|
+
**/
|
|
8335
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8336
|
+
};
|
|
8337
|
+
/**
|
|
8338
|
+
* Pallet `EmergencyParaXcm`'s transaction calls
|
|
8339
|
+
**/
|
|
8340
|
+
emergencyParaXcm: {
|
|
8341
|
+
/**
|
|
8342
|
+
* Resume `Normal` mode
|
|
8343
|
+
*
|
|
8344
|
+
**/
|
|
8345
|
+
pausedToNormal: GenericTxCall<
|
|
8346
|
+
Rv,
|
|
8347
|
+
() => ChainSubmittableExtrinsic<
|
|
8348
|
+
Rv,
|
|
8349
|
+
{
|
|
8350
|
+
pallet: 'EmergencyParaXcm';
|
|
8351
|
+
palletCall: {
|
|
8352
|
+
name: 'PausedToNormal';
|
|
8353
|
+
};
|
|
8354
|
+
}
|
|
8355
|
+
>
|
|
8356
|
+
>;
|
|
8357
|
+
|
|
8358
|
+
/**
|
|
8359
|
+
* Authorize a runtime upgrade. Only callable in `Paused` mode
|
|
8360
|
+
*
|
|
8361
|
+
* @param {H256} codeHash
|
|
8362
|
+
**/
|
|
8363
|
+
fastAuthorizeUpgrade: GenericTxCall<
|
|
8364
|
+
Rv,
|
|
8365
|
+
(codeHash: H256) => ChainSubmittableExtrinsic<
|
|
8366
|
+
Rv,
|
|
8367
|
+
{
|
|
8368
|
+
pallet: 'EmergencyParaXcm';
|
|
8369
|
+
palletCall: {
|
|
8370
|
+
name: 'FastAuthorizeUpgrade';
|
|
8371
|
+
params: { codeHash: H256 };
|
|
8372
|
+
};
|
|
8373
|
+
}
|
|
8374
|
+
>
|
|
8375
|
+
>;
|
|
8376
|
+
|
|
8377
|
+
/**
|
|
8378
|
+
* Generic pallet tx call
|
|
8379
|
+
**/
|
|
8380
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8381
|
+
};
|
|
8153
8382
|
/**
|
|
8154
8383
|
* Pallet `Randomness`'s transaction calls
|
|
8155
8384
|
**/
|
package/moonbeam/types.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ export type MoonbeamRuntimeRuntimeEvent =
|
|
|
87
87
|
| { pallet: 'XcmTransactor'; palletEvent: PalletXcmTransactorEvent }
|
|
88
88
|
| { pallet: 'EthereumXcm'; palletEvent: PalletEthereumXcmEvent }
|
|
89
89
|
| { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
|
|
90
|
+
| { pallet: 'EvmForeignAssets'; palletEvent: PalletMoonbeamForeignAssetsEvent }
|
|
91
|
+
| { pallet: 'XcmWeightTrader'; palletEvent: PalletXcmWeightTraderEvent }
|
|
92
|
+
| { pallet: 'EmergencyParaXcm'; palletEvent: PalletEmergencyParaXcmEvent }
|
|
90
93
|
| { pallet: 'Randomness'; palletEvent: PalletRandomnessEvent };
|
|
91
94
|
|
|
92
95
|
/**
|
|
@@ -1305,6 +1308,9 @@ export type MoonbeamRuntimeRuntimeCall =
|
|
|
1305
1308
|
| { pallet: 'XcmTransactor'; palletCall: PalletXcmTransactorCall }
|
|
1306
1309
|
| { pallet: 'EthereumXcm'; palletCall: PalletEthereumXcmCall }
|
|
1307
1310
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall }
|
|
1311
|
+
| { pallet: 'EvmForeignAssets'; palletCall: PalletMoonbeamForeignAssetsCall }
|
|
1312
|
+
| { pallet: 'XcmWeightTrader'; palletCall: PalletXcmWeightTraderCall }
|
|
1313
|
+
| { pallet: 'EmergencyParaXcm'; palletCall: PalletEmergencyParaXcmCall }
|
|
1308
1314
|
| { pallet: 'Randomness'; palletCall: PalletRandomnessCall };
|
|
1309
1315
|
|
|
1310
1316
|
export type MoonbeamRuntimeRuntimeCallLike =
|
|
@@ -1343,6 +1349,9 @@ export type MoonbeamRuntimeRuntimeCallLike =
|
|
|
1343
1349
|
| { pallet: 'XcmTransactor'; palletCall: PalletXcmTransactorCallLike }
|
|
1344
1350
|
| { pallet: 'EthereumXcm'; palletCall: PalletEthereumXcmCallLike }
|
|
1345
1351
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike }
|
|
1352
|
+
| { pallet: 'EvmForeignAssets'; palletCall: PalletMoonbeamForeignAssetsCallLike }
|
|
1353
|
+
| { pallet: 'XcmWeightTrader'; palletCall: PalletXcmWeightTraderCallLike }
|
|
1354
|
+
| { pallet: 'EmergencyParaXcm'; palletCall: PalletEmergencyParaXcmCallLike }
|
|
1346
1355
|
| { pallet: 'Randomness'; palletCall: PalletRandomnessCallLike };
|
|
1347
1356
|
|
|
1348
1357
|
/**
|
|
@@ -3778,15 +3787,13 @@ export type PalletMultisigCallLike =
|
|
|
3778
3787
|
/**
|
|
3779
3788
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3780
3789
|
**/
|
|
3781
|
-
export type PalletMoonbeamLazyMigrationsCall =
|
|
3782
|
-
name: 'ClearSuicidedStorage';
|
|
3783
|
-
params: {
|
|
3784
|
-
};
|
|
3790
|
+
export type PalletMoonbeamLazyMigrationsCall =
|
|
3791
|
+
| { name: 'ClearSuicidedStorage'; params: { addresses: Array<H160>; limit: number } }
|
|
3792
|
+
| { name: 'CreateContractMetadata'; params: { address: H160 } };
|
|
3785
3793
|
|
|
3786
|
-
export type PalletMoonbeamLazyMigrationsCallLike =
|
|
3787
|
-
name: 'ClearSuicidedStorage';
|
|
3788
|
-
params: {
|
|
3789
|
-
};
|
|
3794
|
+
export type PalletMoonbeamLazyMigrationsCallLike =
|
|
3795
|
+
| { name: 'ClearSuicidedStorage'; params: { addresses: Array<H160>; limit: number } }
|
|
3796
|
+
| { name: 'CreateContractMetadata'; params: { address: H160 } };
|
|
3790
3797
|
|
|
3791
3798
|
/**
|
|
3792
3799
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -7850,14 +7857,6 @@ export type PalletAssetManagerCall =
|
|
|
7850
7857
|
isSufficient: boolean;
|
|
7851
7858
|
};
|
|
7852
7859
|
}
|
|
7853
|
-
/**
|
|
7854
|
-
* Change the amount of units we are charging per execution second
|
|
7855
|
-
* for a given ForeignAssetType
|
|
7856
|
-
**/
|
|
7857
|
-
| {
|
|
7858
|
-
name: 'SetAssetUnitsPerSecond';
|
|
7859
|
-
params: { assetType: MoonbeamRuntimeXcmConfigAssetType; unitsPerSecond: bigint; numAssetsWeightHint: number };
|
|
7860
|
-
}
|
|
7861
7860
|
/**
|
|
7862
7861
|
* Change the xcm type mapping for a given assetId
|
|
7863
7862
|
* We also change this if the previous units per second where pointing at the old
|
|
@@ -7867,10 +7866,6 @@ export type PalletAssetManagerCall =
|
|
|
7867
7866
|
name: 'ChangeExistingAssetType';
|
|
7868
7867
|
params: { assetId: bigint; newAssetType: MoonbeamRuntimeXcmConfigAssetType; numAssetsWeightHint: number };
|
|
7869
7868
|
}
|
|
7870
|
-
| {
|
|
7871
|
-
name: 'RemoveSupportedAsset';
|
|
7872
|
-
params: { assetType: MoonbeamRuntimeXcmConfigAssetType; numAssetsWeightHint: number };
|
|
7873
|
-
}
|
|
7874
7869
|
/**
|
|
7875
7870
|
* Remove a given assetId -> assetType association
|
|
7876
7871
|
**/
|
|
@@ -7896,14 +7891,6 @@ export type PalletAssetManagerCallLike =
|
|
|
7896
7891
|
isSufficient: boolean;
|
|
7897
7892
|
};
|
|
7898
7893
|
}
|
|
7899
|
-
/**
|
|
7900
|
-
* Change the amount of units we are charging per execution second
|
|
7901
|
-
* for a given ForeignAssetType
|
|
7902
|
-
**/
|
|
7903
|
-
| {
|
|
7904
|
-
name: 'SetAssetUnitsPerSecond';
|
|
7905
|
-
params: { assetType: MoonbeamRuntimeXcmConfigAssetType; unitsPerSecond: bigint; numAssetsWeightHint: number };
|
|
7906
|
-
}
|
|
7907
7894
|
/**
|
|
7908
7895
|
* Change the xcm type mapping for a given assetId
|
|
7909
7896
|
* We also change this if the previous units per second where pointing at the old
|
|
@@ -7913,10 +7900,6 @@ export type PalletAssetManagerCallLike =
|
|
|
7913
7900
|
name: 'ChangeExistingAssetType';
|
|
7914
7901
|
params: { assetId: bigint; newAssetType: MoonbeamRuntimeXcmConfigAssetType; numAssetsWeightHint: number };
|
|
7915
7902
|
}
|
|
7916
|
-
| {
|
|
7917
|
-
name: 'RemoveSupportedAsset';
|
|
7918
|
-
params: { assetType: MoonbeamRuntimeXcmConfigAssetType; numAssetsWeightHint: number };
|
|
7919
|
-
}
|
|
7920
7903
|
/**
|
|
7921
7904
|
* Remove a given assetId -> assetType association
|
|
7922
7905
|
**/
|
|
@@ -8700,6 +8683,101 @@ export type CumulusPrimitivesCoreAggregateMessageOrigin =
|
|
|
8700
8683
|
| { type: 'Parent' }
|
|
8701
8684
|
| { type: 'Sibling'; value: PolkadotParachainPrimitivesPrimitivesId };
|
|
8702
8685
|
|
|
8686
|
+
/**
|
|
8687
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8688
|
+
**/
|
|
8689
|
+
export type PalletMoonbeamForeignAssetsCall =
|
|
8690
|
+
/**
|
|
8691
|
+
* Create new asset with the ForeignAssetCreator
|
|
8692
|
+
**/
|
|
8693
|
+
| {
|
|
8694
|
+
name: 'CreateForeignAsset';
|
|
8695
|
+
params: { assetId: bigint; xcmLocation: StagingXcmV4Location; decimals: number; symbol: Bytes; name: Bytes };
|
|
8696
|
+
}
|
|
8697
|
+
/**
|
|
8698
|
+
* Change the xcm type mapping for a given assetId
|
|
8699
|
+
* We also change this if the previous units per second where pointing at the old
|
|
8700
|
+
* assetType
|
|
8701
|
+
**/
|
|
8702
|
+
| { name: 'ChangeXcmLocation'; params: { assetId: bigint; newXcmLocation: StagingXcmV4Location } }
|
|
8703
|
+
/**
|
|
8704
|
+
* Freeze a given foreign assetId
|
|
8705
|
+
**/
|
|
8706
|
+
| { name: 'FreezeForeignAsset'; params: { assetId: bigint; allowXcmDeposit: boolean } }
|
|
8707
|
+
/**
|
|
8708
|
+
* Unfreeze a given foreign assetId
|
|
8709
|
+
**/
|
|
8710
|
+
| { name: 'UnfreezeForeignAsset'; params: { assetId: bigint } };
|
|
8711
|
+
|
|
8712
|
+
export type PalletMoonbeamForeignAssetsCallLike =
|
|
8713
|
+
/**
|
|
8714
|
+
* Create new asset with the ForeignAssetCreator
|
|
8715
|
+
**/
|
|
8716
|
+
| {
|
|
8717
|
+
name: 'CreateForeignAsset';
|
|
8718
|
+
params: {
|
|
8719
|
+
assetId: bigint;
|
|
8720
|
+
xcmLocation: StagingXcmV4Location;
|
|
8721
|
+
decimals: number;
|
|
8722
|
+
symbol: BytesLike;
|
|
8723
|
+
name: BytesLike;
|
|
8724
|
+
};
|
|
8725
|
+
}
|
|
8726
|
+
/**
|
|
8727
|
+
* Change the xcm type mapping for a given assetId
|
|
8728
|
+
* We also change this if the previous units per second where pointing at the old
|
|
8729
|
+
* assetType
|
|
8730
|
+
**/
|
|
8731
|
+
| { name: 'ChangeXcmLocation'; params: { assetId: bigint; newXcmLocation: StagingXcmV4Location } }
|
|
8732
|
+
/**
|
|
8733
|
+
* Freeze a given foreign assetId
|
|
8734
|
+
**/
|
|
8735
|
+
| { name: 'FreezeForeignAsset'; params: { assetId: bigint; allowXcmDeposit: boolean } }
|
|
8736
|
+
/**
|
|
8737
|
+
* Unfreeze a given foreign assetId
|
|
8738
|
+
**/
|
|
8739
|
+
| { name: 'UnfreezeForeignAsset'; params: { assetId: bigint } };
|
|
8740
|
+
|
|
8741
|
+
/**
|
|
8742
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8743
|
+
**/
|
|
8744
|
+
export type PalletXcmWeightTraderCall =
|
|
8745
|
+
| { name: 'AddAsset'; params: { location: StagingXcmV4Location; relativePrice: bigint } }
|
|
8746
|
+
| { name: 'EditAsset'; params: { location: StagingXcmV4Location; relativePrice: bigint } }
|
|
8747
|
+
| { name: 'PauseAssetSupport'; params: { location: StagingXcmV4Location } }
|
|
8748
|
+
| { name: 'ResumeAssetSupport'; params: { location: StagingXcmV4Location } }
|
|
8749
|
+
| { name: 'RemoveAsset'; params: { location: StagingXcmV4Location } };
|
|
8750
|
+
|
|
8751
|
+
export type PalletXcmWeightTraderCallLike =
|
|
8752
|
+
| { name: 'AddAsset'; params: { location: StagingXcmV4Location; relativePrice: bigint } }
|
|
8753
|
+
| { name: 'EditAsset'; params: { location: StagingXcmV4Location; relativePrice: bigint } }
|
|
8754
|
+
| { name: 'PauseAssetSupport'; params: { location: StagingXcmV4Location } }
|
|
8755
|
+
| { name: 'ResumeAssetSupport'; params: { location: StagingXcmV4Location } }
|
|
8756
|
+
| { name: 'RemoveAsset'; params: { location: StagingXcmV4Location } };
|
|
8757
|
+
|
|
8758
|
+
/**
|
|
8759
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8760
|
+
**/
|
|
8761
|
+
export type PalletEmergencyParaXcmCall =
|
|
8762
|
+
/**
|
|
8763
|
+
* Resume `Normal` mode
|
|
8764
|
+
**/
|
|
8765
|
+
| { name: 'PausedToNormal' }
|
|
8766
|
+
/**
|
|
8767
|
+
* Authorize a runtime upgrade. Only callable in `Paused` mode
|
|
8768
|
+
**/
|
|
8769
|
+
| { name: 'FastAuthorizeUpgrade'; params: { codeHash: H256 } };
|
|
8770
|
+
|
|
8771
|
+
export type PalletEmergencyParaXcmCallLike =
|
|
8772
|
+
/**
|
|
8773
|
+
* Resume `Normal` mode
|
|
8774
|
+
**/
|
|
8775
|
+
| { name: 'PausedToNormal' }
|
|
8776
|
+
/**
|
|
8777
|
+
* Authorize a runtime upgrade. Only callable in `Paused` mode
|
|
8778
|
+
**/
|
|
8779
|
+
| { name: 'FastAuthorizeUpgrade'; params: { codeHash: H256 } };
|
|
8780
|
+
|
|
8703
8781
|
/**
|
|
8704
8782
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8705
8783
|
**/
|
|
@@ -9269,7 +9347,7 @@ export type PalletAssetManagerEvent =
|
|
|
9269
9347
|
/**
|
|
9270
9348
|
* Changed the amount of units we are charging per execution second for a given asset
|
|
9271
9349
|
**/
|
|
9272
|
-
| { name: 'UnitsPerSecondChanged'
|
|
9350
|
+
| { name: 'UnitsPerSecondChanged' }
|
|
9273
9351
|
/**
|
|
9274
9352
|
* Changed the xcm type mapping for a given asset id
|
|
9275
9353
|
**/
|
|
@@ -9489,6 +9567,59 @@ export type FrameSupportMessagesProcessMessageError =
|
|
|
9489
9567
|
| { type: 'Overweight'; value: SpWeightsWeightV2Weight }
|
|
9490
9568
|
| { type: 'Yield' };
|
|
9491
9569
|
|
|
9570
|
+
/**
|
|
9571
|
+
* The `Event` enum of this pallet
|
|
9572
|
+
**/
|
|
9573
|
+
export type PalletMoonbeamForeignAssetsEvent =
|
|
9574
|
+
/**
|
|
9575
|
+
* New asset with the asset manager is registered
|
|
9576
|
+
**/
|
|
9577
|
+
| { name: 'ForeignAssetCreated'; data: { contractAddress: H160; assetId: bigint; xcmLocation: StagingXcmV4Location } }
|
|
9578
|
+
/**
|
|
9579
|
+
* Changed the xcm type mapping for a given asset id
|
|
9580
|
+
**/
|
|
9581
|
+
| { name: 'ForeignAssetXcmLocationChanged'; data: { assetId: bigint; newXcmLocation: StagingXcmV4Location } }
|
|
9582
|
+
| { name: 'ForeignAssetFrozen'; data: { assetId: bigint; xcmLocation: StagingXcmV4Location } }
|
|
9583
|
+
| { name: 'ForeignAssetUnfrozen'; data: { assetId: bigint; xcmLocation: StagingXcmV4Location } };
|
|
9584
|
+
|
|
9585
|
+
/**
|
|
9586
|
+
* The `Event` enum of this pallet
|
|
9587
|
+
**/
|
|
9588
|
+
export type PalletXcmWeightTraderEvent =
|
|
9589
|
+
/**
|
|
9590
|
+
* New supported asset is registered
|
|
9591
|
+
**/
|
|
9592
|
+
| { name: 'SupportedAssetAdded'; data: { location: StagingXcmV4Location; relativePrice: bigint } }
|
|
9593
|
+
/**
|
|
9594
|
+
* Changed the amount of units we are charging per execution second for a given asset
|
|
9595
|
+
**/
|
|
9596
|
+
| { name: 'SupportedAssetEdited'; data: { location: StagingXcmV4Location; relativePrice: bigint } }
|
|
9597
|
+
/**
|
|
9598
|
+
* Pause support for a given asset
|
|
9599
|
+
**/
|
|
9600
|
+
| { name: 'PauseAssetSupport'; data: { location: StagingXcmV4Location } }
|
|
9601
|
+
/**
|
|
9602
|
+
* Resume support for a given asset
|
|
9603
|
+
**/
|
|
9604
|
+
| { name: 'ResumeAssetSupport'; data: { location: StagingXcmV4Location } }
|
|
9605
|
+
/**
|
|
9606
|
+
* Supported asset type for fee payment removed
|
|
9607
|
+
**/
|
|
9608
|
+
| { name: 'SupportedAssetRemoved'; data: { location: StagingXcmV4Location } };
|
|
9609
|
+
|
|
9610
|
+
/**
|
|
9611
|
+
* The `Event` enum of this pallet
|
|
9612
|
+
**/
|
|
9613
|
+
export type PalletEmergencyParaXcmEvent =
|
|
9614
|
+
/**
|
|
9615
|
+
* The XCM incoming execution was Paused
|
|
9616
|
+
**/
|
|
9617
|
+
| 'EnteredPausedXcmMode'
|
|
9618
|
+
/**
|
|
9619
|
+
* The XCM incoming execution returned to normal operation
|
|
9620
|
+
**/
|
|
9621
|
+
| 'NormalXcmOperationResumed';
|
|
9622
|
+
|
|
9492
9623
|
/**
|
|
9493
9624
|
* The `Event` enum of this pallet
|
|
9494
9625
|
**/
|
|
@@ -10306,7 +10437,15 @@ export type PalletMoonbeamLazyMigrationsError =
|
|
|
10306
10437
|
/**
|
|
10307
10438
|
* The contract is not corrupted (Still exist or properly suicided)
|
|
10308
10439
|
**/
|
|
10309
|
-
| 'ContractNotCorrupted'
|
|
10440
|
+
| 'ContractNotCorrupted'
|
|
10441
|
+
/**
|
|
10442
|
+
* The contract already have metadata
|
|
10443
|
+
**/
|
|
10444
|
+
| 'ContractMetadataAlreadySet'
|
|
10445
|
+
/**
|
|
10446
|
+
* Contract not exist
|
|
10447
|
+
**/
|
|
10448
|
+
| 'ContractNotExist';
|
|
10310
10449
|
|
|
10311
10450
|
export type PalletEvmCodeMetadata = { size: bigint; hash: H256 };
|
|
10312
10451
|
|
|
@@ -11473,6 +11612,67 @@ export type PalletMessageQueueError =
|
|
|
11473
11612
|
**/
|
|
11474
11613
|
| 'RecursiveDisallowed';
|
|
11475
11614
|
|
|
11615
|
+
export type PalletMoonbeamForeignAssetsAssetStatus = 'Active' | 'FrozenXcmDepositAllowed' | 'FrozenXcmDepositForbidden';
|
|
11616
|
+
|
|
11617
|
+
/**
|
|
11618
|
+
* An error that can occur while executing the mapping pallet's logic.
|
|
11619
|
+
**/
|
|
11620
|
+
export type PalletMoonbeamForeignAssetsError =
|
|
11621
|
+
| 'AssetAlreadyExists'
|
|
11622
|
+
| 'AssetAlreadyFrozen'
|
|
11623
|
+
| 'AssetDoesNotExist'
|
|
11624
|
+
| 'AssetIdFiltered'
|
|
11625
|
+
| 'AssetNotFrozen'
|
|
11626
|
+
| 'CorruptedStorageOrphanLocation'
|
|
11627
|
+
| 'Erc20ContractCreationFail'
|
|
11628
|
+
| 'EvmCallPauseFail'
|
|
11629
|
+
| 'EvmCallUnpauseFail'
|
|
11630
|
+
| 'EvmInternalError'
|
|
11631
|
+
| 'InvalidSymbol'
|
|
11632
|
+
| 'InvalidTokenName'
|
|
11633
|
+
| 'LocationAlreadyExists'
|
|
11634
|
+
| 'TooManyForeignAssets';
|
|
11635
|
+
|
|
11636
|
+
/**
|
|
11637
|
+
* The `Error` enum of this pallet.
|
|
11638
|
+
**/
|
|
11639
|
+
export type PalletXcmWeightTraderError =
|
|
11640
|
+
/**
|
|
11641
|
+
* The given asset was already added
|
|
11642
|
+
**/
|
|
11643
|
+
| 'AssetAlreadyAdded'
|
|
11644
|
+
/**
|
|
11645
|
+
* The given asset was already paused
|
|
11646
|
+
**/
|
|
11647
|
+
| 'AssetAlreadyPaused'
|
|
11648
|
+
/**
|
|
11649
|
+
* The given asset was not found
|
|
11650
|
+
**/
|
|
11651
|
+
| 'AssetNotFound'
|
|
11652
|
+
/**
|
|
11653
|
+
* The given asset is not paused
|
|
11654
|
+
**/
|
|
11655
|
+
| 'AssetNotPaused'
|
|
11656
|
+
/**
|
|
11657
|
+
* XCM location filtered
|
|
11658
|
+
**/
|
|
11659
|
+
| 'XcmLocationFiltered'
|
|
11660
|
+
/**
|
|
11661
|
+
* The relative price cannot be zero
|
|
11662
|
+
**/
|
|
11663
|
+
| 'PriceCannotBeZero';
|
|
11664
|
+
|
|
11665
|
+
export type PalletEmergencyParaXcmXcmMode = 'Normal' | 'Paused';
|
|
11666
|
+
|
|
11667
|
+
/**
|
|
11668
|
+
* An error that can occur while executing this pallet's extrinsics.
|
|
11669
|
+
**/
|
|
11670
|
+
export type PalletEmergencyParaXcmError =
|
|
11671
|
+
/**
|
|
11672
|
+
* The current XCM Mode is not Paused
|
|
11673
|
+
**/
|
|
11674
|
+
'NotInPausedMode';
|
|
11675
|
+
|
|
11476
11676
|
/**
|
|
11477
11677
|
* The `Error` enum of this pallet.
|
|
11478
11678
|
**/
|
|
@@ -11531,6 +11731,12 @@ export type FrameSystemExtensionsCheckWeight = {};
|
|
|
11531
11731
|
|
|
11532
11732
|
export type PalletTransactionPaymentChargeTransactionPayment = bigint;
|
|
11533
11733
|
|
|
11734
|
+
export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
|
|
11735
|
+
|
|
11736
|
+
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
11737
|
+
|
|
11738
|
+
export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {};
|
|
11739
|
+
|
|
11534
11740
|
export type MoonbeamRuntimeRuntime = {};
|
|
11535
11741
|
|
|
11536
11742
|
export type SpRuntimeTransactionValidityTransactionSource = 'InBlock' | 'Local' | 'External';
|
|
@@ -11677,5 +11883,8 @@ export type MoonbeamRuntimeRuntimeError =
|
|
|
11677
11883
|
| { pallet: 'XcmTransactor'; palletError: PalletXcmTransactorError }
|
|
11678
11884
|
| { pallet: 'EthereumXcm'; palletError: PalletEthereumXcmError }
|
|
11679
11885
|
| { pallet: 'MessageQueue'; palletError: PalletMessageQueueError }
|
|
11886
|
+
| { pallet: 'EvmForeignAssets'; palletError: PalletMoonbeamForeignAssetsError }
|
|
11887
|
+
| { pallet: 'XcmWeightTrader'; palletError: PalletXcmWeightTraderError }
|
|
11888
|
+
| { pallet: 'EmergencyParaXcm'; palletError: PalletEmergencyParaXcmError }
|
|
11680
11889
|
| { pallet: 'PrecompileBenchmarks'; palletError: PalletPrecompileBenchmarksError }
|
|
11681
11890
|
| { pallet: 'Randomness'; palletError: PalletRandomnessError };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "e0e11e70e46a362d520c53417db80e73f5d6fc53",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
|
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: WestendAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1016002
|
|
27
27
|
**/
|
|
28
28
|
export interface WestendAssetHubApi {
|
|
29
29
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|