Skip to content
  1. Apr 10, 2024
    • Serban Iorga's avatar
      Start the equivocation detection loop from the complex relayer (#2507) (#2512) · 1bbc77fe
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Impl SubstrateEquivocationDetectionPipeline for Millau
      
      * Impl SubstrateEquivocationDetectionPipeline for Rialto
      
      * Make BridgeHubSignedExtension more generic
      
      * Define generate_report_equivocation_call_builder!() macro
      
      * Impl SubstrateEquivocationDetectionPipeline for Rococo
      
      * Impl SubstrateEquivocationDetectionPipeline for Wococo
      
      * Impl SubstrateEquivocationDetectionPipeline for Kusama
      
      * Impl SubstrateEquivocationDetectionPipeline for Polkadot
      
      * Complex relayer simplification
      
      - remove `signer` and `transactions_mortality` and add `tx_params`
      - change the order of some fields
      
      * Add equivocation detection CLI traits
      
      * Complex relayer: start equivocation detectin loop
      
      * Update runtimes regeneration script
      
      * Equivocation loop: Fix infinite loop
      
      * Revert "Complex relayer: start equivocation detectin loop"
      
      This reverts commit b518ef85679d73654f9f0e2add38cd3839552057.
      
      * Add subcommand for starting the equivocation detection loop
      
      * Fixes
      
      * Initialize empty metrics for the equivocations detector loop
      1bbc77fe
    • Serban Iorga's avatar
      Add equivocation detector crate and implement clients (#2348) (#2353) · 48cae06a
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Split FinalitySyncPipeline and SourceClient
      
      * Move some logic to finality_base
      
      * Add empty equivocation detection clients
      
      * Add equivocation reporting logic to the source client
      
      * Use convenience trait for SubstrateFinalitySyncPipeline
      
      * Define JustificationVerificationContext for GRANDPA
      
      * Equivocation source client: finality_verification_context()
      
      * Equivocation source client: synced_headers_finality_info()
      
      * reuse HeaderFinalityInfo
      
      * Define EquivocationsFinder
      
      * Fix spellcheck
      
      * Address review comments
      
      * Avoid equivocations lookup errors
      48cae06a
    • Serban Iorga's avatar
      Grandpa: Store the authority set changes (#2336) (#2337) · bccd6e89
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Grandpa: Store the authority set changes
      bccd6e89
    • Serban Iorga's avatar
      GRANDPA module: store accepted justifications (#2298) (#2301) · 7807b9de
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      Store accepted justifications in events.
      7807b9de
    • Svyatoslav Nikolsky's avatar
      More backports from Cumulus subtree to polkadot-staging (#2283) · 57550eb8
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * more backports from Cumulus subtree
      
      * spelling
      
      * fmt
      
      * trigger CI
      
      * Revert "trigger CI"
      
      This reverts commit b009d732aa26d006a7f2b48878ee864c338c49d5.
      
      * Revert "Revert "trigger CI""
      
      This reverts commit 715606a75948124962b14dbb260cf3aed01bc665.
      
      * Revert "Revert "Revert "trigger CI"""
      
      This reverts commit dc0d2233da86fd12a77216008e59bd38fcbb2fac.
      57550eb8
    • Svyatoslav Nikolsky's avatar
      Update dependecies (#2277) (#2281) · 4d42bb22
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * cargo update -p parachain-info
      
      * flush
      
      * it compiles
      
      * clippy
      
      * temporary add more logging to cargo deny
      
      * Revert "temporary add more logging to cargo deny"
      
      This reverts commit 20daa88bca6d9a01dbe933579b1d57ae5c3a7bd8.
      
      * list installed Rust binaries before running cargo deny
      
      * changed prev commit
      
      * once again
      
      * try cargo update?
      
      * post-update fixes (nothing important)
      4d42bb22
    • Branislav Kontur's avatar
      BHK/P alignments (#2115) · 71887652
      Branislav Kontur authored and Bastian Köcher's avatar Bastian Köcher committed
      * Constants
      
      * Unused import?
      
      * Cargo.lock
      
      * Unused deps
      
      * TODO: fix doc or reimport?
      
      * Try to aviod redefine para_id constant for `RefundableParachainId`
      
      * Checked and removed TODOs
      71887652
    • Serban Iorga's avatar
      Cosmetics (#2124) · d80d2a50
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Cosmetics
      
      * Address PR comment
      d80d2a50
    • Svyatoslav Nikolsky's avatar
      Revert dispatch-results (#2048) · 512d43fa
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * Revert "Reintroduce msg dispatch status reporting (#2027)"
      
      This reverts commit 38bb051e3d778ee2f5e9451f89cf479a71fd68f8.
      
      * post-revert fix
      512d43fa
    • Serban Iorga's avatar
      Define `RangeInclusiveExt` (#2037) · b8f40860
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Define RangeInclusiveExt
      
      * Use RangeInclusiveExt
      
      * Add docs
      b8f40860
    • Serban Iorga's avatar
      Reintroduce msg dispatch status reporting (#2027) · 3b968a2a
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Use an actual Result inside MessageDispatchResult
      
      We need this in order to distinguish between Ok and Err
      
      * Revert #1660
      
      * Fixes + simplifications
      
      * Implement review suggestions
      3b968a2a
    • Svyatoslav Nikolsky's avatar
      Remove deprecated code from bridge-runtime-common (#1983) · a75c28d5
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * 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
      a75c28d5
    • Svyatoslav Nikolsky's avatar
      Kusama <> Polkadot relay prototype (#1982) · 9b57f218
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * moved bridge declarations to dedicated folder
      
      * Kusama <> Polkadot bridges declaration
      
      * support for Kusama <> Polkadot bridge in CLI
      
      * update dictionary
      9b57f218
    • Svyatoslav Nikolsky's avatar
    • Serban Iorga's avatar
      Some error improvements (#1956) · 9b44db0f
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Use `HeaderChainError` in parachains module
      
      * Use MessageProofError instead of 'static str in some places
      
      * Avoid implementing Into<'static str> for some errors
      
      We avoid deriving `Debug` for the structs that we use in the runtime and
      we derive `RuntimeDebug` instead in order to avoid bloating th eruntime
      with static strs. But implementing `Into<'static str>` does the same. So
      in some places it makes sense to replace `Into<'static str>` with `Debug`.
      
      * Move the messages error definition
      
      Move the messages error definition outside of `mod target`
      9b44db0f
    • Svyatoslav Nikolsky's avatar
      Fix benchmarks (#1919) · aa466a48
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * 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
      aa466a48
    • Serban Iorga's avatar
      Relayers pallet: extend payment source id (#1907) · f5fee288
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add Chain::ID const
      
      * Relayers pallet: extend payment source id
      
      * Addressed code review comments
      
      * Fix benchmarks
      
      * Fix dashboards
      
      * Renamings
      
      * Fix compilation
      f5fee288
    • Branislav Kontur's avatar
      Rewards refund for relaying BridgeHubRococo/BridgeHubWococo (#1894) · 1aa6da44
      Branislav Kontur authored and Bastian Köcher's avatar Bastian Köcher committed
      * Rewards refund for relaying BridgeHubRococo/BridgeHubWococo
      
      * spellcheck + clippy
      
      * RefundBridgedParachainMessages move to bp-runtime
      
      * Dedicated RewardingBridgeSignedExtra for Rococo/Wococo shared runtime with two instances of `RefundBridgedParachainMessages`
      
      * RefundBridgedParachainMessages with Tuple support for multiple
      
      * Fix additional_signed
      
      * revert fix
      
      * Refactor to `RefundBridgedParachainMessagesSchema`
      
      * removed unused deps
      1aa6da44
    • Serban Iorga's avatar
      RefundRelayerForMessagesFromParachain improvements (#1895) · 623bd85a
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * RefundRelayerForMessagesFromParachain changes
      
      - some renamings and cosmetics
      - removing the GI generic param since we can get it from the parachains
        config
      - merging (Parachains Instance, Parachain Id) and (Messages Instance,
        Messages lane Id) generic params
      - removing unnecessay derives
      - renaming for the `TransactionFeeCalculation` and defining
        `ActualFeeRefund` concrete implementation
      - adding support for multiple RefundRelayerForMessagesFromParachain
        (by adding a `StaticStrProvider` generic param)
      
      * Revert to using RuntimeDebug
      623bd85a
    • Svyatoslav Nikolsky's avatar
      Reject storage proofs with unused nodes: begin (#1878) · 25c17feb
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * 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
      25c17feb
    • Serban Iorga's avatar
      RefundRelayerForMessagesFromParachain improvements (#1879) · c9c6d566
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * RefundRelayerForMessagesFromParachain improvements
      
      * Address code review comments
      c9c6d566
    • Serban Iorga's avatar
      Add integrity check for signed extensions (#1780) · 2ff3a7aa
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add integrity check for signed extensions
      
      * Remove unneeded type specification
      2ff3a7aa
    • Serban Iorga's avatar
      Define separate signed extension for BHR/BHW (#1776) · 8a4f984a
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      - Make signed extensions for indirect runtimes more extensible
      - Define separate signed extension for BHR/BHW
      8a4f984a
    • Branislav Kontur's avatar
      Bump xcm-v3 + substrate (#1767) · 5fdc89d6
      Branislav Kontur authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Bump xcm-v3 + substrate
      
      * More fixes
      
      * Added `#[pallet::call_index`
      
      * Fixes for MMR (TODO:plese check)
      
      * More call indexes
      
      * Cumulus bump
      
      * Fixes for mmr
      
      * Fixes for weights
      
      * Fixes for xcm
      
      * MMR fixes + cargo fmt
      
      * Fix some rpc errors (bump jsonrpsee version)
      
      * Fix cumulus stuff
      
      * Fixes cumulus
      
      * clippy
      
      * more clipy
      
      * Fix test + unused deps
      
      * PR fixes
      
      * cargo update (bump xcm-v3)
      
      Co-authored-by: default avatarSerban Iorga <[email protected]>
      5fdc89d6
    • Serban Iorga's avatar
      Use indirect runtime calls for RialtoParachain (#1753) · 444dbe71
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Use indirect runtime calls for RialtoParachain
      
      * Code review fixes
      444dbe71
    • Serban Iorga's avatar
      Deduplicate pallet call structs used for indirect runtime calls (#1744) · 63a538a9
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Small changes
      
      * Define generic bridge pallets call structs
      
      * polkadot-core SignedExtension simplifications
      
      - we don't seem to need to pass the Call as a generic param
      - we can use codec(skip) instead of implementing Encode and Decode
      
      * Split BridgeHubRococo and BridgeHubWococo calls
      
      * code review fixes
      63a538a9
    • Serban Iorga's avatar
      Remove SOURCE_PARACHAIN_PARA_ID (#1716) · bde1629f
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Remove SOURCE_PARACHAIN_PARA_ID
      
      Remove SubstrateParachainsPipeline::SOURCE_PARACHAIN_PARA_ID
      
      * Avoid duplicate ChainBase and ParachainBase implementations
      
      * Replace ChainShadow with UnderlyingChainProvider
      bde1629f
    • Svyatoslav Nikolsky's avatar
      Only store header state root (pallet-bridge-parachains) (#1701) · d63a7569
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * 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: default avatarAdrian Catangiu <[email protected]>
      
      * Update modules/parachains/src/lib.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * Update modules/parachains/src/mock.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * added comment
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      d63a7569
    • Svyatoslav Nikolsky's avatar
      only store header state root (pallet-bridge-grandpa) (#1699) · 70140464
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      70140464
    • Svyatoslav Nikolsky's avatar
      removed ESTIMATE_MESSAGE_FEE_METHOD (#1696) · 9c8f8a90
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      9c8f8a90
    • Svyatoslav Nikolsky's avatar
      refund_pay_dispatch_fee removed (#1695) · 9e92564c
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      9e92564c
    • Branislav Kontur's avatar
      Added generic DispatchLevelResult to the MessageDispatchResult (#1670) · 02ef3a1a
      Branislav Kontur authored and Bastian Köcher's avatar Bastian Köcher committed
      * Added generic DispatchLevelResult to the MessageDispatchResult
      
      * Removed unnecessery `Clone + Decode + sp_std::fmt::Debug + Eq` + clippy
      02ef3a1a
    • Svyatoslav Nikolsky's avatar
      Remove dispatch_result field (#1660) · 1688b493
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * remove dispatch_result field
      
      * fix benchmarks
      1688b493
    • Svyatoslav Nikolsky's avatar
      Remove message fee + message send calls (#1642) · 8c845602
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * 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
      8c845602
    • Branislav Kontur's avatar
      Rococo/Wococo bridge hub relay integration (#1565) · 6c4728f1
      Branislav Kontur authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * [BridgeHub] Added bridge-hub-rococo/wococo clients with bridge-hub-rococo-runtime
      
      * [BridgeHub] Add init-bridge stuff for bridge-hub-rococo/wococo
      
      * [BridgeHub] Add init-bridge stuff for bridge-hub-rococo/wococo
      
      * [BridgeHub] Fixed Call-encoding for init-bridge rococo runtime wrapper
      
      * Final index update to runtime calls
      
      * [BridgeHub] Add init-bridge stuff for bridge-hub-rococo/wococo (otherside)
      
      * Added runtime best_finalized functions + relay-headers init
      
      * Renaming and change BridgeHubRococo/Wococo to Rococo/Wococo config
      
      * [BridgeHub] Add relay-parachains (Rococo/Wococo)
      
      * Missing stuff for adding xcm messaging to BridgeHub
      
      * extracted parachain IDs to the primitives
      
      * fix compilation
      
      * Fixes
      
      * Init setup for Rococo->Wococo messaging support
      
      * Removed unused AccountId from `trait MessagesBridge`
      
      * Removed unused trait SenderOrigin
      
      * Small fixes
      
      * Cleaning after master-merge
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes:
      - align WeightToFee with BridgeHubRococo runtime
      - MAX_HEADER_SIZE
      - updated TODOs
      
      * Added relay_messages cfg for BridgeHubWococo -> BridgeHubRococo
      
      Co-authored-by: default avatarSvyatoslav Nikolsky <[email protected]>
      6c4728f1
    • Svyatoslav Nikolsky's avatar
      Reintroduce header chain trait (#1622) · 6dcecf44
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * reintroduce header chain trait
      
      * renive BridgedChainWithMessages::maximal_extrinsic_size
      6dcecf44
    • Branislav Kontur's avatar
      Bump xcm v3 + substrate · 2c0b6b73
      Branislav Kontur authored and Bastian Köcher's avatar Bastian Köcher committed
      * Bumping substrate/polkadot/cumulus
      
      * Update Cargo.lock
      
      * Fixes
      
      * Fixes for mmr
      
      * Bump clap
      
      * Fix for millau - added CompatibilityMode
      
      * Fixes for rialto-parachain
      
      * Align everywhere branch='master' and just use overrides from main Cargo.toml
      2c0b6b73
    • Svyatoslav Nikolsky's avatar
      weights v1.5: iteration 2 (#1613) · e97bb575
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      e97bb575
    • Svyatoslav Nikolsky's avatar
      Bump Substrate/Polkadot/Cumulus refs (aka Weights v1.5) (#1597) · a3dc2d27
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * update Substrate + Polkadot + Cumulus refs
      
      * Origin -> RuntimeOrigin
      
      * weights v1.5
      
      * update refs once again + `cargo test -p pallet-bridge-grandpa` works
      
      * started work on `cargo test -p pallet-bridge-messages`
      
      * cargo test -p pallet-bridge-relayers
      
      * cargo test -p pallet-bridge-parachains
      
      * cargo test -p millau-runtime
      
      * cargo test -p bridge-runtime-common
      
      * cargo test -p rialto-runtime
      
      * cargo test -p rialto-parachain-runtime
      
      * cargo test -p millau-bridge-node
      
      * cargo test -p rialto-bridge-node
      
      * cargo test -p rialto-parachain-collator
      
      * cargo test -p messages-relay
      
      * cargo test -p parachains-relay
      
      * cargo test -p substrate-relay
      
      * cargo test --all
      
      * cargo check -p millau-runtime --locked --features runtime-benchmarks
      
      * fix remaining test
      
      * fmt
      
      * try to allow clippy failure temporarily
      
      * Revert "try to allow clippy failure temporarily"
      
      This reverts commit d1b6593580f07e0dbeecb7ab0aa92cee98888ed3.
      
      * use min_by
      
      * Revert "use min_by"
      
      This reverts commit 33042f49ed37e8dd0505370289e17f03bf1a56ee.
      
      * Revert "Revert "use min_by""
      
      This reverts commit 1d2204f0b14dc81e5650bb574dedb5fa78c7097d.
      
      * trigger CI
      
      * Revert "trigger CI"
      
      This reverts commit 259d91b5606743bba9d043c69f07eac6c8700ef5.
      
      * new day, new clippy warning
      
      * more clippy issues
      a3dc2d27
    • Svyatoslav Nikolsky's avatar
      Remove without_storage_info from parachains pallet (#1596) · be2a13c7
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * remove without_storage_info from pallet-bridge-parachains
      
      * fix benchmarks
      be2a13c7