Svyatoslav Nikolsky
0f56f18778
Use real weights to compute message delivery and dispatch fee ( #598 )
...
* message fee formula
* update GetDelvieryConfirmationTransactionFee
* include cost of transactions (i.e. not only dispatch cost) in delivery_and_dispatch_fee
* endow relayers fund account
* include db ops weight in max tx weight estimation
* (in bytes)
Co-authored-by: Hernando Castano <castano.ha@gmail.com >
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
595523106e
Fixed outbound_lane_data_key ( #516 )
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
ef9357596f
Return cumulative dispatch weight of messages from the messageLane_proveMessages ( #469 )
...
* implement OutboundLaneApi and InboundLaneApi for Millau /Rialto runtimes
* fixed typo
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a37c1762dc
(optionally) include outbound lane data into messages proof ( #428 )
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
f43e405b5e
update async-std ( #388 )
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
d918bcb6f8
Remove queueing from message-lane ( #352 )
...
* remove queueing from message-lane
* also remove queueing from RPCs
* another trace
* new clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c7437c7d91
Custom RPC methods for DummyOrdered pallet ( #317 )
...
* RPC for DummyOrdered
* add test for RPC
* proof returned by RPC is Vec<<Vec<u8>>>.encode()
* retrieval -> receiving
* bp-runtime crate
* bp-runtime supports no_std
* cargo fmt --all
* jsonrpc_core::BoxFuture
* Update modules/message-lane/rpc/Cargo.toml
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update modules/message-lane/rpc/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* messageLane_ prefix for RPC methods
* Update primitives/runtime/Cargo.toml
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update primitives/runtime/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update modules/message-lane/rpc/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update modules/message-lane/rpc/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update modules/message-lane/rpc/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