Skip to content
  1. Apr 10, 2024
    • Hernando Castano's avatar
      Weights for `pallet-bridge-grandpa` (#815) · 025a9cad
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add benchmarking skeleton
      
      * Allow runtime to indicate concrete header type for benches
      
      * Set up skeleton for benchmark tests
      
      * Play around with mutating bench header
      
      * Create a working test for benchmarking
      
      * Add benches related to enacting authority set changes
      
      * Add bench for checking effect of prec-commits/vote ancestries
      
      * Use new `no_std` test utils in benchmarks
      
      * Support pallet instances in benchmarking
      
      * Use correct benchmarking instance macro
      
      * Add instance to runtime benchmark helper impl
      
      * Start using new justification creation API
      
      * Allow mock header's number to be specified
      
      * Set up benches with correct fork/depth parameters
      
      * Use new pallet name during runtime bench setup
      
      * Use correct `set_id` in tests
      
      * Limit number of forks as workaround to get tests passing
      
      * Use number of authorities which matches number of forks
      
      * Make sure test post-conditions are checked properly
      
      * Only read `CurrentAuthoritySet` from storage once
      
      * Add combined benchmark for `submit_finality_proof`
      
      * Add bench test
      
      * Introduce config bounds related to justification verification
      
      * Use config consts from pallet in benchmarking
      
      * Return data relevant to benchmarks from helper functions
      
      * Annotate `submit_finality_proof` with autogenerated weights
      
      * Return actual weight after call execution
      
      * Ignore Clippy warnings in bench template
      
      * Update benchmark template
      
      * Use `test-utils` to create test headers
      
      * Clarify that helper is only for messages benches
      
      * Add more documentation to benches
      
      * Update TODOs
      
      * Clarify return types in comment
      
      * Fix pallet name post-merge
      
      * Update NOTE to a TODO item
      
      * Indicate that Config params are max values, not actual values
      
      * Change Config validator count type to be `u32`
      
      * Return decoded justification instead of fields
      
      * Add missing trait bounds for tests
      
      * Correctly issue weight refund
      
      Thanks for spotting this Tomek!
      
      * Update comment
      
      * Add note about SESSION_LENGTH
      
      * Fix benchmarking code
      025a9cad
    • Hernando Castano's avatar
      Use GrandpaJustification instead of Vec<u8> in Pallet API (#847) · 67cdca8a
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Stop passing raw encoded justifications to pallet API
      
      By having the API accept a struct-ified justification we are able to
      better utilize the justifications fields for weight calculations.
      
      * Update relayer code to use decoded justifications
      
      * Add justification to `expect()` statement
      
      * Fix some imports
      
      * Make justification wrapper contain decoded justification
      
      * Rename some fields
      
      * Get rid of warnings
      
      * Appease Clippy
      
      * Only decode justification once at init time
      
      * Remove unnecessary method
      
      * Remove justification wrapper
      
      This became kinda unnecessary since we could implement the FinalityProof
      trait on GrandpaJustification directly.
      67cdca8a
    • Tomasz Drwięga's avatar
      Make relay CLI generic (#849) · 904b9f4d
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Start generalizing rialto-millau commands.
      
      * cargo fmt --all
      
      * Introduce generic balance.
      
      * Unify message payloads.
      
      * cargo fmt --all
      
      * init - generic
      
      * Attempt to unify send message.
      
      * Start moving things around.
      
      * cargo fmt --all
      
      * Move init-bridge.
      
      * cargo fmt --all
      
      * Improve UX of bridge argument.
      
      * Fix clippy.
      
      * Fix docs and scripts.
      
      * Add docs.
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Fix copyright.
      
      * Add issue numbers.
      
      * More todos.
      
      * Update comments.
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      904b9f4d
    • Tomasz Drwięga's avatar
      Rococo (mocky)Runtime and Client (#841) · 51fc8394
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Implement fake rococo runtime.
      
      * Generate correct storage key.
      
      * cargo fmt --all
      
      * Move client-rococo.
      
      * Satisfy clippy.
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Address review comments.
      
      * Clippy again.
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      51fc8394
    • Hernando Castano's avatar
      Larger Test Keyring Support (#842) · 78a9cdca
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Allow creation of authority lists with any number of authorities
      
      * Move keyring helpers into their own module
      
      * Add helper for generating list of test accounts
      
      * Fix import names in tests
      
      * Rename Keyring trait to Signer
      
      * Get list of accounts in a more functional way
      
      * Clarify meaning of `test_keyring` return type
      
      * Use concrete test account type instead of generics
      
      * Make sure voter set contains all authorities which signed off on pre-commits
      78a9cdca
    • Hernando Castano's avatar
      Rename Finality Verifier and Call Dispatch Pallets (#838) · 8d122b03
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Rename `pallet-finality-verifier` to `pallet-bridge-grandpa`
      
      * Missed some CamelCase ones
      
      * Update logging target in GRANDPA pallet
      
      * Rename `pallet-bridge-call-dispatch` to `pallet-bridge-dispatch`
      
      * Rename the dispatch pallet folder
      
      * Update logging target in Dispatch pallet
      
      * Missed a couple
      
      * Format the repo
      
      * Stop listing individual pallets in Compose logs
      
      * Use correct pallet name in module doc comments
      
      * Add `pallet-bridge-dispatch` to README project layout
      
      * Sort crate names in TOML files
      
      * Rename `pallet-bridge-grandpa` runtime Call alias
      8d122b03
    • Tomasz Drwięga's avatar
      Flatten back the structure (#837) · acb872fb
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Remove chains.
      
      * Move relay clients.
      
      * Flatten generic.
      
      * Fix fmt.
      acb872fb
    • Hernando Castano's avatar
      Tunable Justification Generator (#835) · 1c7b5d1b
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add way to create tunable GRANDPA justifications
      
      * Use new function in tests
      
      * Allow multiple authorities on a single fork
      
      * Only store pre-commit targets instead of full ancestry chains
      
      * Rename precommit_header to be more generic
      
      * Push new digest item instead of overriding entire digest
      
      * Ensure that we generate chains with non-zero length
      
      * Extract justification creation parameters into struct
      
      * Appease Clippy
      1c7b5d1b
    • Svyatoslav Nikolsky's avatar
      Rename pallet-message-lane into pallet-bridge-messages (#834) · 41055757
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * use runtime:: prefix for message-lane pallet traces
      
      * renamed message-lane (module and primitives) folder into messages
      
      * replace "message lane" with "messages" where appropriate
      41055757
    • Hernando Castano's avatar
      Make Test Helpers `no_std` Compatible (#823) · eb7c96ba
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Use `sp-application-crypto` when generating test justifications
      
      * Try to justifications tests compiling
      
      * Try using `ed25519_dalek` for justification creation
      
      * Small cleanup
      
      * Correctly generate a Keypair
      
      The public key didn't correspond to what would be derived
      with the given private key.
      
      * Remove enum index hack
      
      * Clean up test account helper functions
      
      * Fix tests in `pallet-finality-verifier`
      
      * Get `pallet-substrate-bridge` tests compiling again
      
      * Use the correct keyring in justification tests
      
      * Clean up Keyring related code a bit
      
      * Appease Clippy
      
      * Remove unused import
      
      * Use keyring variants directly
      
      * Remove unecessary From implementation
      eb7c96ba
    • Svyatoslav Nikolsky's avatar
      Sync Westend to Millau (#824) · d749bc3a
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * make finality verifier pallet instantiable
      
      * add second instance of finality verifier pallet to the Millau runtime
      
      * add Westend -> Millau headers relay
      
      * use wss to connect to public westend nodes
      
      * initialize with best_finalized_block
      
      * typo
      
      * Revert "initialize with best_finalized_block"
      
      This reverts commit 954ed2832372d67618abc1a06d47e66faa93f674.
      
      * pass VoterSet by ref
      
      * new bridge initialization code
      
      * loop upper bound
      
      * Polkadot -> Westend
      
      * fixed tests compilation
      
      * default-features
      
      * assert
      d749bc3a
    • Svyatoslav Nikolsky's avatar
      Added some ML-related constants for polkadot-like chains (#822) · 71525878
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * added some ML-related constants for polkadot-like chains
      
      * comment
      71525878
    • Hernando Castano's avatar
      Clean Finality Verifier Pallet (#804) · d8852fd1
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Remove unused Config types from `pallet-finality-verifier`
      
      * Remove unused AncestryChecker trait
      
      * Remove ancestry proof parameter from relayer calls
      
      * Update docs to reflect current state of pallet
      
      * Remove mock ancestry checker
      
      * Remove unused error
      
      * Write headers outside of function used for authority set changes
      
      * Move justification verification into helper function
      
      * Add documentation suggestions
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Clean up module level documentation a bit
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      d8852fd1
    • Tomasz Drwięga's avatar
      Add Westend & Rococo primitives (#808) · 84cd93f9
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Move chain primitives to a sub-folder.
      
      * Update workspace members.
      
      * Extract core parts of polkadot.
      
      * cargo fmt --all
      
      * Remove TODO.
      
      * cargo fmt --all
      
      * Fix crate names.
      
      * Add to the latest API.
      
      * cargo fmt --all
      
      * Add nested lock files to ignore (generated during cargo fmt)
      
      * Fix compilation.
      
      * cargo fmt --all
      
      * Fix ignore pattern.
      
      * Address review comments.
      84cd93f9
    • Tomasz Drwięga's avatar
      Uniform git dependencies (Backport of substrate#2589) (#805) · 8f11732b
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Make Substrate deps uniform
      
      * Rest of the deps.
      
      * Fix broken merge.
      
      * Revert substrate.
      
      * Fix tests
      
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      8f11732b
    • Hernando Castano's avatar
      Move Storage Parser from Bridge Pallet (#793) · 51db99ea
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Move storage proof checker to runtime primtives
      
      * Add method for parsing storage proofs
      
      * Use finality-verifier pallet in runtime-common
      
      * Get bridge pallet compiling again
      
      * Use storage prover from bp-runtime in a few more places
      
      * Don't leak `std` items from proof helper into `no-std` builds
      
      * Fix benchmarking compilation
      
      * Remove unused import in fuzzer
      51db99ea
    • Svyatoslav Nikolsky's avatar
      Changed delivery and dispatch fee computation methods (#795) · 324e083c
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * removed weight <-> fee mess
      
      * updated documentation
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      324e083c
    • Svyatoslav Nikolsky's avatar
      Relay Millau && Rialto headers using (future) finality verifier API (#761) · f87053c1
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * finality proofs relay
      
      * SyncHeader::is_mandatory
      
      * empty ancestry proof
      
      * logs
      
      * fixed submit condition
      
      * fixed wrong split index
      
      * tick comment
      
      * recent_finality_proofs
      
      * basic finality loop tests
      
      * removed obsolete files
      
      * rename files in substrate relay
      
      * fmt
      
      * clippy
      
      * fixed TODOs
      
      * clippy
      
      * stop syncing if target node is out of sync
      
      * more clippy
      
      * more clippy
      
      * Update relays/finality-relay/src/finality_loop.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Update relays/finality-relay/src/finality_loop.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Update relays/finality-relay/src/finality_loop.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * docs
      
      * moved doc
      
      * typo
      
      * Update relays/finality-relay/src/finality_loop_tests.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Update relays/finality-relay/src/finality_loop_tests.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * header_and_finality_proof_by_number -> header_and_finality_proof
      
      * VecDeque isn't required (because of make_contiguous)
      
      * fixed wrong expect
      
      * Update relays/finality-relay/src/finality_loop.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Update relays/substrate/src/rialto_headers_to_millau.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Update relays/substrate/src/rialto_headers_to_millau.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * RialtoSyncHeader
      
      * Update relays/finality-relay/src/finality_loop.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update relays/finality-relay/src/finality_loop.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * removed wrong comment
      
      * Update relays/finality-relay/src/finality_loop.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * fix used runtime methods names
      
      * fix for new jsonrpsee
      
      * fix comment
      
      * initialize finality verifier pallet
      
      * fmt
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      f87053c1
    • Hernando Castano's avatar
      Unify Substrate Bridge Pallet with Finality Verifier (#783) · 6cfd8778
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add relevant storage items from Substrate pallet
      
      * Add function for importing finalized headers to storage
      
      * Remove unused getter functions
      
      * Add GenesisConfig to pallet
      
      * Add initialization extrinsic
      
      * Add operational extrinsic
      
      * Get existing finality verifier tests compiling again
      
      * Add tests for pallet initialization
      
      * Add tests related to pallet's operational status
      
      * Update tests which were using `pallet-substrate-bridge`
      
      * Add tests related to header imports
      
      * Use wrapper function when init-ing some tests
      
      * Add prefix to tests related to rate limiter
      
      * Fix failed compilation related to GenesisConfig
      
      * Add some documentation
      
      * Change some extrinsics to be Operational
      
      * Add public interface to pallet
      
      * Implement runtime APIs for finality-verifier pallet
      
      * Justify use of `expect` when importing headers
      
      * Reject headers with forced changes
      
      * Add weight to initialize extrinsic
      
      * Remove TODO which will be addressed later
      
      * Move succesful import log to correct location
      
      * Expand proof for when `best_finalized` is fetched
      
      * Move check for newer finalized blocks earlier in pipeline
      
      * Rename `ConflictingFork` error to be more generic
      
      * Only compute finality_target's hash once
      
      * Add missing documentation to Runtime APIs
      
      * Add TODO about using `set_id` from `ScheduledChange` digest
      6cfd8778
    • Hernando Castano's avatar
      Use No-Op Ancestry Checker (#755) · 658e4e9b
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Use no-op ancestry checker
      
      * Check that current header height is greater than last finalized
      
      * Ensure that incoming headers are strictly greater than last finalized
      
      * Ensure that header numbers always increase in tests
      658e4e9b
    • Svyatoslav Nikolsky's avatar
      89b0f7be
    • Tomasz Drwięga's avatar
      Bump substrate in subtree import preparation. (#759) · 82739314
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      82739314
    • Svyatoslav Nikolsky's avatar
      Message lane pallet parameters + updatable conversion rate (#728) · 1bf2eb1a
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * message lane pallet parameters
      
      * updated comment
      
      * Update modules/message-lane/src/lib.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * fmt
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      1bf2eb1a
    • Svyatoslav Nikolsky's avatar
      Fix updated clippy grumbles (#733) · 90113303
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * Revert "Pin Rust Nightly to 2020-12-17 (#652)"
      
      This reverts commit e54e6f7e3d34c28d698e637f9099162b3c1917e9.
      
      * fix clippy
      
      * clippy again
      
      * more clippy in test code
      
      * and new cargo fmt
      
      * another try
      90113303
    • Svyatoslav Nikolsky's avatar
      ForbidOutboundMessages and ForbidInboundMessages (#735) · 85bb45b5
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      85bb45b5
    • Tomasz Drwięga's avatar
      Update to latest substrate (#723) · 7aa51f8d
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Bump substrate deps.
      
      * Bump scale.
      
      * Bump ethabi.
      
      * Remove inherent from aura.
      
      * Migrate to construct_runtime
      
      * cargo fmt --all
      7aa51f8d
    • Svyatoslav Nikolsky's avatar
      limit number of pending messages at outbound lane (#715) · ca91d340
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      ca91d340
    • Svyatoslav Nikolsky's avatar
      Account proof size in weight formula (#679) · 2f457775
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * fix broken message lane benchmarks
      
      * proof-size related benchmarks
      
      * impl Size for proof parameters
      
      * include proof weight into weight formula
      
      * left TODO
      
      * fixed proof size
      
      * WeightInfoExt::receive_messages_proof_weight
      
      * charge for extra message bytes delivery in send_message
      
      * removed default impl of WeightsInfoExt
      
      * moved weight formulas to WeightInfoExt
      
      * receive_messages_proof_outbound_lane_state_overhead is included twice in weight
      
      * typo
      
      * typo
      
      * fixed TODO
      
      * more asserts
      
      * started wotk on message-lane documentation
      
      * expected_extra_storage_proof_size() is actually expected in delivery confirmation tx
      
      * update README.md
      
      * ensure_able_to_receive_confirmation
      
      * test rialto message lane weights
      
      * removed TODO
      
      * removed unnecessary trait requirements
      
      * fixed arguments
      
      * fix compilation
      
      * decreased basic delivery tx weight
      
      * fmt
      
      * clippy
      
      * Update modules/message-lane/src/benchmarking.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * structs
      
      * Update primitives/millau/src/lib.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * removed readme.md
      
      * removed obsolete trait bounds
      
      * Revert "removed readme.md"
      
      This reverts commit 50b7376a41687a94c27bf77565434be153f87ca1.
      
      * Update bin/runtime-common/src/messages.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update bin/runtime-common/src/messages.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update bin/runtime-common/src/messages.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update bin/runtime-common/src/messages.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update bin/runtime-common/src/messages.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update bin/runtime-common/src/messages.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update bin/runtime-common/src/messages.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * PreComputedSize
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      2f457775
    • Hernando Castano's avatar
      Stop Importing Full Header Chain (#707) · fb7c1912
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Make AncestryProof type more flexible
      
      * Only import single finalized header instead of a chain
      
      * Fix unchecked header import tests
      
      * Add option for limiting ancestry proof size
      
      * Update finality verifier Config in runtimes
      
      * Update some documentation
      
      * Fix Clippy warning
      
      * Allow AncestryChecker to return proof size
      
      Stops us from abusing the `Size` trait
      
      * Remove Size impl for Vec<T>
      
      * Remove size contraints for ancestry proofs
      
      With different proof types its unclear how to "size" should be interpreted,
      so we remove this requirement all together to avoid confusion.
      fb7c1912
    • Hernando Castano's avatar
      Wire Finality Verifier Pallet Into Runtimes (#696) · 8c7d0ca3
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add Finality Verifier pallet to runtimes
      
      * Implement simple ancestry checker
      
      * Use the new checker in runtimes
      
      * Remove unused import warning
      
      * Bump max allowed ancestry proof size
      
      * Add a few optimization suggestions when verifying ancestry
      
      * Use session length as upper bound for ancestry proof size
      
      * Remove unused time units
      8c7d0ca3
    • Hernando Castano's avatar
      Make Account Derivation More Unique (#686) · e4f195d1
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Use more unique prefix when generating account IDs
      
      * Update derived addresses used in tests
      
      * Make `account` prefix more unique
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update test account IDs again
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      e4f195d1
    • Hernando Castano's avatar
      Add Unchecked Header Writes to Bridge Pallet (#672) · b921a485
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Add method for unchecked header imports
      
      * Update docs for importing unchecked headers
      
      * Import unchecked headers in HeaderChain implementation
      
      * Fix Clippy warnings
      
      * Move unchecked header import out of Verifier struct
      
      * Clean up unchecked import tests
      
      * Change HeaderChain API to accept iterator of headers
      
      * Use chains of headers in tests
      
      * Remove unused Result return type when appending finalized headers
      
      * Add test which shows that genesis changes are not enacted
      
      * Use initial header's hash for unchecked authority set changes
      
      * Appease Clippy
      
      * Check ancestry before making unchecked writes
      
      * Fix typo
      
      * Fix Clippy warning
      
      * Add note about `ancestry_proof` structure
      
      * Use best hash storage item directly
      
      Co-authored-by: default avatarSvyatoslav Nikolsky <[email protected]>
      b921a485
    • Svyatoslav Nikolsky's avatar
      Emit dispatch message when whole message (payload) has invalid encoding (#664) · 9414c0d6
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * emit dispatch message when whole message (payload) has invalid encoding
      
      * DispatchMessage::dispatch accepts Result
      9414c0d6
    • Hernando Castano's avatar
      Finality Verifier Pallet (#629) · ea5d8662
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add skeleton for `pallet-finality-verifier`
      
      * Sketch out implementation for importing finality proofs
      
      * Get pallet compiling
      
      * Introduce skeleton for mock runtime
      
      * Start using real Grandpa types in finality pallet
      
      * Redefine types in header chain primitives crate
      
      * Implement HeaderChain for Substrate bridge pallet
      
      * Plug Substrate Bridge Pallet into verifier mock
      
      * Fix compilation of `header-chain` primitives
      
      * Start writing to base pallet storage
      
      * Add first "cross-pallet" test
      
      * Move keyring primitives used in tests to shared crate
      
      * Stop pulling `std` deps into `no_std` builds
      
      * Revert "Stop pulling `std` deps into `no_std` builds"
      
      This reverts commit f74dd660652f98b7336936d1534a4e63cc9169a5.
      
      * Revert "Move keyring primitives used in tests to shared crate"
      
      This reverts commit b774fa730b2cdc40545afff308a66b0840266001.
      
      * Use new SS58Prefix type in mock
      
      * Start using `bp-test-utils` in finality pallet
      
      * Start using real justification code
      
      * Get a test working with real justification verification
      
      * Add basic tests for invalid proofs
      
      * Get rid of AncestryProof config type
      
      * Add error types to transaction outcome
      
      * Bound number of headers allowed in a single ancestry proof
      
      * Disallow invalid authority sets
      
      * Remove unused items
      
      * Add some documentation
      
      * Get rid of Clippy warnings
      
      * Rename BaseHeaderChain to TransactionVerifier
      
      * Remove unused code
      
      * Make dummy trait implementations more generic
      
      * Fix more Clippy complaints
      
      * Update tests to use fix for duplicate headers
      
      * Fix benchmarking compilation
      
      * Rename TransactionVerifier to InclusionProofVerifier
      ea5d8662
    • Svyatoslav Nikolsky's avatar
      fix compilation (#671) · 5e38b126
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      5e38b126
    • Hernando Castano's avatar
      Explain why we defer signature verification (#668) · 5847020f
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      5847020f
    • Svyatoslav Nikolsky's avatar
      Use real weights to compute message delivery and dispatch fee (#598) · 0f56f187
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * message fee formula
      
      * update GetDelvieryConfirmationTransactionFee
      
      * include cost of transactions (i.e. not only dispatch cost) in delivery_and_dispatch_fee
      
      * endow relayers fund account
      
      * include db ops weight in max tx weight estimation
      
      * (in bytes)
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      0f56f187
    • Svyatoslav Nikolsky's avatar
      Fixed messages count check (#659) · fd7f2a45
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * fixed messages count check
      
      * explicit check of `messages_count` in the receive_messages_proof
      
      * change messages_count to be u32
      
      * Update modules/message-lane/src/lib.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      fd7f2a45
    • Hernando Castano's avatar
      Move justification code to primitives crate (#640) · c6df9924
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Move justification module to header-chain primitives crate
      
      * Get justification module compiling in new location
      
      * Get justification module tests compiling
      
      * Use justification code from `header-chain` crate
      
      Mostly compiles, having issues with std/test feature flags across crates.
      
      * Move some code around
      
      * Move justification tests to integration testing crate
      
      * Add `test-utils` crate
      
      * Remove tests and test-helper module from justification code
      
      * Use `test-utils` in Substrate bridge pallet tests
      
      * Remove `sp-keyring` related code from `pallet-substrate-bridge`
      
      * Remove `helpers` module from `pallet-substrate-bridge`
      
      * Add some documentation
      
      * Add more documentation
      
      * Fix typo
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      c6df9924
    • Svyatoslav Nikolsky's avatar
      Reward delivery confirmation transaction submitter (aka confirmation relayer) (#599) · f3ea6a8d
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * reward confirmation relayer
      
      * Update modules/message-lane/src/instant_payments.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * added some constants
      
      * pallet_balances
      
      * removed comment
      
      * fix typo
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      f3ea6a8d