Skip to content
  1. Feb 11, 2021
  2. Feb 10, 2021
    • Svyatoslav Nikolsky's avatar
      Account proof size in weight formula (#679) · 15b27e38
      Svyatoslav Nikolsky authored
      
      
      * 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 50b7376a
      
      .
      
      * 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]>
      15b27e38
    • Hernando Castano's avatar
      Stop Importing Full Header Chain (#707) · aa7b797d
      Hernando Castano authored
      * 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.
      aa7b797d
  3. Feb 03, 2021
    • Hernando Castano's avatar
      Wire Finality Verifier Pallet Into Runtimes (#696) · 43336fb8
      Hernando Castano authored
      * 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
      43336fb8
  4. Jan 29, 2021
  5. Jan 27, 2021
    • Hernando Castano's avatar
      Add Unchecked Header Writes to Bridge Pallet (#672) · 0b1bb2aa
      Hernando Castano authored
      
      
      * 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]>
      0b1bb2aa
  6. Jan 26, 2021
  7. Jan 21, 2021
    • Hernando Castano's avatar
      Finality Verifier Pallet (#629) · 6b46db8e
      Hernando Castano authored
      * 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 f74dd660.
      
      * Revert "Move keyring primitives used in tests to shared crate"
      
      This reverts commit b774fa73.
      
      * 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
      6b46db8e
    • Svyatoslav Nikolsky's avatar
      fix compilation (#671) · 518102b3
      Svyatoslav Nikolsky authored
      518102b3
    • Hernando Castano's avatar
      70b231cd
    • Svyatoslav Nikolsky's avatar
      Use real weights to compute message delivery and dispatch fee (#598) · de6850e2
      Svyatoslav Nikolsky authored
      
      
      * 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]>
      de6850e2
  8. Jan 20, 2021
  9. Jan 15, 2021
    • Hernando Castano's avatar
      Move justification code to primitives crate (#640) · d9e94715
      Hernando Castano authored
      
      
      * 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]>
      d9e94715
  10. Jan 14, 2021
  11. Jan 12, 2021
  12. Jan 06, 2021
    • Tomasz Drwięga's avatar
      Relayer rewards improvements (#624) · ed6694a8
      Tomasz Drwięga authored
      * Document relayers fund existence and add root account.
      
      * Introduce initialize method instead of assuming that relayer_fund_account is always required.
      
      * cargo fmt --all
      
      * Fix benchmarks.
      
      * cargo fmt --all
      
      * Fix docs for the relayer fund account.
      ed6694a8
  13. Jan 04, 2021
  14. Dec 28, 2020
  15. Dec 23, 2020
    • Hernando Castano's avatar
      Fixes for Polkadot Integration (#586) · e0ffd953
      Hernando Castano authored
      * Add AccountIdConverter impl to Kusama and Polkadot primitives
      
      * Add missing message lane config constants
      
      * Add more consts
      
      * Add another missing const
      
      * Move consts in primitives so that they're consistent across files
      
      * Move types and consts to more intuitive locations
      
      * Downgrade hyper from v0.13.8 to v0.13.6
      
      This conflicts with a requirement on the Polkadot side
      which requires that hyper is =v0.13.6
      
      * Update hyper to v0.13.9
      
      * Update async-io to v1.3.1
      
      * Update socket2 from v0.3.15 to v0.3.18
      
      * Update message weight/size constants
      
      * Make BlockWeights/Length parameter types
      
      Allows us to re-use these types from both the runtime and
      the message lane config files without creating a new instance
      of them.
      
      * Remove uneccesary weight constants
      
      These can be found in the `runtime-common` crate used
      by Polkadot/Kusama. The constants there will also be
      the most up-to-date versions.
      e0ffd953
  16. Dec 22, 2020
  17. Dec 17, 2020
  18. Dec 16, 2020
    • Hernando Castano's avatar
      Rialto to Millau Transfer Generator (#568) · fad8c928
      Hernando Castano authored
      
      
      * Add option to relay for sending transfers to Millau chain
      
      * Endow derived accounts on Millau chain
      
      * Update message generator entrypoint script to send transfers
      
      * Use correct command when sending messages
      
      * Send Root messages from Root origin on source chain
      
      * Wrap calls from Root Origin in Sudo Call
      
      * Allow Root to send messages without paying fees
      
      * Use correct variable when sending messages to Rialto
      
      * Print warning if no message type is provided to script.
      
      * Add note mentioning that certain source origins aren't supported yet
      
      * Use correct runtime when initializing header sync
      
      * Remove option to send messages as Root
      
      * Remove endowment of derived Root accounts
      
      * Fix indentation.
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      fad8c928
    • Hernando Castano's avatar
      Update Substrate Dependency (#566) · 64dab9c2
      Hernando Castano authored
      
      
      * Update `sp-io` dependency
      
      * Rename Trait to Config
      
      * RustFmt
      
      * Bump `sp-io` again
      
      * Use new frame_system weight types in Rialto and Millau runtimes
      
      * Update test Runtimes to use new weight types
      
      * Bump `sp-io` again
      
      * Update to not-the latest first.
      
      * Update benchmarks.
      
      * Another Trai.
      
      * Move new weight types into runtime primitive crates
      
      This allows us to check limits for extrinsics from other parts
      of the codebase without pulling in the entire chain runtime.
      
      * Remove leftover comments
      
      * Move new functions to a better location
      
      * Small formatting fixes
      
      * Add actual documentation to new weight config types
      
      * Decrease maximum block weight of Millau chain
      
      * Decreease maximum block length of Millau chain
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      64dab9c2
  19. Dec 15, 2020
  20. Dec 14, 2020
    • Hernando Castano's avatar
      High-Level Documentation (#565) · e31ac43b
      Hernando Castano authored
      
      
      * 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 ...
      e31ac43b
  21. Dec 09, 2020
    • Hernando Castano's avatar
      Cross-Chain Transfer Generator (#535) · 5de2bc3d
      Hernando Castano authored
      * Attempt at adding Cross-Chain Transfer Generator
      
      * Add Transfer subcommand for sending messages to Rialto
      
      * Add temp helper script for sending messages
      
      * Remove Message and Lane Ids from Dispatch Event
      
      * Increase transfer amount used by script
      
      * Endow derived Dave account on Rialto with funds
      
      * Update Message generator to send more types of messages
      
      This commit first of all updates the script to use the new CLI
      commands for sending messages. Second, it adds messages which are
      sent from both Target and Source origins.
      
      * Generate messages from Root origin
      
      * Remove dbg! logs from relayer
      
      * Log AccountId as well as HexId
      
      * Remove Balances logs
      
      * Add InstanceId and MessageId back to Dispatch Event
      
      * Add InstanceId and MessageId types for Apps
      
      * Add missing comment
      
      * Document derived accounts as tests
      
      * Move shared commands to variables
      
      * Add example usage for send_message script
      
      * Add docs to message variants
      
      * Fix Clippy complaint
      5de2bc3d
  22. Dec 08, 2020
  23. Dec 04, 2020
  24. Dec 03, 2020
  25. Nov 30, 2020
    • Hernando Castano's avatar
      Add Derived Account Origins to Dispatcher (#519) · f73286b7
      Hernando Castano authored
      * Update some docs
      
      * Add derived account origin
      
      * Add tests for derived origin
      
      * Do a little bit of cleanup
      
      * Change Origin type to use AccountIds instead of Public keys
      
      * Update (most) tests to use new Origin types
      
      * Remove redundant test
      
      * Update `runtime-common` tests to use new Origin types
      
      * Remove unused import
      
      * Fix documentation around origin verification
      
      * Update config types to use AccountIds in runtime
      
      * Update Origin type used in message relay
      
      * Use correct type when verifying message origin
      
      * Make CallOrigin docs more consistent
      
      * Use AccountIds instead of Public keys in Runtime types
      
      * Introduce trait for converting AccountIds
      
      * Bring back standalone function for deriving account IDs
      
      * Remove AccountIdConverter configuration trait
      
      * Remove old bridge_account_id derivation function
      
      * Handle target ID decoding errors more gracefully
      
      * Update message-lane to use new AccountId derivation
      
      * Update merged code to use new Origin types
      
      * Use explicit conversion between H256 and AccountIds
      
      * Make relayer fund account a config option in `message-lane` pallet
      
      * Add note about deriving the same account on different chains
      
      * Fix test weight
      
      * Use AccountId instead of Public key when signing Calls
      
      * Semi-hardcode relayer fund address into Message Lane pallet
      f73286b7
  26. Nov 24, 2020
  27. Nov 23, 2020
  28. Nov 18, 2020
  29. Nov 17, 2020
  30. Nov 05, 2020