Expand description
Module contains predefined test-case scenarios for “BridgeHub” Runtime
s.
Modules§
- test_
cases - Module contains predefined test-case scenarios for
Runtime
with bridging capabilities. - test_
data - Generating test data, used by all tests.
Structs§
- Collator
Session Key - Collator
Session Keys - ExtBuilder
- Basic builder based on balances, collators and pallet_session.
- Runtime
Helper - Slot
Durations
Enums§
- Governance
Origin - Enum representing governance origin/location.
- XcmReceived
From
Traits§
- Basic
Parachain Runtime - A set of traits for a minimal parachain runtime, that may be used in conjunction with the
ExtBuilder
and theRuntimeHelper
.
Functions§
- assert_
metadata - assert_
total - check_
sane_ fees_ values - 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. - diff_
as_ percent - ensure_
opened_ bridge - Helper function to open the bridge/lane for
source
anddestination
while ensuring all required balances are placed into the SA of the source. - mock_
open_ hrmp_ channel - Helper function which emulates opening HRMP channel which is needed for
XcmpQueue
to pass. - open_
bridge_ with_ extrinsic - Utility for opening bridge with dedicated
pallet_xcm_bridge_hub
’s extrinsic. - open_
bridge_ with_ storage - Utility for opening bridge directly inserting data to the
pallet_xcm_bridge_hub
’s storage (used only for legacy purposes). - test_
header - Get a header for testing.