@dedot/chaintypes 0.136.0 → 0.138.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/package.json +2 -2
- package/paseo-hydration/consts.d.ts +36 -0
- package/paseo-hydration/errors.d.ts +117 -0
- package/paseo-hydration/events.d.ts +415 -2
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +245 -0
- package/paseo-hydration/runtime.d.ts +114 -0
- package/paseo-hydration/tx.d.ts +332 -4
- package/paseo-hydration/types.d.ts +821 -10
package/paseo-hydration/tx.d.ts
CHANGED
|
@@ -75,6 +75,17 @@ import type {
|
|
|
75
75
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
76
76
|
XcmVersionedAsset,
|
|
77
77
|
HydradxRuntimeOpaqueSessionKeys,
|
|
78
|
+
IsmpMessagingMessage,
|
|
79
|
+
IsmpMessagingCreateConsensusState,
|
|
80
|
+
PalletIsmpUtilsUpdateConsensusState,
|
|
81
|
+
PalletIsmpUtilsFundMessageParams,
|
|
82
|
+
IsmpMessagingConsensusMessage,
|
|
83
|
+
IsmpParachainParachainData,
|
|
84
|
+
PalletTokenGatewayTeleportParams,
|
|
85
|
+
IsmpHostStateMachine,
|
|
86
|
+
PalletTokenGatewayAssetRegistration,
|
|
87
|
+
TokenGatewayPrimitivesGatewayAssetUpdate,
|
|
88
|
+
PalletTokenGatewayPrecisionUpdate,
|
|
78
89
|
} from './types.js';
|
|
79
90
|
|
|
80
91
|
export type ChainSubmittableExtrinsic<
|
|
@@ -5309,6 +5320,33 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5309
5320
|
>
|
|
5310
5321
|
>;
|
|
5311
5322
|
|
|
5323
|
+
/**
|
|
5324
|
+
* Execute a single EVM call.
|
|
5325
|
+
* This extrinsic will fail if the EVM call returns any other ExitReason than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
5326
|
+
* Look the [hydradx_runtime::evm::runner::WrapRunner] implementation for details.
|
|
5327
|
+
*
|
|
5328
|
+
* Parameters:
|
|
5329
|
+
* - `origin`: Signed origin.
|
|
5330
|
+
* - `call`: presumably `pallet_evm::Call::call` as boxed `RuntimeCall`.
|
|
5331
|
+
*
|
|
5332
|
+
* Emits `EvmCallFailed` event when failed.
|
|
5333
|
+
*
|
|
5334
|
+
* @param {HydradxRuntimeRuntimeCallLike} call
|
|
5335
|
+
**/
|
|
5336
|
+
dispatchEvmCall: GenericTxCall<
|
|
5337
|
+
Rv,
|
|
5338
|
+
(call: HydradxRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
|
|
5339
|
+
Rv,
|
|
5340
|
+
{
|
|
5341
|
+
pallet: 'Dispatcher';
|
|
5342
|
+
palletCall: {
|
|
5343
|
+
name: 'DispatchEvmCall';
|
|
5344
|
+
params: { call: HydradxRuntimeRuntimeCallLike };
|
|
5345
|
+
};
|
|
5346
|
+
}
|
|
5347
|
+
>
|
|
5348
|
+
>;
|
|
5349
|
+
|
|
5312
5350
|
/**
|
|
5313
5351
|
* Generic pallet tx call
|
|
5314
5352
|
**/
|
|
@@ -7426,7 +7464,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7426
7464
|
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
7427
7465
|
*
|
|
7428
7466
|
* # Arguments
|
|
7429
|
-
* * `origin` -
|
|
7467
|
+
* * `origin` - Authority origin required
|
|
7430
7468
|
* * `asset_id` - The asset ID to configure
|
|
7431
7469
|
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
7432
7470
|
*
|
|
@@ -7457,7 +7495,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7457
7495
|
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
7458
7496
|
*
|
|
7459
7497
|
* # Arguments
|
|
7460
|
-
* * `origin` -
|
|
7498
|
+
* * `origin` - Authority origin required
|
|
7461
7499
|
* * `asset_id` - The asset ID to remove configuration for
|
|
7462
7500
|
*
|
|
7463
7501
|
* @param {number} assetId
|
|
@@ -9120,6 +9158,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9120
9158
|
liquidation: {
|
|
9121
9159
|
/**
|
|
9122
9160
|
* Liquidates an existing money market position.
|
|
9161
|
+
* Can be both signed and unsigned.
|
|
9123
9162
|
*
|
|
9124
9163
|
* Performs a flash loan to get funds to pay for the debt.
|
|
9125
9164
|
* Received collateral is swapped and the profit is transferred to `FeeReceiver`.
|
|
@@ -9479,16 +9518,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9479
9518
|
* - Other errors from underlying calls
|
|
9480
9519
|
*
|
|
9481
9520
|
* @param {number} collateralAssetId
|
|
9521
|
+
* @param {bigint | undefined} flashAmount
|
|
9482
9522
|
**/
|
|
9483
9523
|
executeArbitrage: GenericTxCall<
|
|
9484
9524
|
Rv,
|
|
9485
|
-
(
|
|
9525
|
+
(
|
|
9526
|
+
collateralAssetId: number,
|
|
9527
|
+
flashAmount: bigint | undefined,
|
|
9528
|
+
) => ChainSubmittableExtrinsic<
|
|
9486
9529
|
Rv,
|
|
9487
9530
|
{
|
|
9488
9531
|
pallet: 'Hsm';
|
|
9489
9532
|
palletCall: {
|
|
9490
9533
|
name: 'ExecuteArbitrage';
|
|
9491
|
-
params: { collateralAssetId: number };
|
|
9534
|
+
params: { collateralAssetId: number; flashAmount: bigint | undefined };
|
|
9492
9535
|
};
|
|
9493
9536
|
}
|
|
9494
9537
|
>
|
|
@@ -12673,6 +12716,291 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
12673
12716
|
**/
|
|
12674
12717
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
12675
12718
|
};
|
|
12719
|
+
/**
|
|
12720
|
+
* Pallet `Ismp`'s transaction calls
|
|
12721
|
+
**/
|
|
12722
|
+
ismp: {
|
|
12723
|
+
/**
|
|
12724
|
+
* Execute the provided batch of ISMP messages, this will short-circuit and revert if any
|
|
12725
|
+
* of the provided messages are invalid. This is an unsigned extrinsic that permits anyone
|
|
12726
|
+
* execute ISMP messages for free, provided they have valid proofs and the messages have
|
|
12727
|
+
* not been previously processed.
|
|
12728
|
+
*
|
|
12729
|
+
* The dispatch origin for this call must be an unsigned one.
|
|
12730
|
+
*
|
|
12731
|
+
* - `messages`: the messages to handle or process.
|
|
12732
|
+
*
|
|
12733
|
+
* Emits different message events based on the Message received if successful.
|
|
12734
|
+
*
|
|
12735
|
+
* @param {Array<IsmpMessagingMessage>} messages
|
|
12736
|
+
**/
|
|
12737
|
+
handleUnsigned: GenericTxCall<
|
|
12738
|
+
Rv,
|
|
12739
|
+
(messages: Array<IsmpMessagingMessage>) => ChainSubmittableExtrinsic<
|
|
12740
|
+
Rv,
|
|
12741
|
+
{
|
|
12742
|
+
pallet: 'Ismp';
|
|
12743
|
+
palletCall: {
|
|
12744
|
+
name: 'HandleUnsigned';
|
|
12745
|
+
params: { messages: Array<IsmpMessagingMessage> };
|
|
12746
|
+
};
|
|
12747
|
+
}
|
|
12748
|
+
>
|
|
12749
|
+
>;
|
|
12750
|
+
|
|
12751
|
+
/**
|
|
12752
|
+
* Create a consensus client, using a subjectively chosen consensus state. This can also
|
|
12753
|
+
* be used to overwrite an existing consensus state. The dispatch origin for this
|
|
12754
|
+
* call must be `T::AdminOrigin`.
|
|
12755
|
+
*
|
|
12756
|
+
* - `message`: [`CreateConsensusState`] struct.
|
|
12757
|
+
*
|
|
12758
|
+
* Emits [`Event::ConsensusClientCreated`] if successful.
|
|
12759
|
+
*
|
|
12760
|
+
* @param {IsmpMessagingCreateConsensusState} message
|
|
12761
|
+
**/
|
|
12762
|
+
createConsensusClient: GenericTxCall<
|
|
12763
|
+
Rv,
|
|
12764
|
+
(message: IsmpMessagingCreateConsensusState) => ChainSubmittableExtrinsic<
|
|
12765
|
+
Rv,
|
|
12766
|
+
{
|
|
12767
|
+
pallet: 'Ismp';
|
|
12768
|
+
palletCall: {
|
|
12769
|
+
name: 'CreateConsensusClient';
|
|
12770
|
+
params: { message: IsmpMessagingCreateConsensusState };
|
|
12771
|
+
};
|
|
12772
|
+
}
|
|
12773
|
+
>
|
|
12774
|
+
>;
|
|
12775
|
+
|
|
12776
|
+
/**
|
|
12777
|
+
* Modify the unbonding period and challenge period for a consensus state.
|
|
12778
|
+
* The dispatch origin for this call must be `T::AdminOrigin`.
|
|
12779
|
+
*
|
|
12780
|
+
* - `message`: `UpdateConsensusState` struct.
|
|
12781
|
+
*
|
|
12782
|
+
* @param {PalletIsmpUtilsUpdateConsensusState} message
|
|
12783
|
+
**/
|
|
12784
|
+
updateConsensusState: GenericTxCall<
|
|
12785
|
+
Rv,
|
|
12786
|
+
(message: PalletIsmpUtilsUpdateConsensusState) => ChainSubmittableExtrinsic<
|
|
12787
|
+
Rv,
|
|
12788
|
+
{
|
|
12789
|
+
pallet: 'Ismp';
|
|
12790
|
+
palletCall: {
|
|
12791
|
+
name: 'UpdateConsensusState';
|
|
12792
|
+
params: { message: PalletIsmpUtilsUpdateConsensusState };
|
|
12793
|
+
};
|
|
12794
|
+
}
|
|
12795
|
+
>
|
|
12796
|
+
>;
|
|
12797
|
+
|
|
12798
|
+
/**
|
|
12799
|
+
* Add more funds to a message (request or response) to be used for delivery and execution.
|
|
12800
|
+
*
|
|
12801
|
+
* Should not be called on a message that has been completed (delivered or timed-out) as
|
|
12802
|
+
* those funds will be lost forever.
|
|
12803
|
+
*
|
|
12804
|
+
* @param {PalletIsmpUtilsFundMessageParams} message
|
|
12805
|
+
**/
|
|
12806
|
+
fundMessage: GenericTxCall<
|
|
12807
|
+
Rv,
|
|
12808
|
+
(message: PalletIsmpUtilsFundMessageParams) => ChainSubmittableExtrinsic<
|
|
12809
|
+
Rv,
|
|
12810
|
+
{
|
|
12811
|
+
pallet: 'Ismp';
|
|
12812
|
+
palletCall: {
|
|
12813
|
+
name: 'FundMessage';
|
|
12814
|
+
params: { message: PalletIsmpUtilsFundMessageParams };
|
|
12815
|
+
};
|
|
12816
|
+
}
|
|
12817
|
+
>
|
|
12818
|
+
>;
|
|
12819
|
+
|
|
12820
|
+
/**
|
|
12821
|
+
* Generic pallet tx call
|
|
12822
|
+
**/
|
|
12823
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
12824
|
+
};
|
|
12825
|
+
/**
|
|
12826
|
+
* Pallet `IsmpParachain`'s transaction calls
|
|
12827
|
+
**/
|
|
12828
|
+
ismpParachain: {
|
|
12829
|
+
/**
|
|
12830
|
+
* This allows block builders submit parachain consensus proofs as inherents. If the
|
|
12831
|
+
* provided [`ConsensusMessage`] is not for a parachain, this call will fail.
|
|
12832
|
+
*
|
|
12833
|
+
* @param {IsmpMessagingConsensusMessage} data
|
|
12834
|
+
**/
|
|
12835
|
+
updateParachainConsensus: GenericTxCall<
|
|
12836
|
+
Rv,
|
|
12837
|
+
(data: IsmpMessagingConsensusMessage) => ChainSubmittableExtrinsic<
|
|
12838
|
+
Rv,
|
|
12839
|
+
{
|
|
12840
|
+
pallet: 'IsmpParachain';
|
|
12841
|
+
palletCall: {
|
|
12842
|
+
name: 'UpdateParachainConsensus';
|
|
12843
|
+
params: { data: IsmpMessagingConsensusMessage };
|
|
12844
|
+
};
|
|
12845
|
+
}
|
|
12846
|
+
>
|
|
12847
|
+
>;
|
|
12848
|
+
|
|
12849
|
+
/**
|
|
12850
|
+
* Add some new parachains to the parachains whitelist
|
|
12851
|
+
*
|
|
12852
|
+
* @param {Array<IsmpParachainParachainData>} paraIds
|
|
12853
|
+
**/
|
|
12854
|
+
addParachain: GenericTxCall<
|
|
12855
|
+
Rv,
|
|
12856
|
+
(paraIds: Array<IsmpParachainParachainData>) => ChainSubmittableExtrinsic<
|
|
12857
|
+
Rv,
|
|
12858
|
+
{
|
|
12859
|
+
pallet: 'IsmpParachain';
|
|
12860
|
+
palletCall: {
|
|
12861
|
+
name: 'AddParachain';
|
|
12862
|
+
params: { paraIds: Array<IsmpParachainParachainData> };
|
|
12863
|
+
};
|
|
12864
|
+
}
|
|
12865
|
+
>
|
|
12866
|
+
>;
|
|
12867
|
+
|
|
12868
|
+
/**
|
|
12869
|
+
* Removes some parachains from the parachains whitelist
|
|
12870
|
+
*
|
|
12871
|
+
* @param {Array<number>} paraIds
|
|
12872
|
+
**/
|
|
12873
|
+
removeParachain: GenericTxCall<
|
|
12874
|
+
Rv,
|
|
12875
|
+
(paraIds: Array<number>) => ChainSubmittableExtrinsic<
|
|
12876
|
+
Rv,
|
|
12877
|
+
{
|
|
12878
|
+
pallet: 'IsmpParachain';
|
|
12879
|
+
palletCall: {
|
|
12880
|
+
name: 'RemoveParachain';
|
|
12881
|
+
params: { paraIds: Array<number> };
|
|
12882
|
+
};
|
|
12883
|
+
}
|
|
12884
|
+
>
|
|
12885
|
+
>;
|
|
12886
|
+
|
|
12887
|
+
/**
|
|
12888
|
+
* Generic pallet tx call
|
|
12889
|
+
**/
|
|
12890
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
12891
|
+
};
|
|
12892
|
+
/**
|
|
12893
|
+
* Pallet `TokenGateway`'s transaction calls
|
|
12894
|
+
**/
|
|
12895
|
+
tokenGateway: {
|
|
12896
|
+
/**
|
|
12897
|
+
* Teleports a registered asset
|
|
12898
|
+
* locks the asset and dispatches a request to token gateway on the destination
|
|
12899
|
+
*
|
|
12900
|
+
* @param {PalletTokenGatewayTeleportParams} params
|
|
12901
|
+
**/
|
|
12902
|
+
teleport: GenericTxCall<
|
|
12903
|
+
Rv,
|
|
12904
|
+
(params: PalletTokenGatewayTeleportParams) => ChainSubmittableExtrinsic<
|
|
12905
|
+
Rv,
|
|
12906
|
+
{
|
|
12907
|
+
pallet: 'TokenGateway';
|
|
12908
|
+
palletCall: {
|
|
12909
|
+
name: 'Teleport';
|
|
12910
|
+
params: { params: PalletTokenGatewayTeleportParams };
|
|
12911
|
+
};
|
|
12912
|
+
}
|
|
12913
|
+
>
|
|
12914
|
+
>;
|
|
12915
|
+
|
|
12916
|
+
/**
|
|
12917
|
+
* Set the token gateway address for specified chains
|
|
12918
|
+
*
|
|
12919
|
+
* @param {Array<[IsmpHostStateMachine, BytesLike]>} addresses
|
|
12920
|
+
**/
|
|
12921
|
+
setTokenGatewayAddresses: GenericTxCall<
|
|
12922
|
+
Rv,
|
|
12923
|
+
(addresses: Array<[IsmpHostStateMachine, BytesLike]>) => ChainSubmittableExtrinsic<
|
|
12924
|
+
Rv,
|
|
12925
|
+
{
|
|
12926
|
+
pallet: 'TokenGateway';
|
|
12927
|
+
palletCall: {
|
|
12928
|
+
name: 'SetTokenGatewayAddresses';
|
|
12929
|
+
params: { addresses: Array<[IsmpHostStateMachine, BytesLike]> };
|
|
12930
|
+
};
|
|
12931
|
+
}
|
|
12932
|
+
>
|
|
12933
|
+
>;
|
|
12934
|
+
|
|
12935
|
+
/**
|
|
12936
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
12937
|
+
*
|
|
12938
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
12939
|
+
* to create the asset.
|
|
12940
|
+
* `native` should be true if this asset originates from this chain
|
|
12941
|
+
*
|
|
12942
|
+
* @param {PalletTokenGatewayAssetRegistration} asset
|
|
12943
|
+
**/
|
|
12944
|
+
createErc6160Asset: GenericTxCall<
|
|
12945
|
+
Rv,
|
|
12946
|
+
(asset: PalletTokenGatewayAssetRegistration) => ChainSubmittableExtrinsic<
|
|
12947
|
+
Rv,
|
|
12948
|
+
{
|
|
12949
|
+
pallet: 'TokenGateway';
|
|
12950
|
+
palletCall: {
|
|
12951
|
+
name: 'CreateErc6160Asset';
|
|
12952
|
+
params: { asset: PalletTokenGatewayAssetRegistration };
|
|
12953
|
+
};
|
|
12954
|
+
}
|
|
12955
|
+
>
|
|
12956
|
+
>;
|
|
12957
|
+
|
|
12958
|
+
/**
|
|
12959
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
12960
|
+
*
|
|
12961
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
12962
|
+
* to create the asset.
|
|
12963
|
+
*
|
|
12964
|
+
* @param {TokenGatewayPrimitivesGatewayAssetUpdate} asset
|
|
12965
|
+
**/
|
|
12966
|
+
updateErc6160Asset: GenericTxCall<
|
|
12967
|
+
Rv,
|
|
12968
|
+
(asset: TokenGatewayPrimitivesGatewayAssetUpdate) => ChainSubmittableExtrinsic<
|
|
12969
|
+
Rv,
|
|
12970
|
+
{
|
|
12971
|
+
pallet: 'TokenGateway';
|
|
12972
|
+
palletCall: {
|
|
12973
|
+
name: 'UpdateErc6160Asset';
|
|
12974
|
+
params: { asset: TokenGatewayPrimitivesGatewayAssetUpdate };
|
|
12975
|
+
};
|
|
12976
|
+
}
|
|
12977
|
+
>
|
|
12978
|
+
>;
|
|
12979
|
+
|
|
12980
|
+
/**
|
|
12981
|
+
* Update the precision for an existing asset
|
|
12982
|
+
*
|
|
12983
|
+
* @param {PalletTokenGatewayPrecisionUpdate} update
|
|
12984
|
+
**/
|
|
12985
|
+
updateAssetPrecision: GenericTxCall<
|
|
12986
|
+
Rv,
|
|
12987
|
+
(update: PalletTokenGatewayPrecisionUpdate) => ChainSubmittableExtrinsic<
|
|
12988
|
+
Rv,
|
|
12989
|
+
{
|
|
12990
|
+
pallet: 'TokenGateway';
|
|
12991
|
+
palletCall: {
|
|
12992
|
+
name: 'UpdateAssetPrecision';
|
|
12993
|
+
params: { update: PalletTokenGatewayPrecisionUpdate };
|
|
12994
|
+
};
|
|
12995
|
+
}
|
|
12996
|
+
>
|
|
12997
|
+
>;
|
|
12998
|
+
|
|
12999
|
+
/**
|
|
13000
|
+
* Generic pallet tx call
|
|
13001
|
+
**/
|
|
13002
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
13003
|
+
};
|
|
12676
13004
|
/**
|
|
12677
13005
|
* Pallet `EmaOracle`'s transaction calls
|
|
12678
13006
|
**/
|