@dedot/chaintypes 0.233.0 → 0.235.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/hydration/consts.d.ts +119 -47
- package/hydration/errors.d.ts +91 -130
- package/hydration/events.d.ts +340 -432
- package/hydration/index.d.ts +2 -3
- package/hydration/json-rpc.d.ts +10 -17
- package/hydration/query.d.ts +157 -277
- package/hydration/runtime.d.ts +21 -123
- package/hydration/tx.d.ts +502 -315
- package/hydration/types.d.ts +1366 -1284
- package/package.json +2 -2
- package/paseo-asset-hub/consts.d.ts +0 -34
- package/paseo-asset-hub/errors.d.ts +0 -28
- package/paseo-asset-hub/events.d.ts +20 -205
- package/paseo-asset-hub/index.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +23 -66
- package/paseo-asset-hub/runtime.d.ts +15 -12
- package/paseo-asset-hub/tx.d.ts +127 -327
- package/paseo-asset-hub/types.d.ts +192 -513
- package/paseo-asset-hub/view-functions.d.ts +7 -7
- package/paseo-hydration/consts.d.ts +5 -0
- package/paseo-hydration/errors.d.ts +1 -1
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/json-rpc.d.ts +0 -10
- package/paseo-hydration/tx.d.ts +2 -1
- package/paseo-hydration/types.d.ts +5 -3
- package/paseo-people/consts.d.ts +75 -0
- package/paseo-people/errors.d.ts +165 -0
- package/paseo-people/events.d.ts +285 -2
- package/paseo-people/index.d.ts +5 -4
- package/paseo-people/query.d.ts +125 -0
- package/paseo-people/tx.d.ts +1286 -2
- package/paseo-people/types.d.ts +1776 -183
- package/polkadot/index.d.ts +1 -1
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-people/index.d.ts +1 -1
package/hydration/runtime.d.ts
CHANGED
|
@@ -36,11 +36,12 @@ import type {
|
|
|
36
36
|
SpWeightsWeightV2Weight,
|
|
37
37
|
EvmBackendBasic,
|
|
38
38
|
FpEvmExecutionInfoV2,
|
|
39
|
+
EthereumTransactionEip7702AuthorizationListItem,
|
|
39
40
|
FpEvmExecutionInfoV2H160,
|
|
40
41
|
EthereumBlock,
|
|
41
|
-
|
|
42
|
+
EthereumReceiptReceiptV4,
|
|
42
43
|
FpRpcTransactionStatus,
|
|
43
|
-
|
|
44
|
+
EthereumTransactionTransactionV3,
|
|
44
45
|
XcmVersionedAssetId,
|
|
45
46
|
XcmRuntimeApisFeesError,
|
|
46
47
|
XcmVersionedXcm,
|
|
@@ -55,13 +56,6 @@ import type {
|
|
|
55
56
|
XcmRuntimeApisConversionsError,
|
|
56
57
|
HydradxTraitsOracleOraclePeriod,
|
|
57
58
|
HydradxRuntimeEvmAaveTradeExecutorPoolData,
|
|
58
|
-
IsmpHostStateMachine,
|
|
59
|
-
IsmpEventsEvent,
|
|
60
|
-
IsmpConsensusStateMachineHeight,
|
|
61
|
-
IsmpConsensusStateMachineId,
|
|
62
|
-
IsmpRouterRequest,
|
|
63
|
-
IsmpRouterResponse,
|
|
64
|
-
CumulusPalletParachainSystemRelayChainState,
|
|
65
59
|
} from './types.js';
|
|
66
60
|
|
|
67
61
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
@@ -483,6 +477,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
483
477
|
* @param {U256 | undefined} nonce
|
|
484
478
|
* @param {boolean} estimate
|
|
485
479
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
480
|
+
* @param {Array<EthereumTransactionEip7702AuthorizationListItem> | undefined} authorization_list
|
|
486
481
|
**/
|
|
487
482
|
call: GenericRuntimeApiMethod<
|
|
488
483
|
(
|
|
@@ -496,6 +491,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
496
491
|
nonce: U256 | undefined,
|
|
497
492
|
estimate: boolean,
|
|
498
493
|
accessList?: Array<[H160, Array<H256>]> | undefined,
|
|
494
|
+
authorizationList?: Array<EthereumTransactionEip7702AuthorizationListItem> | undefined,
|
|
499
495
|
) => Promise<Result<FpEvmExecutionInfoV2, DispatchError>>
|
|
500
496
|
>;
|
|
501
497
|
|
|
@@ -511,6 +507,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
511
507
|
* @param {U256 | undefined} nonce
|
|
512
508
|
* @param {boolean} estimate
|
|
513
509
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
510
|
+
* @param {Array<EthereumTransactionEip7702AuthorizationListItem> | undefined} authorization_list
|
|
514
511
|
**/
|
|
515
512
|
create: GenericRuntimeApiMethod<
|
|
516
513
|
(
|
|
@@ -523,6 +520,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
523
520
|
nonce: U256 | undefined,
|
|
524
521
|
estimate: boolean,
|
|
525
522
|
accessList?: Array<[H160, Array<H256>]> | undefined,
|
|
523
|
+
authorizationList?: Array<EthereumTransactionEip7702AuthorizationListItem> | undefined,
|
|
526
524
|
) => Promise<Result<FpEvmExecutionInfoV2H160, DispatchError>>
|
|
527
525
|
>;
|
|
528
526
|
|
|
@@ -538,7 +536,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
538
536
|
*
|
|
539
537
|
* @callname: EthereumRuntimeRPCApi_current_receipts
|
|
540
538
|
**/
|
|
541
|
-
currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<
|
|
539
|
+
currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<EthereumReceiptReceiptV4> | undefined>>;
|
|
542
540
|
|
|
543
541
|
/**
|
|
544
542
|
* Return the current transaction status.
|
|
@@ -555,7 +553,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
555
553
|
() => Promise<
|
|
556
554
|
[
|
|
557
555
|
EthereumBlock | undefined,
|
|
558
|
-
Array<
|
|
556
|
+
Array<EthereumReceiptReceiptV4> | undefined,
|
|
559
557
|
Array<FpRpcTransactionStatus> | undefined,
|
|
560
558
|
]
|
|
561
559
|
>
|
|
@@ -568,7 +566,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
568
566
|
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
569
567
|
**/
|
|
570
568
|
extrinsicFilter: GenericRuntimeApiMethod<
|
|
571
|
-
(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<
|
|
569
|
+
(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV3>>
|
|
572
570
|
>;
|
|
573
571
|
|
|
574
572
|
/**
|
|
@@ -622,10 +620,10 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
622
620
|
/**
|
|
623
621
|
*
|
|
624
622
|
* @callname: ConvertTransactionRuntimeApi_convert_transaction
|
|
625
|
-
* @param {
|
|
623
|
+
* @param {EthereumTransactionTransactionV3} transaction
|
|
626
624
|
**/
|
|
627
625
|
convertTransaction: GenericRuntimeApiMethod<
|
|
628
|
-
(transaction:
|
|
626
|
+
(transaction: EthereumTransactionTransactionV3) => Promise<FpSelfContainedUncheckedExtrinsic>
|
|
629
627
|
>;
|
|
630
628
|
|
|
631
629
|
/**
|
|
@@ -791,7 +789,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
791
789
|
/**
|
|
792
790
|
* Whether it is legal to extend the chain, assuming the given block is the most
|
|
793
791
|
* recently included one as-of the relay parent that will be built against, and
|
|
794
|
-
* the given slot.
|
|
792
|
+
* the given relay chain slot.
|
|
795
793
|
*
|
|
796
794
|
* This should be consistent with the logic the runtime uses when validating blocks to
|
|
797
795
|
* avoid issues.
|
|
@@ -816,16 +814,18 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
816
814
|
**/
|
|
817
815
|
dryRunApi: {
|
|
818
816
|
/**
|
|
819
|
-
* Dry run call.
|
|
817
|
+
* Dry run call V2.
|
|
820
818
|
*
|
|
821
819
|
* @callname: DryRunApi_dry_run_call
|
|
822
820
|
* @param {HydradxRuntimeOriginCaller} origin
|
|
823
821
|
* @param {HydradxRuntimeRuntimeCallLike} call
|
|
822
|
+
* @param {number} result_xcms_version
|
|
824
823
|
**/
|
|
825
824
|
dryRunCall: GenericRuntimeApiMethod<
|
|
826
825
|
(
|
|
827
826
|
origin: HydradxRuntimeOriginCaller,
|
|
828
827
|
call: HydradxRuntimeRuntimeCallLike,
|
|
828
|
+
resultXcmsVersion: number,
|
|
829
829
|
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
830
830
|
>;
|
|
831
831
|
|
|
@@ -941,109 +941,6 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
941
941
|
**/
|
|
942
942
|
[method: string]: GenericRuntimeApiMethod;
|
|
943
943
|
};
|
|
944
|
-
/**
|
|
945
|
-
* @runtimeapi: IsmpRuntimeApi - 0x0ebc8fd84ae20ada
|
|
946
|
-
**/
|
|
947
|
-
ismpRuntimeApi: {
|
|
948
|
-
/**
|
|
949
|
-
* Should return the host's state machine identifier
|
|
950
|
-
*
|
|
951
|
-
* @callname: IsmpRuntimeApi_host_state_machine
|
|
952
|
-
**/
|
|
953
|
-
hostStateMachine: GenericRuntimeApiMethod<() => Promise<IsmpHostStateMachine>>;
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Fetch all ISMP events
|
|
957
|
-
*
|
|
958
|
-
* @callname: IsmpRuntimeApi_block_events
|
|
959
|
-
**/
|
|
960
|
-
blockEvents: GenericRuntimeApiMethod<() => Promise<Array<IsmpEventsEvent>>>;
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* Fetch all ISMP events and their extrinsic metadata
|
|
964
|
-
*
|
|
965
|
-
* @callname: IsmpRuntimeApi_block_events_with_metadata
|
|
966
|
-
**/
|
|
967
|
-
blockEventsWithMetadata: GenericRuntimeApiMethod<() => Promise<Array<[IsmpEventsEvent, number | undefined]>>>;
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Return the scale encoded consensus state
|
|
971
|
-
*
|
|
972
|
-
* @callname: IsmpRuntimeApi_consensus_state
|
|
973
|
-
* @param {FixedBytes<4>} id
|
|
974
|
-
**/
|
|
975
|
-
consensusState: GenericRuntimeApiMethod<(id: FixedBytes<4>) => Promise<Bytes | undefined>>;
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* Return the timestamp this client was last updated in seconds
|
|
979
|
-
*
|
|
980
|
-
* @callname: IsmpRuntimeApi_state_machine_update_time
|
|
981
|
-
* @param {IsmpConsensusStateMachineHeight} id
|
|
982
|
-
**/
|
|
983
|
-
stateMachineUpdateTime: GenericRuntimeApiMethod<
|
|
984
|
-
(id: IsmpConsensusStateMachineHeight) => Promise<bigint | undefined>
|
|
985
|
-
>;
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Return the challenge period timestamp
|
|
989
|
-
*
|
|
990
|
-
* @callname: IsmpRuntimeApi_challenge_period
|
|
991
|
-
* @param {IsmpConsensusStateMachineId} id
|
|
992
|
-
**/
|
|
993
|
-
challengePeriod: GenericRuntimeApiMethod<(id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>>;
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* Return the latest height of the state machine
|
|
997
|
-
*
|
|
998
|
-
* @callname: IsmpRuntimeApi_latest_state_machine_height
|
|
999
|
-
* @param {IsmpConsensusStateMachineId} id
|
|
1000
|
-
**/
|
|
1001
|
-
latestStateMachineHeight: GenericRuntimeApiMethod<(id: IsmpConsensusStateMachineId) => Promise<bigint | undefined>>;
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* Fetch the requests for the given commitments.
|
|
1005
|
-
*
|
|
1006
|
-
* @callname: IsmpRuntimeApi_requests
|
|
1007
|
-
* @param {Array<H256>} request_commitments
|
|
1008
|
-
**/
|
|
1009
|
-
requests: GenericRuntimeApiMethod<(requestCommitments: Array<H256>) => Promise<Array<IsmpRouterRequest>>>;
|
|
1010
|
-
|
|
1011
|
-
/**
|
|
1012
|
-
* Fetch the responses for the given commitments.
|
|
1013
|
-
*
|
|
1014
|
-
* @callname: IsmpRuntimeApi_responses
|
|
1015
|
-
* @param {Array<H256>} response_commitments
|
|
1016
|
-
**/
|
|
1017
|
-
responses: GenericRuntimeApiMethod<(responseCommitments: Array<H256>) => Promise<Array<IsmpRouterResponse>>>;
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
* Generic runtime api call
|
|
1021
|
-
**/
|
|
1022
|
-
[method: string]: GenericRuntimeApiMethod;
|
|
1023
|
-
};
|
|
1024
|
-
/**
|
|
1025
|
-
* @runtimeapi: IsmpParachainApi - 0x5d1df2fe7d4f6bc8
|
|
1026
|
-
**/
|
|
1027
|
-
ismpParachainApi: {
|
|
1028
|
-
/**
|
|
1029
|
-
* Return all the para_ids this runtime is interested in. Used by the inherent provider
|
|
1030
|
-
*
|
|
1031
|
-
* @callname: IsmpParachainApi_para_ids
|
|
1032
|
-
**/
|
|
1033
|
-
paraIds: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* Return the current relay chain state.
|
|
1037
|
-
*
|
|
1038
|
-
* @callname: IsmpParachainApi_current_relay_chain_state
|
|
1039
|
-
**/
|
|
1040
|
-
currentRelayChainState: GenericRuntimeApiMethod<() => Promise<CumulusPalletParachainSystemRelayChainState>>;
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* Generic runtime api call
|
|
1044
|
-
**/
|
|
1045
|
-
[method: string]: GenericRuntimeApiMethod;
|
|
1046
|
-
};
|
|
1047
944
|
/**
|
|
1048
945
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
1049
946
|
**/
|
|
@@ -1052,9 +949,10 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1052
949
|
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
1053
950
|
* storage.
|
|
1054
951
|
*
|
|
1055
|
-
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
1056
|
-
*
|
|
1057
|
-
* deserialization fails, an error
|
|
952
|
+
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
953
|
+
* `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
|
|
954
|
+
* provided JSON blob is incorrect or incomplete or the deserialization fails, an error
|
|
955
|
+
* is returned.
|
|
1058
956
|
*
|
|
1059
957
|
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
1060
958
|
* defaults will be used.
|
|
@@ -1068,7 +966,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1068
966
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
1069
967
|
* `id`.
|
|
1070
968
|
*
|
|
1071
|
-
* If `id` is `None` the function
|
|
969
|
+
* If `id` is `None` the function should return JSON blob representation of the default
|
|
1072
970
|
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
1073
971
|
* `RuntimeGenesisConfig`.
|
|
1074
972
|
*
|