@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.
- package/moonbeam/consts.d.ts +30 -52
- package/moonbeam/errors.d.ts +26 -117
- package/moonbeam/events.d.ts +55 -118
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +89 -36
- package/moonbeam/runtime.d.ts +76 -9
- package/moonbeam/tx.d.ts +93 -412
- package/moonbeam/types.d.ts +241 -672
- package/package.json +2 -2
package/moonbeam/query.d.ts
CHANGED
|
@@ -38,10 +38,10 @@ import type {
|
|
|
38
38
|
PalletBalancesAccountData,
|
|
39
39
|
PalletBalancesBalanceLock,
|
|
40
40
|
PalletBalancesReserveData,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
FrameSupportTokensMiscIdAmount,
|
|
42
|
+
FrameSupportTokensMiscIdAmount002,
|
|
43
43
|
PalletTransactionPaymentReleases,
|
|
44
|
-
|
|
44
|
+
PalletParachainStakingInflationDistributionConfig,
|
|
45
45
|
PalletParachainStakingRoundInfo,
|
|
46
46
|
PalletParachainStakingDelegator,
|
|
47
47
|
PalletParachainStakingCandidateMetadata,
|
|
@@ -63,6 +63,9 @@ import type {
|
|
|
63
63
|
PalletIdentityRegistrarInfo,
|
|
64
64
|
PalletIdentityAuthorityProperties,
|
|
65
65
|
PalletMultisigMultisig,
|
|
66
|
+
PalletMoonbeamLazyMigrationsStateMigrationStatus,
|
|
67
|
+
MoonbeamRuntimeRuntimeParamsRuntimeParametersValue,
|
|
68
|
+
MoonbeamRuntimeRuntimeParamsRuntimeParametersKey,
|
|
66
69
|
PalletEvmCodeMetadata,
|
|
67
70
|
EthereumTransactionTransactionV2,
|
|
68
71
|
FpRpcTransactionStatus,
|
|
@@ -81,12 +84,12 @@ import type {
|
|
|
81
84
|
PalletCrowdloanRewardsRewardInfo,
|
|
82
85
|
CumulusPalletXcmpQueueOutboundChannelDetails,
|
|
83
86
|
CumulusPalletXcmpQueueQueueConfigData,
|
|
84
|
-
CumulusPalletDmpQueueMigrationState,
|
|
85
87
|
PalletXcmQueryStatus,
|
|
86
88
|
XcmVersionedLocation,
|
|
87
89
|
PalletXcmVersionMigrationStage,
|
|
88
90
|
PalletXcmRemoteLockedFungibleRecord,
|
|
89
91
|
XcmVersionedAssetId,
|
|
92
|
+
StagingXcmV4Xcm,
|
|
90
93
|
PalletAssetsAssetDetails,
|
|
91
94
|
PalletAssetsAssetAccount,
|
|
92
95
|
PalletAssetsApproval,
|
|
@@ -636,17 +639,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
636
639
|
* Holds on account balances.
|
|
637
640
|
*
|
|
638
641
|
* @param {AccountId20Like} arg
|
|
639
|
-
* @param {Callback<Array<
|
|
642
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
640
643
|
**/
|
|
641
|
-
holds: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<
|
|
644
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId20>;
|
|
642
645
|
|
|
643
646
|
/**
|
|
644
647
|
* Freeze locks on account balances.
|
|
645
648
|
*
|
|
646
649
|
* @param {AccountId20Like} arg
|
|
647
|
-
* @param {Callback<Array<
|
|
650
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
|
|
648
651
|
**/
|
|
649
|
-
freezes: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<
|
|
652
|
+
freezes: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId20>;
|
|
650
653
|
|
|
651
654
|
/**
|
|
652
655
|
* Generic pallet storage query
|
|
@@ -693,11 +696,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
693
696
|
totalSelected: GenericStorageQuery<Rv, () => number>;
|
|
694
697
|
|
|
695
698
|
/**
|
|
696
|
-
*
|
|
699
|
+
* Inflation distribution configuration, including accounts that should receive inflation
|
|
700
|
+
* before it is distributed to collators and delegators.
|
|
697
701
|
*
|
|
698
|
-
*
|
|
702
|
+
* The sum of the distribution percents must be less than or equal to 100.
|
|
703
|
+
*
|
|
704
|
+
* @param {Callback<PalletParachainStakingInflationDistributionConfig> =} callback
|
|
699
705
|
**/
|
|
700
|
-
|
|
706
|
+
inflationDistributionInfo: GenericStorageQuery<Rv, () => PalletParachainStakingInflationDistributionConfig>;
|
|
701
707
|
|
|
702
708
|
/**
|
|
703
709
|
* Current round index and next round scheduled transition
|
|
@@ -1241,6 +1247,38 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1241
1247
|
**/
|
|
1242
1248
|
suicidedContractsRemoved: GenericStorageQuery<Rv, () => number>;
|
|
1243
1249
|
|
|
1250
|
+
/**
|
|
1251
|
+
*
|
|
1252
|
+
* @param {Callback<[PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]> =} callback
|
|
1253
|
+
**/
|
|
1254
|
+
stateMigrationStatusValue: GenericStorageQuery<
|
|
1255
|
+
Rv,
|
|
1256
|
+
() => [PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]
|
|
1257
|
+
>;
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Generic pallet storage query
|
|
1261
|
+
**/
|
|
1262
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1263
|
+
};
|
|
1264
|
+
/**
|
|
1265
|
+
* Pallet `Parameters`'s storage queries
|
|
1266
|
+
**/
|
|
1267
|
+
parameters: {
|
|
1268
|
+
/**
|
|
1269
|
+
* Stored parameters.
|
|
1270
|
+
*
|
|
1271
|
+
* @param {MoonbeamRuntimeRuntimeParamsRuntimeParametersKey} arg
|
|
1272
|
+
* @param {Callback<MoonbeamRuntimeRuntimeParamsRuntimeParametersValue | undefined> =} callback
|
|
1273
|
+
**/
|
|
1274
|
+
parameters: GenericStorageQuery<
|
|
1275
|
+
Rv,
|
|
1276
|
+
(
|
|
1277
|
+
arg: MoonbeamRuntimeRuntimeParamsRuntimeParametersKey,
|
|
1278
|
+
) => MoonbeamRuntimeRuntimeParamsRuntimeParametersValue | undefined,
|
|
1279
|
+
MoonbeamRuntimeRuntimeParamsRuntimeParametersKey
|
|
1280
|
+
>;
|
|
1281
|
+
|
|
1244
1282
|
/**
|
|
1245
1283
|
* Generic pallet storage query
|
|
1246
1284
|
**/
|
|
@@ -1845,22 +1883,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1845
1883
|
**/
|
|
1846
1884
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
1847
1885
|
};
|
|
1848
|
-
/**
|
|
1849
|
-
* Pallet `DmpQueue`'s storage queries
|
|
1850
|
-
**/
|
|
1851
|
-
dmpQueue: {
|
|
1852
|
-
/**
|
|
1853
|
-
* The migration state of this pallet.
|
|
1854
|
-
*
|
|
1855
|
-
* @param {Callback<CumulusPalletDmpQueueMigrationState> =} callback
|
|
1856
|
-
**/
|
|
1857
|
-
migrationStatus: GenericStorageQuery<Rv, () => CumulusPalletDmpQueueMigrationState>;
|
|
1858
|
-
|
|
1859
|
-
/**
|
|
1860
|
-
* Generic pallet storage query
|
|
1861
|
-
**/
|
|
1862
|
-
[storage: string]: GenericStorageQuery<Rv>;
|
|
1863
|
-
};
|
|
1864
1886
|
/**
|
|
1865
1887
|
* Pallet `PolkadotXcm`'s storage queries
|
|
1866
1888
|
**/
|
|
@@ -1983,6 +2005,31 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1983
2005
|
**/
|
|
1984
2006
|
xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
|
|
1985
2007
|
|
|
2008
|
+
/**
|
|
2009
|
+
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
|
|
2010
|
+
* Only one XCM program will be recorded at a time.
|
|
2011
|
+
* This is meant to be used in runtime APIs, and it's advised it stays false
|
|
2012
|
+
* for all other use cases, so as to not degrade regular performance.
|
|
2013
|
+
*
|
|
2014
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
2015
|
+
* implementation in the XCM executor configuration.
|
|
2016
|
+
*
|
|
2017
|
+
* @param {Callback<boolean> =} callback
|
|
2018
|
+
**/
|
|
2019
|
+
shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
|
|
2023
|
+
* will be stored here.
|
|
2024
|
+
* Runtime APIs can fetch the XCM that was executed by accessing this value.
|
|
2025
|
+
*
|
|
2026
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
2027
|
+
* implementation in the XCM executor configuration.
|
|
2028
|
+
*
|
|
2029
|
+
* @param {Callback<StagingXcmV4Xcm | undefined> =} callback
|
|
2030
|
+
**/
|
|
2031
|
+
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
|
|
2032
|
+
|
|
1986
2033
|
/**
|
|
1987
2034
|
* Generic pallet storage query
|
|
1988
2035
|
**/
|
|
@@ -2034,6 +2081,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2034
2081
|
**/
|
|
2035
2082
|
metadata: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetsAssetMetadata, bigint>;
|
|
2036
2083
|
|
|
2084
|
+
/**
|
|
2085
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
2086
|
+
* item has no effect.
|
|
2087
|
+
*
|
|
2088
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
2089
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
2090
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
2091
|
+
*
|
|
2092
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
2093
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
2094
|
+
*
|
|
2095
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
2096
|
+
**/
|
|
2097
|
+
nextAssetId: GenericStorageQuery<Rv, () => bigint | undefined>;
|
|
2098
|
+
|
|
2037
2099
|
/**
|
|
2038
2100
|
* Generic pallet storage query
|
|
2039
2101
|
**/
|
|
@@ -2072,15 +2134,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2072
2134
|
**/
|
|
2073
2135
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
2074
2136
|
};
|
|
2075
|
-
/**
|
|
2076
|
-
* Pallet `XTokens`'s storage queries
|
|
2077
|
-
**/
|
|
2078
|
-
xTokens: {
|
|
2079
|
-
/**
|
|
2080
|
-
* Generic pallet storage query
|
|
2081
|
-
**/
|
|
2082
|
-
[storage: string]: GenericStorageQuery<Rv>;
|
|
2083
|
-
};
|
|
2084
2137
|
/**
|
|
2085
2138
|
* Pallet `XcmTransactor`'s storage queries
|
|
2086
2139
|
**/
|
package/moonbeam/runtime.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
H160,
|
|
14
14
|
U256,
|
|
15
15
|
Permill,
|
|
16
|
+
AccountId20,
|
|
16
17
|
} from 'dedot/codecs';
|
|
17
18
|
import type {
|
|
18
19
|
SpRuntimeTransactionValidityValidTransaction,
|
|
@@ -41,10 +42,16 @@ import type {
|
|
|
41
42
|
CumulusPrimitivesCoreCollationInfo,
|
|
42
43
|
SessionKeysPrimitivesVrfVrfCryptoPublic,
|
|
43
44
|
XcmVersionedAssetId,
|
|
44
|
-
|
|
45
|
+
XcmRuntimeApisFeesError,
|
|
45
46
|
XcmVersionedXcm,
|
|
46
47
|
XcmVersionedAssets,
|
|
47
48
|
XcmVersionedLocation,
|
|
49
|
+
XcmRuntimeApisDryRunCallDryRunEffects,
|
|
50
|
+
XcmRuntimeApisDryRunError,
|
|
51
|
+
MoonbeamRuntimeOriginCaller,
|
|
52
|
+
MoonbeamRuntimeRuntimeCallLike,
|
|
53
|
+
XcmRuntimeApisDryRunXcmDryRunEffects,
|
|
54
|
+
XcmRuntimeApisConversionsError,
|
|
48
55
|
} from './types';
|
|
49
56
|
|
|
50
57
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -638,7 +645,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
638
645
|
>;
|
|
639
646
|
|
|
640
647
|
/**
|
|
641
|
-
*
|
|
648
|
+
* Initialize the pending block.
|
|
649
|
+
* The behavior should be the same as the runtime api Core_initialize_block but
|
|
650
|
+
* for a "pending" block.
|
|
651
|
+
* If your project don't need to have a different behavior to initialize "pending" blocks,
|
|
652
|
+
* you can copy your Core_initialize_block implementation.
|
|
642
653
|
*
|
|
643
654
|
* @callname: EthereumRuntimeRPCApi_initialize_pending_block
|
|
644
655
|
* @param {Header} header
|
|
@@ -796,7 +807,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
796
807
|
**/
|
|
797
808
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
798
809
|
Rv,
|
|
799
|
-
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>,
|
|
810
|
+
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
800
811
|
>;
|
|
801
812
|
|
|
802
813
|
/**
|
|
@@ -811,7 +822,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
811
822
|
**/
|
|
812
823
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
813
824
|
Rv,
|
|
814
|
-
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight,
|
|
825
|
+
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
815
826
|
>;
|
|
816
827
|
|
|
817
828
|
/**
|
|
@@ -828,10 +839,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
828
839
|
**/
|
|
829
840
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
830
841
|
Rv,
|
|
831
|
-
(
|
|
832
|
-
weight: SpWeightsWeightV2Weight,
|
|
833
|
-
asset: XcmVersionedAssetId,
|
|
834
|
-
) => Promise<Result<bigint, XcmFeePaymentRuntimeApiError>>
|
|
842
|
+
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
835
843
|
>;
|
|
836
844
|
|
|
837
845
|
/**
|
|
@@ -853,7 +861,66 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
853
861
|
(
|
|
854
862
|
destination: XcmVersionedLocation,
|
|
855
863
|
message: XcmVersionedXcm,
|
|
856
|
-
) => Promise<Result<XcmVersionedAssets,
|
|
864
|
+
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
865
|
+
>;
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Generic runtime api call
|
|
869
|
+
**/
|
|
870
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
874
|
+
**/
|
|
875
|
+
dryRunApi: {
|
|
876
|
+
/**
|
|
877
|
+
* Dry run call.
|
|
878
|
+
*
|
|
879
|
+
* @callname: DryRunApi_dry_run_call
|
|
880
|
+
* @param {MoonbeamRuntimeOriginCaller} origin
|
|
881
|
+
* @param {MoonbeamRuntimeRuntimeCallLike} call
|
|
882
|
+
**/
|
|
883
|
+
dryRunCall: GenericRuntimeApiMethod<
|
|
884
|
+
Rv,
|
|
885
|
+
(
|
|
886
|
+
origin: MoonbeamRuntimeOriginCaller,
|
|
887
|
+
call: MoonbeamRuntimeRuntimeCallLike,
|
|
888
|
+
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
889
|
+
>;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Dry run XCM program
|
|
893
|
+
*
|
|
894
|
+
* @callname: DryRunApi_dry_run_xcm
|
|
895
|
+
* @param {XcmVersionedLocation} origin_location
|
|
896
|
+
* @param {XcmVersionedXcm} xcm
|
|
897
|
+
**/
|
|
898
|
+
dryRunXcm: GenericRuntimeApiMethod<
|
|
899
|
+
Rv,
|
|
900
|
+
(
|
|
901
|
+
originLocation: XcmVersionedLocation,
|
|
902
|
+
xcm: XcmVersionedXcm,
|
|
903
|
+
) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
904
|
+
>;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Generic runtime api call
|
|
908
|
+
**/
|
|
909
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
913
|
+
**/
|
|
914
|
+
locationToAccountApi: {
|
|
915
|
+
/**
|
|
916
|
+
* Converts `Location` to `AccountId`.
|
|
917
|
+
*
|
|
918
|
+
* @callname: LocationToAccountApi_convert_location
|
|
919
|
+
* @param {XcmVersionedLocation} location
|
|
920
|
+
**/
|
|
921
|
+
convertLocation: GenericRuntimeApiMethod<
|
|
922
|
+
Rv,
|
|
923
|
+
(location: XcmVersionedLocation) => Promise<Result<AccountId20, XcmRuntimeApisConversionsError>>
|
|
857
924
|
>;
|
|
858
925
|
|
|
859
926
|
/**
|