Skip to content
  1. Apr 10, 2024
    • Svyatoslav Nikolsky's avatar
      Port safe commits from master to polkadot-staging (#2761) · 4004742e
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * introduce bp_messages::ChainWithMessages (#2171)
      
      * Move Chain::ID from relay-level Chain to primitives-level Chain (#2181)
      
      * move Chain::ID from relay-level Chain to primitives-level Chain
      
      * removed chain IDs from bp-runtime
      
      * add missing file header
      
      * Some code grooming (#2276)
      
      * some code grooming: enable warn(missing_docs) for all piblic crates + added missing documentation + removed obsolete clippy/deny workarounds
      
      * removed strange allow + added comment related to other allow
      
      * removed incorrect_clone_impl_on_copy_type which is unknown to CI clippy
      4004742e
    • Svyatoslav Nikolsky's avatar
      Added Rococo BH <> Rococo Bulletin bridge (#2724) · 59882a73
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * added Rococo BH <> Rococo Bulletin bridge
      
      * init-bridge support
      
      * allow customising finality-related runtime APIs
      
      * revert me
      
      * use Rococo/BridgeHubRococo pretending to be a Polkadot/BridgeHubPolkadot in Rococo <> RococoBulletin bridge
      
      * Revert "revert me"
      
      This reverts commit 90c598d9d50a25e7182c97eee7818bf8d4bc404c.
      
      * Revert "allow customising finality-related runtime APIs"
      
      This reverts commit b39c32c34acddfd0b919042122e0e667470bd0a4.
      
      * fmt
      
      * WITH_BRIDGE_ROCOCO_TO_BULLETIN_MESSAGES_PALLET_INDEX
      
      * regenerate bulletin chain runtime (pallet indices have changed)
      
      * fx WITH_BRIDGE_ROCOCO_TO_BULLETIN_MESSAGES_PALLET_INDEX constant because of latest changes
      
      * also change indices in runtime
      
      * fmt
      
      * clippy
      59882a73
    • Svyatoslav Nikolsky's avatar
      Drop Rialto <> Millau bridges (#2663) (#2694) · 7a8c87a4
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * drop Rialto <> Millau bridges
      
      * clippy
      7a8c87a4
    • Svyatoslav Nikolsky's avatar
      Merge bulletin chain changes into polkadot staging (#2574) · 0bbd2b20
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * polkadot-staging for v1.0.0
      
      * Add polkadot bulletin chain primitives (#2542)
      
      * add polkadot bulletin chain primitives
      
      * also impl ChainWithMessages
      
      * clippy
      
      * instead of requiring sp_std::vec::Vec import when using runtime API generation macro, let's use full type path directly in macro (#2551)
      
      * Polkadot Bulletin Chain client (#2552)
      
      * relay-polkadot-bulletin-client
      
      * generate Polkadot Bulletin Chain Runtime
      
      * Add relays that will be used in Polkadot Bulletin <> Polkadot.BH bridge (#2556)
      
      * added Polkadot.BH <> Polkadot Bulletin chain relays
      
      * uncommented ED stuff
      
      * complex PolkadotBulletin <> Polkadot.BH relay
      
      * removed TODO
      
      * spelling
      
      * prepare refund extension infra to add refund extension for messages from standalone chain (#2558)
      
      * prepare refund extension infra to add refund extension for messages from standalone chain
      
      * spelling
      
      * apply adapter to fix compilation
      
      * clippy
      
      * added POLKADOT_BULLETIN_CHAIN_ID constant
      
      * RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain (#2566)
      
      * RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain
      
      * clippy
      
      * fix compilation
      
      * fix codec dependency (#2567)
      
      * Support message relay limits override (#2570)
      
      * support message relay limits overrides for bridges
      
      * spelling
      
      * export EXTRA_STORAGE_PROOF_SIZE for Polkadot Bulletin (#2572)
      0bbd2b20
    • Serban Iorga's avatar
      Backport `polkadot-sdk` changes to `polkadot-staging` (#2518) · 9216b781
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Asynchronous backing PR (#2300)
      
      * Update substrate & polkadot
      
      * min changes to make async backing compile
      
      * (async backing) parachain-system: track limitations for unincluded blocks (#2438)
      
      * unincluded segment draft
      
      * read para head from storage proof
      
      * read_para_head -> read_included_para_head
      
      * Provide pub interface
      
      * add errors
      
      * fix unincluded segment update
      
      * BlockTracker -> Ancestor
      
      * add a dmp limit
      
      * Read para head depending on the storage switch
      
      * doc comments
      
      * storage items docs
      
      * add a sanity check on block initialize
      
      * Check watermark
      
      * append to the segment on block finalize
      
      * Move segment update into set_validation_data
      
      * Resolve para head todo
      
      * option watermark
      
      * fix comment
      
      * Drop dmq check
      
      * fix weight
      
      * doc-comments on inherent invariant
      
      * Remove TODO
      
      * add todo
      
      * primitives tests
      
      * pallet tests
      
      * doc comments
      
      * refactor unincluded segment length into a ConsensusHook (#2501)
      
      * refactor unincluded segment length into a ConsensusHook
      
      * add docs
      
      * refactor bandwidth_out calculation
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      
      * test for limits from impl
      
      * fmt
      
      * make tests compile
      
      * update comment
      
      * uncomment test
      
      * fix collator test by adding parent to state proof
      
      * patch HRMP watermark rules for unincluded segment
      
      * get consensus-common tests to pass, using unincluded segment
      
      * fix unincluded segment tests
      
      * get all tests passing
      
      * fmt
      
      * rustdoc CI
      
      * aura-ext: limit the number of authored blocks per slot (#2551)
      
      * aura_ext consensus hook
      
      * reverse dependency
      
      * include weight into hook
      
      * fix tests
      
      * remove stray println
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      
      * fix test warning
      
      * fix doc link
      
      ---------
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      
      * parachain-system: ignore go ahead signal once upgrade is processed (#2594)
      
      * handle goahead signal for unincluded segment
      
      * doc comment
      
      * add test
      
      * parachain-system: drop processed messages from inherent data (#2590)
      
      * implement `drop_processed_messages`
      
      * drop messages based on relay parent number
      
      * adjust tests
      
      * drop changes to mqc
      
      * fix comment
      
      * drop test
      
      * drop more dead code
      
      * clippy
      
      * aura-ext: check slot in consensus hook and remove all `CheckInherents` logic (#2658)
      
      * aura-ext: check slot in consensus hook
      
      * convert relay chain slot
      
      * Make relay chain slot duration generic
      
      * use fixed velocity hook for pallets with aura
      
      * purge timestamp inherent
      
      * fix warning
      
      * adjust runtime tests
      
      * fix slots in tests
      
      * Make `xcm-emulator` test pass for new consensus hook (#2722)
      
      * add pallets on_initialize
      
      * tests pass
      
      * add AuraExt on_init
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      ---------
      
      Co-authored-by: command-bot <>
      
      ---------
      
      Co-authored-by: default avatarIgnacio Palacios <[email protected]>
      
      * update polkadot git refs
      
      * CollationGenerationConfig closure is now optional (#2772)
      
      * CollationGenerationConfig closure is now optional
      
      * fix test
      
      * propagate network-protocol-staging feature (#2899)
      
      * Feature Flagging Consensus Hook Type Parameter (#2911)
      
      * First pass
      
      * fmt
      
      * Added as default feature in tomls
      
      * Changed to direct dependency feature
      
      * Dealing with clippy error
      
      * Update pallets/parachain-system/src/lib.rs
      
      Co-authored-by: default avatarasynchronous rob <[email protected]>
      
      ---------
      
      Co-authored-by: default avatarasynchronous rob <[email protected]>
      
      * fmt
      
      * bump deps and remove warning
      
      * parachain-system: update RelevantMessagingState according to the unincluded segment (#2948)
      
      * mostly address 2471 with a bug introduced
      
      * adjust relevant messaging state after computing total
      
      * fmt
      
      * max -> min
      
      * fix test implementation of xcmp source
      
      * add test
      
      * fix test message sending logic
      
      * fix + test
      
      * add more to unincluded segment test
      
      * fmt
      
      ---------
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      
      * Integrate new Aura / Parachain Consensus Logic in Parachain-Template / Polkadot-Parachain (#2864)
      
      * add a comment
      
      * refactor client/service utilities
      
      * deprecate start_collator
      
      * update parachain-template
      
      * update test-service in the same way
      
      * update polkadot-parachain crate
      
      * fmt
      
      * wire up new SubmitCollation message
      
      * some runtime utilities for implementing unincluded segment runtime APIs
      
      * allow parachains to configure their level of sybil-resistance when starting the network
      
      * make aura-ext compile
      
      * update to specify sybil resistance levels
      
      * fmt
      
      * specify relay chain slot duration in milliseconds
      
      * update Aura to explicitly produce Send futures
      
      also, make relay_chain_slot_duration a Duration
      
      * add authoring duration to basic collator and document params
      
      * integrate new basic collator into parachain-template
      
      * remove assert_send used for testing
      
      * basic-aura: only author when parent included
      
      * update polkadot-parachain-bin
      
      * fmt
      
      * some fixes
      
      * fixes
      
      * add a RelayNumberMonotonicallyIncreases
      
      * add a utility function for initializing subsystems
      
      * some logging for timestamp adjustment
      
      * fmt
      
      * some fixes for lookahead collator
      
      * add a log
      
      * update `find_potential_parents` to account for sessions
      
      * bound the loop
      
      * restore & deprecate old start_collator and start_full_node functions.
      
      * remove unnecessary await calls
      
      * fix warning
      
      * clippy
      
      * more clippy
      
      * remove unneeded logic
      
      * ci
      
      * update comment
      
      Co-authored-by: default avatarMarcin S. <[email protected]>
      
      * (async backing) restore `CheckInherents` for backwards-compatibility (#2977)
      
      * bring back timestamp
      
      * Restore CheckInherents
      
      * revert to empty CheckInherents
      
      * make CheckInherents optional
      
      * attempt
      
      * properly end system blocks
      
      * add some more comments
      
      * ignore failing system parachain tests
      
      * update refs after main feature branch merge
      
      * comment out the offending tests because CI runs ignored tests
      
      * fix warnings
      
      * fmt
      
      * revert to polkadot master
      
      * cargo update -p polkadot-primitives -p sp-io
      
      ---------
      
      Co-authored-by: default avatarasynchronous rob <[email protected]>
      Co-authored-by: default avatarIgnacio Palacios <[email protected]>
      Co-authored-by: default avatarBradley Olson <[email protected]>
      Co-authored-by: default avatarMarcin S. <[email protected]>
      Co-authored-by: default avatareskimor <[email protected]>
      Co-authored-by: default avatarAndronik <[email protected]>
      (cherry picked from commit 6ef11176)
      
      * Companion: restructure macro related exports (#3015)
      
      * restructure macro related exports
      
      * restructure macro related exports
      
      * wip
      
      * wip
      
      * update cargo lock
      
      * refactor RuntimeDebug on unincluded segment
      
      * fmt
      
      * Companion: restructure `benchmarking` macro related exports (#3039)
      
      * wip
      
      * wip
      
      * restructure benchmarking macro related exports
      
      * add cargo lock
      
      ---------
      
      Co-authored-by: parity-processbot <>
      (cherry picked from commit 8349c8d1
      
      )
      
      * Add missing workspace members (#3056)
      
      * Add dependencies
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Add missing workspace members
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Fix more
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      ---------
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      (cherry picked from commit 44499cf2
      
      )
      
      * Add CI for monorepo (#1145)
      
      * Add CI for monorepo
      
      * fix frame tests
      
      * Format features
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * add note for skipping tests and disable test-linux-stable-all
      
      * Fix tests and compile issues (#1152)
      
      * Fix feature dependant import
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Bump test timeout
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Remove feature gate
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Add resolver 2
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Remove old lockfile
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Format features
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      ---------
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Fix check-dependency-rules
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * rm test-runtime
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Actually fix script
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * enable cargo-check-each-crate-macos
      
      * Run check-each-crate on 6 machines (#1163)
      
      ---------
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      (cherry picked from commit e4949344
      
      )
      
      * Fix features (#1194)
      
      * Manually fix conflicting ?
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Remove duplicates
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Autofix feature propagation
      
      zepter lint propagate-feature --feature try-runtime --left-side-feature-missing=ignore --workspace --fix --feature-enables-dep="try-runtime:frame-try-runtime"
      zepter lint propagate-feature --feature runtime-benchmarks --left-side-feature-missing=ignore --workspace --fix --feature-enables-dep="runtime-benchmarks:frame-benchmarking"
      zepter lint propagate-feature --feature std --left-side-feature-missing=ignore --workspace --fix
      zepter f f
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Bump zepter
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Add some duplicates
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Revert "Add some duplicates"
      
      This reverts commit c6ce6272
      
      .
      
      * Remove default enabled features
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Bump Zepter
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Bump in correct location 🤦
      
      
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * DNM: Add some mistakes
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * DNM: Add some mistakes
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Revert "DNM: Add some mistakes"
      
      This reverts commit d469b3f0.
      
      * Revert "DNM: Add some mistakes"
      
      This reverts commit d892a73a
      
      .
      
      ---------
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      (cherry picked from commit 0400ed90)
      
      * Fix build profiles (#1229)
      
      * Fix build profiles
      
      Closes https://github.com/paritytech/polkadot-sdk/issues/1155
      
      
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Manually set version to 1.0.0
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Use workspace repo
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * 'Authors and Edition from workspace
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      ---------
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      (cherry picked from commit dcda0e50
      
      )
      
      * Set test crates to nopublish (#1240)
      
      * Set test crates to nopublish
      
      * Don't publish more crates
      
      * Set even more crates to nopublish
      
      ---------
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      (cherry picked from commit 1c7ef1f2
      
      )
      
      * Add missing licenses and tune the scanning workflow (#1288)
      
      * Add missing Cumulus licenses
      
      * Typo
      
      * Add missing Substrate licenses
      
      * Single job checking the sub-repos in steps
      
      * Remove dates
      
      * Remove dates
      
      * Add missing (C)
      
      * Update FRAME UI tests
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update more UI tests
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      ---------
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      (cherry picked from commit bfb241d7
      
      )
      
      * Restructure `dispatch` macro related exports (#1162)
      
      * restructure dispatch macro related exports
      
      * moved Dispatchable to lib.rs
      
      * fix .gitignore final newline
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * fix rustdocs
      
      * wip
      
      ---------
      
      Co-authored-by: default avatarLiam Aharon <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarordian <[email protected]>
      (cherry picked from commit bdbe9829
      
      )
      
      * Fixes
      
      * Fix clippy
      
      ---------
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      Co-authored-by: default avatarJuan <[email protected]>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: default avatarAlexander Samusev <[email protected]>
      Co-authored-by: default avatarLulu <[email protected]>
      Co-authored-by: default avatarPrzemek Rzad <[email protected]>
      9216b781
    • 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
      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
    • 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
      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
      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
      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
    • 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
    • Svyatoslav Nikolsky's avatar
      Remove pallet::without_storage_info from bridge GRANDPA pallet (#1478) · f38852f6
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * remove pallet::without_storage_info from bridge GRANDPA pallet
      
      * StoredBridgedHeader
      
      * spelling
      
      * fix benchmarks
      
      * MAX_BRIDGED_AUTHORITIES: 256 -> 2048
      
      * Update modules/grandpa/src/storage_types.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * Update modules/grandpa/src/storage_types.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * moved max authorities + header size to chain primitives
      
      * removed unused code
      
      * new -> try_new
      
      * fix benchmarks compilation
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      f38852f6
    • Branislav Kontur's avatar
      Reexport paste from `sp-runtime` in `bp-runtime` to aviod including `paste`... · 793321fc
      Branislav Kontur authored and Bastian Köcher's avatar Bastian Köcher committed
      Reexport paste from `sp-runtime` in `bp-runtime` to aviod including `paste` dependency everywhere (#1556)
      
      * Reexport paste from `sp-runtime` in `bp-runtime` to aviod including `paste` dependency everywhere
      
      * Add import `bp_runtime` to macro calls: decl_bridge_finality_runtime_apis/decl_bridge_messages_runtime_apis
      793321fc
    • Serban Iorga's avatar
      Split decl_bridge_runtime_apis!() (#1553) · f3a151fe
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      Signed-off-by: default avatarSerban Iorga <[email protected]>
      
      Signed-off-by: default avatarSerban Iorga <[email protected]>
      f3a151fe
    • Serban Iorga's avatar
      Declare declare_bridge_chain_runtime_apis! macro · 59c168e8
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      Signed-off-by: default avatarSerban Iorga <[email protected]>
      59c168e8
    • Serban Iorga's avatar
      Define HeaderIdProvider trait · dc38e3d0
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      Define HeaderIdProvider trait
      
      Signed-off-by: default avatarSerban Iorga <[email protected]>
      dc38e3d0
    • Adrian Catangiu's avatar
      Few typos and clippy fixes (#1362) · d04b0186
      Adrian Catangiu authored and Bastian Köcher's avatar Bastian Köcher committed
      * fix typos
      
      * clippy fixes
      d04b0186
    • Svyatoslav Nikolsky's avatar
      fix parse_transaction on Rialto+Millau (#1360) · 133934df
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      133934df
    • Svyatoslav Nikolsky's avatar
      Encode and estimate Rococo/Wococo/Kusama/Polkadot messages (#1322) · efa3e972
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * encode and estimate Rococo/Wococo/Kusama/Polkadot messages
      
      * allow send-message for non-bundled chains
      
      * weight -> dispatch-weight
      
      * fmt
      
      * fix spelling
      efa3e972
    • Svyatoslav Nikolsky's avatar
      Bump Substrate/Polkadot/Cumulus refs (#1295) · ea2d6f89
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      Substrate: 31d90c202d6df9ce3837ee55587b604619a912ba
      Polkadot: 60df3c55c711c2872872d6220f98b2611340e051
      Cumulus: a9630551c2cd877952ab769c862af4c81b0ccd3c
      ea2d6f89
    • Svyatoslav Nikolsky's avatar
      Refactor message relay helpers (#1234) · 4cdd9590
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * refactor message relay helpers
      
      * single standalone_metrics function
      
      * fixed tests
      
      * clippy + fmt
      
      * removed commented code
      
      * add calls tracing
      
      * fix spelling
      
      * cargo fmt
      
      * -commented code
      
      * fix build again
      
      * post-merge build fix
      
      * clippy + fmt
      4cdd9590
    • Svyatoslav Nikolsky's avatar
      Refactor finality relay helpers (#1220) · e675b130
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * refactor finality relay helper definitions
      
      * add missing doc
      
      * removed commented code
      
      * fmt
      
      * disable rustfmt for macro
      
      * move best_finalized method const to relay chain def
      e675b130
    • hacpy's avatar
      Match substrate's fmt (#1148) · bd70de8b
      hacpy authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Alter gitlab.
      
      * Use substrate's rustfmt.toml
      
      * cargo +nightly fmt --all
      
      * Fix spellcheck.
      
      * cargo +nightly fmt --all
      
      * format.
      
      * Fix spellcheck and fmt
      
      * fmt?
      
      * Fix spellcheck
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      bd70de8b
    • Svyatoslav Nikolsky's avatar
      Move some associated types from relay_substrate_client::Chain to bp_runtime::Chain (#1087) · 7369ff9d
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * move some associated types from relay_substrate_client::Chain to bp_runtime::Chain
      
      * dummy commit
      
      * Revert "dummy commit"
      
      This reverts commit 81bc64aa092df115a7c68e7bb7ca5e83ec31fd20.
      7369ff9d
    • Svyatoslav Nikolsky's avatar
      Emit mortal transactions from relay (#1073) · 864c8306
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * mortal relay transactions
      
      * sign block hash for mortal transactions
      
      * TransactionEraOf
      
      * add explanation
      
      * enable mortal transactions for Westend -> Millau headers relay
      
      * clippy
      
      * spellcheck
      864c8306
    • Hernando Castano's avatar
      Update Copyright Date to 2021 (#864) · 21baffc8
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Update copyright date to 2021
      
      * Bump date in license header template
      21baffc8
    • Hernando Castano's avatar
      High-Level Documentation (#565) · d47658c9
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * High level docs - start.
      
      * Clean up README
      
      * Start adding details to high level docs
      
      * More docs on the header sync pallet
      
      * Testing scenarios document.
      
      * Add some scenarios.
      
      * Add multi-sig scenario.
      
      * Start writing about message dispatch pallet
      
      * Move content from old README into PoA specific doc
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndreas Doerr <[email protected]>
      
      * GRANDPA for consistency.
      
      * Describe scenario steps.
      
      * WiP
      
      * Add notes about block production and forks
      
      * Update.
      
      * Add sequence diagram for Millau to Rialto transfer
      
      * Clean up header sync pallet overview
      
      * Remove leftover example code
      
      * Clean up testing scenarios and amend sequence diagram.
      
      * Linking docs.
      
      * Add some more docs.
      
      * Do a bit of cleanup on the high-level docs
      
      * Clean up the testing scenario
      
      * Fix typos in flow charts
      
      * Fix small typo
      
      * Fix indentation of Rust block
      
      * Another attempt at rendering block correctly
      
      * TIL about lazy list numbering in Markdown
      
      * Add list numbers across sections
      
      * Start counting from correct number
      
      * Update README to use correct path to local scripts
      
      * Wrap ASCII art in code block
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarAndreas Doerr <[email protected]>
      d47658c9
    • Svyatoslav Nikolsky's avatar
      Millau -> Rialto messages relay (#399) · d4fc7beb
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * 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: default avatarHernando Castano <[email protected]>
      
      * 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: default avatarTomasz Drwięga <[email protected]>
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      d4fc7beb
    • Svyatoslav Nikolsky's avatar
      Parse substrate message proof (#479) · 2d7eacf6
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * parse substrate message proof
      
      * unfinalized_header
      2d7eacf6
    • Svyatoslav Nikolsky's avatar
      Rialto -> Millau headers relay (#477) · 3e45356a
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Rialto -> Millau headers relay
      
      * removed more constraints
      
      * removed file from other PR
      
      * Update primitives/rialto/src/lib.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      3e45356a
    • Svyatoslav Nikolsky's avatar
      Substrate relay guards (#470) · b027c812
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * substrate relay guards
      
      * checked time condition
      
      * ChainWithBalances
      
      * removed obsolete comment
      
      * Update relays/substrate-client/src/chain.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * trailing space
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      b027c812
    • Hernando Castano's avatar
      Support Tracking Forks in Substrate Pallet (#409) · a6048bca
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Support multiple "best headers" from different forks
      
      * Update the name of a test
      
      * Add note about multiple scheduled changes
      
      * Disallow multiple scheduled authority set changes
      
      * Return multiple best headers from Runtime APIs
      
      * Remove invalid test write-up
      
      * Add some sketch-ups of test scenarios
      
      * Clean up test scenarios
      
      * Add module for testing forks
      
      * Write headers to storage
      
      * Add way to check expected outcome for header imports
      
      * Add support for importing finality proofs
      
      * Support importing headers which schedule changes
      
      * Write out test scenario using new framework
      
      * Map authority set changes across forks
      
      Gets all the tests in the `forks` module passing
      
      * Remove basic tests
      
      These were used when working on the initial test helper
      
      * Prevent multiple pending set changes on the same fork
      
      * Remove old test which allowed imports past unfinalized header
      
      * Ignore failing test (for now)
      
      * Rewrite `if` comparison using `match` and `cmp`
      
      Fixes Clippy warning: `comparison_chain`
      
      * Add helper for writing test headers with default characteristics
      
      * Fix test that checked authority set updates
      
      * Make note about importing headers on different unfinalized fork
      
      * Perform some cleanup on the fork module
      
      * Fix Clippy complaints
      
      * Provide list of unfinalized headers to Runtime APIs
      
      * Add proofs to expect() calls
      
      * Make tests the focus of the forks module
      
      * Allow specific errors to be checked in fork tests
      
      * Remove unused method
      
      * Replace unreachable() statement with expect()
      
      * Rename storage `unfinalized_headers() `to make its purpose more clear
      
      * Update Runtime API name in relayer to match pallet
      
      * Commit `unfinalized_headers` changes I forgot to add
      
      * Rename ChainTipHeight to BestHeight
      
      * Make schedule_next_set_change require a mutable reference
      
      * Remove check for key when enacting authority set
      
      We only expect to take the happy-path in the pallet anyways, so this check
      to save ourselves the time spent decoding the entry isn't really used.
      
      * Clear justification set when writing headers to storage
      
      * Clarify why we only allow one set change per fork
      
      * Change best_headers() to return HeaderIDs
      
      Prevents us from returning full headers (which are more expensive to
      get from storage) since we only care about header IDs (number, hash)
      anyways.
      
      * Fix Clippy complaint
      
      * Make note about equivocations
      
      * Use HeaderIds when returning incomplete headers
      
      This change stops returning full headers which are more expensive
      to get from storage than header Ids (number, hash) are. Clients likely
      don't need the full header anyways which is why this change is fine.
      
      * Introduce HeaderId type to reduce type complexity
      
      * Add signal hash to storage during genesis config
      
      * Return error instead of expect()-ing
      
      * Fix Clippy lint about `ok_or` fn call
      
      * Rename `forks` module to indicate that it's for testing
      
      * Use `const` for `expect()` proofs
      
      * Remove check that key exists before `kill`-ing value
      
      Co-authored-by: default avatarSvyatoslav Nikolsky <[email protected]>
      a6048bca
    • Svyatoslav Nikolsky's avatar
      Move Chain trait to runtime primitives (#403) · 9e9ac8df
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * extract ChainBase to bp-runtime
      
      * post-merge fixes
      
      * cargo fmt --all
      
      * compilation fixes
      
      * reexport BlockNumberOf, HashOf, HeaderOf
      9e9ac8df
    • Serban Iorga's avatar
      Remove bridges subtree · 9a3e2c8c
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      9a3e2c8c
  2. Mar 26, 2024
    • Dcompoze's avatar
      Fix spelling mistakes across the whole repository (#3808) · 002d9260
      Dcompoze authored
      **Update:** Pushed additional changes based on the review comments.
      
      **This pull request fixes various spelling mistakes in this
      repository.**
      
      Most of the changes are contained in the first **3** commits:
      
      - `Fix spelling mistakes in comments and docs`
      
      - `Fix spelling mistakes in test names`
      
      - `Fix spelling mistakes in error messages, panic messages, logs and
      tracing`
      
      Other source code spelling mistakes are separated into individual
      commits for easier reviewing:
      
      - `Fix the spelling of 'authority'`
      
      - `Fix the spelling of 'REASONABLE_HEADERS_IN_JUSTIFICATION_ANCESTRY'`
      
      - `Fix the spelling of 'prev_enqueud_messages'`
      
      - `Fix the spelling of 'endpoint'`
      
      - `Fix the spelling of 'children'`
      
      - `Fix the spelling of 'PenpalSiblingSovereignAccount'`
      
      - `Fix the spelling of 'PenpalSudoAccount'`
      
      - `Fix the spelling of 'insufficient'`
      
      - `Fix the spelling of 'PalletXcmExtrinsicsBenchmark'`
      
      - `Fix the spelling of 'subtracted'`
      
      - `Fix the spelling of 'CandidatePendingAvailability'`
      
      - `Fix the spelling of 'exclusive'`
      
      - `Fix the spelling of 'until'`
      
      - `Fix the spelling of 'discriminator'`
      
      - `Fix the spelling of 'nonexistent'`
      
      - `Fix the spelling of 'subsystem'`
      
      - `Fix the spelling of 'indices'`
      
      - `Fix the spelling of 'committed'`
      
      - `Fix the spelling of 'topology'`
      
      - `Fix the spelling of 'response'`
      
      - `Fix the spelling of 'beneficiary'`
      
      - `Fix the spelling of 'formatted'`
      
      - `Fix the spelling of 'UNKNOWN_PROOF_REQUEST'`
      
      - `Fix the spelling of 'succeeded'`
      
      - `Fix the spelling of 'reopened'`
      
      - `Fix the spelling of 'proposer'`
      
      - `Fix the spelling of 'InstantiationNonce'`
      
      - `Fix the spelling of 'depositor'`
      
      - `Fix the spelling of 'expiration'`
      
      - `Fix the spelling of 'phantom'`
      
      - `Fix the spelling of 'AggregatedKeyValue'`
      
      - `Fix the spelling of 'randomness'`
      
      - `Fix the spelling of 'defendant'`
      
      - `Fix the spelling of 'AquaticMammal'`
      
      - `Fix the spelling of 'transactions'`
      
      - `Fix the spelling of 'PassingTracingSubscriber'`
      
      - `Fix the spelling of 'TxSignaturePayload'`
      
      - `Fix the spelling of 'versioning'`
      
      - `Fix the spelling of 'descendant'`
      
      - `Fix the spelling of 'overridden'`
      
      - `Fix the spelling of 'network'`
      
      Let me know if this structure is adequate.
      
      **Note:** The usage of the words `Merkle`, `Merkelize`, `Merklization`,
      `Merkelization`, `Merkleization`, is somewhat inconsistent but I left it
      as it is.
      
      ~~**Note:** In some places the term `Receival` is used to refer to
      message reception, IMO `Reception` is the correct word here, but I left
      it as it is.~~
      
      ~~**Note:** In some places the term `Overlayed` is used instead of the
      more acceptable version `Overlaid` but I also left it as it is.~~
      
      ~~**Note:** In some places the term `Applyable` is used instead of the
      correct version `Applicable` but I also left it as it is.~~
      
      **Note:** Some usage of British vs American english e.g. `judgement` vs
      `judgment`, `initialise` vs `initialize`, `optimise` vs `optimize` etc.
      are both present in different places, but I suppose that's
      understandable given the number of contributors.
      
      ~~**Note:** There is a spelling mistake in `.github/CODEOWNERS` but it
      triggers errors in CI when I make changes to it, so I left it as it
      is.~~
      002d9260