@dedot/chaintypes 0.42.0 → 0.44.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.
@@ -48,10 +48,14 @@ import type {
48
48
  PalletContractsPrimitivesContractAccessError,
49
49
  AstarPrimitivesDappStakingRankedTier,
50
50
  XcmVersionedAssetId,
51
- XcmFeePaymentRuntimeApiError,
51
+ XcmRuntimeApisFeesError,
52
52
  XcmVersionedXcm,
53
53
  XcmVersionedAssets,
54
54
  XcmVersionedLocation,
55
+ XcmRuntimeApisDryRunCallDryRunEffects,
56
+ XcmRuntimeApisDryRunError,
57
+ AstarRuntimeOriginCaller,
58
+ XcmRuntimeApisDryRunXcmDryRunEffects,
55
59
  } from './types';
56
60
 
57
61
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -633,6 +637,18 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
633
637
  ) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>
634
638
  >;
635
639
 
640
+ /**
641
+ * Initialize the pending block.
642
+ * The behavior should be the same as the runtime api Core_initialize_block but
643
+ * for a "pending" block.
644
+ * If your project don't need to have a different behavior to initialize "pending" blocks,
645
+ * you can copy your Core_initialize_block implementation.
646
+ *
647
+ * @callname: EthereumRuntimeRPCApi_initialize_pending_block
648
+ * @param {Header} header
649
+ **/
650
+ initializePendingBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
651
+
636
652
  /**
637
653
  * Generic runtime api call
638
654
  **/
@@ -821,7 +837,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
821
837
  **/
822
838
  queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
823
839
  Rv,
824
- (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmFeePaymentRuntimeApiError>>
840
+ (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
825
841
  >;
826
842
 
827
843
  /**
@@ -836,7 +852,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
836
852
  **/
837
853
  queryXcmWeight: GenericRuntimeApiMethod<
838
854
  Rv,
839
- (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmFeePaymentRuntimeApiError>>
855
+ (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
840
856
  >;
841
857
 
842
858
  /**
@@ -853,10 +869,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
853
869
  **/
854
870
  queryWeightToAssetFee: GenericRuntimeApiMethod<
855
871
  Rv,
856
- (
857
- weight: SpWeightsWeightV2Weight,
858
- asset: XcmVersionedAssetId,
859
- ) => Promise<Result<bigint, XcmFeePaymentRuntimeApiError>>
872
+ (weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
860
873
  >;
861
874
 
862
875
  /**
@@ -878,7 +891,46 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
878
891
  (
879
892
  destination: XcmVersionedLocation,
880
893
  message: XcmVersionedXcm,
881
- ) => Promise<Result<XcmVersionedAssets, XcmFeePaymentRuntimeApiError>>
894
+ ) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
895
+ >;
896
+
897
+ /**
898
+ * Generic runtime api call
899
+ **/
900
+ [method: string]: GenericRuntimeApiMethod<Rv>;
901
+ };
902
+ /**
903
+ * @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
904
+ **/
905
+ dryRunApi: {
906
+ /**
907
+ * Dry run call.
908
+ *
909
+ * @callname: DryRunApi_dry_run_call
910
+ * @param {AstarRuntimeOriginCaller} origin
911
+ * @param {AstarRuntimeRuntimeCallLike} call
912
+ **/
913
+ dryRunCall: GenericRuntimeApiMethod<
914
+ Rv,
915
+ (
916
+ origin: AstarRuntimeOriginCaller,
917
+ call: AstarRuntimeRuntimeCallLike,
918
+ ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
919
+ >;
920
+
921
+ /**
922
+ * Dry run XCM program
923
+ *
924
+ * @callname: DryRunApi_dry_run_xcm
925
+ * @param {XcmVersionedLocation} origin_location
926
+ * @param {XcmVersionedXcm} xcm
927
+ **/
928
+ dryRunXcm: GenericRuntimeApiMethod<
929
+ Rv,
930
+ (
931
+ originLocation: XcmVersionedLocation,
932
+ xcm: XcmVersionedXcm,
933
+ ) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
882
934
  >;
883
935
 
884
936
  /**