Svyatoslav Nikolsky
e2d9b6393d
Integrate Rialto <-> Millau message lanes into Millau/Rialto runtimes ( #386 )
...
* millau -> rialto lanes integration
* extrace common message-lane integration types into bridge-runtime-common
* rialto_messages.rs in Millau runtime
* tests
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* RELAYER_INTEREST_PERCENT -> RELAYER_FEE_PERCENT
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* estimate_message_dispatch_and_delivery_fee returns Result
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* fmt
* mowed weight formula to primitives
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7a03b709be
Millau -> Rialto headers relay ( #398 )
...
* working-millau-to-rialto-relay
* fix Millau state root
* properly fix synced+incomplete headers for sub2sub
* removed wrong TODO
* fmt + clippy
* Update relays/headers-relay/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* moved SubstrateTransactionMaker definition
* removed M from phantomdata
* removed prune_synced_children
* methods names as consts
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
9e9ac8df3c
Move Chain trait to runtime primitives ( #403 )
...
* extract ChainBase to bp-runtime
* post-merge fixes
* cargo fmt --all
* compilation fixes
* reexport BlockNumberOf, HashOf, HeaderOf
2024-04-10 10:28:37 +02:00
Hernando Castano
86834e2fd6
Implement Substrate Pallet Runtime APIs ( #389 )
...
* Implement public helpers for querying header info
* Update `best_header` when importing headers
* Add BestHeader to GenesisConfig
* Define extra types for Millau primitives
* Start implementing runtime APIs in Millau runtime
* Add helper for getting headers which require a justification
* Add runtime API for getting headers requiring a justification
* Reword `expect()` proof for valid authority sets
* Fix typo
* Clean up Hasher comment
* Add the Call Dispatch Pallet back to the Millau runtime
* Use types from Rialto in bridge pallet config
* Use the Rialto runtime APIS in the Millau runtime
* Include Millau bridge instance in Rialto runtime
* Add missing doc comment
* Use one storage function for setting and clearing `RequiresJustification`
* Remove TODO comments
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
07a514e9f7
Get substrate dependencies from crates io ( #387 )
...
* get Substrate dependencies from crates.io
* removing unused dependencies
* cargo fmt --all
* remove commented dependencies
* remove commented dependencies again
* try to fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dbb72faa86
Substrate relay stub ( #376 )
...
* substrate-relay: initial commit
* MillauHeaderApi and RialtoHeaderApi
* post-merge fixes + TODOs + compilation
2024-04-10 10:28:37 +02:00