Skip to content
  1. Apr 10, 2024
    • Svyatoslav Nikolsky's avatar
      Add rialto-parachain runtime and node (#1142) · 70f87e82
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * Substrate: 63b32fbaa2764c0a8ee76b70cdfa0fcb59b7181f
      Polkadot:  7229ab87acf5bc5d4d10655ad1a9819a1e317442
      Cumulus:   d5284b0e78be3a18a3371103dd00449aceb082df
      
      * rialto parachain runtime
      
      * fixed tests
      
      * add node + bump refs (not compiling yet):
      Substrate:           630422d6108cbaaca893ab213dde69f3bdaa1f6b
      Polkadot:            7229ab87acf5bc5d4d10655ad1a9819a1e317442
      Cumulus:             5af2990cfd3711f86c7cb8606b22364208a5c32d
      GrandpaBridgeGadget: c152c45ac331eb8ab40d956ab1d008d181810ef4
      
      * fix compilation (collator is not working)
      
      * more fixes
      
      * fmt
      
      * spellcheck
      
      * fix warnings
      
      * fix compilation
      
      * fmt
      
      * trigger CI
      
      * trigger CI
      
      * Revert "trigger CI"
      
      This reverts commit a31f53cec47909817b31a48f3c9f1abd9321f72c.
      
      * benchmarks
      
      * fix benchmarks
      
      * fix again
      
      * Revert "Revert "trigger CI""
      
      This reverts commit 1dea8b42ac8bca830dea982fd2613eb89d607a6c.
      
      * Revert "Revert "Revert "trigger CI"""
      
      This reverts commit 8fb74fa5eba483b7f6a3ce3e25a60757aef4c6bc.
      
      * try fix
      
      * lost lock file
      
      * spellcheck
      
      * try to disable sccache for cargo check
      
      * Revert "Revert "Revert "Revert "trigger CI""""
      
      This reverts commit f157461482d4c1d19156715c4b1ee2acb169531b.
      
      * try to disable again
      
      * disable sccache for test
      70f87e82
    • Svyatoslav Nikolsky's avatar
      Box large arguments of GRANDPA pallet (#1154) · 084da434
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * box large arguments
      
      * benchmarks
      
      * fix
      084da434
    • Svyatoslav Nikolsky's avatar
      set fee for importing mandatory headers to zero (#1127) · b9bd1456
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      b9bd1456
    • 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
    • Xavier Lau's avatar
      Code Cleaning (#1124) · 3d4d6645
      Xavier Lau authored and Bastian Köcher's avatar Bastian Köcher committed
      * Remove Trailing Space
      
      * Correct Source Chain Name
      3d4d6645
    • Svyatoslav Nikolsky's avatar
      Fix spellcheck (#1110) · 88fa4876
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      * fix spellcheck
      
      * invariants
      88fa4876
    • Hernando Castano's avatar
      Make CI happy again (#1086) · 75df85f5
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Appease `cargo-spellcheck`
      
      * Increase logging for `cargo-spellcheck`
      
      * Fix config file name
      75df85f5
    • Tomasz Waszczyk's avatar
      Fix full spellcheck (#1076) · f86d101d
      Tomasz Waszczyk authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * fix(spellcheck): test of fixing
      
      * fix(hunspell): improved many typos etc.
      
      * fix(hunspell): all errors solved
      
      * fix(hunspell): extended scope of files - the build should fail
      
      * Return error code.
      
      * Fix spelling, sort dictionary.
      
      * fix(hunspell): added fix to gitlabs check
      
      * fix(typo): one typo and test of verification on github
      
      * fix(typo): one typo
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      f86d101d
    • Svyatoslav Nikolsky's avatar
      f5f73537
    • Svyatoslav Nikolsky's avatar
      fix clippy issues (#991) · 812e7829
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      812e7829
    • Svyatoslav Nikolsky's avatar
      Update submit finality proof weight formula (#981) · 37d067c0
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * updated weight formula for submit_finality_proof
      
      * remove common prefix traces
      
      * update docs
      
      * single benchmark
      
      * Re-generate weights.
      
      * Update delivery transaction limits
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarHernando Castano <[email protected]>
      37d067c0
    • Denis_P's avatar
      Move CI from GitHub Actions to GitLab (#814) · 0b7f40a3
      Denis_P authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * CI: do not trust this CI 1
      
      * CI: don't want to trigger unneded statuses
      
      * CI: debug 1
      
      * CI: new CI
      
      * CI: temp allow failure
      
      * CI: exclude paths
      
      * doc: check if docs won't trigger pipelines
      
      * doc: check hybrid changes pipeline
      
      * doc: do not push excluded files together with others
      
      * CI: undebug fmt
      
      * CI: better deny
      
      * CI: fix deny and spellcheck
      
      * CI: global backtrace
      
      * CI: deny config
      
      * CI: publishing
      
      * Dockerfile: metadata fix [skip ci]
      
      * CI: revert me
      
      * CI: debug bash
      
      * CI: mv ci.Dockerfile; fix buildah bug
      
      * CI: fix artifact name
      
      * Dockerfile: fix context
      
      * CI: separate deny check licenses
      
      * CI: when to run
      
      * CI: unneded stuff in these Dockerfiles
      
      * CI: merged test-refs and build-refs
      
      * CI: test-build optimizations
      
      * CI: changes, web, scheduled pipelines now work as intended
      
      * CI: use tested production CI image
      
      * CI: substitute GHA
      
      * Fix clippy.
      
      * Moar clippy fixes.
      
      * Fix more.
      
      * Finally fix all?
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      0b7f40a3
    • Svyatoslav Nikolsky's avatar
      do not panic if pallet is not yet initialized (#937) · ebf9ae75
      Svyatoslav Nikolsky authored and Bastian Köcher's avatar Bastian Köcher committed
      ebf9ae75
    • Tomasz Drwięga's avatar
      Add pruning to bechmarks & update weights. (#918) · 479e51c6
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Insert headers in benchmarks.
      
      * Fix benchmarks.
      
      * Lower number of headers.
      
      * Avoid hardcoding numbers.
      
      * Update weights.
      
      * cargo fmt --all
      
      * Remove todo.
      
      * Fix test.
      
      * Address review comments.
      
      * Fix borrowed value.
      479e51c6
    • Tomasz Drwięga's avatar
      Update weights (#898) · 234e6b95
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      * New weights.
      
      * Fix test.
      
      * cargo fmt --all
      234e6b95
    • Hernando Castano's avatar
      Westend<>Rococo Headers Relay (#875) · bca83fd0
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Add modules for Rococo<>Westend header sync
      
      * Use mock Westend and Rococo finaltiy tx calls
      
      * Add Westend<>Rococo variants to `init_bridge`
      
      * Add Westend<>Rococo variants to `relay_headers`
      
      * Simplify the Rococo and Westend signing params
      
      * Add `submit_finality_proof` mock Call variant
      
      * Add note to more closely match `initialize` Call variant
      
      * Accidentally committed `cargo-expand`ed code 🤦
      
      
      
      * Add `initialize` Call variant to Rococo mock
      
      * Fix call enums.
      
      * Add explainatory comment.
      
      * clippy.
      
      * Add issue number.
      
      * De-duplicate metrics customisation.
      
      * Add comments to Rococo/Westend runtimes.
      
      * Add scale-encoding compatibility test.
      
      * Fix tests.
      
      * Clippy.
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      bca83fd0
    • Tomasz Drwięga's avatar
      Support more than `u8::max_value` GRANDPA validators (#896) · aa17c272
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Support moar validators.
      
      * Update weights script.
      
      * Use correct type for benchmarking accounts
      
      * Use package name instead of manifest path
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      aa17c272
    • Tomasz Drwięga's avatar
      Grandpa Pallet Pruning (#890) · f92449a4
      Tomasz Drwięga authored and Bastian Köcher's avatar Bastian Köcher committed
      * Pruning.
      
      * Add tests.
      
      * Address review.
      f92449a4
    • Hernando Castano's avatar
      Bump Substrate (#871) · c6ae7472
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Bump Substrate
      
      * Change usage of "Module" to "Pallet"
      
      Related Substrate PR: https://github.com/paritytech/substrate/pull/8372
      
      * Add `OnSetCode` config param
      
      Related Substrate PR: https://github.com/paritytech/substrate/pull/8496
      
      * Update Aura Slot duration time type
      
      Related Substrate PR: https://github.com/paritytech/substrate/pull/8386
      
      * Add `OnSetCode` to mock runtimes
      
      * Add support for multiple justifications
      
      Related Substrate PR: https://github.com/paritytech/substrate/pull/7640
      
      * Use updated justification type in more places
      
      * Make GenesisConfig type non-optional
      
      Related Substrate PR: https://github.com/paritytech/substrate/pull/8275
      
      * Update service to use updated telemetry
      
      Related Substrate PR: https://github.com/paritytech/substrate/pull/8143
      
      * Appease Clippy
      c6ae7472
    • Hernando Castano's avatar
      Remove Substrate Pallet (#866) · 2f1c4c23
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      
      
      * Remove `pallet-substrate-bridge`
      
      * Fix transfer call encoding test
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      2f1c4c23
    • Hernando Castano's avatar
      Use Vote Ancestries Directly in Weight Calculations (#862) · 1928e2b8
      Hernando Castano authored and Bastian Köcher's avatar Bastian Köcher committed
      * Use more accurate weight calculation in declared weight
      
      * Remove session length and validator set size config constants
      
      * Remove config params from mock
      
      * Allow specifying total number of votes-ancestries per justification
      
      * Change limits used during benchmarking
      
      * Regenerate weights
      
      * Use simplified weight annotation
      
      * Remove comment
      
      * Address leftover TODO
      
      * Prevent possible divide by zero errors
      
      * Use correct argument order in weight declaration
      1928e2b8
    • 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
    • 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
    • Serban Iorga's avatar
      Remove bridges subtree · 9a3e2c8c
      Serban Iorga authored and Bastian Köcher's avatar Bastian Köcher committed
      9a3e2c8c
  2. Apr 02, 2024
  3. 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
    • Serban Iorga's avatar
      Update bridges subtree (#3841) · b839c995
      Serban Iorga authored
      Updating the bridges subtree hopefully just one last time in this
      formula in order to make the final migration less verbose.
      b839c995
  4. Mar 17, 2024
  5. Mar 15, 2024
  6. Feb 12, 2024
  7. Feb 06, 2024
  8. Jan 26, 2024
  9. Jan 19, 2024
  10. Dec 13, 2023
  11. Dec 06, 2023
  12. Dec 01, 2023
  13. Nov 15, 2023
  14. Oct 20, 2023
    • Bastian Köcher's avatar
      `xcm`: Change `TypeInfo::path` to not include `staging` (#1948) · f3bf5c1a
      Bastian Köcher authored
      The `xcm` crate was renamed to `staging-xcm` to be able to publish it to
      crates.io as someone as squatted `xcm`. The problem with this rename is
      that the `TypeInfo` includes the crate name which ultimately lands in
      the metadata. The metadata is consumed by downstream users like
      `polkadot-js` or people building on top of `polkadot-js`. These people
      are using the entire `path` to find the type in the type registry. Thus,
      their code would break as the type path would now be [`staging_xcm`,
      `VersionedXcm`] instead of [`xcm`, `VersionedXcm`]. This pull request
      fixes this by renaming the path segment `staging_xcm` to `xcm`.
      
      This requires: https://github.com/paritytech/scale-info/pull/197
      
      
      
      ---------
      
      Co-authored-by: default avatarFrancisco Aguirre <[email protected]>
      f3bf5c1a