@dedot/chaintypes 0.134.0 → 0.136.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/astar/consts.d.ts +63 -0
- package/astar/errors.d.ts +74 -0
- package/astar/events.d.ts +73 -0
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +48 -0
- package/astar/tx.d.ts +316 -0
- package/astar/types.d.ts +371 -3
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-people/consts.d.ts +38 -1
- package/kusama-people/errors.d.ts +18 -12
- package/kusama-people/events.d.ts +110 -2
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +36 -6
- package/kusama-people/runtime.d.ts +1 -1
- package/kusama-people/tx.d.ts +204 -0
- package/kusama-people/types.d.ts +315 -24
- package/moonbeam/consts.d.ts +125 -0
- package/moonbeam/errors.d.ts +219 -50
- package/moonbeam/events.d.ts +331 -0
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +267 -17
- package/moonbeam/runtime.d.ts +117 -1
- package/moonbeam/tx.d.ts +564 -88
- package/moonbeam/types.d.ts +1376 -239
- package/package.json +2 -2
package/moonbeam/types.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ import type {
|
|
|
16
16
|
AccountId20Like,
|
|
17
17
|
Data,
|
|
18
18
|
U256,
|
|
19
|
+
Header,
|
|
19
20
|
FixedI64,
|
|
20
21
|
Era,
|
|
21
22
|
UncheckedExtrinsic,
|
|
22
|
-
Header,
|
|
23
23
|
} from 'dedot/codecs';
|
|
24
24
|
|
|
25
25
|
export type FrameSystemAccountInfo = {
|
|
@@ -89,7 +89,11 @@ export type MoonbeamRuntimeRuntimeEvent =
|
|
|
89
89
|
| { pallet: 'XcmWeightTrader'; palletEvent: PalletXcmWeightTraderEvent }
|
|
90
90
|
| { pallet: 'EmergencyParaXcm'; palletEvent: PalletEmergencyParaXcmEvent }
|
|
91
91
|
| { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent002 }
|
|
92
|
-
| { pallet: 'Randomness'; palletEvent: PalletRandomnessEvent }
|
|
92
|
+
| { pallet: 'Randomness'; palletEvent: PalletRandomnessEvent }
|
|
93
|
+
| { pallet: 'BridgeKusamaGrandpa'; palletEvent: PalletBridgeGrandpaEvent }
|
|
94
|
+
| { pallet: 'BridgeKusamaParachains'; palletEvent: PalletBridgeParachainsEvent }
|
|
95
|
+
| { pallet: 'BridgeKusamaMessages'; palletEvent: PalletBridgeMessagesEvent }
|
|
96
|
+
| { pallet: 'BridgeXcmOverMoonriver'; palletEvent: PalletXcmBridgeHubEvent };
|
|
93
97
|
|
|
94
98
|
/**
|
|
95
99
|
* Event for the System pallet.
|
|
@@ -1450,7 +1454,11 @@ export type MoonbeamRuntimeRuntimeCall =
|
|
|
1450
1454
|
| { pallet: 'XcmWeightTrader'; palletCall: PalletXcmWeightTraderCall }
|
|
1451
1455
|
| { pallet: 'EmergencyParaXcm'; palletCall: PalletEmergencyParaXcmCall }
|
|
1452
1456
|
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCall }
|
|
1453
|
-
| { pallet: 'Randomness'; palletCall: PalletRandomnessCall }
|
|
1457
|
+
| { pallet: 'Randomness'; palletCall: PalletRandomnessCall }
|
|
1458
|
+
| { pallet: 'BridgeKusamaGrandpa'; palletCall: PalletBridgeGrandpaCall }
|
|
1459
|
+
| { pallet: 'BridgeKusamaParachains'; palletCall: PalletBridgeParachainsCall }
|
|
1460
|
+
| { pallet: 'BridgeKusamaMessages'; palletCall: PalletBridgeMessagesCall }
|
|
1461
|
+
| { pallet: 'BridgeXcmOverMoonriver'; palletCall: PalletXcmBridgeHubCall };
|
|
1454
1462
|
|
|
1455
1463
|
export type MoonbeamRuntimeRuntimeCallLike =
|
|
1456
1464
|
| { pallet: 'System'; palletCall: FrameSystemCallLike }
|
|
@@ -1491,7 +1499,11 @@ export type MoonbeamRuntimeRuntimeCallLike =
|
|
|
1491
1499
|
| { pallet: 'XcmWeightTrader'; palletCall: PalletXcmWeightTraderCallLike }
|
|
1492
1500
|
| { pallet: 'EmergencyParaXcm'; palletCall: PalletEmergencyParaXcmCallLike }
|
|
1493
1501
|
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike }
|
|
1494
|
-
| { pallet: 'Randomness'; palletCall: PalletRandomnessCallLike }
|
|
1502
|
+
| { pallet: 'Randomness'; palletCall: PalletRandomnessCallLike }
|
|
1503
|
+
| { pallet: 'BridgeKusamaGrandpa'; palletCall: PalletBridgeGrandpaCallLike }
|
|
1504
|
+
| { pallet: 'BridgeKusamaParachains'; palletCall: PalletBridgeParachainsCallLike }
|
|
1505
|
+
| { pallet: 'BridgeKusamaMessages'; palletCall: PalletBridgeMessagesCallLike }
|
|
1506
|
+
| { pallet: 'BridgeXcmOverMoonriver'; palletCall: PalletXcmBridgeHubCallLike };
|
|
1495
1507
|
|
|
1496
1508
|
/**
|
|
1497
1509
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -3910,21 +3922,9 @@ export type PalletMultisigCallLike =
|
|
|
3910
3922
|
/**
|
|
3911
3923
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3912
3924
|
**/
|
|
3913
|
-
export type PalletMoonbeamLazyMigrationsCall =
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
| { name: 'StartForeignAssetsMigration'; params: { assetId: bigint } }
|
|
3917
|
-
| { name: 'MigrateForeignAssetBalances'; params: { limit: number } }
|
|
3918
|
-
| { name: 'MigrateForeignAssetApprovals'; params: { limit: number } }
|
|
3919
|
-
| { name: 'FinishForeignAssetsMigration' };
|
|
3920
|
-
|
|
3921
|
-
export type PalletMoonbeamLazyMigrationsCallLike =
|
|
3922
|
-
| { name: 'CreateContractMetadata'; params: { address: H160 } }
|
|
3923
|
-
| { name: 'ApproveAssetsToMigrate'; params: { assets: Array<bigint> } }
|
|
3924
|
-
| { name: 'StartForeignAssetsMigration'; params: { assetId: bigint } }
|
|
3925
|
-
| { name: 'MigrateForeignAssetBalances'; params: { limit: number } }
|
|
3926
|
-
| { name: 'MigrateForeignAssetApprovals'; params: { limit: number } }
|
|
3927
|
-
| { name: 'FinishForeignAssetsMigration' };
|
|
3925
|
+
export type PalletMoonbeamLazyMigrationsCall = { name: 'CreateContractMetadata'; params: { address: H160 } };
|
|
3926
|
+
|
|
3927
|
+
export type PalletMoonbeamLazyMigrationsCallLike = { name: 'CreateContractMetadata'; params: { address: H160 } };
|
|
3928
3928
|
|
|
3929
3929
|
/**
|
|
3930
3930
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8744,186 +8744,787 @@ export type PalletRandomnessCallLike =
|
|
|
8744
8744
|
**/
|
|
8745
8745
|
'SetBabeRandomnessResults';
|
|
8746
8746
|
|
|
8747
|
-
export type SpRuntimeBlakeTwo256 = {};
|
|
8748
|
-
|
|
8749
|
-
export type PalletConvictionVotingTally = { ayes: bigint; nays: bigint; support: bigint };
|
|
8750
|
-
|
|
8751
|
-
/**
|
|
8752
|
-
* The `Event` enum of this pallet
|
|
8753
|
-
**/
|
|
8754
|
-
export type PalletWhitelistEvent =
|
|
8755
|
-
| { name: 'CallWhitelisted'; data: { callHash: H256 } }
|
|
8756
|
-
| { name: 'WhitelistedCallRemoved'; data: { callHash: H256 } }
|
|
8757
|
-
| {
|
|
8758
|
-
name: 'WhitelistedCallDispatched';
|
|
8759
|
-
data: {
|
|
8760
|
-
callHash: H256;
|
|
8761
|
-
result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>;
|
|
8762
|
-
};
|
|
8763
|
-
};
|
|
8764
|
-
|
|
8765
|
-
export type FrameSupportDispatchPostDispatchInfo = {
|
|
8766
|
-
actualWeight?: SpWeightsWeightV2Weight | undefined;
|
|
8767
|
-
paysFee: FrameSupportDispatchPays;
|
|
8768
|
-
};
|
|
8769
|
-
|
|
8770
|
-
export type SpRuntimeDispatchErrorWithPostInfo = {
|
|
8771
|
-
postInfo: FrameSupportDispatchPostDispatchInfo;
|
|
8772
|
-
error: DispatchError;
|
|
8773
|
-
};
|
|
8774
|
-
|
|
8775
8747
|
/**
|
|
8776
|
-
*
|
|
8748
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8777
8749
|
**/
|
|
8778
|
-
export type
|
|
8779
|
-
/**
|
|
8780
|
-
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
|
8781
|
-
* `MemberCount`).
|
|
8782
|
-
**/
|
|
8783
|
-
| { name: 'Proposed'; data: { account: AccountId20; proposalIndex: number; proposalHash: H256; threshold: number } }
|
|
8750
|
+
export type PalletBridgeGrandpaCall =
|
|
8784
8751
|
/**
|
|
8785
|
-
*
|
|
8786
|
-
*
|
|
8752
|
+
* This call is deprecated and will be removed around May 2024. Use the
|
|
8753
|
+
* `submit_finality_proof_ex` instead. Semantically, this call is an equivalent of the
|
|
8754
|
+
* `submit_finality_proof_ex` call without current authority set id check.
|
|
8787
8755
|
**/
|
|
8788
|
-
| {
|
|
8756
|
+
| {
|
|
8757
|
+
name: 'SubmitFinalityProof';
|
|
8758
|
+
params: { finalityTarget: Header; justification: BpHeaderChainJustificationGrandpaJustification };
|
|
8759
|
+
}
|
|
8789
8760
|
/**
|
|
8790
|
-
*
|
|
8761
|
+
* Bootstrap the bridge pallet with an initial header and authority set from which to sync.
|
|
8762
|
+
*
|
|
8763
|
+
* The initial configuration provided does not need to be the genesis header of the bridged
|
|
8764
|
+
* chain, it can be any arbitrary header. You can also provide the next scheduled set
|
|
8765
|
+
* change if it is already know.
|
|
8766
|
+
*
|
|
8767
|
+
* This function is only allowed to be called from a trusted origin and writes to storage
|
|
8768
|
+
* with practically no checks in terms of the validity of the data. It is important that
|
|
8769
|
+
* you ensure that valid data is being passed in.
|
|
8791
8770
|
**/
|
|
8792
|
-
| { name: '
|
|
8771
|
+
| { name: 'Initialize'; params: { initData: BpHeaderChainInitializationData } }
|
|
8793
8772
|
/**
|
|
8794
|
-
*
|
|
8773
|
+
* Change `PalletOwner`.
|
|
8774
|
+
*
|
|
8775
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8795
8776
|
**/
|
|
8796
|
-
| { name: '
|
|
8777
|
+
| { name: 'SetOwner'; params: { newOwner?: AccountId20 | undefined } }
|
|
8797
8778
|
/**
|
|
8798
|
-
*
|
|
8779
|
+
* Halt or resume all pallet operations.
|
|
8780
|
+
*
|
|
8781
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8799
8782
|
**/
|
|
8800
|
-
| { name: '
|
|
8783
|
+
| { name: 'SetOperatingMode'; params: { operatingMode: BpRuntimeBasicOperatingMode } }
|
|
8801
8784
|
/**
|
|
8802
|
-
*
|
|
8785
|
+
* Verify a target header is finalized according to the given finality proof. The proof
|
|
8786
|
+
* is assumed to be signed by GRANDPA authorities set with `current_set_id` id.
|
|
8787
|
+
*
|
|
8788
|
+
* It will use the underlying storage pallet to fetch information about the current
|
|
8789
|
+
* authorities and best finalized header in order to verify that the header is finalized.
|
|
8790
|
+
*
|
|
8791
|
+
* If successful in verification, it will write the target header to the underlying storage
|
|
8792
|
+
* pallet.
|
|
8793
|
+
*
|
|
8794
|
+
* The call fails if:
|
|
8795
|
+
*
|
|
8796
|
+
* - the pallet is halted;
|
|
8797
|
+
*
|
|
8798
|
+
* - the pallet knows better header than the `finality_target`;
|
|
8799
|
+
*
|
|
8800
|
+
* - the id of best GRANDPA authority set, known to the pallet is not equal to the
|
|
8801
|
+
* `current_set_id`;
|
|
8802
|
+
*
|
|
8803
|
+
* - verification is not optimized or invalid;
|
|
8804
|
+
*
|
|
8805
|
+
* - header contains forced authorities set change or change with non-zero delay.
|
|
8806
|
+
*
|
|
8807
|
+
* The `is_free_execution_expected` parameter is not really used inside the call. It is
|
|
8808
|
+
* used by the transaction extension, which should be registered at the runtime level. If
|
|
8809
|
+
* this parameter is `true`, the transaction will be treated as invalid, if the call won't
|
|
8810
|
+
* be executed for free. If transaction extension is not used by the runtime, this
|
|
8811
|
+
* parameter is not used at all.
|
|
8803
8812
|
**/
|
|
8804
|
-
| {
|
|
8813
|
+
| {
|
|
8814
|
+
name: 'SubmitFinalityProofEx';
|
|
8815
|
+
params: {
|
|
8816
|
+
finalityTarget: Header;
|
|
8817
|
+
justification: BpHeaderChainJustificationGrandpaJustification;
|
|
8818
|
+
currentSetId: bigint;
|
|
8819
|
+
isFreeExecutionExpected: boolean;
|
|
8820
|
+
};
|
|
8821
|
+
}
|
|
8805
8822
|
/**
|
|
8806
|
-
*
|
|
8823
|
+
* Set current authorities set and best finalized bridged header to given values
|
|
8824
|
+
* (almost) without any checks. This call can fail only if:
|
|
8825
|
+
*
|
|
8826
|
+
* - the call origin is not a root or a pallet owner;
|
|
8827
|
+
*
|
|
8828
|
+
* - there are too many authorities in the new set.
|
|
8829
|
+
*
|
|
8830
|
+
* No other checks are made. Previously imported headers stay in the storage and
|
|
8831
|
+
* are still accessible after the call.
|
|
8807
8832
|
**/
|
|
8808
|
-
| {
|
|
8833
|
+
| {
|
|
8834
|
+
name: 'ForceSetPalletState';
|
|
8835
|
+
params: {
|
|
8836
|
+
newCurrentSetId: bigint;
|
|
8837
|
+
newAuthorities: Array<[SpConsensusGrandpaAppPublic, bigint]>;
|
|
8838
|
+
newBestHeader: Header;
|
|
8839
|
+
};
|
|
8840
|
+
};
|
|
8841
|
+
|
|
8842
|
+
export type PalletBridgeGrandpaCallLike =
|
|
8809
8843
|
/**
|
|
8810
|
-
*
|
|
8844
|
+
* This call is deprecated and will be removed around May 2024. Use the
|
|
8845
|
+
* `submit_finality_proof_ex` instead. Semantically, this call is an equivalent of the
|
|
8846
|
+
* `submit_finality_proof_ex` call without current authority set id check.
|
|
8811
8847
|
**/
|
|
8812
|
-
| {
|
|
8848
|
+
| {
|
|
8849
|
+
name: 'SubmitFinalityProof';
|
|
8850
|
+
params: { finalityTarget: Header; justification: BpHeaderChainJustificationGrandpaJustification };
|
|
8851
|
+
}
|
|
8813
8852
|
/**
|
|
8814
|
-
*
|
|
8853
|
+
* Bootstrap the bridge pallet with an initial header and authority set from which to sync.
|
|
8854
|
+
*
|
|
8855
|
+
* The initial configuration provided does not need to be the genesis header of the bridged
|
|
8856
|
+
* chain, it can be any arbitrary header. You can also provide the next scheduled set
|
|
8857
|
+
* change if it is already know.
|
|
8858
|
+
*
|
|
8859
|
+
* This function is only allowed to be called from a trusted origin and writes to storage
|
|
8860
|
+
* with practically no checks in terms of the validity of the data. It is important that
|
|
8861
|
+
* you ensure that valid data is being passed in.
|
|
8815
8862
|
**/
|
|
8816
|
-
| { name: '
|
|
8863
|
+
| { name: 'Initialize'; params: { initData: BpHeaderChainInitializationData } }
|
|
8817
8864
|
/**
|
|
8818
|
-
*
|
|
8865
|
+
* Change `PalletOwner`.
|
|
8866
|
+
*
|
|
8867
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8819
8868
|
**/
|
|
8820
|
-
| { name: '
|
|
8821
|
-
|
|
8822
|
-
/**
|
|
8823
|
-
* The `Event` enum of this pallet
|
|
8824
|
-
**/
|
|
8825
|
-
export type PalletTreasuryEvent =
|
|
8869
|
+
| { name: 'SetOwner'; params: { newOwner?: AccountId20Like | undefined } }
|
|
8826
8870
|
/**
|
|
8827
|
-
*
|
|
8871
|
+
* Halt or resume all pallet operations.
|
|
8872
|
+
*
|
|
8873
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8828
8874
|
**/
|
|
8829
|
-
| { name: '
|
|
8875
|
+
| { name: 'SetOperatingMode'; params: { operatingMode: BpRuntimeBasicOperatingMode } }
|
|
8830
8876
|
/**
|
|
8831
|
-
*
|
|
8877
|
+
* Verify a target header is finalized according to the given finality proof. The proof
|
|
8878
|
+
* is assumed to be signed by GRANDPA authorities set with `current_set_id` id.
|
|
8879
|
+
*
|
|
8880
|
+
* It will use the underlying storage pallet to fetch information about the current
|
|
8881
|
+
* authorities and best finalized header in order to verify that the header is finalized.
|
|
8882
|
+
*
|
|
8883
|
+
* If successful in verification, it will write the target header to the underlying storage
|
|
8884
|
+
* pallet.
|
|
8885
|
+
*
|
|
8886
|
+
* The call fails if:
|
|
8887
|
+
*
|
|
8888
|
+
* - the pallet is halted;
|
|
8889
|
+
*
|
|
8890
|
+
* - the pallet knows better header than the `finality_target`;
|
|
8891
|
+
*
|
|
8892
|
+
* - the id of best GRANDPA authority set, known to the pallet is not equal to the
|
|
8893
|
+
* `current_set_id`;
|
|
8894
|
+
*
|
|
8895
|
+
* - verification is not optimized or invalid;
|
|
8896
|
+
*
|
|
8897
|
+
* - header contains forced authorities set change or change with non-zero delay.
|
|
8898
|
+
*
|
|
8899
|
+
* The `is_free_execution_expected` parameter is not really used inside the call. It is
|
|
8900
|
+
* used by the transaction extension, which should be registered at the runtime level. If
|
|
8901
|
+
* this parameter is `true`, the transaction will be treated as invalid, if the call won't
|
|
8902
|
+
* be executed for free. If transaction extension is not used by the runtime, this
|
|
8903
|
+
* parameter is not used at all.
|
|
8832
8904
|
**/
|
|
8833
|
-
| {
|
|
8905
|
+
| {
|
|
8906
|
+
name: 'SubmitFinalityProofEx';
|
|
8907
|
+
params: {
|
|
8908
|
+
finalityTarget: Header;
|
|
8909
|
+
justification: BpHeaderChainJustificationGrandpaJustification;
|
|
8910
|
+
currentSetId: bigint;
|
|
8911
|
+
isFreeExecutionExpected: boolean;
|
|
8912
|
+
};
|
|
8913
|
+
}
|
|
8834
8914
|
/**
|
|
8835
|
-
*
|
|
8915
|
+
* Set current authorities set and best finalized bridged header to given values
|
|
8916
|
+
* (almost) without any checks. This call can fail only if:
|
|
8917
|
+
*
|
|
8918
|
+
* - the call origin is not a root or a pallet owner;
|
|
8919
|
+
*
|
|
8920
|
+
* - there are too many authorities in the new set.
|
|
8921
|
+
*
|
|
8922
|
+
* No other checks are made. Previously imported headers stay in the storage and
|
|
8923
|
+
* are still accessible after the call.
|
|
8836
8924
|
**/
|
|
8837
|
-
| {
|
|
8925
|
+
| {
|
|
8926
|
+
name: 'ForceSetPalletState';
|
|
8927
|
+
params: {
|
|
8928
|
+
newCurrentSetId: bigint;
|
|
8929
|
+
newAuthorities: Array<[SpConsensusGrandpaAppPublic, bigint]>;
|
|
8930
|
+
newBestHeader: Header;
|
|
8931
|
+
};
|
|
8932
|
+
};
|
|
8933
|
+
|
|
8934
|
+
export type BpHeaderChainJustificationGrandpaJustification = {
|
|
8935
|
+
round: bigint;
|
|
8936
|
+
commit: FinalityGrandpaCommit;
|
|
8937
|
+
votesAncestries: Array<Header>;
|
|
8938
|
+
};
|
|
8939
|
+
|
|
8940
|
+
export type FinalityGrandpaCommit = {
|
|
8941
|
+
targetHash: H256;
|
|
8942
|
+
targetNumber: number;
|
|
8943
|
+
precommits: Array<FinalityGrandpaSignedPrecommit>;
|
|
8944
|
+
};
|
|
8945
|
+
|
|
8946
|
+
export type SpConsensusGrandpaAppSignature = FixedBytes<64>;
|
|
8947
|
+
|
|
8948
|
+
export type SpConsensusGrandpaAppPublic = FixedBytes<32>;
|
|
8949
|
+
|
|
8950
|
+
export type FinalityGrandpaSignedPrecommit = {
|
|
8951
|
+
precommit: FinalityGrandpaPrecommit;
|
|
8952
|
+
signature: SpConsensusGrandpaAppSignature;
|
|
8953
|
+
id: SpConsensusGrandpaAppPublic;
|
|
8954
|
+
};
|
|
8955
|
+
|
|
8956
|
+
export type FinalityGrandpaPrecommit = { targetHash: H256; targetNumber: number };
|
|
8957
|
+
|
|
8958
|
+
export type BpHeaderChainInitializationData = {
|
|
8959
|
+
header: Header;
|
|
8960
|
+
authorityList: Array<[SpConsensusGrandpaAppPublic, bigint]>;
|
|
8961
|
+
setId: bigint;
|
|
8962
|
+
operatingMode: BpRuntimeBasicOperatingMode;
|
|
8963
|
+
};
|
|
8964
|
+
|
|
8965
|
+
export type BpRuntimeBasicOperatingMode = 'Normal' | 'Halted';
|
|
8966
|
+
|
|
8967
|
+
/**
|
|
8968
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8969
|
+
**/
|
|
8970
|
+
export type PalletBridgeParachainsCall =
|
|
8838
8971
|
/**
|
|
8839
|
-
*
|
|
8972
|
+
* Submit proof of one or several parachain heads.
|
|
8973
|
+
*
|
|
8974
|
+
* The proof is supposed to be proof of some `Heads` entries from the
|
|
8975
|
+
* `polkadot-runtime-parachains::paras` pallet instance, deployed at the bridged chain.
|
|
8976
|
+
* The proof is supposed to be crafted at the `relay_header_hash` that must already be
|
|
8977
|
+
* imported by corresponding GRANDPA pallet at this chain.
|
|
8978
|
+
*
|
|
8979
|
+
* The call fails if:
|
|
8980
|
+
*
|
|
8981
|
+
* - the pallet is halted;
|
|
8982
|
+
*
|
|
8983
|
+
* - the relay chain block `at_relay_block` is not imported by the associated bridge
|
|
8984
|
+
* GRANDPA pallet.
|
|
8985
|
+
*
|
|
8986
|
+
* The call may succeed, but some heads may not be updated e.g. because pallet knows
|
|
8987
|
+
* better head or it isn't tracked by the pallet.
|
|
8840
8988
|
**/
|
|
8841
|
-
| {
|
|
8989
|
+
| {
|
|
8990
|
+
name: 'SubmitParachainHeads';
|
|
8991
|
+
params: {
|
|
8992
|
+
atRelayBlock: [number, H256];
|
|
8993
|
+
parachains: Array<[BpPolkadotCoreParachainsParaId, H256]>;
|
|
8994
|
+
parachainHeadsProof: BpPolkadotCoreParachainsParaHeadsProof;
|
|
8995
|
+
};
|
|
8996
|
+
}
|
|
8842
8997
|
/**
|
|
8843
|
-
*
|
|
8998
|
+
* Change `PalletOwner`.
|
|
8999
|
+
*
|
|
9000
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8844
9001
|
**/
|
|
8845
|
-
| { name: '
|
|
9002
|
+
| { name: 'SetOwner'; params: { newOwner?: AccountId20 | undefined } }
|
|
8846
9003
|
/**
|
|
8847
|
-
*
|
|
9004
|
+
* Halt or resume all pallet operations.
|
|
9005
|
+
*
|
|
9006
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8848
9007
|
**/
|
|
8849
|
-
| { name: '
|
|
9008
|
+
| { name: 'SetOperatingMode'; params: { operatingMode: BpRuntimeBasicOperatingMode } }
|
|
8850
9009
|
/**
|
|
8851
|
-
*
|
|
9010
|
+
* Submit proof of one or several parachain heads.
|
|
9011
|
+
*
|
|
9012
|
+
* The proof is supposed to be proof of some `Heads` entries from the
|
|
9013
|
+
* `polkadot-runtime-parachains::paras` pallet instance, deployed at the bridged chain.
|
|
9014
|
+
* The proof is supposed to be crafted at the `relay_header_hash` that must already be
|
|
9015
|
+
* imported by corresponding GRANDPA pallet at this chain.
|
|
9016
|
+
*
|
|
9017
|
+
* The call fails if:
|
|
9018
|
+
*
|
|
9019
|
+
* - the pallet is halted;
|
|
9020
|
+
*
|
|
9021
|
+
* - the relay chain block `at_relay_block` is not imported by the associated bridge
|
|
9022
|
+
* GRANDPA pallet.
|
|
9023
|
+
*
|
|
9024
|
+
* The call may succeed, but some heads may not be updated e.g. because pallet knows
|
|
9025
|
+
* better head or it isn't tracked by the pallet.
|
|
9026
|
+
*
|
|
9027
|
+
* The `is_free_execution_expected` parameter is not really used inside the call. It is
|
|
9028
|
+
* used by the transaction extension, which should be registered at the runtime level. If
|
|
9029
|
+
* this parameter is `true`, the transaction will be treated as invalid, if the call won't
|
|
9030
|
+
* be executed for free. If transaction extension is not used by the runtime, this
|
|
9031
|
+
* parameter is not used at all.
|
|
8852
9032
|
**/
|
|
8853
|
-
| {
|
|
9033
|
+
| {
|
|
9034
|
+
name: 'SubmitParachainHeadsEx';
|
|
9035
|
+
params: {
|
|
9036
|
+
atRelayBlock: [number, H256];
|
|
9037
|
+
parachains: Array<[BpPolkadotCoreParachainsParaId, H256]>;
|
|
9038
|
+
parachainHeadsProof: BpPolkadotCoreParachainsParaHeadsProof;
|
|
9039
|
+
isFreeExecutionExpected: boolean;
|
|
9040
|
+
};
|
|
9041
|
+
};
|
|
9042
|
+
|
|
9043
|
+
export type PalletBridgeParachainsCallLike =
|
|
8854
9044
|
/**
|
|
8855
|
-
*
|
|
9045
|
+
* Submit proof of one or several parachain heads.
|
|
9046
|
+
*
|
|
9047
|
+
* The proof is supposed to be proof of some `Heads` entries from the
|
|
9048
|
+
* `polkadot-runtime-parachains::paras` pallet instance, deployed at the bridged chain.
|
|
9049
|
+
* The proof is supposed to be crafted at the `relay_header_hash` that must already be
|
|
9050
|
+
* imported by corresponding GRANDPA pallet at this chain.
|
|
9051
|
+
*
|
|
9052
|
+
* The call fails if:
|
|
9053
|
+
*
|
|
9054
|
+
* - the pallet is halted;
|
|
9055
|
+
*
|
|
9056
|
+
* - the relay chain block `at_relay_block` is not imported by the associated bridge
|
|
9057
|
+
* GRANDPA pallet.
|
|
9058
|
+
*
|
|
9059
|
+
* The call may succeed, but some heads may not be updated e.g. because pallet knows
|
|
9060
|
+
* better head or it isn't tracked by the pallet.
|
|
8856
9061
|
**/
|
|
8857
9062
|
| {
|
|
8858
|
-
name: '
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
beneficiary: AccountId20;
|
|
8864
|
-
validFrom: number;
|
|
8865
|
-
expireAt: number;
|
|
9063
|
+
name: 'SubmitParachainHeads';
|
|
9064
|
+
params: {
|
|
9065
|
+
atRelayBlock: [number, H256];
|
|
9066
|
+
parachains: Array<[BpPolkadotCoreParachainsParaId, H256]>;
|
|
9067
|
+
parachainHeadsProof: BpPolkadotCoreParachainsParaHeadsProof;
|
|
8866
9068
|
};
|
|
8867
9069
|
}
|
|
8868
9070
|
/**
|
|
8869
|
-
*
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
/**
|
|
8873
|
-
* A payment happened.
|
|
9071
|
+
* Change `PalletOwner`.
|
|
9072
|
+
*
|
|
9073
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8874
9074
|
**/
|
|
8875
|
-
| { name: '
|
|
9075
|
+
| { name: 'SetOwner'; params: { newOwner?: AccountId20Like | undefined } }
|
|
8876
9076
|
/**
|
|
8877
|
-
*
|
|
9077
|
+
* Halt or resume all pallet operations.
|
|
9078
|
+
*
|
|
9079
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8878
9080
|
**/
|
|
8879
|
-
| { name: '
|
|
9081
|
+
| { name: 'SetOperatingMode'; params: { operatingMode: BpRuntimeBasicOperatingMode } }
|
|
8880
9082
|
/**
|
|
8881
|
-
*
|
|
8882
|
-
*
|
|
9083
|
+
* Submit proof of one or several parachain heads.
|
|
9084
|
+
*
|
|
9085
|
+
* The proof is supposed to be proof of some `Heads` entries from the
|
|
9086
|
+
* `polkadot-runtime-parachains::paras` pallet instance, deployed at the bridged chain.
|
|
9087
|
+
* The proof is supposed to be crafted at the `relay_header_hash` that must already be
|
|
9088
|
+
* imported by corresponding GRANDPA pallet at this chain.
|
|
9089
|
+
*
|
|
9090
|
+
* The call fails if:
|
|
9091
|
+
*
|
|
9092
|
+
* - the pallet is halted;
|
|
9093
|
+
*
|
|
9094
|
+
* - the relay chain block `at_relay_block` is not imported by the associated bridge
|
|
9095
|
+
* GRANDPA pallet.
|
|
9096
|
+
*
|
|
9097
|
+
* The call may succeed, but some heads may not be updated e.g. because pallet knows
|
|
9098
|
+
* better head or it isn't tracked by the pallet.
|
|
9099
|
+
*
|
|
9100
|
+
* The `is_free_execution_expected` parameter is not really used inside the call. It is
|
|
9101
|
+
* used by the transaction extension, which should be registered at the runtime level. If
|
|
9102
|
+
* this parameter is `true`, the transaction will be treated as invalid, if the call won't
|
|
9103
|
+
* be executed for free. If transaction extension is not used by the runtime, this
|
|
9104
|
+
* parameter is not used at all.
|
|
8883
9105
|
**/
|
|
8884
|
-
| {
|
|
9106
|
+
| {
|
|
9107
|
+
name: 'SubmitParachainHeadsEx';
|
|
9108
|
+
params: {
|
|
9109
|
+
atRelayBlock: [number, H256];
|
|
9110
|
+
parachains: Array<[BpPolkadotCoreParachainsParaId, H256]>;
|
|
9111
|
+
parachainHeadsProof: BpPolkadotCoreParachainsParaHeadsProof;
|
|
9112
|
+
isFreeExecutionExpected: boolean;
|
|
9113
|
+
};
|
|
9114
|
+
};
|
|
9115
|
+
|
|
9116
|
+
export type BpPolkadotCoreParachainsParaId = number;
|
|
9117
|
+
|
|
9118
|
+
export type BpPolkadotCoreParachainsParaHeadsProof = { storageProof: Array<Bytes> };
|
|
8885
9119
|
|
|
8886
9120
|
/**
|
|
8887
|
-
*
|
|
9121
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8888
9122
|
**/
|
|
8889
|
-
export type
|
|
9123
|
+
export type PalletBridgeMessagesCall =
|
|
8890
9124
|
/**
|
|
8891
|
-
*
|
|
9125
|
+
* Change `PalletOwner`.
|
|
9126
|
+
*
|
|
9127
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8892
9128
|
**/
|
|
8893
|
-
| { name: '
|
|
9129
|
+
| { name: 'SetOwner'; params: { newOwner?: AccountId20 | undefined } }
|
|
8894
9130
|
/**
|
|
8895
|
-
*
|
|
8896
|
-
*
|
|
9131
|
+
* Halt or resume all/some pallet operations.
|
|
9132
|
+
*
|
|
9133
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8897
9134
|
**/
|
|
8898
|
-
| { name: '
|
|
9135
|
+
| { name: 'SetOperatingMode'; params: { operatingMode: BpMessagesMessagesOperatingMode } }
|
|
8899
9136
|
/**
|
|
8900
|
-
*
|
|
8901
|
-
*
|
|
9137
|
+
* Receive messages proof from bridged chain.
|
|
9138
|
+
*
|
|
9139
|
+
* The weight of the call assumes that the transaction always brings outbound lane
|
|
9140
|
+
* state update. Because of that, the submitter (relayer) has no benefit of not including
|
|
9141
|
+
* this data in the transaction, so reward confirmations lags should be minimal.
|
|
9142
|
+
*
|
|
9143
|
+
* The call fails if:
|
|
9144
|
+
*
|
|
9145
|
+
* - the pallet is halted;
|
|
9146
|
+
*
|
|
9147
|
+
* - the call origin is not `Signed(_)`;
|
|
9148
|
+
*
|
|
9149
|
+
* - there are too many messages in the proof;
|
|
9150
|
+
*
|
|
9151
|
+
* - the proof verification procedure returns an error - e.g. because header used to craft
|
|
9152
|
+
* proof is not imported by the associated finality pallet;
|
|
9153
|
+
*
|
|
9154
|
+
* - the `dispatch_weight` argument is not sufficient to dispatch all bundled messages.
|
|
9155
|
+
*
|
|
9156
|
+
* The call may succeed, but some messages may not be delivered e.g. if they are not fit
|
|
9157
|
+
* into the unrewarded relayers vector.
|
|
8902
9158
|
**/
|
|
8903
|
-
| {
|
|
9159
|
+
| {
|
|
9160
|
+
name: 'ReceiveMessagesProof';
|
|
9161
|
+
params: {
|
|
9162
|
+
relayerIdAtBridgedChain: AccountId20;
|
|
9163
|
+
proof: BpMessagesTargetChainFromBridgedChainMessagesProof;
|
|
9164
|
+
messagesCount: number;
|
|
9165
|
+
dispatchWeight: SpWeightsWeightV2Weight;
|
|
9166
|
+
};
|
|
9167
|
+
}
|
|
8904
9168
|
/**
|
|
8905
|
-
*
|
|
9169
|
+
* Receive messages delivery proof from bridged chain.
|
|
8906
9170
|
**/
|
|
8907
|
-
| {
|
|
9171
|
+
| {
|
|
9172
|
+
name: 'ReceiveMessagesDeliveryProof';
|
|
9173
|
+
params: {
|
|
9174
|
+
proof: BpMessagesSourceChainFromBridgedChainMessagesDeliveryProof;
|
|
9175
|
+
relayersState: BpMessagesUnrewardedRelayersState;
|
|
9176
|
+
};
|
|
9177
|
+
};
|
|
9178
|
+
|
|
9179
|
+
export type PalletBridgeMessagesCallLike =
|
|
8908
9180
|
/**
|
|
8909
|
-
*
|
|
9181
|
+
* Change `PalletOwner`.
|
|
9182
|
+
*
|
|
9183
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8910
9184
|
**/
|
|
8911
|
-
| { name: '
|
|
9185
|
+
| { name: 'SetOwner'; params: { newOwner?: AccountId20Like | undefined } }
|
|
8912
9186
|
/**
|
|
8913
|
-
*
|
|
9187
|
+
* Halt or resume all/some pallet operations.
|
|
9188
|
+
*
|
|
9189
|
+
* May only be called either by root, or by `PalletOwner`.
|
|
8914
9190
|
**/
|
|
8915
|
-
| { name: '
|
|
8916
|
-
|
|
8917
|
-
/**
|
|
8918
|
-
* The `Event` enum of this pallet
|
|
8919
|
-
**/
|
|
8920
|
-
export type CumulusPalletXcmpQueueEvent =
|
|
9191
|
+
| { name: 'SetOperatingMode'; params: { operatingMode: BpMessagesMessagesOperatingMode } }
|
|
8921
9192
|
/**
|
|
8922
|
-
*
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
9193
|
+
* Receive messages proof from bridged chain.
|
|
9194
|
+
*
|
|
9195
|
+
* The weight of the call assumes that the transaction always brings outbound lane
|
|
9196
|
+
* state update. Because of that, the submitter (relayer) has no benefit of not including
|
|
9197
|
+
* this data in the transaction, so reward confirmations lags should be minimal.
|
|
9198
|
+
*
|
|
9199
|
+
* The call fails if:
|
|
9200
|
+
*
|
|
9201
|
+
* - the pallet is halted;
|
|
9202
|
+
*
|
|
9203
|
+
* - the call origin is not `Signed(_)`;
|
|
9204
|
+
*
|
|
9205
|
+
* - there are too many messages in the proof;
|
|
9206
|
+
*
|
|
9207
|
+
* - the proof verification procedure returns an error - e.g. because header used to craft
|
|
9208
|
+
* proof is not imported by the associated finality pallet;
|
|
9209
|
+
*
|
|
9210
|
+
* - the `dispatch_weight` argument is not sufficient to dispatch all bundled messages.
|
|
9211
|
+
*
|
|
9212
|
+
* The call may succeed, but some messages may not be delivered e.g. if they are not fit
|
|
9213
|
+
* into the unrewarded relayers vector.
|
|
9214
|
+
**/
|
|
9215
|
+
| {
|
|
9216
|
+
name: 'ReceiveMessagesProof';
|
|
9217
|
+
params: {
|
|
9218
|
+
relayerIdAtBridgedChain: AccountId20Like;
|
|
9219
|
+
proof: BpMessagesTargetChainFromBridgedChainMessagesProof;
|
|
9220
|
+
messagesCount: number;
|
|
9221
|
+
dispatchWeight: SpWeightsWeightV2Weight;
|
|
9222
|
+
};
|
|
9223
|
+
}
|
|
9224
|
+
/**
|
|
9225
|
+
* Receive messages delivery proof from bridged chain.
|
|
9226
|
+
**/
|
|
9227
|
+
| {
|
|
9228
|
+
name: 'ReceiveMessagesDeliveryProof';
|
|
9229
|
+
params: {
|
|
9230
|
+
proof: BpMessagesSourceChainFromBridgedChainMessagesDeliveryProof;
|
|
9231
|
+
relayersState: BpMessagesUnrewardedRelayersState;
|
|
9232
|
+
};
|
|
9233
|
+
};
|
|
9234
|
+
|
|
9235
|
+
export type BpMessagesMessagesOperatingMode =
|
|
9236
|
+
| { type: 'Basic'; value: BpRuntimeBasicOperatingMode }
|
|
9237
|
+
| { type: 'RejectingOutboundMessages' };
|
|
9238
|
+
|
|
9239
|
+
export type BpMessagesTargetChainFromBridgedChainMessagesProof = {
|
|
9240
|
+
bridgedHeaderHash: H256;
|
|
9241
|
+
storageProof: Array<Bytes>;
|
|
9242
|
+
lane: BpMessagesLaneHashedLaneId;
|
|
9243
|
+
noncesStart: bigint;
|
|
9244
|
+
noncesEnd: bigint;
|
|
9245
|
+
};
|
|
9246
|
+
|
|
9247
|
+
export type BpMessagesLaneHashedLaneId = H256;
|
|
9248
|
+
|
|
9249
|
+
export type BpMessagesSourceChainFromBridgedChainMessagesDeliveryProof = {
|
|
9250
|
+
bridgedHeaderHash: H256;
|
|
9251
|
+
storageProof: Array<Bytes>;
|
|
9252
|
+
lane: BpMessagesLaneHashedLaneId;
|
|
9253
|
+
};
|
|
9254
|
+
|
|
9255
|
+
export type BpMessagesUnrewardedRelayersState = {
|
|
9256
|
+
unrewardedRelayerEntries: bigint;
|
|
9257
|
+
messagesInOldestEntry: bigint;
|
|
9258
|
+
totalMessages: bigint;
|
|
9259
|
+
lastDeliveredNonce: bigint;
|
|
9260
|
+
};
|
|
9261
|
+
|
|
9262
|
+
/**
|
|
9263
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
9264
|
+
**/
|
|
9265
|
+
export type PalletXcmBridgeHubCall =
|
|
9266
|
+
/**
|
|
9267
|
+
* Open a bridge between two locations.
|
|
9268
|
+
*
|
|
9269
|
+
* The caller must be within the `T::OpenBridgeOrigin` filter (presumably: a sibling
|
|
9270
|
+
* parachain or a parent relay chain). The `bridge_destination_universal_location` must be
|
|
9271
|
+
* a destination within the consensus of the `T::BridgedNetwork` network.
|
|
9272
|
+
*
|
|
9273
|
+
* The `BridgeDeposit` amount is reserved on the caller account. This deposit
|
|
9274
|
+
* is unreserved after bridge is closed.
|
|
9275
|
+
*
|
|
9276
|
+
* The states after this call: bridge is `Opened`, outbound lane is `Opened`, inbound lane
|
|
9277
|
+
* is `Opened`.
|
|
9278
|
+
**/
|
|
9279
|
+
| { name: 'OpenBridge'; params: { bridgeDestinationUniversalLocation: XcmVersionedInteriorLocation } }
|
|
9280
|
+
/**
|
|
9281
|
+
* Try to close the bridge.
|
|
9282
|
+
*
|
|
9283
|
+
* Can only be called by the "owner" of this side of the bridge, meaning that the
|
|
9284
|
+
* inbound XCM channel with the local origin chain is working.
|
|
9285
|
+
*
|
|
9286
|
+
* Closed bridge is a bridge without any traces in the runtime storage. So this method
|
|
9287
|
+
* first tries to prune all queued messages at the outbound lane. When there are no
|
|
9288
|
+
* outbound messages left, outbound and inbound lanes are purged. After that, funds
|
|
9289
|
+
* are returned back to the owner of this side of the bridge.
|
|
9290
|
+
*
|
|
9291
|
+
* The number of messages that we may prune in a single call is limited by the
|
|
9292
|
+
* `may_prune_messages` argument. If there are more messages in the queue, the method
|
|
9293
|
+
* prunes exactly `may_prune_messages` and exits early. The caller may call it again
|
|
9294
|
+
* until outbound queue is depleted and get his funds back.
|
|
9295
|
+
*
|
|
9296
|
+
* The states after this call: everything is either `Closed`, or purged from the
|
|
9297
|
+
* runtime storage.
|
|
9298
|
+
**/
|
|
9299
|
+
| {
|
|
9300
|
+
name: 'CloseBridge';
|
|
9301
|
+
params: { bridgeDestinationUniversalLocation: XcmVersionedInteriorLocation; mayPruneMessages: bigint };
|
|
9302
|
+
};
|
|
9303
|
+
|
|
9304
|
+
export type PalletXcmBridgeHubCallLike =
|
|
9305
|
+
/**
|
|
9306
|
+
* Open a bridge between two locations.
|
|
9307
|
+
*
|
|
9308
|
+
* The caller must be within the `T::OpenBridgeOrigin` filter (presumably: a sibling
|
|
9309
|
+
* parachain or a parent relay chain). The `bridge_destination_universal_location` must be
|
|
9310
|
+
* a destination within the consensus of the `T::BridgedNetwork` network.
|
|
9311
|
+
*
|
|
9312
|
+
* The `BridgeDeposit` amount is reserved on the caller account. This deposit
|
|
9313
|
+
* is unreserved after bridge is closed.
|
|
9314
|
+
*
|
|
9315
|
+
* The states after this call: bridge is `Opened`, outbound lane is `Opened`, inbound lane
|
|
9316
|
+
* is `Opened`.
|
|
9317
|
+
**/
|
|
9318
|
+
| { name: 'OpenBridge'; params: { bridgeDestinationUniversalLocation: XcmVersionedInteriorLocation } }
|
|
9319
|
+
/**
|
|
9320
|
+
* Try to close the bridge.
|
|
9321
|
+
*
|
|
9322
|
+
* Can only be called by the "owner" of this side of the bridge, meaning that the
|
|
9323
|
+
* inbound XCM channel with the local origin chain is working.
|
|
9324
|
+
*
|
|
9325
|
+
* Closed bridge is a bridge without any traces in the runtime storage. So this method
|
|
9326
|
+
* first tries to prune all queued messages at the outbound lane. When there are no
|
|
9327
|
+
* outbound messages left, outbound and inbound lanes are purged. After that, funds
|
|
9328
|
+
* are returned back to the owner of this side of the bridge.
|
|
9329
|
+
*
|
|
9330
|
+
* The number of messages that we may prune in a single call is limited by the
|
|
9331
|
+
* `may_prune_messages` argument. If there are more messages in the queue, the method
|
|
9332
|
+
* prunes exactly `may_prune_messages` and exits early. The caller may call it again
|
|
9333
|
+
* until outbound queue is depleted and get his funds back.
|
|
9334
|
+
*
|
|
9335
|
+
* The states after this call: everything is either `Closed`, or purged from the
|
|
9336
|
+
* runtime storage.
|
|
9337
|
+
**/
|
|
9338
|
+
| {
|
|
9339
|
+
name: 'CloseBridge';
|
|
9340
|
+
params: { bridgeDestinationUniversalLocation: XcmVersionedInteriorLocation; mayPruneMessages: bigint };
|
|
9341
|
+
};
|
|
9342
|
+
|
|
9343
|
+
export type XcmVersionedInteriorLocation =
|
|
9344
|
+
| { type: 'V3'; value: XcmV3Junctions }
|
|
9345
|
+
| { type: 'V4'; value: StagingXcmV4Junctions }
|
|
9346
|
+
| { type: 'V5'; value: StagingXcmV5Junctions };
|
|
9347
|
+
|
|
9348
|
+
export type SpRuntimeBlakeTwo256 = {};
|
|
9349
|
+
|
|
9350
|
+
export type PalletConvictionVotingTally = { ayes: bigint; nays: bigint; support: bigint };
|
|
9351
|
+
|
|
9352
|
+
/**
|
|
9353
|
+
* The `Event` enum of this pallet
|
|
9354
|
+
**/
|
|
9355
|
+
export type PalletWhitelistEvent =
|
|
9356
|
+
| { name: 'CallWhitelisted'; data: { callHash: H256 } }
|
|
9357
|
+
| { name: 'WhitelistedCallRemoved'; data: { callHash: H256 } }
|
|
9358
|
+
| {
|
|
9359
|
+
name: 'WhitelistedCallDispatched';
|
|
9360
|
+
data: {
|
|
9361
|
+
callHash: H256;
|
|
9362
|
+
result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>;
|
|
9363
|
+
};
|
|
9364
|
+
};
|
|
9365
|
+
|
|
9366
|
+
export type FrameSupportDispatchPostDispatchInfo = {
|
|
9367
|
+
actualWeight?: SpWeightsWeightV2Weight | undefined;
|
|
9368
|
+
paysFee: FrameSupportDispatchPays;
|
|
9369
|
+
};
|
|
9370
|
+
|
|
9371
|
+
export type SpRuntimeDispatchErrorWithPostInfo = {
|
|
9372
|
+
postInfo: FrameSupportDispatchPostDispatchInfo;
|
|
9373
|
+
error: DispatchError;
|
|
9374
|
+
};
|
|
9375
|
+
|
|
9376
|
+
/**
|
|
9377
|
+
* The `Event` enum of this pallet
|
|
9378
|
+
**/
|
|
9379
|
+
export type PalletCollectiveEvent =
|
|
9380
|
+
/**
|
|
9381
|
+
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
|
9382
|
+
* `MemberCount`).
|
|
9383
|
+
**/
|
|
9384
|
+
| { name: 'Proposed'; data: { account: AccountId20; proposalIndex: number; proposalHash: H256; threshold: number } }
|
|
9385
|
+
/**
|
|
9386
|
+
* A motion (given hash) has been voted on by given account, leaving
|
|
9387
|
+
* a tally (yes votes and no votes given respectively as `MemberCount`).
|
|
9388
|
+
**/
|
|
9389
|
+
| { name: 'Voted'; data: { account: AccountId20; proposalHash: H256; voted: boolean; yes: number; no: number } }
|
|
9390
|
+
/**
|
|
9391
|
+
* A motion was approved by the required threshold.
|
|
9392
|
+
**/
|
|
9393
|
+
| { name: 'Approved'; data: { proposalHash: H256 } }
|
|
9394
|
+
/**
|
|
9395
|
+
* A motion was not approved by the required threshold.
|
|
9396
|
+
**/
|
|
9397
|
+
| { name: 'Disapproved'; data: { proposalHash: H256 } }
|
|
9398
|
+
/**
|
|
9399
|
+
* A motion was executed; result will be `Ok` if it returned without error.
|
|
9400
|
+
**/
|
|
9401
|
+
| { name: 'Executed'; data: { proposalHash: H256; result: Result<[], DispatchError> } }
|
|
9402
|
+
/**
|
|
9403
|
+
* A single member did some action; result will be `Ok` if it returned without error.
|
|
9404
|
+
**/
|
|
9405
|
+
| { name: 'MemberExecuted'; data: { proposalHash: H256; result: Result<[], DispatchError> } }
|
|
9406
|
+
/**
|
|
9407
|
+
* A proposal was closed because its threshold was reached or after its duration was up.
|
|
9408
|
+
**/
|
|
9409
|
+
| { name: 'Closed'; data: { proposalHash: H256; yes: number; no: number } }
|
|
9410
|
+
/**
|
|
9411
|
+
* A proposal was killed.
|
|
9412
|
+
**/
|
|
9413
|
+
| { name: 'Killed'; data: { proposalHash: H256 } }
|
|
9414
|
+
/**
|
|
9415
|
+
* Some cost for storing a proposal was burned.
|
|
9416
|
+
**/
|
|
9417
|
+
| { name: 'ProposalCostBurned'; data: { proposalHash: H256; who: AccountId20 } }
|
|
9418
|
+
/**
|
|
9419
|
+
* Some cost for storing a proposal was released.
|
|
9420
|
+
**/
|
|
9421
|
+
| { name: 'ProposalCostReleased'; data: { proposalHash: H256; who: AccountId20 } };
|
|
9422
|
+
|
|
9423
|
+
/**
|
|
9424
|
+
* The `Event` enum of this pallet
|
|
9425
|
+
**/
|
|
9426
|
+
export type PalletTreasuryEvent =
|
|
9427
|
+
/**
|
|
9428
|
+
* We have ended a spend period and will now allocate funds.
|
|
9429
|
+
**/
|
|
9430
|
+
| { name: 'Spending'; data: { budgetRemaining: bigint } }
|
|
9431
|
+
/**
|
|
9432
|
+
* Some funds have been allocated.
|
|
9433
|
+
**/
|
|
9434
|
+
| { name: 'Awarded'; data: { proposalIndex: number; award: bigint; account: AccountId20 } }
|
|
9435
|
+
/**
|
|
9436
|
+
* Some of our funds have been burnt.
|
|
9437
|
+
**/
|
|
9438
|
+
| { name: 'Burnt'; data: { burntFunds: bigint } }
|
|
9439
|
+
/**
|
|
9440
|
+
* Spending has finished; this is the amount that rolls over until next spend.
|
|
9441
|
+
**/
|
|
9442
|
+
| { name: 'Rollover'; data: { rolloverBalance: bigint } }
|
|
9443
|
+
/**
|
|
9444
|
+
* Some funds have been deposited.
|
|
9445
|
+
**/
|
|
9446
|
+
| { name: 'Deposit'; data: { value: bigint } }
|
|
9447
|
+
/**
|
|
9448
|
+
* A new spend proposal has been approved.
|
|
9449
|
+
**/
|
|
9450
|
+
| { name: 'SpendApproved'; data: { proposalIndex: number; amount: bigint; beneficiary: AccountId20 } }
|
|
9451
|
+
/**
|
|
9452
|
+
* The inactive funds of the pallet have been updated.
|
|
9453
|
+
**/
|
|
9454
|
+
| { name: 'UpdatedInactive'; data: { reactivated: bigint; deactivated: bigint } }
|
|
9455
|
+
/**
|
|
9456
|
+
* A new asset spend proposal has been approved.
|
|
9457
|
+
**/
|
|
9458
|
+
| {
|
|
9459
|
+
name: 'AssetSpendApproved';
|
|
9460
|
+
data: {
|
|
9461
|
+
index: number;
|
|
9462
|
+
assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
|
|
9463
|
+
amount: bigint;
|
|
9464
|
+
beneficiary: AccountId20;
|
|
9465
|
+
validFrom: number;
|
|
9466
|
+
expireAt: number;
|
|
9467
|
+
};
|
|
9468
|
+
}
|
|
9469
|
+
/**
|
|
9470
|
+
* An approved spend was voided.
|
|
9471
|
+
**/
|
|
9472
|
+
| { name: 'AssetSpendVoided'; data: { index: number } }
|
|
9473
|
+
/**
|
|
9474
|
+
* A payment happened.
|
|
9475
|
+
**/
|
|
9476
|
+
| { name: 'Paid'; data: { index: number; paymentId: [] } }
|
|
9477
|
+
/**
|
|
9478
|
+
* A payment failed and can be retried.
|
|
9479
|
+
**/
|
|
9480
|
+
| { name: 'PaymentFailed'; data: { index: number; paymentId: [] } }
|
|
9481
|
+
/**
|
|
9482
|
+
* A spend was processed and removed from the storage. It might have been successfully
|
|
9483
|
+
* paid or it may have expired.
|
|
9484
|
+
**/
|
|
9485
|
+
| { name: 'SpendProcessed'; data: { index: number } };
|
|
9486
|
+
|
|
9487
|
+
/**
|
|
9488
|
+
* The `Event` enum of this pallet
|
|
9489
|
+
**/
|
|
9490
|
+
export type PalletCrowdloanRewardsEvent =
|
|
9491
|
+
/**
|
|
9492
|
+
* The initial payment of InitializationPayment % was paid
|
|
9493
|
+
**/
|
|
9494
|
+
| { name: 'InitialPaymentMade'; data: [AccountId20, bigint] }
|
|
9495
|
+
/**
|
|
9496
|
+
* Someone has proven they made a contribution and associated a native identity with it.
|
|
9497
|
+
* Data is the relay account, native account and the total amount of _rewards_ that will be paid
|
|
9498
|
+
**/
|
|
9499
|
+
| { name: 'NativeIdentityAssociated'; data: [FixedBytes<32>, AccountId20, bigint] }
|
|
9500
|
+
/**
|
|
9501
|
+
* A contributor has claimed some rewards.
|
|
9502
|
+
* Data is the account getting paid and the amount of rewards paid.
|
|
9503
|
+
**/
|
|
9504
|
+
| { name: 'RewardsPaid'; data: [AccountId20, bigint] }
|
|
9505
|
+
/**
|
|
9506
|
+
* A contributor has updated the reward address.
|
|
9507
|
+
**/
|
|
9508
|
+
| { name: 'RewardAddressUpdated'; data: [AccountId20, AccountId20] }
|
|
9509
|
+
/**
|
|
9510
|
+
* When initializing the reward vec an already initialized account was found
|
|
9511
|
+
**/
|
|
9512
|
+
| { name: 'InitializedAlreadyInitializedAccount'; data: [FixedBytes<32>, AccountId20 | undefined, bigint] }
|
|
9513
|
+
/**
|
|
9514
|
+
* When initializing the reward vec an already initialized account was found
|
|
9515
|
+
**/
|
|
9516
|
+
| { name: 'InitializedAccountWithNotEnoughContribution'; data: [FixedBytes<32>, AccountId20 | undefined, bigint] };
|
|
9517
|
+
|
|
9518
|
+
/**
|
|
9519
|
+
* The `Event` enum of this pallet
|
|
9520
|
+
**/
|
|
9521
|
+
export type CumulusPalletXcmpQueueEvent =
|
|
9522
|
+
/**
|
|
9523
|
+
* An HRMP message was sent to a sibling parachain.
|
|
9524
|
+
**/
|
|
9525
|
+
{ name: 'XcmpMessageSent'; data: { messageHash: FixedBytes<32> } };
|
|
9526
|
+
|
|
9527
|
+
/**
|
|
8927
9528
|
* The `Event` enum of this pallet
|
|
8928
9529
|
**/
|
|
8929
9530
|
export type CumulusPalletXcmEvent =
|
|
@@ -9571,108 +10172,411 @@ export type PalletMigrationsEvent002 =
|
|
|
9571
10172
|
/**
|
|
9572
10173
|
* The index of the skipped migration within the [`Config::Migrations`] list.
|
|
9573
10174
|
**/
|
|
9574
|
-
index: number;
|
|
10175
|
+
index: number;
|
|
10176
|
+
};
|
|
10177
|
+
}
|
|
10178
|
+
/**
|
|
10179
|
+
* A migration progressed.
|
|
10180
|
+
**/
|
|
10181
|
+
| {
|
|
10182
|
+
name: 'MigrationAdvanced';
|
|
10183
|
+
data: {
|
|
10184
|
+
/**
|
|
10185
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
10186
|
+
**/
|
|
10187
|
+
index: number;
|
|
10188
|
+
|
|
10189
|
+
/**
|
|
10190
|
+
* The number of blocks that this migration took so far.
|
|
10191
|
+
**/
|
|
10192
|
+
took: number;
|
|
10193
|
+
};
|
|
10194
|
+
}
|
|
10195
|
+
/**
|
|
10196
|
+
* A Migration completed.
|
|
10197
|
+
**/
|
|
10198
|
+
| {
|
|
10199
|
+
name: 'MigrationCompleted';
|
|
10200
|
+
data: {
|
|
10201
|
+
/**
|
|
10202
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
10203
|
+
**/
|
|
10204
|
+
index: number;
|
|
10205
|
+
|
|
10206
|
+
/**
|
|
10207
|
+
* The number of blocks that this migration took so far.
|
|
10208
|
+
**/
|
|
10209
|
+
took: number;
|
|
10210
|
+
};
|
|
10211
|
+
}
|
|
10212
|
+
/**
|
|
10213
|
+
* A Migration failed.
|
|
10214
|
+
*
|
|
10215
|
+
* This implies that the whole upgrade failed and governance intervention is required.
|
|
10216
|
+
**/
|
|
10217
|
+
| {
|
|
10218
|
+
name: 'MigrationFailed';
|
|
10219
|
+
data: {
|
|
10220
|
+
/**
|
|
10221
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
10222
|
+
**/
|
|
10223
|
+
index: number;
|
|
10224
|
+
|
|
10225
|
+
/**
|
|
10226
|
+
* The number of blocks that this migration took so far.
|
|
10227
|
+
**/
|
|
10228
|
+
took: number;
|
|
10229
|
+
};
|
|
10230
|
+
}
|
|
10231
|
+
/**
|
|
10232
|
+
* The set of historical migrations has been cleared.
|
|
10233
|
+
**/
|
|
10234
|
+
| {
|
|
10235
|
+
name: 'HistoricCleared';
|
|
10236
|
+
data: {
|
|
10237
|
+
/**
|
|
10238
|
+
* Should be passed to `clear_historic` in a successive call.
|
|
10239
|
+
**/
|
|
10240
|
+
nextCursor?: Bytes | undefined;
|
|
10241
|
+
};
|
|
10242
|
+
};
|
|
10243
|
+
|
|
10244
|
+
/**
|
|
10245
|
+
* The `Event` enum of this pallet
|
|
10246
|
+
**/
|
|
10247
|
+
export type PalletRandomnessEvent =
|
|
10248
|
+
| {
|
|
10249
|
+
name: 'RandomnessRequestedBabeEpoch';
|
|
10250
|
+
data: {
|
|
10251
|
+
id: bigint;
|
|
10252
|
+
refundAddress: H160;
|
|
10253
|
+
contractAddress: H160;
|
|
10254
|
+
fee: bigint;
|
|
10255
|
+
gasLimit: bigint;
|
|
10256
|
+
numWords: number;
|
|
10257
|
+
salt: H256;
|
|
10258
|
+
earliestEpoch: bigint;
|
|
10259
|
+
};
|
|
10260
|
+
}
|
|
10261
|
+
| {
|
|
10262
|
+
name: 'RandomnessRequestedLocal';
|
|
10263
|
+
data: {
|
|
10264
|
+
id: bigint;
|
|
10265
|
+
refundAddress: H160;
|
|
10266
|
+
contractAddress: H160;
|
|
10267
|
+
fee: bigint;
|
|
10268
|
+
gasLimit: bigint;
|
|
10269
|
+
numWords: number;
|
|
10270
|
+
salt: H256;
|
|
10271
|
+
earliestBlock: number;
|
|
10272
|
+
};
|
|
10273
|
+
}
|
|
10274
|
+
| { name: 'RequestFulfilled'; data: { id: bigint } }
|
|
10275
|
+
| { name: 'RequestFeeIncreased'; data: { id: bigint; newFee: bigint } }
|
|
10276
|
+
| { name: 'RequestExpirationExecuted'; data: { id: bigint } };
|
|
10277
|
+
|
|
10278
|
+
/**
|
|
10279
|
+
* The `Event` enum of this pallet
|
|
10280
|
+
**/
|
|
10281
|
+
export type PalletBridgeGrandpaEvent =
|
|
10282
|
+
/**
|
|
10283
|
+
* Best finalized chain header has been updated to the header with given number and hash.
|
|
10284
|
+
**/
|
|
10285
|
+
{
|
|
10286
|
+
name: 'UpdatedBestFinalizedHeader';
|
|
10287
|
+
data: {
|
|
10288
|
+
/**
|
|
10289
|
+
* Number of the new best finalized header.
|
|
10290
|
+
**/
|
|
10291
|
+
number: number;
|
|
10292
|
+
|
|
10293
|
+
/**
|
|
10294
|
+
* Hash of the new best finalized header.
|
|
10295
|
+
**/
|
|
10296
|
+
hash: H256;
|
|
10297
|
+
|
|
10298
|
+
/**
|
|
10299
|
+
* The Grandpa info associated to the new best finalized header.
|
|
10300
|
+
**/
|
|
10301
|
+
grandpaInfo: BpHeaderChainHeaderFinalityInfo;
|
|
10302
|
+
};
|
|
10303
|
+
};
|
|
10304
|
+
|
|
10305
|
+
export type BpHeaderChainHeaderFinalityInfo = {
|
|
10306
|
+
finalityProof: BpHeaderChainJustificationGrandpaJustification;
|
|
10307
|
+
newVerificationContext?: BpHeaderChainAuthoritySet | undefined;
|
|
10308
|
+
};
|
|
10309
|
+
|
|
10310
|
+
export type BpHeaderChainAuthoritySet = { authorities: Array<[SpConsensusGrandpaAppPublic, bigint]>; setId: bigint };
|
|
10311
|
+
|
|
10312
|
+
/**
|
|
10313
|
+
* The `Event` enum of this pallet
|
|
10314
|
+
**/
|
|
10315
|
+
export type PalletBridgeParachainsEvent =
|
|
10316
|
+
/**
|
|
10317
|
+
* The caller has provided head of parachain that the pallet is not configured to track.
|
|
10318
|
+
**/
|
|
10319
|
+
| {
|
|
10320
|
+
name: 'UntrackedParachainRejected';
|
|
10321
|
+
data: {
|
|
10322
|
+
/**
|
|
10323
|
+
* Identifier of the parachain that is not tracked by the pallet.
|
|
10324
|
+
**/
|
|
10325
|
+
parachain: BpPolkadotCoreParachainsParaId;
|
|
10326
|
+
};
|
|
10327
|
+
}
|
|
10328
|
+
/**
|
|
10329
|
+
* The caller has declared that he has provided given parachain head, but it is missing
|
|
10330
|
+
* from the storage proof.
|
|
10331
|
+
**/
|
|
10332
|
+
| {
|
|
10333
|
+
name: 'MissingParachainHead';
|
|
10334
|
+
data: {
|
|
10335
|
+
/**
|
|
10336
|
+
* Identifier of the parachain with missing head.
|
|
10337
|
+
**/
|
|
10338
|
+
parachain: BpPolkadotCoreParachainsParaId;
|
|
10339
|
+
};
|
|
10340
|
+
}
|
|
10341
|
+
/**
|
|
10342
|
+
* The caller has provided parachain head hash that is not matching the hash read from the
|
|
10343
|
+
* storage proof.
|
|
10344
|
+
**/
|
|
10345
|
+
| {
|
|
10346
|
+
name: 'IncorrectParachainHeadHash';
|
|
10347
|
+
data: {
|
|
10348
|
+
/**
|
|
10349
|
+
* Identifier of the parachain with incorrect head hast.
|
|
10350
|
+
**/
|
|
10351
|
+
parachain: BpPolkadotCoreParachainsParaId;
|
|
10352
|
+
|
|
10353
|
+
/**
|
|
10354
|
+
* Specified parachain head hash.
|
|
10355
|
+
**/
|
|
10356
|
+
parachainHeadHash: H256;
|
|
10357
|
+
|
|
10358
|
+
/**
|
|
10359
|
+
* Actual parachain head hash.
|
|
10360
|
+
**/
|
|
10361
|
+
actualParachainHeadHash: H256;
|
|
10362
|
+
};
|
|
10363
|
+
}
|
|
10364
|
+
/**
|
|
10365
|
+
* The caller has provided obsolete parachain head, which is already known to the pallet.
|
|
10366
|
+
**/
|
|
10367
|
+
| {
|
|
10368
|
+
name: 'RejectedObsoleteParachainHead';
|
|
10369
|
+
data: {
|
|
10370
|
+
/**
|
|
10371
|
+
* Identifier of the parachain with obsolete head.
|
|
10372
|
+
**/
|
|
10373
|
+
parachain: BpPolkadotCoreParachainsParaId;
|
|
10374
|
+
|
|
10375
|
+
/**
|
|
10376
|
+
* Obsolete parachain head hash.
|
|
10377
|
+
**/
|
|
10378
|
+
parachainHeadHash: H256;
|
|
9575
10379
|
};
|
|
9576
10380
|
}
|
|
9577
10381
|
/**
|
|
9578
|
-
*
|
|
10382
|
+
* The caller has provided parachain head that exceeds the maximal configured head size.
|
|
9579
10383
|
**/
|
|
9580
10384
|
| {
|
|
9581
|
-
name: '
|
|
10385
|
+
name: 'RejectedLargeParachainHead';
|
|
9582
10386
|
data: {
|
|
9583
10387
|
/**
|
|
9584
|
-
*
|
|
10388
|
+
* Identifier of the parachain with rejected head.
|
|
9585
10389
|
**/
|
|
9586
|
-
|
|
10390
|
+
parachain: BpPolkadotCoreParachainsParaId;
|
|
9587
10391
|
|
|
9588
10392
|
/**
|
|
9589
|
-
*
|
|
10393
|
+
* Parachain head hash.
|
|
9590
10394
|
**/
|
|
9591
|
-
|
|
10395
|
+
parachainHeadHash: H256;
|
|
10396
|
+
|
|
10397
|
+
/**
|
|
10398
|
+
* Parachain head size.
|
|
10399
|
+
**/
|
|
10400
|
+
parachainHeadSize: number;
|
|
9592
10401
|
};
|
|
9593
10402
|
}
|
|
9594
10403
|
/**
|
|
9595
|
-
*
|
|
10404
|
+
* Parachain head has been updated.
|
|
9596
10405
|
**/
|
|
9597
10406
|
| {
|
|
9598
|
-
name: '
|
|
10407
|
+
name: 'UpdatedParachainHead';
|
|
9599
10408
|
data: {
|
|
9600
10409
|
/**
|
|
9601
|
-
*
|
|
10410
|
+
* Identifier of the parachain that has been updated.
|
|
9602
10411
|
**/
|
|
9603
|
-
|
|
10412
|
+
parachain: BpPolkadotCoreParachainsParaId;
|
|
9604
10413
|
|
|
9605
10414
|
/**
|
|
9606
|
-
*
|
|
10415
|
+
* Parachain head hash.
|
|
9607
10416
|
**/
|
|
9608
|
-
|
|
10417
|
+
parachainHeadHash: H256;
|
|
9609
10418
|
};
|
|
9610
|
-
}
|
|
10419
|
+
};
|
|
10420
|
+
|
|
10421
|
+
/**
|
|
10422
|
+
* The `Event` enum of this pallet
|
|
10423
|
+
**/
|
|
10424
|
+
export type PalletBridgeMessagesEvent =
|
|
9611
10425
|
/**
|
|
9612
|
-
*
|
|
9613
|
-
*
|
|
9614
|
-
* This implies that the whole upgrade failed and governance intervention is required.
|
|
10426
|
+
* Message has been accepted and is waiting to be delivered.
|
|
9615
10427
|
**/
|
|
9616
10428
|
| {
|
|
9617
|
-
name: '
|
|
10429
|
+
name: 'MessageAccepted';
|
|
9618
10430
|
data: {
|
|
9619
10431
|
/**
|
|
9620
|
-
*
|
|
10432
|
+
* Lane, which has accepted the message.
|
|
9621
10433
|
**/
|
|
9622
|
-
|
|
10434
|
+
laneId: BpMessagesLaneHashedLaneId;
|
|
9623
10435
|
|
|
9624
10436
|
/**
|
|
9625
|
-
*
|
|
10437
|
+
* Nonce of accepted message.
|
|
9626
10438
|
**/
|
|
9627
|
-
|
|
10439
|
+
nonce: bigint;
|
|
9628
10440
|
};
|
|
9629
10441
|
}
|
|
9630
10442
|
/**
|
|
9631
|
-
*
|
|
10443
|
+
* Messages have been received from the bridged chain.
|
|
10444
|
+
**/
|
|
10445
|
+
| { name: 'MessagesReceived'; data: BpMessagesReceivedMessages }
|
|
10446
|
+
/**
|
|
10447
|
+
* Messages in the inclusive range have been delivered to the bridged chain.
|
|
9632
10448
|
**/
|
|
9633
10449
|
| {
|
|
9634
|
-
name: '
|
|
10450
|
+
name: 'MessagesDelivered';
|
|
9635
10451
|
data: {
|
|
9636
10452
|
/**
|
|
9637
|
-
*
|
|
10453
|
+
* Lane for which the delivery has been confirmed.
|
|
9638
10454
|
**/
|
|
9639
|
-
|
|
10455
|
+
laneId: BpMessagesLaneHashedLaneId;
|
|
10456
|
+
|
|
10457
|
+
/**
|
|
10458
|
+
* Delivered messages.
|
|
10459
|
+
**/
|
|
10460
|
+
messages: BpMessagesDeliveredMessages;
|
|
9640
10461
|
};
|
|
9641
10462
|
};
|
|
9642
10463
|
|
|
10464
|
+
export type BpMessagesReceivedMessages = {
|
|
10465
|
+
lane: BpMessagesLaneHashedLaneId;
|
|
10466
|
+
receiveResults: Array<[bigint, BpMessagesReceptionResult]>;
|
|
10467
|
+
};
|
|
10468
|
+
|
|
10469
|
+
export type PalletXcmBridgeHubDispatcherXcmBlobMessageDispatchResult =
|
|
10470
|
+
| 'InvalidPayload'
|
|
10471
|
+
| 'Dispatched'
|
|
10472
|
+
| 'NotDispatched';
|
|
10473
|
+
|
|
10474
|
+
export type BpMessagesReceptionResult =
|
|
10475
|
+
| { type: 'Dispatched'; value: BpRuntimeMessagesMessageDispatchResult }
|
|
10476
|
+
| { type: 'InvalidNonce' }
|
|
10477
|
+
| { type: 'TooManyUnrewardedRelayers' }
|
|
10478
|
+
| { type: 'TooManyUnconfirmedMessages' };
|
|
10479
|
+
|
|
10480
|
+
export type BpRuntimeMessagesMessageDispatchResult = {
|
|
10481
|
+
unspentWeight: SpWeightsWeightV2Weight;
|
|
10482
|
+
dispatchLevelResult: PalletXcmBridgeHubDispatcherXcmBlobMessageDispatchResult;
|
|
10483
|
+
};
|
|
10484
|
+
|
|
10485
|
+
export type BpMessagesDeliveredMessages = { begin: bigint; end: bigint };
|
|
10486
|
+
|
|
9643
10487
|
/**
|
|
9644
10488
|
* The `Event` enum of this pallet
|
|
9645
10489
|
**/
|
|
9646
|
-
export type
|
|
10490
|
+
export type PalletXcmBridgeHubEvent =
|
|
10491
|
+
/**
|
|
10492
|
+
* The bridge between two locations has been opened.
|
|
10493
|
+
**/
|
|
9647
10494
|
| {
|
|
9648
|
-
name: '
|
|
10495
|
+
name: 'BridgeOpened';
|
|
9649
10496
|
data: {
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
10497
|
+
/**
|
|
10498
|
+
* Bridge identifier.
|
|
10499
|
+
**/
|
|
10500
|
+
bridgeId: BpXcmBridgeHubBridgeId;
|
|
10501
|
+
|
|
10502
|
+
/**
|
|
10503
|
+
* Amount of deposit held.
|
|
10504
|
+
**/
|
|
10505
|
+
bridgeDeposit: bigint;
|
|
10506
|
+
|
|
10507
|
+
/**
|
|
10508
|
+
* Universal location of local bridge endpoint.
|
|
10509
|
+
**/
|
|
10510
|
+
localEndpoint: StagingXcmV5Junctions;
|
|
10511
|
+
|
|
10512
|
+
/**
|
|
10513
|
+
* Universal location of remote bridge endpoint.
|
|
10514
|
+
**/
|
|
10515
|
+
remoteEndpoint: StagingXcmV5Junctions;
|
|
10516
|
+
|
|
10517
|
+
/**
|
|
10518
|
+
* Lane identifier.
|
|
10519
|
+
**/
|
|
10520
|
+
laneId: BpMessagesLaneHashedLaneId;
|
|
9658
10521
|
};
|
|
9659
10522
|
}
|
|
10523
|
+
/**
|
|
10524
|
+
* Bridge is going to be closed, but not yet fully pruned from the runtime storage.
|
|
10525
|
+
**/
|
|
9660
10526
|
| {
|
|
9661
|
-
name: '
|
|
10527
|
+
name: 'ClosingBridge';
|
|
9662
10528
|
data: {
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
10529
|
+
/**
|
|
10530
|
+
* Bridge identifier.
|
|
10531
|
+
**/
|
|
10532
|
+
bridgeId: BpXcmBridgeHubBridgeId;
|
|
10533
|
+
|
|
10534
|
+
/**
|
|
10535
|
+
* Lane identifier.
|
|
10536
|
+
**/
|
|
10537
|
+
laneId: BpMessagesLaneHashedLaneId;
|
|
10538
|
+
|
|
10539
|
+
/**
|
|
10540
|
+
* Number of pruned messages during the close call.
|
|
10541
|
+
**/
|
|
10542
|
+
prunedMessages: bigint;
|
|
10543
|
+
|
|
10544
|
+
/**
|
|
10545
|
+
* Number of enqueued messages that need to be pruned in follow up calls.
|
|
10546
|
+
**/
|
|
10547
|
+
enqueuedMessages: bigint;
|
|
9671
10548
|
};
|
|
9672
10549
|
}
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
10550
|
+
/**
|
|
10551
|
+
* Bridge has been closed and pruned from the runtime storage. It now may be reopened
|
|
10552
|
+
* again by any participant.
|
|
10553
|
+
**/
|
|
10554
|
+
| {
|
|
10555
|
+
name: 'BridgePruned';
|
|
10556
|
+
data: {
|
|
10557
|
+
/**
|
|
10558
|
+
* Bridge identifier.
|
|
10559
|
+
**/
|
|
10560
|
+
bridgeId: BpXcmBridgeHubBridgeId;
|
|
10561
|
+
|
|
10562
|
+
/**
|
|
10563
|
+
* Lane identifier.
|
|
10564
|
+
**/
|
|
10565
|
+
laneId: BpMessagesLaneHashedLaneId;
|
|
10566
|
+
|
|
10567
|
+
/**
|
|
10568
|
+
* Amount of deposit released.
|
|
10569
|
+
**/
|
|
10570
|
+
bridgeDeposit: bigint;
|
|
10571
|
+
|
|
10572
|
+
/**
|
|
10573
|
+
* Number of pruned messages during the close call.
|
|
10574
|
+
**/
|
|
10575
|
+
prunedMessages: bigint;
|
|
10576
|
+
};
|
|
10577
|
+
};
|
|
10578
|
+
|
|
10579
|
+
export type BpXcmBridgeHubBridgeId = H256;
|
|
9676
10580
|
|
|
9677
10581
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
9678
10582
|
|
|
@@ -9866,10 +10770,14 @@ export type PalletBalancesReserveData = { id: FixedBytes<4>; amount: bigint };
|
|
|
9866
10770
|
|
|
9867
10771
|
export type FrameSupportTokensMiscIdAmount = { id: MoonbeamRuntimeRuntimeHoldReason; amount: bigint };
|
|
9868
10772
|
|
|
9869
|
-
export type MoonbeamRuntimeRuntimeHoldReason =
|
|
10773
|
+
export type MoonbeamRuntimeRuntimeHoldReason =
|
|
10774
|
+
| { type: 'Preimage'; value: PalletPreimageHoldReason }
|
|
10775
|
+
| { type: 'BridgeXcmOverMoonriver'; value: PalletXcmBridgeHubHoldReason };
|
|
9870
10776
|
|
|
9871
10777
|
export type PalletPreimageHoldReason = 'Preimage';
|
|
9872
10778
|
|
|
10779
|
+
export type PalletXcmBridgeHubHoldReason = 'BridgeDeposit';
|
|
10780
|
+
|
|
9873
10781
|
export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint };
|
|
9874
10782
|
|
|
9875
10783
|
/**
|
|
@@ -10464,24 +11372,10 @@ export type PalletMultisigError =
|
|
|
10464
11372
|
**/
|
|
10465
11373
|
| 'AlreadyStored';
|
|
10466
11374
|
|
|
10467
|
-
export type PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus =
|
|
10468
|
-
| { type: 'Idle' }
|
|
10469
|
-
| { type: 'Migrating'; value: PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationInfo };
|
|
10470
|
-
|
|
10471
|
-
export type PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationInfo = {
|
|
10472
|
-
assetId: bigint;
|
|
10473
|
-
remainingBalances: number;
|
|
10474
|
-
remainingApprovals: number;
|
|
10475
|
-
};
|
|
10476
|
-
|
|
10477
11375
|
/**
|
|
10478
11376
|
* The `Error` enum of this pallet.
|
|
10479
11377
|
**/
|
|
10480
11378
|
export type PalletMoonbeamLazyMigrationsError =
|
|
10481
|
-
/**
|
|
10482
|
-
* The limit cannot be zero
|
|
10483
|
-
**/
|
|
10484
|
-
| 'LimitCannotBeZero'
|
|
10485
11379
|
/**
|
|
10486
11380
|
* The contract already have metadata
|
|
10487
11381
|
**/
|
|
@@ -10489,43 +11383,7 @@ export type PalletMoonbeamLazyMigrationsError =
|
|
|
10489
11383
|
/**
|
|
10490
11384
|
* Contract not exist
|
|
10491
11385
|
**/
|
|
10492
|
-
| 'ContractNotExist'
|
|
10493
|
-
/**
|
|
10494
|
-
* The symbol length exceeds the maximum allowed
|
|
10495
|
-
**/
|
|
10496
|
-
| 'SymbolTooLong'
|
|
10497
|
-
/**
|
|
10498
|
-
* The name length exceeds the maximum allowed
|
|
10499
|
-
**/
|
|
10500
|
-
| 'NameTooLong'
|
|
10501
|
-
/**
|
|
10502
|
-
* The asset type was not found
|
|
10503
|
-
**/
|
|
10504
|
-
| 'AssetTypeNotFound'
|
|
10505
|
-
/**
|
|
10506
|
-
* Asset not found
|
|
10507
|
-
**/
|
|
10508
|
-
| 'AssetNotFound'
|
|
10509
|
-
/**
|
|
10510
|
-
* The location of the asset was not found
|
|
10511
|
-
**/
|
|
10512
|
-
| 'LocationNotFound'
|
|
10513
|
-
/**
|
|
10514
|
-
* Migration is not finished yet
|
|
10515
|
-
**/
|
|
10516
|
-
| 'MigrationNotFinished'
|
|
10517
|
-
/**
|
|
10518
|
-
* No migration in progress
|
|
10519
|
-
**/
|
|
10520
|
-
| 'NoMigrationInProgress'
|
|
10521
|
-
/**
|
|
10522
|
-
* Fail to mint the foreign asset
|
|
10523
|
-
**/
|
|
10524
|
-
| 'MintFailed'
|
|
10525
|
-
/**
|
|
10526
|
-
* Fail to add an approval
|
|
10527
|
-
**/
|
|
10528
|
-
| 'ApprovalFailed';
|
|
11386
|
+
| 'ContractNotExist';
|
|
10529
11387
|
|
|
10530
11388
|
export type PalletEvmCodeMetadata = { size: bigint; hash: H256 };
|
|
10531
11389
|
|
|
@@ -11736,6 +12594,275 @@ export type PalletRandomnessError =
|
|
|
11736
12594
|
| 'RandomnessResultDNE'
|
|
11737
12595
|
| 'RandomnessResultNotFilled';
|
|
11738
12596
|
|
|
12597
|
+
export type BpRuntimeHeaderId = [number, H256];
|
|
12598
|
+
|
|
12599
|
+
export type BpHeaderChainStoredHeaderData = { number: number; stateRoot: H256 };
|
|
12600
|
+
|
|
12601
|
+
export type PalletBridgeGrandpaStorageTypesStoredAuthoritySet = {
|
|
12602
|
+
authorities: Array<[SpConsensusGrandpaAppPublic, bigint]>;
|
|
12603
|
+
setId: bigint;
|
|
12604
|
+
};
|
|
12605
|
+
|
|
12606
|
+
/**
|
|
12607
|
+
* The `Error` enum of this pallet.
|
|
12608
|
+
**/
|
|
12609
|
+
export type PalletBridgeGrandpaError =
|
|
12610
|
+
/**
|
|
12611
|
+
* The given justification is invalid for the given header.
|
|
12612
|
+
**/
|
|
12613
|
+
| { name: 'InvalidJustification' }
|
|
12614
|
+
/**
|
|
12615
|
+
* The authority set from the underlying header chain is invalid.
|
|
12616
|
+
**/
|
|
12617
|
+
| { name: 'InvalidAuthoritySet' }
|
|
12618
|
+
/**
|
|
12619
|
+
* The header being imported is older than the best finalized header known to the pallet.
|
|
12620
|
+
**/
|
|
12621
|
+
| { name: 'OldHeader' }
|
|
12622
|
+
/**
|
|
12623
|
+
* The scheduled authority set change found in the header is unsupported by the pallet.
|
|
12624
|
+
*
|
|
12625
|
+
* This is the case for non-standard (e.g forced) authority set changes.
|
|
12626
|
+
**/
|
|
12627
|
+
| { name: 'UnsupportedScheduledChange' }
|
|
12628
|
+
/**
|
|
12629
|
+
* The pallet is not yet initialized.
|
|
12630
|
+
**/
|
|
12631
|
+
| { name: 'NotInitialized' }
|
|
12632
|
+
/**
|
|
12633
|
+
* The pallet has already been initialized.
|
|
12634
|
+
**/
|
|
12635
|
+
| { name: 'AlreadyInitialized' }
|
|
12636
|
+
/**
|
|
12637
|
+
* Too many authorities in the set.
|
|
12638
|
+
**/
|
|
12639
|
+
| { name: 'TooManyAuthoritiesInSet' }
|
|
12640
|
+
/**
|
|
12641
|
+
* Error generated by the `OwnedBridgeModule` trait.
|
|
12642
|
+
**/
|
|
12643
|
+
| { name: 'BridgeModule'; data: BpRuntimeOwnedBridgeModuleError }
|
|
12644
|
+
/**
|
|
12645
|
+
* The `current_set_id` argument of the `submit_finality_proof_ex` doesn't match
|
|
12646
|
+
* the id of the current set, known to the pallet.
|
|
12647
|
+
**/
|
|
12648
|
+
| { name: 'InvalidAuthoritySetId' }
|
|
12649
|
+
/**
|
|
12650
|
+
* The submitter wanted free execution, but we can't fit more free transactions
|
|
12651
|
+
* to the block.
|
|
12652
|
+
**/
|
|
12653
|
+
| { name: 'FreeHeadersLimitExceded' }
|
|
12654
|
+
/**
|
|
12655
|
+
* The submitter wanted free execution, but the difference between best known and
|
|
12656
|
+
* bundled header numbers is below the `FreeHeadersInterval`.
|
|
12657
|
+
**/
|
|
12658
|
+
| { name: 'BelowFreeHeaderInterval' }
|
|
12659
|
+
/**
|
|
12660
|
+
* The header (and its finality) submission overflows hardcoded chain limits: size
|
|
12661
|
+
* and/or weight are larger than expected.
|
|
12662
|
+
**/
|
|
12663
|
+
| { name: 'HeaderOverflowLimits' };
|
|
12664
|
+
|
|
12665
|
+
export type BpRuntimeOwnedBridgeModuleError = 'Halted';
|
|
12666
|
+
|
|
12667
|
+
export type BpParachainsParaInfo = { bestHeadHash: BpParachainsBestParaHeadHash; nextImportedHashPosition: number };
|
|
12668
|
+
|
|
12669
|
+
export type BpParachainsBestParaHeadHash = { atRelayBlockNumber: number; headHash: H256 };
|
|
12670
|
+
|
|
12671
|
+
export type BpParachainsParaStoredHeaderData = Bytes;
|
|
12672
|
+
|
|
12673
|
+
/**
|
|
12674
|
+
* The `Error` enum of this pallet.
|
|
12675
|
+
**/
|
|
12676
|
+
export type PalletBridgeParachainsError =
|
|
12677
|
+
/**
|
|
12678
|
+
* Relay chain block hash is unknown to us.
|
|
12679
|
+
**/
|
|
12680
|
+
| { name: 'UnknownRelayChainBlock' }
|
|
12681
|
+
/**
|
|
12682
|
+
* The number of stored relay block is different from what the relayer has provided.
|
|
12683
|
+
**/
|
|
12684
|
+
| { name: 'InvalidRelayChainBlockNumber' }
|
|
12685
|
+
/**
|
|
12686
|
+
* Parachain heads storage proof is invalid.
|
|
12687
|
+
**/
|
|
12688
|
+
| { name: 'HeaderChainStorageProof'; data: BpHeaderChainHeaderChainError }
|
|
12689
|
+
/**
|
|
12690
|
+
* Error generated by the `OwnedBridgeModule` trait.
|
|
12691
|
+
**/
|
|
12692
|
+
| { name: 'BridgeModule'; data: BpRuntimeOwnedBridgeModuleError };
|
|
12693
|
+
|
|
12694
|
+
export type BpHeaderChainHeaderChainError =
|
|
12695
|
+
| { type: 'UnknownHeader' }
|
|
12696
|
+
| { type: 'StorageProof'; value: BpRuntimeStorageProofStorageProofError };
|
|
12697
|
+
|
|
12698
|
+
export type BpRuntimeStorageProofStorageProofError =
|
|
12699
|
+
| 'UnableToGenerateTrieProof'
|
|
12700
|
+
| 'InvalidProof'
|
|
12701
|
+
| 'UnsortedEntries'
|
|
12702
|
+
| 'UnavailableKey'
|
|
12703
|
+
| 'EmptyVal'
|
|
12704
|
+
| 'DecodeError'
|
|
12705
|
+
| 'UnusedKey'
|
|
12706
|
+
| 'StorageRootMismatch'
|
|
12707
|
+
| 'StorageValueUnavailable'
|
|
12708
|
+
| 'DuplicateNodes';
|
|
12709
|
+
|
|
12710
|
+
export type BpMessagesInboundLaneData = {
|
|
12711
|
+
relayers: Array<BpMessagesUnrewardedRelayer>;
|
|
12712
|
+
lastConfirmedNonce: bigint;
|
|
12713
|
+
state: BpMessagesLaneLaneState;
|
|
12714
|
+
};
|
|
12715
|
+
|
|
12716
|
+
export type BpMessagesUnrewardedRelayer = { relayer: AccountId20; messages: BpMessagesDeliveredMessages };
|
|
12717
|
+
|
|
12718
|
+
export type BpMessagesLaneLaneState = 'Opened' | 'Closed';
|
|
12719
|
+
|
|
12720
|
+
export type BpMessagesOutboundLaneData = {
|
|
12721
|
+
oldestUnprunedNonce: bigint;
|
|
12722
|
+
latestReceivedNonce: bigint;
|
|
12723
|
+
latestGeneratedNonce: bigint;
|
|
12724
|
+
state: BpMessagesLaneLaneState;
|
|
12725
|
+
};
|
|
12726
|
+
|
|
12727
|
+
export type BpMessagesMessageKey = { laneId: BpMessagesLaneHashedLaneId; nonce: bigint };
|
|
12728
|
+
|
|
12729
|
+
/**
|
|
12730
|
+
* The `Error` enum of this pallet.
|
|
12731
|
+
**/
|
|
12732
|
+
export type PalletBridgeMessagesError =
|
|
12733
|
+
/**
|
|
12734
|
+
* Pallet is not in Normal operating mode.
|
|
12735
|
+
**/
|
|
12736
|
+
| { name: 'NotOperatingNormally' }
|
|
12737
|
+
/**
|
|
12738
|
+
* Error that is reported by the lanes manager.
|
|
12739
|
+
**/
|
|
12740
|
+
| { name: 'LanesManager'; data: PalletBridgeMessagesLanesManagerLanesManagerError }
|
|
12741
|
+
/**
|
|
12742
|
+
* Message has been treated as invalid by the pallet logic.
|
|
12743
|
+
**/
|
|
12744
|
+
| { name: 'MessageRejectedByPallet'; data: BpMessagesVerificationError }
|
|
12745
|
+
/**
|
|
12746
|
+
* The transaction brings too many messages.
|
|
12747
|
+
**/
|
|
12748
|
+
| { name: 'TooManyMessagesInTheProof' }
|
|
12749
|
+
/**
|
|
12750
|
+
* Invalid messages has been submitted.
|
|
12751
|
+
**/
|
|
12752
|
+
| { name: 'InvalidMessagesProof' }
|
|
12753
|
+
/**
|
|
12754
|
+
* Invalid messages delivery proof has been submitted.
|
|
12755
|
+
**/
|
|
12756
|
+
| { name: 'InvalidMessagesDeliveryProof' }
|
|
12757
|
+
/**
|
|
12758
|
+
* The relayer has declared invalid unrewarded relayers state in the
|
|
12759
|
+
* `receive_messages_delivery_proof` call.
|
|
12760
|
+
**/
|
|
12761
|
+
| { name: 'InvalidUnrewardedRelayersState' }
|
|
12762
|
+
/**
|
|
12763
|
+
* The cumulative dispatch weight, passed by relayer is not enough to cover dispatch
|
|
12764
|
+
* of all bundled messages.
|
|
12765
|
+
**/
|
|
12766
|
+
| { name: 'InsufficientDispatchWeight' }
|
|
12767
|
+
/**
|
|
12768
|
+
* Error confirming messages receival.
|
|
12769
|
+
**/
|
|
12770
|
+
| { name: 'ReceptionConfirmation'; data: PalletBridgeMessagesOutboundLaneReceptionConfirmationError }
|
|
12771
|
+
/**
|
|
12772
|
+
* Error generated by the `OwnedBridgeModule` trait.
|
|
12773
|
+
**/
|
|
12774
|
+
| { name: 'BridgeModule'; data: BpRuntimeOwnedBridgeModuleError };
|
|
12775
|
+
|
|
12776
|
+
export type PalletBridgeMessagesLanesManagerLanesManagerError =
|
|
12777
|
+
| 'InboundLaneAlreadyExists'
|
|
12778
|
+
| 'OutboundLaneAlreadyExists'
|
|
12779
|
+
| 'UnknownInboundLane'
|
|
12780
|
+
| 'UnknownOutboundLane'
|
|
12781
|
+
| 'ClosedInboundLane'
|
|
12782
|
+
| 'ClosedOutboundLane'
|
|
12783
|
+
| 'LaneDispatcherInactive';
|
|
12784
|
+
|
|
12785
|
+
export type BpMessagesVerificationError =
|
|
12786
|
+
| { type: 'EmptyMessageProof' }
|
|
12787
|
+
| { type: 'HeaderChain'; value: BpHeaderChainHeaderChainError }
|
|
12788
|
+
| { type: 'InboundLaneStorage'; value: BpRuntimeStorageProofStorageProofError }
|
|
12789
|
+
| { type: 'InvalidMessageWeight' }
|
|
12790
|
+
| { type: 'MessagesCountMismatch' }
|
|
12791
|
+
| { type: 'MessageStorage'; value: BpRuntimeStorageProofStorageProofError }
|
|
12792
|
+
| { type: 'MessageTooLarge' }
|
|
12793
|
+
| { type: 'OutboundLaneStorage'; value: BpRuntimeStorageProofStorageProofError }
|
|
12794
|
+
| { type: 'StorageProof'; value: BpRuntimeStorageProofStorageProofError }
|
|
12795
|
+
| { type: 'Other' };
|
|
12796
|
+
|
|
12797
|
+
export type PalletBridgeMessagesOutboundLaneReceptionConfirmationError =
|
|
12798
|
+
| 'FailedToConfirmFutureMessages'
|
|
12799
|
+
| 'EmptyUnrewardedRelayerEntry'
|
|
12800
|
+
| 'NonConsecutiveUnrewardedRelayerEntries'
|
|
12801
|
+
| 'TryingToConfirmMoreMessagesThanExpected';
|
|
12802
|
+
|
|
12803
|
+
export type BpXcmBridgeHubBridge = {
|
|
12804
|
+
bridgeOriginRelativeLocation: XcmVersionedLocation;
|
|
12805
|
+
bridgeOriginUniversalLocation: XcmVersionedInteriorLocation;
|
|
12806
|
+
bridgeDestinationUniversalLocation: XcmVersionedInteriorLocation;
|
|
12807
|
+
state: BpXcmBridgeHubBridgeState;
|
|
12808
|
+
bridgeOwnerAccount: AccountId20;
|
|
12809
|
+
deposit: bigint;
|
|
12810
|
+
laneId: BpMessagesLaneHashedLaneId;
|
|
12811
|
+
};
|
|
12812
|
+
|
|
12813
|
+
export type BpXcmBridgeHubBridgeState = 'Opened' | 'Suspended' | 'Closed';
|
|
12814
|
+
|
|
12815
|
+
/**
|
|
12816
|
+
* The `Error` enum of this pallet.
|
|
12817
|
+
**/
|
|
12818
|
+
export type PalletXcmBridgeHubError =
|
|
12819
|
+
/**
|
|
12820
|
+
* Bridge locations error.
|
|
12821
|
+
**/
|
|
12822
|
+
| { name: 'BridgeLocations'; data: BpXcmBridgeHubBridgeLocationsError }
|
|
12823
|
+
/**
|
|
12824
|
+
* Invalid local bridge origin account.
|
|
12825
|
+
**/
|
|
12826
|
+
| { name: 'InvalidBridgeOriginAccount' }
|
|
12827
|
+
/**
|
|
12828
|
+
* The bridge is already registered in this pallet.
|
|
12829
|
+
**/
|
|
12830
|
+
| { name: 'BridgeAlreadyExists' }
|
|
12831
|
+
/**
|
|
12832
|
+
* The local origin already owns a maximal number of bridges.
|
|
12833
|
+
**/
|
|
12834
|
+
| { name: 'TooManyBridgesForLocalOrigin' }
|
|
12835
|
+
/**
|
|
12836
|
+
* Trying to close already closed bridge.
|
|
12837
|
+
**/
|
|
12838
|
+
| { name: 'BridgeAlreadyClosed' }
|
|
12839
|
+
/**
|
|
12840
|
+
* Lanes manager error.
|
|
12841
|
+
**/
|
|
12842
|
+
| { name: 'LanesManager'; data: PalletBridgeMessagesLanesManagerLanesManagerError }
|
|
12843
|
+
/**
|
|
12844
|
+
* Trying to access unknown bridge.
|
|
12845
|
+
**/
|
|
12846
|
+
| { name: 'UnknownBridge' }
|
|
12847
|
+
/**
|
|
12848
|
+
* The bridge origin can't pay the required amount for opening the bridge.
|
|
12849
|
+
**/
|
|
12850
|
+
| { name: 'FailedToReserveBridgeDeposit' }
|
|
12851
|
+
/**
|
|
12852
|
+
* The version of XCM location argument is unsupported.
|
|
12853
|
+
**/
|
|
12854
|
+
| { name: 'UnsupportedXcmVersion' };
|
|
12855
|
+
|
|
12856
|
+
export type BpXcmBridgeHubBridgeLocationsError =
|
|
12857
|
+
| 'NonUniversalLocation'
|
|
12858
|
+
| 'InvalidBridgeOrigin'
|
|
12859
|
+
| 'InvalidBridgeDestination'
|
|
12860
|
+
| 'DestinationIsLocal'
|
|
12861
|
+
| 'UnreachableDestination'
|
|
12862
|
+
| 'UnsupportedDestinationLocation'
|
|
12863
|
+
| 'UnsupportedXcmVersion'
|
|
12864
|
+
| 'UnsupportedLaneIdType';
|
|
12865
|
+
|
|
11739
12866
|
export type FrameSystemExtensionsCheckNonZeroSender = {};
|
|
11740
12867
|
|
|
11741
12868
|
export type FrameSystemExtensionsCheckSpecVersion = {};
|
|
@@ -11752,6 +12879,8 @@ export type FrameSystemExtensionsCheckWeight = {};
|
|
|
11752
12879
|
|
|
11753
12880
|
export type PalletTransactionPaymentChargeTransactionPayment = bigint;
|
|
11754
12881
|
|
|
12882
|
+
export type MoonbeamRuntimeBridgeRejectObsoleteHeadersAndMessages = {};
|
|
12883
|
+
|
|
11755
12884
|
export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
|
|
11756
12885
|
|
|
11757
12886
|
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
@@ -11794,6 +12923,10 @@ export type SpRuntimeTransactionValidityUnknownTransaction =
|
|
|
11794
12923
|
| { type: 'NoUnsignedValidator' }
|
|
11795
12924
|
| { type: 'Custom'; value: number };
|
|
11796
12925
|
|
|
12926
|
+
export type BpMessagesOutboundMessageDetails = { nonce: bigint; dispatchWeight: SpWeightsWeightV2Weight; size: number };
|
|
12927
|
+
|
|
12928
|
+
export type BpMessagesInboundMessageDetails = { dispatchWeight: SpWeightsWeightV2Weight };
|
|
12929
|
+
|
|
11797
12930
|
export type SpRuntimeBlock = { header: Header; extrinsics: Array<FpSelfContainedUncheckedExtrinsic> };
|
|
11798
12931
|
|
|
11799
12932
|
export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
|
|
@@ -11925,4 +13058,8 @@ export type MoonbeamRuntimeRuntimeError =
|
|
|
11925
13058
|
| { pallet: 'EmergencyParaXcm'; palletError: PalletEmergencyParaXcmError }
|
|
11926
13059
|
| { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError002 }
|
|
11927
13060
|
| { pallet: 'PrecompileBenchmarks'; palletError: PalletPrecompileBenchmarksError }
|
|
11928
|
-
| { pallet: 'Randomness'; palletError: PalletRandomnessError }
|
|
13061
|
+
| { pallet: 'Randomness'; palletError: PalletRandomnessError }
|
|
13062
|
+
| { pallet: 'BridgeKusamaGrandpa'; palletError: PalletBridgeGrandpaError }
|
|
13063
|
+
| { pallet: 'BridgeKusamaParachains'; palletError: PalletBridgeParachainsError }
|
|
13064
|
+
| { pallet: 'BridgeKusamaMessages'; palletError: PalletBridgeMessagesError }
|
|
13065
|
+
| { pallet: 'BridgeXcmOverMoonriver'; palletError: PalletXcmBridgeHubError };
|