Svyatoslav Nikolsky
830afff353
Added receive_single_message_proof_with_dispatch benchmark ( #1990 )
...
* added receive_single_message_proof_with_dispatch benchmark
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a75c28d5b2
Remove deprecated code from bridge-runtime-common ( #1983 )
...
* removed FromBridgedChainMessageDispatch in favor of XcmBlobMessageDispatch
* use HaulBlobExporter/HaulBlobExporterAdapter instead of XcmBridge/XcmBridgeAdapter
* tests for sending/dispatching messages
* use new schema in testnet bridges + some cleanup
* clippy
* spelling + added TODO
* cleanup some checks
* benchmarks compilation
* all is XCM
* updated README.md
* ref issue from TODO
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
eccbdff851
remove invalid weight, returned by send_message ( #1984 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
9b57f2181c
Kusama <> Polkadot relay prototype ( #1982 )
...
* moved bridge declarations to dedicated folder
* Kusama <> Polkadot bridges declaration
* support for Kusama <> Polkadot bridge in CLI
* update dictionary
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
62480cf9db
move signed extension stuff from prolkadot-core primitives to bridge-hub-cumulus-primitives ( #1968 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
74b0eca59c
added UpdatedBestFinalizedHeader event to pallet-bridge-grandpa ( #1967 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
802e134368
enable relayer rewards metrics at bridge hubs ( #1965 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2a848fd836
Fix invalid batch transaction ( #1957 )
...
* fix invalid batch transaction
* RaceState is now trait
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a4a6902bfb
optimize justifications before they're included into complex transaction ( #1949 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f4ca16b98d
Actually clone client data by reference when cloning the client ( #1941 )
...
* actually clone client data by reference when clonning the client
* spelling
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e0c0861bc7
Fix invalid messages relay delivery transactions ( #1940 )
...
* + failing test: previous_nonces_are_selected_if_reorg_happens_at_target_chain
* maybe fix for the issue?
* another fix
* previous_nonces_are_selected_if_reorg_happens_at_target_chain for MessageDeliveryStrategy
* remove commented code
* spelling
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
754160798a
Improve some relay errors readability ( #1930 )
...
* improve some relay errors readability
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
61e00a56c0
Reconnect on-demand clients from MessagesSource::reconnect and MessagesTarget::reconnect ( #1927 )
...
* reconnect on-demand clients from MessagesSource::reconnect and MessagesTarget::reconnect
* add issue reference
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3a145e5844
get rid of obsolete weight functions ( #1926 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ddbeab70a6
Verify with-parachain message benchmarks on CI ( #1923 )
...
* verify with-parachain message benchmarks on CI
* trigger CI
* Revert "trigger CI"
This reverts commit 188cd01563bc8b3537d042c6c8d5181b7cfcdac8.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
aa466a485d
Fix benchmarks ( #1919 )
...
* fixed benchmarks broken by rejecting storage proofs with excessive trie nodes and justifications with extra prevotes
* update weights
* fmt
* accidental paste
* revert changes to millau runtime (separate PR)
* revert comment change
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7be2cb1cdd
fix master compilation ( #1920 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e7f5560951
Fix multiple parachain headers submission for single message delivery ( #1916 )
...
* switch off parachains relay when we don't need to relay parachains (temp solution)
* parachains relay now only works with single parachain
* fix usages of parachains relay
* revert hacky fix
* fixes
* fixed Westmint parachain ID
* fixed metrics
* fixed compilation
* fmt
* clippy
* call -> typed_state_call
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f31b5d8634
fix nightly clippy issues ( #1915 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dd58493ea4
Do not stall on lost transaction ( #1903 )
...
* `select_nonces_to_deliver` is no longer `&mut self`
* reset submitted nonces on lost transaction
* clippy
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
26330d9a25
get rid of ChainWithMessages::WeightInfo, because we can't have exact weights for "external chains" ( #1899 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
5f2ff7e06e
Wrap confirmation and finality transactions into batch_all in Millau -> RialtoParachain bridge ( #1898 )
...
* wrap confirmation and finality transactions into batch_all in RialtoParachain<>Millau
* review comments
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky and Adrian Catangiu
498a3e83d0
Weight+size limits for bridge GRANDPA pallet calls ( #1882 )
...
* weight+size limits for bridge GRANDPA pallet calls
* continue
* fixed all tests
* some changes to refund computations
* post_dispatch_refunds_relayer_in_all_finality_batch_with_extra_weight
* - dup code
* do not return Pays::No if call is above weight/size limits
* relayer_pays_tx_fee_when_submitting_huge_mandatory_header and relayer_pays_tx_fee_when_submitting_justification_with_long_ancestry_votes
* clippy
* fmt
* clippy
* small change in docs
* fixed GRANDPA-limits constants for Polkadot-like chains
* clippy
* clippy + spelling
* Update primitives/polkadot-core/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* reverted unnecessary change
* GrandpaJustification::max_reasonable_size
---------
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1d6e8a9a26
optimize justification before submit ( #1887 )
...
* optimize justification before submit
* fmt
* spelling
* clippy
* fmt again
* aaand compilation
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
bb078b8226
use complex transactions on RBH/WBH bridge hubs ( #1893 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c6c39be967
ChainWithGrandpa in primitives ( #1885 )
...
* ChainWithGrandpa in primitives
* clippy ++ spelling
* fix benchmarks comppilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
914213d0af
Fix clippy issues ( #1884 )
...
* fix clippy issues
* fix?
* fix?
* forget about extra_unused_type_parameters lint for now
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
25c17feb23
Reject storage proofs with unused nodes: begin ( #1878 )
...
* reject storage proofs with unused nodes: begin
* fix ignores_parachain_head_if_it_is_missing_from_storage_proof
* message_proof_is_rejected_if_it_has_duplicate_trie_nodes && message_proof_is_rejected_if_it_has_unused_trie_nodes
* proof_with_duplicate_items_is_rejected and proof_with_unused_items_is_rejected
* clippy
* fix benchmarks compilation
* impl From<Error> for &'static str
* fix review comments
* added comment
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky and Adrian Catangiu
9e30130054
Refund extra proof bytes in message delivery transaction ( #1864 )
...
* refund extra proof bytes in message delivery transaction
* Update modules/messages/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* more tests
---------
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
83c3975349
clippy fixes ( #1880 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d8764450c9
MaxValues for OutboundLanes map ( #1871 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
89bb368e45
More tests for message pallet weights ( #1870 )
...
* more tests for message pallet weights
* move tests to ensure_weights_are_correct
* removed extra tests
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4982d1c2e5
MaxValues for maps in parachain maps ( #1868 )
...
* MaxValues for maps in parachain maps
* fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
bae329c66e
"refund" proof size in GRANDPa pallet ( #1863 )
...
* "refund" proof size in GRANDPa pallet
* clippy
* extra_proof_size_bytes_works
* use saturated_into
* fix review comments
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e75d872aa7
MaxValues limit for storage maps in the pallet-bridge-grandpa ( #1861 )
...
* MaxValues limit for storage maps in the pallet-bridge-grandpa
* remove use from the future PR
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a5a3f8065f
fixed TODOs for weights v2 ( #1860 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
795a049937
Message delivery transaction is not free!!! ( #1859 )
...
* message delivery transaction is not free!!!
* test pays_fee
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
74f847a223
fixed BEEFY genesis ( #1858 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7755c1b526
changed some tests for weights v2 ( #1855 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
cd12d1438e
Fix HeadersToKeep and MaxBridgedAuthorities in Millau benchmarks ( #1851 )
...
* fix `HeadersToKeep` and `MaxBridgedAuthorities` in Millau benchmarks
* typo
* impl review suggestion
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
411150b7be
Decrease number of GRANDPA authorities in Polkadot-like chains from 100_000 to 2_048 ( #1852 )
...
* decrease number of GRANDPA authorities in Polkadot-like chains from 100_000 to 2048
* spelling
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a091b8405e
Update Substrate/Polkadot/Cumulus dependencies + weights v2 ( #1850 )
...
* cargo update
* weights v2
* clippy
* no spellcheck for weights.rs
* fix proof_size component in MAXIMUM_BLOCK_WEIGHT constants
* "fix" proof_size in select_delivery_transaction_limits_works
* spellcheck
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2657973bb8
fix bridge-runtime-common build ( #1839 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7370222802
fix bridge hubs blocks interval ( #1836 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f0c4073dc6
Fix on demand parachains relay when no parachain head at target ( #1834 )
...
* `best_finalized_peer_at_best_self` in messages relay is now Option<> - before it was an error, which effectively blocked the lane
* unnecessary mut
* clone on return
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
947a0a695b
Use GitLab env vars to get git commit ( #1831 )
...
* use GitLab env vars to get git commit
* compile_error to test it
* Revert "compile_error to test it"
This reverts commit 67d4782298d3cdfbe1a28231042bba6444316e8a.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
63308ac22b
bump bridge hub versions ( #1830 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
606768bc6a
Use specific error for case when para head is missing from the bridge pallet ( #1829 )
...
* use specific error for case when para head is missing from the bridge pallet
* fix match to support both error types
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4689dfaf2c
Do not read parachain heads from ancient relay headers ( #1827 )
...
* do not read parachain heads from ancient relay headers
* revert test change
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
48425b27be
Reconnect source client ( #1826 )
...
* reconnect source client
* fix test
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
804ab654bc
do not call best_finalized_para_block_at_source for ancient block ( #1819 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c8c606dd66
Functions to benchmark messages pallet with linked to parachain ( #1817 )
...
* functions to benchmark messages pallet with linked to parachain
* unused imports
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ef8c5b3c9e
fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1b608e4b9f
No wildcard patterns in Cargo.toml ( #1789 )
...
* dependabot doesn't support wildcard patterns in cargo.toml and we want dependabot
* spelling for "fresh" crates
* and fmt
* spelling again
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ec9cd8ddb0
Remove chain-specific dependencies from crates that will be used in Cumulus ( #1783 )
...
* leave-modules.sh
* remove bp-rialto dependency from bp-relayers
* update leave-modules.sh
* fix Cargo.toml of pallet-bridge-relayers
* update leave-modules.sh
* remove bp-rialto and millau-runtime frombridge-runtime-common Cargo.toml
* update leave-modules.sh
* remove chain dependencies from bridge-runtime-common crate
* fix tests
* cleanup script
* rename script
* kind of success message
* remove leave-modules.sh
* use TargetHeaderChainAdapter and SourceHeaderChainAdapter in our testnets
* update script
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4cdb85247e
add try-runtime feature to pallets ( #1779 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
74fb0a536d
Default impl for some methods in messages benchmarking pallet config ( #1777 )
...
* default impl for some methods in messages benchmarking pallet config
* typo
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d7b131646c
Relayer reward metric ( #1742 )
...
* use StorageDoubleMapKeyProvider in RelayerRewards
* add metrics
* clippy
* fixed alerts that have caused missing dashboards
* fix metric name
* fix metric name again
* add new metrics to the RialtoParachain <> Millau maintenance dashboard
* remove obsolete dashboard
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b06cd924e9
Crate-level documentation on finality relays and relayers pallet ( #1773 )
...
* started crate-level documentation on relays and relayers pallet
* fixes in finality and parachain finality relay docs
* fix links
* grammar fixes
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8494162d2a
update Substrate/Polkadot/Cumulus deps to master ( #1775 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c36ba5a562
Added crate-level docs for the parachains pallet ( #1772 )
...
* crate-level docs for the parachains pallet
* fix typos
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
763ab922fa
added/updated pallet level docs to grandpa and messages pallets ( #1771 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c81afc3e93
increase MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX and MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX for RBH/WBH ( #1765 )
...
* increase MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX and MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX for RBH/WBH
* moved MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX and MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX to cumulus bridge primitives
* typo
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
cca75ee841
fixed receive_delivery_proof_for_two_messages_by_two_relayers ( #1764 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
70eb076ab2
Expose relay version metric ( #1750 )
...
* expose relay version metric
* spelling
* and clippy
* clippy
* typo
* use version directly and determine git commit
* typos and leftovers
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e0e84b734b
fix nightly clippy again ( #1752 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a21617082e
fix nightly clippy ( #1746 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky and Adrian Catangiu
7821e66bcd
Update project level docs ( #1734 )
...
* updated project level document
* updated high level overview document
* GRANDPA finality relay sequence diagram
* Parachains Finality Relay Sequence Diagram
* Messages Relay Sequence Diagram
* Complex Relayer Sequence Diagram
* small fix
* Polkadot <> Kusama bridge flowchart
* remove obsolete files
* started polkadot-kusama-bridge-overview.md
* continue polkadot-kusama-bridge-overview.md
* couple more sections in polkadot-kusama-bridge-overview.md
* continue polkadot-kusama-bridge-overview.md
* renew deployments readme
* fixed review suggestions
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* removed obsolete section
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* typo
* Update docs/polkadot-kusama-bridge-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/high-level-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/polkadot-kusama-bridge-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/polkadot-kusama-bridge-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/polkadot-kusama-bridge-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update docs/polkadot-kusama-bridge-overview.md
Co-authored-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f82372e818
Make debug display of LaneId compatible with its previous version ( #1740 )
...
* make {:?} of LaneId compatible with its previous version
* fmt
* apply review suggestions
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
03425b33ae
Use TypedLaneId instead of LaneId ( #1738 )
...
* TypedLaneId -> LaneId
* fix benchmarks compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
15e7d828ea
Expose metrics of on-demand relay chain headers sync from with-parachain complex relays ( #1737 )
...
* expose metrics of on-demand relay chain headers sync from with-parachain complex relays
* spelling
* remove renundant arg
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
df1aed01c4
Updated db weights and some experiments ( #1732 )
...
* updated weights
* also fix off-by-one in benchmarks
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1b9b134f30
Do not require new headers if lane is empty ( #1725 )
...
* do not require new headers if lane is empty
* handle edge case (need proof-of-delivery-confirmations to be able to submit delivery tx) in required_source_header_at_target
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b51da6451d
remove messages pallet owner relay argument ( #1728 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7964152b49
more traces + remove signer override ( #1727 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3906131d53
remove BatchDeliveryTransaction::new and BatchConfirmationTransaction::new to avoid expects ( #1726 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
be27bd5e97
Batch transactions in complex relays ( #1669 )
...
* batch transactions in message relay: API prototype
* get rid of Box<dyn BatchTransaction> and actually submit it
* test batch transactions
* message_lane_loop_works_with_batch_transactions
* removed logger
* BatchConfirmationTransaction + BatchDeliveryTransaction
* more prototyping
* fmt
* continue with batch calls
* impl BatchCallBuilder for ()
* BatchDeliveryTransaction impl
* BundledBatchCallBuilder
* proper impl of BundledBatchCallBuilder + use it in RialtoParachain -> Millau
* impl prove_header in OnDemandHeadersRelay
* impl OnDemandParachainsRelay::prove_header (needs extensive tests)
* added a couple of TODOs
* return Result<Option<BatchTx>> when asking for more headers
* prove headers when reauire_* is called && return proper headers from required_header_id
* split parachains::prove_header and test select_headers_to_prove
* more traces and leave TODOs
* use finality stream in SubstrateFinalitySource::prove_block_finality
* prove parachain head at block, selected by headers relay
* const ANCIENT_BLOCK_THRESHOLD
* TODO -> proof
* clippy and spelling
* BatchCallBuilder::build_batch_call() returns Result
* read first proof from two streams
* FailedToFindFinalityProof -> FinalityProofNotFound
* changed select_headers_to_prove to version from PR review
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a732a04ed4
fix pallet names at bridge hubs ( #1722 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dc989fa674
tests ( #1720 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7d55a0ffe2
fix parachains benchmarks ( #1717 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky and Adrian Catangiu
d63a75697c
Only store header state root (pallet-bridge-parachains) ( #1701 )
...
* store block number ++ state root in parachains pallet
* fixed parachains finality APIs
* (test commit)
* removed test code
* deduplicated code a bit
* removed commented code
* spelling
* Update modules/parachains/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update modules/parachains/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update modules/parachains/src/mock.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* added comment
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2c5e2f09eb
New relayer rewards scheme integration ( #1652 )
...
* relayer rewards integration: initial commit
* added refund-relayer-extension to the millau runtime
* spelling
* spelling again
* new -> Default
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky and Adrian Catangiu
161d861d9b
Signed extension to refund relayer at the target chain ( #1657 )
...
* add utlity pallet to the Millau runtime
* RefundRelayerForMessagesDeliveryFromParachain prototype
* done with RefundRelayerForMessagesDeliveryFromParachain::post_dispatch
* parse calls
* check batch for obsolete headers/messages
* fmt
* shorten generic arg names + add parachain id generic arg
* check lane_id
* impl all state read functions
* fix typos from review
* renamed extension + reference issue from TODO
* tests for pre-dispaytch
* renamed extension source file
* tests for post-dispatch
* abstract fee calculation
* clippy
* actually fix clippy
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
aeeb53343e
DeliveryConfirmationPayments trait for paying relayer rewards at the source chain ( #1653 )
...
* DeliveryConfirmationPayments
* ref proper PR in TODO
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7014046485
only store header state root (pallet-bridge-grandpa) ( #1699 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b94bd8d46b
fixed benchmarks of relayers pallet ( #1700 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
66dfd2dcae
fix clippy ( #1698 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3eb24d4515
removed MintReward and added PayLaneRewardFromAccount ( #1693 )
...
* removed MintReward and added PayLaneRewardFromAccount
* clippy
* added issue ref to TODO
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7ab985718a
added version guards to RBH<>WBH GRANDPA finality (and complex) relay ( #1697 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
9c8f8a90e7
removed ESTIMATE_MESSAGE_FEE_METHOD ( #1696 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
9e92564c69
refund_pay_dispatch_fee removed ( #1695 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b99267764c
fix clippy ( #1668 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ea98118031
Per-lane rewards in pallet-bridge-relayers ( #1665 )
...
* per-lane rewards in pallet-bridge-relayers
* add lane id to RewardPaid event
* clippy
* fix benchmarks
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c03d99cd09
fix clippy ( #1664 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1688b493cd
Remove dispatch_result field ( #1660 )
...
* remove dispatch_result field
* fix benchmarks
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
9da22df16b
Complex parachain <> parachain relay ( #1637 )
...
* complex parachain <> parachain relay
* spelling
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky and Adrian Catangiu
eabfea6229
Prune messages from on-idle callback ( #1650 )
...
* prune messages from on-idle callback
* no more secondary lanes at deployments
* clippy
* Update modules/messages/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* sub -> add
* more tests + check that message is sent using one of ActiveOutboundLanes
* ensure spent_weight is correct
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8e660dd74e
Remove callbacks from the messages pallet ( #1649 )
...
* remove callbacks
* clippy
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8c845602cf
Remove message fee + message send calls ( #1642 )
...
* remove message fee
* it is compiling!
* fixes + fmt
* more cleanup
* more cleanup
* restore MessageDeliveryAndDispatchPayment since we'll need relayer rewards
* started rational relayer removal
* more removal
* removed estimate fee subcommand
* remove DispatchFeePayment
* more removals
* removed conversion rates && some metrics
* - unneeded associated type
* - OutboundMessageFee
* fix benchmarks compilation
* fmt
* test + fix benchmarks
* fix send message
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3c76889948
rename ChainWithMessages -> UnderlyingChainProvider ( #1639 )
2024-04-10 10:28:37 +02:00