@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
|
@@ -113,6 +113,10 @@ export type HydradxRuntimeRuntimeEvent =
|
|
|
113
113
|
| { pallet: 'UnknownTokens'; palletEvent: OrmlUnknownTokensModuleEvent }
|
|
114
114
|
| { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent }
|
|
115
115
|
| { pallet: 'Session'; palletEvent: PalletSessionEvent }
|
|
116
|
+
| { pallet: 'Ismp'; palletEvent: PalletIsmpEvent }
|
|
117
|
+
| { pallet: 'IsmpParachain'; palletEvent: IsmpParachainEvent }
|
|
118
|
+
| { pallet: 'Hyperbridge'; palletEvent: PalletHyperbridgeEvent }
|
|
119
|
+
| { pallet: 'TokenGateway'; palletEvent: PalletTokenGatewayEvent }
|
|
116
120
|
| { pallet: 'EmaOracle'; palletEvent: PalletEmaOracleEvent }
|
|
117
121
|
| { pallet: 'Broadcast'; palletEvent: PalletBroadcastEvent };
|
|
118
122
|
|
|
@@ -1308,6 +1312,9 @@ export type HydradxRuntimeRuntimeCall =
|
|
|
1308
1312
|
| { pallet: 'XTokens'; palletCall: OrmlXtokensModuleCall }
|
|
1309
1313
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall }
|
|
1310
1314
|
| { pallet: 'Session'; palletCall: PalletSessionCall }
|
|
1315
|
+
| { pallet: 'Ismp'; palletCall: PalletIsmpCall }
|
|
1316
|
+
| { pallet: 'IsmpParachain'; palletCall: IsmpParachainCall }
|
|
1317
|
+
| { pallet: 'TokenGateway'; palletCall: PalletTokenGatewayCall }
|
|
1311
1318
|
| { pallet: 'EmaOracle'; palletCall: PalletEmaOracleCall }
|
|
1312
1319
|
| { pallet: 'Broadcast'; palletCall: PalletBroadcastCall };
|
|
1313
1320
|
|
|
@@ -1371,6 +1378,9 @@ export type HydradxRuntimeRuntimeCallLike =
|
|
|
1371
1378
|
| { pallet: 'XTokens'; palletCall: OrmlXtokensModuleCallLike }
|
|
1372
1379
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike }
|
|
1373
1380
|
| { pallet: 'Session'; palletCall: PalletSessionCallLike }
|
|
1381
|
+
| { pallet: 'Ismp'; palletCall: PalletIsmpCallLike }
|
|
1382
|
+
| { pallet: 'IsmpParachain'; palletCall: IsmpParachainCallLike }
|
|
1383
|
+
| { pallet: 'TokenGateway'; palletCall: PalletTokenGatewayCallLike }
|
|
1374
1384
|
| { pallet: 'EmaOracle'; palletCall: PalletEmaOracleCallLike }
|
|
1375
1385
|
| { pallet: 'Broadcast'; palletCall: PalletBroadcastCallLike };
|
|
1376
1386
|
|
|
@@ -6082,7 +6092,19 @@ export type PalletDispatcherCall =
|
|
|
6082
6092
|
* This allows executing calls with additional weight (gas) limit.
|
|
6083
6093
|
* The extra gas is not refunded, even if not used.
|
|
6084
6094
|
**/
|
|
6085
|
-
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCall; extraGas: bigint } }
|
|
6095
|
+
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCall; extraGas: bigint } }
|
|
6096
|
+
/**
|
|
6097
|
+
* Execute a single EVM call.
|
|
6098
|
+
* This extrinsic will fail if the EVM call returns any other ExitReason than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
6099
|
+
* Look the [hydradx_runtime::evm::runner::WrapRunner] implementation for details.
|
|
6100
|
+
*
|
|
6101
|
+
* Parameters:
|
|
6102
|
+
* - `origin`: Signed origin.
|
|
6103
|
+
* - `call`: presumably `pallet_evm::Call::call` as boxed `RuntimeCall`.
|
|
6104
|
+
*
|
|
6105
|
+
* Emits `EvmCallFailed` event when failed.
|
|
6106
|
+
**/
|
|
6107
|
+
| { name: 'DispatchEvmCall'; params: { call: HydradxRuntimeRuntimeCall } };
|
|
6086
6108
|
|
|
6087
6109
|
export type PalletDispatcherCallLike =
|
|
6088
6110
|
| { name: 'DispatchAsTreasury'; params: { call: HydradxRuntimeRuntimeCallLike } }
|
|
@@ -6102,7 +6124,19 @@ export type PalletDispatcherCallLike =
|
|
|
6102
6124
|
* This allows executing calls with additional weight (gas) limit.
|
|
6103
6125
|
* The extra gas is not refunded, even if not used.
|
|
6104
6126
|
**/
|
|
6105
|
-
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCallLike; extraGas: bigint } }
|
|
6127
|
+
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCallLike; extraGas: bigint } }
|
|
6128
|
+
/**
|
|
6129
|
+
* Execute a single EVM call.
|
|
6130
|
+
* This extrinsic will fail if the EVM call returns any other ExitReason than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
6131
|
+
* Look the [hydradx_runtime::evm::runner::WrapRunner] implementation for details.
|
|
6132
|
+
*
|
|
6133
|
+
* Parameters:
|
|
6134
|
+
* - `origin`: Signed origin.
|
|
6135
|
+
* - `call`: presumably `pallet_evm::Call::call` as boxed `RuntimeCall`.
|
|
6136
|
+
*
|
|
6137
|
+
* Emits `EvmCallFailed` event when failed.
|
|
6138
|
+
**/
|
|
6139
|
+
| { name: 'DispatchEvmCall'; params: { call: HydradxRuntimeRuntimeCallLike } };
|
|
6106
6140
|
|
|
6107
6141
|
/**
|
|
6108
6142
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8100,7 +8134,7 @@ export type PalletDynamicFeesCall =
|
|
|
8100
8134
|
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8101
8135
|
*
|
|
8102
8136
|
* # Arguments
|
|
8103
|
-
* * `origin` -
|
|
8137
|
+
* * `origin` - Authority origin required
|
|
8104
8138
|
* * `asset_id` - The asset ID to configure
|
|
8105
8139
|
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8106
8140
|
**/
|
|
@@ -8112,7 +8146,7 @@ export type PalletDynamicFeesCall =
|
|
|
8112
8146
|
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8113
8147
|
*
|
|
8114
8148
|
* # Arguments
|
|
8115
|
-
* * `origin` -
|
|
8149
|
+
* * `origin` - Authority origin required
|
|
8116
8150
|
* * `asset_id` - The asset ID to remove configuration for
|
|
8117
8151
|
**/
|
|
8118
8152
|
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
@@ -8124,7 +8158,7 @@ export type PalletDynamicFeesCallLike =
|
|
|
8124
8158
|
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8125
8159
|
*
|
|
8126
8160
|
* # Arguments
|
|
8127
|
-
* * `origin` -
|
|
8161
|
+
* * `origin` - Authority origin required
|
|
8128
8162
|
* * `asset_id` - The asset ID to configure
|
|
8129
8163
|
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8130
8164
|
**/
|
|
@@ -8136,7 +8170,7 @@ export type PalletDynamicFeesCallLike =
|
|
|
8136
8170
|
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8137
8171
|
*
|
|
8138
8172
|
* # Arguments
|
|
8139
|
-
* * `origin` -
|
|
8173
|
+
* * `origin` - Authority origin required
|
|
8140
8174
|
* * `asset_id` - The asset ID to remove configuration for
|
|
8141
8175
|
**/
|
|
8142
8176
|
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
@@ -9695,6 +9729,7 @@ export type PalletReferralsFeeDistribution = { referrer: Permill; trader: Permil
|
|
|
9695
9729
|
export type PalletLiquidationCall =
|
|
9696
9730
|
/**
|
|
9697
9731
|
* Liquidates an existing money market position.
|
|
9732
|
+
* Can be both signed and unsigned.
|
|
9698
9733
|
*
|
|
9699
9734
|
* Performs a flash loan to get funds to pay for the debt.
|
|
9700
9735
|
* Received collateral is swapped and the profit is transferred to `FeeReceiver`.
|
|
@@ -9728,6 +9763,7 @@ export type PalletLiquidationCall =
|
|
|
9728
9763
|
export type PalletLiquidationCallLike =
|
|
9729
9764
|
/**
|
|
9730
9765
|
* Liquidates an existing money market position.
|
|
9766
|
+
* Can be both signed and unsigned.
|
|
9731
9767
|
*
|
|
9732
9768
|
* Performs a flash loan to get funds to pay for the debt.
|
|
9733
9769
|
* Received collateral is swapped and the profit is transferred to `FeeReceiver`.
|
|
@@ -9934,7 +9970,7 @@ export type PalletHsmCall =
|
|
|
9934
9970
|
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9935
9971
|
* - Other errors from underlying calls
|
|
9936
9972
|
**/
|
|
9937
|
-
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number } }
|
|
9973
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number; flashAmount?: bigint | undefined } }
|
|
9938
9974
|
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
9939
9975
|
|
|
9940
9976
|
export type PalletHsmCallLike =
|
|
@@ -10110,7 +10146,7 @@ export type PalletHsmCallLike =
|
|
|
10110
10146
|
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
10111
10147
|
* - Other errors from underlying calls
|
|
10112
10148
|
**/
|
|
10113
|
-
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number } }
|
|
10149
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number; flashAmount?: bigint | undefined } }
|
|
10114
10150
|
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
10115
10151
|
|
|
10116
10152
|
/**
|
|
@@ -13602,6 +13638,323 @@ export type HydradxRuntimeOpaqueSessionKeys = { aura: SpConsensusAuraSr25519AppS
|
|
|
13602
13638
|
|
|
13603
13639
|
export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>;
|
|
13604
13640
|
|
|
13641
|
+
/**
|
|
13642
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13643
|
+
**/
|
|
13644
|
+
export type PalletIsmpCall =
|
|
13645
|
+
/**
|
|
13646
|
+
* Execute the provided batch of ISMP messages, this will short-circuit and revert if any
|
|
13647
|
+
* of the provided messages are invalid. This is an unsigned extrinsic that permits anyone
|
|
13648
|
+
* execute ISMP messages for free, provided they have valid proofs and the messages have
|
|
13649
|
+
* not been previously processed.
|
|
13650
|
+
*
|
|
13651
|
+
* The dispatch origin for this call must be an unsigned one.
|
|
13652
|
+
*
|
|
13653
|
+
* - `messages`: the messages to handle or process.
|
|
13654
|
+
*
|
|
13655
|
+
* Emits different message events based on the Message received if successful.
|
|
13656
|
+
**/
|
|
13657
|
+
| { name: 'HandleUnsigned'; params: { messages: Array<IsmpMessagingMessage> } }
|
|
13658
|
+
/**
|
|
13659
|
+
* Create a consensus client, using a subjectively chosen consensus state. This can also
|
|
13660
|
+
* be used to overwrite an existing consensus state. The dispatch origin for this
|
|
13661
|
+
* call must be `T::AdminOrigin`.
|
|
13662
|
+
*
|
|
13663
|
+
* - `message`: [`CreateConsensusState`] struct.
|
|
13664
|
+
*
|
|
13665
|
+
* Emits [`Event::ConsensusClientCreated`] if successful.
|
|
13666
|
+
**/
|
|
13667
|
+
| { name: 'CreateConsensusClient'; params: { message: IsmpMessagingCreateConsensusState } }
|
|
13668
|
+
/**
|
|
13669
|
+
* Modify the unbonding period and challenge period for a consensus state.
|
|
13670
|
+
* The dispatch origin for this call must be `T::AdminOrigin`.
|
|
13671
|
+
*
|
|
13672
|
+
* - `message`: `UpdateConsensusState` struct.
|
|
13673
|
+
**/
|
|
13674
|
+
| { name: 'UpdateConsensusState'; params: { message: PalletIsmpUtilsUpdateConsensusState } }
|
|
13675
|
+
/**
|
|
13676
|
+
* Add more funds to a message (request or response) to be used for delivery and execution.
|
|
13677
|
+
*
|
|
13678
|
+
* Should not be called on a message that has been completed (delivered or timed-out) as
|
|
13679
|
+
* those funds will be lost forever.
|
|
13680
|
+
**/
|
|
13681
|
+
| { name: 'FundMessage'; params: { message: PalletIsmpUtilsFundMessageParams } };
|
|
13682
|
+
|
|
13683
|
+
export type PalletIsmpCallLike =
|
|
13684
|
+
/**
|
|
13685
|
+
* Execute the provided batch of ISMP messages, this will short-circuit and revert if any
|
|
13686
|
+
* of the provided messages are invalid. This is an unsigned extrinsic that permits anyone
|
|
13687
|
+
* execute ISMP messages for free, provided they have valid proofs and the messages have
|
|
13688
|
+
* not been previously processed.
|
|
13689
|
+
*
|
|
13690
|
+
* The dispatch origin for this call must be an unsigned one.
|
|
13691
|
+
*
|
|
13692
|
+
* - `messages`: the messages to handle or process.
|
|
13693
|
+
*
|
|
13694
|
+
* Emits different message events based on the Message received if successful.
|
|
13695
|
+
**/
|
|
13696
|
+
| { name: 'HandleUnsigned'; params: { messages: Array<IsmpMessagingMessage> } }
|
|
13697
|
+
/**
|
|
13698
|
+
* Create a consensus client, using a subjectively chosen consensus state. This can also
|
|
13699
|
+
* be used to overwrite an existing consensus state. The dispatch origin for this
|
|
13700
|
+
* call must be `T::AdminOrigin`.
|
|
13701
|
+
*
|
|
13702
|
+
* - `message`: [`CreateConsensusState`] struct.
|
|
13703
|
+
*
|
|
13704
|
+
* Emits [`Event::ConsensusClientCreated`] if successful.
|
|
13705
|
+
**/
|
|
13706
|
+
| { name: 'CreateConsensusClient'; params: { message: IsmpMessagingCreateConsensusState } }
|
|
13707
|
+
/**
|
|
13708
|
+
* Modify the unbonding period and challenge period for a consensus state.
|
|
13709
|
+
* The dispatch origin for this call must be `T::AdminOrigin`.
|
|
13710
|
+
*
|
|
13711
|
+
* - `message`: `UpdateConsensusState` struct.
|
|
13712
|
+
**/
|
|
13713
|
+
| { name: 'UpdateConsensusState'; params: { message: PalletIsmpUtilsUpdateConsensusState } }
|
|
13714
|
+
/**
|
|
13715
|
+
* Add more funds to a message (request or response) to be used for delivery and execution.
|
|
13716
|
+
*
|
|
13717
|
+
* Should not be called on a message that has been completed (delivered or timed-out) as
|
|
13718
|
+
* those funds will be lost forever.
|
|
13719
|
+
**/
|
|
13720
|
+
| { name: 'FundMessage'; params: { message: PalletIsmpUtilsFundMessageParams } };
|
|
13721
|
+
|
|
13722
|
+
export type IsmpMessagingMessage =
|
|
13723
|
+
| { type: 'Consensus'; value: IsmpMessagingConsensusMessage }
|
|
13724
|
+
| { type: 'FraudProof'; value: IsmpMessagingFraudProofMessage }
|
|
13725
|
+
| { type: 'Request'; value: IsmpMessagingRequestMessage }
|
|
13726
|
+
| { type: 'Response'; value: IsmpMessagingResponseMessage }
|
|
13727
|
+
| { type: 'Timeout'; value: IsmpMessagingTimeoutMessage };
|
|
13728
|
+
|
|
13729
|
+
export type IsmpMessagingConsensusMessage = { consensusProof: Bytes; consensusStateId: FixedBytes<4>; signer: Bytes };
|
|
13730
|
+
|
|
13731
|
+
export type IsmpMessagingFraudProofMessage = { proof1: Bytes; proof2: Bytes; consensusStateId: FixedBytes<4> };
|
|
13732
|
+
|
|
13733
|
+
export type IsmpMessagingRequestMessage = {
|
|
13734
|
+
requests: Array<IsmpRouterPostRequest>;
|
|
13735
|
+
proof: IsmpMessagingProof;
|
|
13736
|
+
signer: Bytes;
|
|
13737
|
+
};
|
|
13738
|
+
|
|
13739
|
+
export type IsmpRouterPostRequest = {
|
|
13740
|
+
source: IsmpHostStateMachine;
|
|
13741
|
+
dest: IsmpHostStateMachine;
|
|
13742
|
+
nonce: bigint;
|
|
13743
|
+
from: Bytes;
|
|
13744
|
+
to: Bytes;
|
|
13745
|
+
timeoutTimestamp: bigint;
|
|
13746
|
+
body: Bytes;
|
|
13747
|
+
};
|
|
13748
|
+
|
|
13749
|
+
export type IsmpHostStateMachine =
|
|
13750
|
+
| { type: 'Evm'; value: number }
|
|
13751
|
+
| { type: 'Polkadot'; value: number }
|
|
13752
|
+
| { type: 'Kusama'; value: number }
|
|
13753
|
+
| { type: 'Substrate'; value: FixedBytes<4> }
|
|
13754
|
+
| { type: 'Tendermint'; value: FixedBytes<4> };
|
|
13755
|
+
|
|
13756
|
+
export type IsmpMessagingProof = { height: IsmpConsensusStateMachineHeight; proof: Bytes };
|
|
13757
|
+
|
|
13758
|
+
export type IsmpConsensusStateMachineHeight = { id: IsmpConsensusStateMachineId; height: bigint };
|
|
13759
|
+
|
|
13760
|
+
export type IsmpConsensusStateMachineId = { stateId: IsmpHostStateMachine; consensusStateId: FixedBytes<4> };
|
|
13761
|
+
|
|
13762
|
+
export type IsmpMessagingResponseMessage = {
|
|
13763
|
+
datagram: IsmpRouterRequestResponse;
|
|
13764
|
+
proof: IsmpMessagingProof;
|
|
13765
|
+
signer: Bytes;
|
|
13766
|
+
};
|
|
13767
|
+
|
|
13768
|
+
export type IsmpRouterRequestResponse =
|
|
13769
|
+
| { type: 'Request'; value: Array<IsmpRouterRequest> }
|
|
13770
|
+
| { type: 'Response'; value: Array<IsmpRouterResponse> };
|
|
13771
|
+
|
|
13772
|
+
export type IsmpRouterRequest =
|
|
13773
|
+
| { type: 'Post'; value: IsmpRouterPostRequest }
|
|
13774
|
+
| { type: 'Get'; value: IsmpRouterGetRequest };
|
|
13775
|
+
|
|
13776
|
+
export type IsmpRouterGetRequest = {
|
|
13777
|
+
source: IsmpHostStateMachine;
|
|
13778
|
+
dest: IsmpHostStateMachine;
|
|
13779
|
+
nonce: bigint;
|
|
13780
|
+
from: Bytes;
|
|
13781
|
+
keys: Array<Bytes>;
|
|
13782
|
+
height: bigint;
|
|
13783
|
+
context: Bytes;
|
|
13784
|
+
timeoutTimestamp: bigint;
|
|
13785
|
+
};
|
|
13786
|
+
|
|
13787
|
+
export type IsmpRouterResponse =
|
|
13788
|
+
| { type: 'Post'; value: IsmpRouterPostResponse }
|
|
13789
|
+
| { type: 'Get'; value: IsmpRouterGetResponse };
|
|
13790
|
+
|
|
13791
|
+
export type IsmpRouterPostResponse = { post: IsmpRouterPostRequest; response: Bytes; timeoutTimestamp: bigint };
|
|
13792
|
+
|
|
13793
|
+
export type IsmpRouterGetResponse = { get: IsmpRouterGetRequest; values: Array<IsmpRouterStorageValue> };
|
|
13794
|
+
|
|
13795
|
+
export type IsmpRouterStorageValue = { key: Bytes; value?: Bytes | undefined };
|
|
13796
|
+
|
|
13797
|
+
export type IsmpMessagingTimeoutMessage =
|
|
13798
|
+
| { type: 'Post'; value: { requests: Array<IsmpRouterRequest>; timeoutProof: IsmpMessagingProof } }
|
|
13799
|
+
| { type: 'PostResponse'; value: { responses: Array<IsmpRouterPostResponse>; timeoutProof: IsmpMessagingProof } }
|
|
13800
|
+
| { type: 'Get'; value: { requests: Array<IsmpRouterRequest> } };
|
|
13801
|
+
|
|
13802
|
+
export type IsmpMessagingCreateConsensusState = {
|
|
13803
|
+
consensusState: Bytes;
|
|
13804
|
+
consensusClientId: FixedBytes<4>;
|
|
13805
|
+
consensusStateId: FixedBytes<4>;
|
|
13806
|
+
unbondingPeriod: bigint;
|
|
13807
|
+
challengePeriods: Array<[IsmpHostStateMachine, bigint]>;
|
|
13808
|
+
stateMachineCommitments: Array<[IsmpConsensusStateMachineId, IsmpMessagingStateCommitmentHeight]>;
|
|
13809
|
+
};
|
|
13810
|
+
|
|
13811
|
+
export type IsmpMessagingStateCommitmentHeight = { commitment: IsmpConsensusStateCommitment; height: bigint };
|
|
13812
|
+
|
|
13813
|
+
export type IsmpConsensusStateCommitment = { timestamp: bigint; overlayRoot?: H256 | undefined; stateRoot: H256 };
|
|
13814
|
+
|
|
13815
|
+
export type PalletIsmpUtilsUpdateConsensusState = {
|
|
13816
|
+
consensusStateId: FixedBytes<4>;
|
|
13817
|
+
unbondingPeriod?: bigint | undefined;
|
|
13818
|
+
challengePeriods: Array<[IsmpHostStateMachine, bigint]>;
|
|
13819
|
+
};
|
|
13820
|
+
|
|
13821
|
+
export type PalletIsmpUtilsFundMessageParams = { commitment: PalletIsmpUtilsMessageCommitment; amount: bigint };
|
|
13822
|
+
|
|
13823
|
+
export type PalletIsmpUtilsMessageCommitment = { type: 'Request'; value: H256 } | { type: 'Response'; value: H256 };
|
|
13824
|
+
|
|
13825
|
+
/**
|
|
13826
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13827
|
+
**/
|
|
13828
|
+
export type IsmpParachainCall =
|
|
13829
|
+
/**
|
|
13830
|
+
* This allows block builders submit parachain consensus proofs as inherents. If the
|
|
13831
|
+
* provided [`ConsensusMessage`] is not for a parachain, this call will fail.
|
|
13832
|
+
**/
|
|
13833
|
+
| { name: 'UpdateParachainConsensus'; params: { data: IsmpMessagingConsensusMessage } }
|
|
13834
|
+
/**
|
|
13835
|
+
* Add some new parachains to the parachains whitelist
|
|
13836
|
+
**/
|
|
13837
|
+
| { name: 'AddParachain'; params: { paraIds: Array<IsmpParachainParachainData> } }
|
|
13838
|
+
/**
|
|
13839
|
+
* Removes some parachains from the parachains whitelist
|
|
13840
|
+
**/
|
|
13841
|
+
| { name: 'RemoveParachain'; params: { paraIds: Array<number> } };
|
|
13842
|
+
|
|
13843
|
+
export type IsmpParachainCallLike =
|
|
13844
|
+
/**
|
|
13845
|
+
* This allows block builders submit parachain consensus proofs as inherents. If the
|
|
13846
|
+
* provided [`ConsensusMessage`] is not for a parachain, this call will fail.
|
|
13847
|
+
**/
|
|
13848
|
+
| { name: 'UpdateParachainConsensus'; params: { data: IsmpMessagingConsensusMessage } }
|
|
13849
|
+
/**
|
|
13850
|
+
* Add some new parachains to the parachains whitelist
|
|
13851
|
+
**/
|
|
13852
|
+
| { name: 'AddParachain'; params: { paraIds: Array<IsmpParachainParachainData> } }
|
|
13853
|
+
/**
|
|
13854
|
+
* Removes some parachains from the parachains whitelist
|
|
13855
|
+
**/
|
|
13856
|
+
| { name: 'RemoveParachain'; params: { paraIds: Array<number> } };
|
|
13857
|
+
|
|
13858
|
+
export type IsmpParachainParachainData = { id: number; slotDuration: bigint };
|
|
13859
|
+
|
|
13860
|
+
/**
|
|
13861
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13862
|
+
**/
|
|
13863
|
+
export type PalletTokenGatewayCall =
|
|
13864
|
+
/**
|
|
13865
|
+
* Teleports a registered asset
|
|
13866
|
+
* locks the asset and dispatches a request to token gateway on the destination
|
|
13867
|
+
**/
|
|
13868
|
+
| { name: 'Teleport'; params: { params: PalletTokenGatewayTeleportParams } }
|
|
13869
|
+
/**
|
|
13870
|
+
* Set the token gateway address for specified chains
|
|
13871
|
+
**/
|
|
13872
|
+
| { name: 'SetTokenGatewayAddresses'; params: { addresses: Array<[IsmpHostStateMachine, Bytes]> } }
|
|
13873
|
+
/**
|
|
13874
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13875
|
+
*
|
|
13876
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13877
|
+
* to create the asset.
|
|
13878
|
+
* `native` should be true if this asset originates from this chain
|
|
13879
|
+
**/
|
|
13880
|
+
| { name: 'CreateErc6160Asset'; params: { asset: PalletTokenGatewayAssetRegistration } }
|
|
13881
|
+
/**
|
|
13882
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13883
|
+
*
|
|
13884
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13885
|
+
* to create the asset.
|
|
13886
|
+
**/
|
|
13887
|
+
| { name: 'UpdateErc6160Asset'; params: { asset: TokenGatewayPrimitivesGatewayAssetUpdate } }
|
|
13888
|
+
/**
|
|
13889
|
+
* Update the precision for an existing asset
|
|
13890
|
+
**/
|
|
13891
|
+
| { name: 'UpdateAssetPrecision'; params: { update: PalletTokenGatewayPrecisionUpdate } };
|
|
13892
|
+
|
|
13893
|
+
export type PalletTokenGatewayCallLike =
|
|
13894
|
+
/**
|
|
13895
|
+
* Teleports a registered asset
|
|
13896
|
+
* locks the asset and dispatches a request to token gateway on the destination
|
|
13897
|
+
**/
|
|
13898
|
+
| { name: 'Teleport'; params: { params: PalletTokenGatewayTeleportParams } }
|
|
13899
|
+
/**
|
|
13900
|
+
* Set the token gateway address for specified chains
|
|
13901
|
+
**/
|
|
13902
|
+
| { name: 'SetTokenGatewayAddresses'; params: { addresses: Array<[IsmpHostStateMachine, BytesLike]> } }
|
|
13903
|
+
/**
|
|
13904
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13905
|
+
*
|
|
13906
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13907
|
+
* to create the asset.
|
|
13908
|
+
* `native` should be true if this asset originates from this chain
|
|
13909
|
+
**/
|
|
13910
|
+
| { name: 'CreateErc6160Asset'; params: { asset: PalletTokenGatewayAssetRegistration } }
|
|
13911
|
+
/**
|
|
13912
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13913
|
+
*
|
|
13914
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13915
|
+
* to create the asset.
|
|
13916
|
+
**/
|
|
13917
|
+
| { name: 'UpdateErc6160Asset'; params: { asset: TokenGatewayPrimitivesGatewayAssetUpdate } }
|
|
13918
|
+
/**
|
|
13919
|
+
* Update the precision for an existing asset
|
|
13920
|
+
**/
|
|
13921
|
+
| { name: 'UpdateAssetPrecision'; params: { update: PalletTokenGatewayPrecisionUpdate } };
|
|
13922
|
+
|
|
13923
|
+
export type PalletTokenGatewayTeleportParams = {
|
|
13924
|
+
assetId: number;
|
|
13925
|
+
destination: IsmpHostStateMachine;
|
|
13926
|
+
recepient: H256;
|
|
13927
|
+
amount: bigint;
|
|
13928
|
+
timeout: bigint;
|
|
13929
|
+
tokenGateway: Bytes;
|
|
13930
|
+
relayerFee: bigint;
|
|
13931
|
+
callData?: Bytes | undefined;
|
|
13932
|
+
redeem: boolean;
|
|
13933
|
+
};
|
|
13934
|
+
|
|
13935
|
+
export type PalletTokenGatewayAssetRegistration = {
|
|
13936
|
+
localId: number;
|
|
13937
|
+
reg: TokenGatewayPrimitivesGatewayAssetRegistration;
|
|
13938
|
+
native: boolean;
|
|
13939
|
+
precision: Array<[IsmpHostStateMachine, number]>;
|
|
13940
|
+
};
|
|
13941
|
+
|
|
13942
|
+
export type TokenGatewayPrimitivesGatewayAssetRegistration = {
|
|
13943
|
+
name: Bytes;
|
|
13944
|
+
symbol: Bytes;
|
|
13945
|
+
chains: Array<IsmpHostStateMachine>;
|
|
13946
|
+
minimumBalance?: bigint | undefined;
|
|
13947
|
+
};
|
|
13948
|
+
|
|
13949
|
+
export type TokenGatewayPrimitivesGatewayAssetUpdate = {
|
|
13950
|
+
assetId: H256;
|
|
13951
|
+
addChains: Array<IsmpHostStateMachine>;
|
|
13952
|
+
removeChains: Array<IsmpHostStateMachine>;
|
|
13953
|
+
newAdmins: Array<[IsmpHostStateMachine, H160]>;
|
|
13954
|
+
};
|
|
13955
|
+
|
|
13956
|
+
export type PalletTokenGatewayPrecisionUpdate = { assetId: number; precisions: Array<[IsmpHostStateMachine, number]> };
|
|
13957
|
+
|
|
13605
13958
|
/**
|
|
13606
13959
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13607
13960
|
**/
|
|
@@ -14524,9 +14877,8 @@ export type PalletHsmEvent =
|
|
|
14524
14877
|
*
|
|
14525
14878
|
* Parameters:
|
|
14526
14879
|
* - `asset_id`: The ID of the asset removed from collaterals
|
|
14527
|
-
* - `amount`: The amount of the asset that was returned (should be zero)
|
|
14528
14880
|
**/
|
|
14529
|
-
| { name: 'CollateralRemoved'; data: { assetId: number
|
|
14881
|
+
| { name: 'CollateralRemoved'; data: { assetId: number } }
|
|
14530
14882
|
/**
|
|
14531
14883
|
* A collateral asset was updated
|
|
14532
14884
|
*
|
|
@@ -15477,6 +15829,356 @@ export type PalletSessionEvent =
|
|
|
15477
15829
|
**/
|
|
15478
15830
|
{ name: 'NewSession'; data: { sessionIndex: number } };
|
|
15479
15831
|
|
|
15832
|
+
/**
|
|
15833
|
+
* Pallet Events
|
|
15834
|
+
**/
|
|
15835
|
+
export type PalletIsmpEvent =
|
|
15836
|
+
/**
|
|
15837
|
+
* Emitted when a state machine is successfully updated to a new height
|
|
15838
|
+
**/
|
|
15839
|
+
| {
|
|
15840
|
+
name: 'StateMachineUpdated';
|
|
15841
|
+
data: {
|
|
15842
|
+
/**
|
|
15843
|
+
* State machine identifier
|
|
15844
|
+
**/
|
|
15845
|
+
stateMachineId: IsmpConsensusStateMachineId;
|
|
15846
|
+
|
|
15847
|
+
/**
|
|
15848
|
+
* State machine latest height
|
|
15849
|
+
**/
|
|
15850
|
+
latestHeight: bigint;
|
|
15851
|
+
};
|
|
15852
|
+
}
|
|
15853
|
+
/**
|
|
15854
|
+
* Emitted when a state commitment is vetoed by a fisherman
|
|
15855
|
+
**/
|
|
15856
|
+
| {
|
|
15857
|
+
name: 'StateCommitmentVetoed';
|
|
15858
|
+
data: {
|
|
15859
|
+
/**
|
|
15860
|
+
* State machine height
|
|
15861
|
+
**/
|
|
15862
|
+
height: IsmpConsensusStateMachineHeight;
|
|
15863
|
+
|
|
15864
|
+
/**
|
|
15865
|
+
* responsible fisherman
|
|
15866
|
+
**/
|
|
15867
|
+
fisherman: Bytes;
|
|
15868
|
+
};
|
|
15869
|
+
}
|
|
15870
|
+
/**
|
|
15871
|
+
* Indicates that a consensus client has been created
|
|
15872
|
+
**/
|
|
15873
|
+
| {
|
|
15874
|
+
name: 'ConsensusClientCreated';
|
|
15875
|
+
data: {
|
|
15876
|
+
/**
|
|
15877
|
+
* Consensus client id
|
|
15878
|
+
**/
|
|
15879
|
+
consensusClientId: FixedBytes<4>;
|
|
15880
|
+
};
|
|
15881
|
+
}
|
|
15882
|
+
/**
|
|
15883
|
+
* Indicates that a consensus client has been created
|
|
15884
|
+
**/
|
|
15885
|
+
| {
|
|
15886
|
+
name: 'ConsensusClientFrozen';
|
|
15887
|
+
data: {
|
|
15888
|
+
/**
|
|
15889
|
+
* Consensus client id
|
|
15890
|
+
**/
|
|
15891
|
+
consensusClientId: FixedBytes<4>;
|
|
15892
|
+
};
|
|
15893
|
+
}
|
|
15894
|
+
/**
|
|
15895
|
+
* An Outgoing Response has been deposited
|
|
15896
|
+
**/
|
|
15897
|
+
| {
|
|
15898
|
+
name: 'Response';
|
|
15899
|
+
data: {
|
|
15900
|
+
/**
|
|
15901
|
+
* Chain that this response will be routed to
|
|
15902
|
+
**/
|
|
15903
|
+
destChain: IsmpHostStateMachine;
|
|
15904
|
+
|
|
15905
|
+
/**
|
|
15906
|
+
* Source Chain for this response
|
|
15907
|
+
**/
|
|
15908
|
+
sourceChain: IsmpHostStateMachine;
|
|
15909
|
+
|
|
15910
|
+
/**
|
|
15911
|
+
* Nonce for the request which this response is for
|
|
15912
|
+
**/
|
|
15913
|
+
requestNonce: bigint;
|
|
15914
|
+
|
|
15915
|
+
/**
|
|
15916
|
+
* Response Commitment
|
|
15917
|
+
**/
|
|
15918
|
+
commitment: H256;
|
|
15919
|
+
|
|
15920
|
+
/**
|
|
15921
|
+
* Request commitment
|
|
15922
|
+
**/
|
|
15923
|
+
reqCommitment: H256;
|
|
15924
|
+
};
|
|
15925
|
+
}
|
|
15926
|
+
/**
|
|
15927
|
+
* An Outgoing Request has been deposited
|
|
15928
|
+
**/
|
|
15929
|
+
| {
|
|
15930
|
+
name: 'Request';
|
|
15931
|
+
data: {
|
|
15932
|
+
/**
|
|
15933
|
+
* Chain that this request will be routed to
|
|
15934
|
+
**/
|
|
15935
|
+
destChain: IsmpHostStateMachine;
|
|
15936
|
+
|
|
15937
|
+
/**
|
|
15938
|
+
* Source Chain for request
|
|
15939
|
+
**/
|
|
15940
|
+
sourceChain: IsmpHostStateMachine;
|
|
15941
|
+
|
|
15942
|
+
/**
|
|
15943
|
+
* Request nonce
|
|
15944
|
+
**/
|
|
15945
|
+
requestNonce: bigint;
|
|
15946
|
+
|
|
15947
|
+
/**
|
|
15948
|
+
* Commitment
|
|
15949
|
+
**/
|
|
15950
|
+
commitment: H256;
|
|
15951
|
+
};
|
|
15952
|
+
}
|
|
15953
|
+
/**
|
|
15954
|
+
* Some errors handling some ismp messages
|
|
15955
|
+
**/
|
|
15956
|
+
| {
|
|
15957
|
+
name: 'Errors';
|
|
15958
|
+
data: {
|
|
15959
|
+
/**
|
|
15960
|
+
* Message handling errors
|
|
15961
|
+
**/
|
|
15962
|
+
errors: Array<PalletIsmpErrorsHandlingError>;
|
|
15963
|
+
};
|
|
15964
|
+
}
|
|
15965
|
+
/**
|
|
15966
|
+
* Post Request Handled
|
|
15967
|
+
**/
|
|
15968
|
+
| { name: 'PostRequestHandled'; data: IsmpEventsRequestResponseHandled }
|
|
15969
|
+
/**
|
|
15970
|
+
* Post Response Handled
|
|
15971
|
+
**/
|
|
15972
|
+
| { name: 'PostResponseHandled'; data: IsmpEventsRequestResponseHandled }
|
|
15973
|
+
/**
|
|
15974
|
+
* Get Response Handled
|
|
15975
|
+
**/
|
|
15976
|
+
| { name: 'GetRequestHandled'; data: IsmpEventsRequestResponseHandled }
|
|
15977
|
+
/**
|
|
15978
|
+
* Post request timeout handled
|
|
15979
|
+
**/
|
|
15980
|
+
| { name: 'PostRequestTimeoutHandled'; data: IsmpEventsTimeoutHandled }
|
|
15981
|
+
/**
|
|
15982
|
+
* Post response timeout handled
|
|
15983
|
+
**/
|
|
15984
|
+
| { name: 'PostResponseTimeoutHandled'; data: IsmpEventsTimeoutHandled }
|
|
15985
|
+
/**
|
|
15986
|
+
* Get request timeout handled
|
|
15987
|
+
**/
|
|
15988
|
+
| { name: 'GetRequestTimeoutHandled'; data: IsmpEventsTimeoutHandled };
|
|
15989
|
+
|
|
15990
|
+
export type PalletIsmpErrorsHandlingError = { message: Bytes };
|
|
15991
|
+
|
|
15992
|
+
export type IsmpEventsRequestResponseHandled = { commitment: H256; relayer: Bytes };
|
|
15993
|
+
|
|
15994
|
+
export type IsmpEventsTimeoutHandled = { commitment: H256; source: IsmpHostStateMachine; dest: IsmpHostStateMachine };
|
|
15995
|
+
|
|
15996
|
+
/**
|
|
15997
|
+
* Events emitted by this pallet
|
|
15998
|
+
**/
|
|
15999
|
+
export type IsmpParachainEvent =
|
|
16000
|
+
/**
|
|
16001
|
+
* Parachains with the `para_ids` have been added to the whitelist
|
|
16002
|
+
**/
|
|
16003
|
+
| {
|
|
16004
|
+
name: 'ParachainsAdded';
|
|
16005
|
+
data: {
|
|
16006
|
+
/**
|
|
16007
|
+
* The parachains in question
|
|
16008
|
+
**/
|
|
16009
|
+
paraIds: Array<IsmpParachainParachainData>;
|
|
16010
|
+
};
|
|
16011
|
+
}
|
|
16012
|
+
/**
|
|
16013
|
+
* Parachains with the `para_ids` have been removed from the whitelist
|
|
16014
|
+
**/
|
|
16015
|
+
| {
|
|
16016
|
+
name: 'ParachainsRemoved';
|
|
16017
|
+
data: {
|
|
16018
|
+
/**
|
|
16019
|
+
* The parachains in question
|
|
16020
|
+
**/
|
|
16021
|
+
paraIds: Array<number>;
|
|
16022
|
+
};
|
|
16023
|
+
};
|
|
16024
|
+
|
|
16025
|
+
/**
|
|
16026
|
+
* The `Event` enum of this pallet
|
|
16027
|
+
**/
|
|
16028
|
+
export type PalletHyperbridgeEvent =
|
|
16029
|
+
/**
|
|
16030
|
+
* Hyperbridge governance has now updated it's host params on this chain.
|
|
16031
|
+
**/
|
|
16032
|
+
| {
|
|
16033
|
+
name: 'HostParamsUpdated';
|
|
16034
|
+
data: {
|
|
16035
|
+
/**
|
|
16036
|
+
* The old host params
|
|
16037
|
+
**/
|
|
16038
|
+
old: PalletHyperbridgeVersionedHostParams;
|
|
16039
|
+
|
|
16040
|
+
/**
|
|
16041
|
+
* The new host params
|
|
16042
|
+
**/
|
|
16043
|
+
new: PalletHyperbridgeVersionedHostParams;
|
|
16044
|
+
};
|
|
16045
|
+
}
|
|
16046
|
+
/**
|
|
16047
|
+
* A relayer has withdrawn some fees
|
|
16048
|
+
**/
|
|
16049
|
+
| {
|
|
16050
|
+
name: 'RelayerFeeWithdrawn';
|
|
16051
|
+
data: {
|
|
16052
|
+
/**
|
|
16053
|
+
* The amount that was withdrawn
|
|
16054
|
+
**/
|
|
16055
|
+
amount: bigint;
|
|
16056
|
+
|
|
16057
|
+
/**
|
|
16058
|
+
* The withdrawal beneficiary
|
|
16059
|
+
**/
|
|
16060
|
+
account: AccountId32;
|
|
16061
|
+
};
|
|
16062
|
+
}
|
|
16063
|
+
/**
|
|
16064
|
+
* Hyperbridge has withdrawn it's protocol revenue
|
|
16065
|
+
**/
|
|
16066
|
+
| {
|
|
16067
|
+
name: 'ProtocolRevenueWithdrawn';
|
|
16068
|
+
data: {
|
|
16069
|
+
/**
|
|
16070
|
+
* The amount that was withdrawn
|
|
16071
|
+
**/
|
|
16072
|
+
amount: bigint;
|
|
16073
|
+
|
|
16074
|
+
/**
|
|
16075
|
+
* The withdrawal beneficiary
|
|
16076
|
+
**/
|
|
16077
|
+
account: AccountId32;
|
|
16078
|
+
};
|
|
16079
|
+
};
|
|
16080
|
+
|
|
16081
|
+
export type PalletHyperbridgeVersionedHostParams = { type: 'V1'; value: PalletHyperbridgeSubstrateHostParams };
|
|
16082
|
+
|
|
16083
|
+
export type PalletHyperbridgeSubstrateHostParams = {
|
|
16084
|
+
defaultPerByteFee: bigint;
|
|
16085
|
+
perByteFees: Array<[IsmpHostStateMachine, bigint]>;
|
|
16086
|
+
assetRegistrationFee: bigint;
|
|
16087
|
+
};
|
|
16088
|
+
|
|
16089
|
+
/**
|
|
16090
|
+
* Pallet events that functions in this pallet can emit.
|
|
16091
|
+
**/
|
|
16092
|
+
export type PalletTokenGatewayEvent =
|
|
16093
|
+
/**
|
|
16094
|
+
* An asset has been teleported
|
|
16095
|
+
**/
|
|
16096
|
+
| {
|
|
16097
|
+
name: 'AssetTeleported';
|
|
16098
|
+
data: {
|
|
16099
|
+
/**
|
|
16100
|
+
* Source account
|
|
16101
|
+
**/
|
|
16102
|
+
from: AccountId32;
|
|
16103
|
+
|
|
16104
|
+
/**
|
|
16105
|
+
* beneficiary account on destination
|
|
16106
|
+
**/
|
|
16107
|
+
to: H256;
|
|
16108
|
+
|
|
16109
|
+
/**
|
|
16110
|
+
* Amount transferred
|
|
16111
|
+
**/
|
|
16112
|
+
amount: bigint;
|
|
16113
|
+
|
|
16114
|
+
/**
|
|
16115
|
+
* Destination chain
|
|
16116
|
+
**/
|
|
16117
|
+
dest: IsmpHostStateMachine;
|
|
16118
|
+
|
|
16119
|
+
/**
|
|
16120
|
+
* Request commitment
|
|
16121
|
+
**/
|
|
16122
|
+
commitment: H256;
|
|
16123
|
+
};
|
|
16124
|
+
}
|
|
16125
|
+
/**
|
|
16126
|
+
* An asset has been received and transferred to the beneficiary's account
|
|
16127
|
+
**/
|
|
16128
|
+
| {
|
|
16129
|
+
name: 'AssetReceived';
|
|
16130
|
+
data: {
|
|
16131
|
+
/**
|
|
16132
|
+
* beneficiary account on relaychain
|
|
16133
|
+
**/
|
|
16134
|
+
beneficiary: AccountId32;
|
|
16135
|
+
|
|
16136
|
+
/**
|
|
16137
|
+
* Amount transferred
|
|
16138
|
+
**/
|
|
16139
|
+
amount: bigint;
|
|
16140
|
+
|
|
16141
|
+
/**
|
|
16142
|
+
* Destination chain
|
|
16143
|
+
**/
|
|
16144
|
+
source: IsmpHostStateMachine;
|
|
16145
|
+
};
|
|
16146
|
+
}
|
|
16147
|
+
/**
|
|
16148
|
+
* An asset has been refunded and transferred to the beneficiary's account
|
|
16149
|
+
**/
|
|
16150
|
+
| {
|
|
16151
|
+
name: 'AssetRefunded';
|
|
16152
|
+
data: {
|
|
16153
|
+
/**
|
|
16154
|
+
* beneficiary account on relaychain
|
|
16155
|
+
**/
|
|
16156
|
+
beneficiary: AccountId32;
|
|
16157
|
+
|
|
16158
|
+
/**
|
|
16159
|
+
* Amount transferred
|
|
16160
|
+
**/
|
|
16161
|
+
amount: bigint;
|
|
16162
|
+
|
|
16163
|
+
/**
|
|
16164
|
+
* Destination chain
|
|
16165
|
+
**/
|
|
16166
|
+
source: IsmpHostStateMachine;
|
|
16167
|
+
};
|
|
16168
|
+
}
|
|
16169
|
+
/**
|
|
16170
|
+
* ERC6160 asset creation request dispatched to hyperbridge
|
|
16171
|
+
**/
|
|
16172
|
+
| {
|
|
16173
|
+
name: 'Erc6160AssetRegistrationDispatched';
|
|
16174
|
+
data: {
|
|
16175
|
+
/**
|
|
16176
|
+
* Request commitment
|
|
16177
|
+
**/
|
|
16178
|
+
commitment: H256;
|
|
16179
|
+
};
|
|
16180
|
+
};
|
|
16181
|
+
|
|
15480
16182
|
/**
|
|
15481
16183
|
* The `Event` enum of this pallet
|
|
15482
16184
|
**/
|
|
@@ -16612,6 +17314,20 @@ export type PalletWhitelistError =
|
|
|
16612
17314
|
**/
|
|
16613
17315
|
| 'CallAlreadyWhitelisted';
|
|
16614
17316
|
|
|
17317
|
+
/**
|
|
17318
|
+
* The `Error` enum of this pallet.
|
|
17319
|
+
**/
|
|
17320
|
+
export type PalletDispatcherError =
|
|
17321
|
+
/**
|
|
17322
|
+
* The EVM call execution failed. This happens when the EVM returns an exit reason
|
|
17323
|
+
* other than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
17324
|
+
**/
|
|
17325
|
+
| 'EvmCallFailed'
|
|
17326
|
+
/**
|
|
17327
|
+
* The provided call is not an EVM call. This extrinsic only accepts `pallet_evm::Call::call`.
|
|
17328
|
+
**/
|
|
17329
|
+
| 'NotEvmCall';
|
|
17330
|
+
|
|
16615
17331
|
export type PalletAssetRegistryAssetDetails = {
|
|
16616
17332
|
name?: Bytes | undefined;
|
|
16617
17333
|
assetType: PalletAssetRegistryAssetType;
|
|
@@ -19025,6 +19741,77 @@ export type PalletSessionError =
|
|
|
19025
19741
|
|
|
19026
19742
|
export type SpConsensusSlotsSlot = bigint;
|
|
19027
19743
|
|
|
19744
|
+
/**
|
|
19745
|
+
* Pallet errors
|
|
19746
|
+
**/
|
|
19747
|
+
export type PalletIsmpError =
|
|
19748
|
+
/**
|
|
19749
|
+
* Invalid ISMP message
|
|
19750
|
+
**/
|
|
19751
|
+
| 'InvalidMessage'
|
|
19752
|
+
/**
|
|
19753
|
+
* Requested message was not found
|
|
19754
|
+
**/
|
|
19755
|
+
| 'MessageNotFound'
|
|
19756
|
+
/**
|
|
19757
|
+
* Encountered an error while creating the consensus client.
|
|
19758
|
+
**/
|
|
19759
|
+
| 'ConsensusClientCreationFailed'
|
|
19760
|
+
/**
|
|
19761
|
+
* Couldn't update unbonding period
|
|
19762
|
+
**/
|
|
19763
|
+
| 'UnbondingPeriodUpdateFailed'
|
|
19764
|
+
/**
|
|
19765
|
+
* Couldn't update challenge period
|
|
19766
|
+
**/
|
|
19767
|
+
| 'ChallengePeriodUpdateFailed';
|
|
19768
|
+
|
|
19769
|
+
/**
|
|
19770
|
+
* The `Error` enum of this pallet.
|
|
19771
|
+
**/
|
|
19772
|
+
export type PalletHyperbridgeError = null;
|
|
19773
|
+
|
|
19774
|
+
/**
|
|
19775
|
+
* Errors that can be returned by this pallet.
|
|
19776
|
+
**/
|
|
19777
|
+
export type PalletTokenGatewayError =
|
|
19778
|
+
/**
|
|
19779
|
+
* A asset that has not been registered
|
|
19780
|
+
**/
|
|
19781
|
+
| 'UnregisteredAsset'
|
|
19782
|
+
/**
|
|
19783
|
+
* Error while teleporting asset
|
|
19784
|
+
**/
|
|
19785
|
+
| 'AssetTeleportError'
|
|
19786
|
+
/**
|
|
19787
|
+
* Coprocessor was not configured in the runtime
|
|
19788
|
+
**/
|
|
19789
|
+
| 'CoprocessorNotConfigured'
|
|
19790
|
+
/**
|
|
19791
|
+
* Asset or update Dispatch Error
|
|
19792
|
+
**/
|
|
19793
|
+
| 'DispatchError'
|
|
19794
|
+
/**
|
|
19795
|
+
* Asset Id creation failed
|
|
19796
|
+
**/
|
|
19797
|
+
| 'AssetCreationError'
|
|
19798
|
+
/**
|
|
19799
|
+
* Asset decimals not found
|
|
19800
|
+
**/
|
|
19801
|
+
| 'AssetDecimalsNotFound'
|
|
19802
|
+
/**
|
|
19803
|
+
* Protocol Params have not been initialized
|
|
19804
|
+
**/
|
|
19805
|
+
| 'NotInitialized'
|
|
19806
|
+
/**
|
|
19807
|
+
* Unknown Asset
|
|
19808
|
+
**/
|
|
19809
|
+
| 'UnknownAsset'
|
|
19810
|
+
/**
|
|
19811
|
+
* Only root or asset owner can update asset
|
|
19812
|
+
**/
|
|
19813
|
+
| 'NotAssetOwner';
|
|
19814
|
+
|
|
19028
19815
|
export type PalletEmaOracleOracleEntry = {
|
|
19029
19816
|
price: HydraDxMathRatio;
|
|
19030
19817
|
volume: HydradxTraitsOracleVolume;
|
|
@@ -19225,6 +20012,26 @@ export type HydradxRuntimeEvmAaveTradeExecutorPoolData = {
|
|
|
19225
20012
|
liqudityOut: bigint;
|
|
19226
20013
|
};
|
|
19227
20014
|
|
|
20015
|
+
export type IsmpEventsEvent =
|
|
20016
|
+
| { type: 'StateMachineUpdated'; value: IsmpEventsStateMachineUpdated }
|
|
20017
|
+
| { type: 'StateCommitmentVetoed'; value: IsmpEventsStateCommitmentVetoed }
|
|
20018
|
+
| { type: 'PostRequest'; value: IsmpRouterPostRequest }
|
|
20019
|
+
| { type: 'PostResponse'; value: IsmpRouterPostResponse }
|
|
20020
|
+
| { type: 'GetResponse'; value: IsmpRouterGetResponse }
|
|
20021
|
+
| { type: 'GetRequest'; value: IsmpRouterGetRequest }
|
|
20022
|
+
| { type: 'PostRequestHandled'; value: IsmpEventsRequestResponseHandled }
|
|
20023
|
+
| { type: 'PostResponseHandled'; value: IsmpEventsRequestResponseHandled }
|
|
20024
|
+
| { type: 'PostRequestTimeoutHandled'; value: IsmpEventsTimeoutHandled }
|
|
20025
|
+
| { type: 'PostResponseTimeoutHandled'; value: IsmpEventsTimeoutHandled }
|
|
20026
|
+
| { type: 'GetRequestHandled'; value: IsmpEventsRequestResponseHandled }
|
|
20027
|
+
| { type: 'GetRequestTimeoutHandled'; value: IsmpEventsTimeoutHandled };
|
|
20028
|
+
|
|
20029
|
+
export type IsmpEventsStateMachineUpdated = { stateMachineId: IsmpConsensusStateMachineId; latestHeight: bigint };
|
|
20030
|
+
|
|
20031
|
+
export type IsmpEventsStateCommitmentVetoed = { height: IsmpConsensusStateMachineHeight; fisherman: Bytes };
|
|
20032
|
+
|
|
20033
|
+
export type CumulusPalletParachainSystemRelayChainState = { number: number; stateRoot: H256 };
|
|
20034
|
+
|
|
19228
20035
|
export type HydradxRuntimeRuntimeError =
|
|
19229
20036
|
| { pallet: 'System'; palletError: FrameSystemError }
|
|
19230
20037
|
| { pallet: 'Balances'; palletError: PalletBalancesError }
|
|
@@ -19242,6 +20049,7 @@ export type HydradxRuntimeRuntimeError =
|
|
|
19242
20049
|
| { pallet: 'ConvictionVoting'; palletError: PalletConvictionVotingError }
|
|
19243
20050
|
| { pallet: 'Referenda'; palletError: PalletReferendaError }
|
|
19244
20051
|
| { pallet: 'Whitelist'; palletError: PalletWhitelistError }
|
|
20052
|
+
| { pallet: 'Dispatcher'; palletError: PalletDispatcherError }
|
|
19245
20053
|
| { pallet: 'AssetRegistry'; palletError: PalletAssetRegistryError }
|
|
19246
20054
|
| { pallet: 'Claims'; palletError: PalletClaimsError }
|
|
19247
20055
|
| { pallet: 'CollatorRewards'; palletError: PalletCollatorRewardsError }
|
|
@@ -19283,5 +20091,8 @@ export type HydradxRuntimeRuntimeError =
|
|
|
19283
20091
|
| { pallet: 'UnknownTokens'; palletError: OrmlUnknownTokensModuleError }
|
|
19284
20092
|
| { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
|
|
19285
20093
|
| { pallet: 'Session'; palletError: PalletSessionError }
|
|
20094
|
+
| { pallet: 'Ismp'; palletError: PalletIsmpError }
|
|
20095
|
+
| { pallet: 'Hyperbridge'; palletError: PalletHyperbridgeError }
|
|
20096
|
+
| { pallet: 'TokenGateway'; palletError: PalletTokenGatewayError }
|
|
19286
20097
|
| { pallet: 'EmaOracle'; palletError: PalletEmaOracleError }
|
|
19287
20098
|
| { pallet: 'Broadcast'; palletError: PalletBroadcastError };
|