Crate bridge_hub_test_utils
source ·Expand description
Module contains predefined test-case scenarios for “BridgeHub” Runtime
s.
Modules§
- Module contains predefined test-case scenarios for
Runtime
with bridging capabilities. - Generating test data, used by all tests.
Structs§
- Basic builder based on balances, collators and pallet_session.
Enums§
Traits§
- A set of traits for a minimal parachain runtime, that may be used in conjunction with the
ExtBuilder
and theRuntimeHelper
.
Functions§
- A helper function for comparing the actual value of a fee constant with its estimated value. The estimated value can be overestimated (
overestimate_in_percent
), and if the difference to the actual value is belowmargin_overestimate_diff_in_percent_for_lowering
, we should lower the actual value. - Helper function to open the bridge/lane for
source
anddestination
while ensuring all required balances are placed into the SA of the source. - Helper function which emulates opening HRMP channel which is needed for
XcmpQueue
to pass. - Utility for opening bridge with dedicated
pallet_xcm_bridge_hub
’s extrinsic. - Utility for opening bridge directly inserting data to the storage (used only for legacy purposes).
- Get a header for testing.