Svyatoslav Nikolsky
90113303f1
Fix updated clippy grumbles ( #733 )
...
* Revert "Pin Rust Nightly to 2020-12-17 (#652 )"
This reverts commit e54e6f7e3d34c28d698e637f9099162b3c1917e9.
* fix clippy
* clippy again
* more clippy in test code
* and new cargo fmt
* another try
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
7aa51f8d30
Update to latest substrate ( #723 )
...
* Bump substrate deps.
* Bump scale.
* Bump ethabi.
* Remove inherent from aura.
* Migrate to construct_runtime
* cargo fmt --all
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2f457775bb
Account proof size in weight formula ( #679 )
...
* fix broken message lane benchmarks
* proof-size related benchmarks
* impl Size for proof parameters
* include proof weight into weight formula
* left TODO
* fixed proof size
* WeightInfoExt::receive_messages_proof_weight
* charge for extra message bytes delivery in send_message
* removed default impl of WeightsInfoExt
* moved weight formulas to WeightInfoExt
* receive_messages_proof_outbound_lane_state_overhead is included twice in weight
* typo
* typo
* fixed TODO
* more asserts
* started wotk on message-lane documentation
* expected_extra_storage_proof_size() is actually expected in delivery confirmation tx
* update README.md
* ensure_able_to_receive_confirmation
* test rialto message lane weights
* removed TODO
* removed unnecessary trait requirements
* fixed arguments
* fix compilation
* decreased basic delivery tx weight
* fmt
* clippy
* Update modules/message-lane/src/benchmarking.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* structs
* Update primitives/millau/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* removed readme.md
* removed obsolete trait bounds
* Revert "removed readme.md"
This reverts commit 50b7376a41687a94c27bf77565434be153f87ca1.
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* PreComputedSize
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8953967d92
pause relays(s) when node is syncing ( #605 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
44bf84269a
Extract common part of relay loops ( #660 )
...
* extract common parts of relay loops: begin
* merge client impls
* backoff in exchange loop
* reconnect without clone
2024-04-10 10:28:37 +02:00
Hernando Castano
ee655b1057
Update Substrate Dependency ( #566 )
...
* Update `sp-io` dependency
* Rename Trait to Config
* RustFmt
* Bump `sp-io` again
* Use new frame_system weight types in Rialto and Millau runtimes
* Update test Runtimes to use new weight types
* Bump `sp-io` again
* Update to not-the latest first.
* Update benchmarks.
* Another Trai.
* Move new weight types into runtime primitive crates
This allows us to check limits for extrinsics from other parts
of the codebase without pulling in the entire chain runtime.
* Remove leftover comments
* Move new functions to a better location
* Small formatting fixes
* Add actual documentation to new weight config types
* Decrease maximum block weight of Millau chain
* Decreease maximum block length of Millau chain
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2d08a9d213
Polkadot integration ( #542 )
...
* kusama primitives + client
* polkadot primitives + client
* lost Chain definitions
* fix compilation and fmt
* Update primitives/runtime/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
441f63a34f
Generic SyncHeader type ( #529 )
...
* generic SyncHeader type
* add panic condition to method description
* extract -> into_inner
* checked_sub + expect
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dd7242bc79
Migrate back to Substrate master ( #528 )
...
* migrate back to Substrate master
* fmt
* clippy
2024-04-10 10:28:37 +02:00
Hernando Castano
e91cab68d4
Avoid Panic When Fetching Info Before Bridge is Initialized ( #504 )
...
* Allow bridge pallet to return no finalized headers
* Update Runtime APIs to optionally return best finalized header
* Update relay to handle optional best finalized headers
* Fix Clippy lints
* Return a dummy header instead of an Option
* Remove Option from runtime Apis
* Remove support for handling optional finalized headers in relay
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
6dc267393a
Use different chain primitives in Millau ( #517 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
23f5f3cdd6
Limit messages weight in batch ( #496 )
...
* limit messages in the batch by weight/count
* fixed components compilation
* reverted obsolete parts of #469
* implement generated_messages_weights
* actually use computed weight in message proof
* fmt and clippy
* fixed TODO
* clippy
* Update relays/messages-relay/src/message_race_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* add issue reference
* add assert message
* grumbles
* fmt
* reexport weight from bp-message-lane
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <castano.ha@gmail.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d4fc7bebdc
Millau -> Rialto messages relay ( #399 )
...
* Millau messages -> Rialto relay
* prepare for custom race strategy of delivery race
* custom strategy for delivery race
* update TODOs
* add reference to issue 457
* impl reconnect
* clippy
* fix check in test
* fmt
* removed obsolete TODO
* fixed another TODOs
* fmt
* use MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE const from primitives
* Update relays/messages-relay/src/message_lane_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* added SubstrateMessagesProof typedef
* fix test
* removed comment
* additional_proof_required -> ProofParameters
* typo
* multiline literal
* clippy
* fix typo
* and_then -> await
* update_source_latest_confirmed_nonce
* Update relays/messages-relay/src/message_race_delivery.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3e45356aad
Rialto -> Millau headers relay ( #477 )
...
* Rialto -> Millau headers relay
* removed more constraints
* removed file from other PR
* Update primitives/rialto/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b027c81266
Substrate relay guards ( #470 )
...
* substrate relay guards
* checked time condition
* ChainWithBalances
* removed obsolete comment
* Update relays/substrate-client/src/chain.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* trailing space
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1b96e51679
Subscribe to justifications in Millau->Rialto headers sync ( #394 )
...
* maintain MillauHeadersToRialto sync by subscribing to Millau justifications
* more tracing in maintain
* Update relays/substrate/src/headers_maintain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/substrate/src/headers_maintain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* -Please
* -TODO
* revert raise recursion limit
* updated comment
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
55d22a0d1e
connect to substrate using ws ( #417 )
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
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
Svyatoslav Nikolsky
52c1913fff
Extract minimal Rialto-Sub and Millau-Sub clients ( #365 )
...
* extracting sub clients
* fmt + lost docs
* revert enum BridgeInstance
* apply suggestions from review
* explicite debug impl
* remove unused imports from Millau
* fix typo
* fix instance + API name
* Update relays/ethereum/src/ethereum_sync_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* separate crates for millau and rialto client
* cargo fmt
* fix
* fmt
* remove no_std support
* fix compilation again
* Update relays/substrate-client/Cargo.toml
* Update relay clients to Substrate 2.0
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <castano.ha@gmail.com >
2024-04-10 10:28:37 +02:00