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 |
|
Tomasz Drwięga
|
6f6c8c2417
|
Verify Source origin in TargetChainVerifier (#558)
* Make sure to verify sender's origin.
* Make sure to use dispatch verification.
* Add tests.
* cargo fmt --all
* Remove superfluous lifetime.
* Move the check to MessageLanVerifier.
* cargo fmt --all
* Fix docs.
|
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 |
|
Svyatoslav Nikolsky
|
53791a1d4a
|
Chain specific message lane apis (#503)
* replace generic message lane APIs with chain-specific
* moved SubstrateHeadersSyncPipeline to headers_pipeline.rs
* substrate-specific message lane trait
* Update relays/substrate/src/messages_lane.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
|
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 |
|
Tomasz Drwięga
|
be050bda84
|
Bump Substrate to v2.0.0 (#382)
* Change script to update versions.
* Bump versions.
* Address remainders.
* cargo fmt --all
* Fix tests.
* Whitelist BlueOak license
* Fix benchmarks?
|
2024-04-10 10:28:37 +02:00 |
|
Svyatoslav Nikolsky
|
3cd8937b38
|
Fees, weights, message delivery and dispatch (#339)
* introduce BridgedHeaderChain trait
* LaneMessageVerifier + tests
* fixed tests
* do not expose intenal functions
* cargo fmt --all + fix no_std compilation
* ByWeightDispatcher
* process queued messages from message-lane::on_initialize
* scheduled_messages_are_processed_from_on_initialize
* flush
* deal with fees + weights
* drop heavy messages on dispatch
* cargo fmt
* clippy
* fix comment
* Update primitives/message-lane/src/source_chain.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
* removed messages_processed
* Update primitives/message-lane/src/source_chain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* Update modules/message-lane/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* remove queueing from message-lane
* also remove queueing from RPCs
* remove by-weight traces
* dispatch fee
* receiving -> delivery
* receival -> delivery
* remove extra line
* Update primitives/message-lane/src/source_chain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* cargo fmt --all
* clippy
* let dispatch_weight to be larger than actual_dispatch_weight
* post-merge fix
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
|
2024-04-10 10:28:37 +02:00 |
|
Svyatoslav Nikolsky
|
f6d45a38da
|
Initial version of DummyOrdered pallet (#299)
* initial commit of DummyOrdered (aka message-lane) pallet
* API for relay
* cargo fmt --all
* some clippy + no_std
* more clippy + no_std
* inbound lane tests
* outbound lane tests
* cargo fmt --all
* prune old messages whenever outbound lane is updated
* do not care about MessageNonce overflow
* cargo fmt --all
* update crate docs
* MaxHeadersToPruneAtOnce -> MaxMessagesToPruneAtOnce
* MessageAction -> MessageResult
* cargo fmt --all
* fire MessageAccepted + MessagesDelivered
* confirm message processing
* cargo fmt --all
* clippy
* cargo fmt again
* Update modules/message-lane/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* Update modules/message-lane/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* use crate::*
* cargo fmt --all
* Storage -> S
* Update modules/message-lane/src/outbound_lane.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* add method doc
* Update modules/message-lane/src/inbound_lane.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* added detailed module docs
* Update modules/message-lane/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
* updated OnMessageReceived docs
* prune only when new message is sent
* removed #![warn(missing_docs)]
* fixed merge with overlapped PR
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 |
|