Skip to content
  1. Apr 09, 2024
    • Tomasz Drwięga's avatar
      Extract select_bridge macro. (#869) · 0fcf1365
      Tomasz Drwięga authored
      0fcf1365
    • Tomasz Drwięga's avatar
      Fix `encode-call` CLI options (#868) · 67147cd9
      Tomasz Drwięga authored
      * Add tests.
      
      * Fix default and conflicting options.
      
      * Fix default variant.
      
      * Update tests.
      67147cd9
    • Hernando Castano's avatar
      Remove Substrate Pallet (#866) · 5fd52d62
      Hernando Castano authored
      
      
      * Remove `pallet-substrate-bridge`
      
      * Fix transfer call encoding test
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      5fd52d62
    • Svyatoslav Nikolsky's avatar
      Pre-create metrics registry before loop is started + administrative metrics (#848) · 96622535
      Svyatoslav Nikolsky authored
      * administrative metrics
      
      * fmt
      
      * fix compilation
      
      * fix compilation again
      
      * and another one
      
      * remove GenericLoopMetrics
      
      * chttp -> isahc
      
      * remove redundant marker
      
      * not about price metrics
      
      * fmt
      96622535
    • Hernando Castano's avatar
      Update Copyright Date to 2021 (#864) · 709f49d4
      Hernando Castano authored
      * Update copyright date to 2021
      
      * Bump date in license header template
      709f49d4
    • Tomasz Drwięga's avatar
      CLI: Encode Call & Multiple Bridge Instances. (#859) · 0d16f3d7
      Tomasz Drwięga authored
      
      
      * Encode Call & Multiple Bridge Instances.
      
      * Remove redundant clone.
      
      * Fix comment.
      
      * Rename pallet index bridge instance index.
      
      * Update error messages related to target instances
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      0d16f3d7
    • Tomasz Drwięga's avatar
      33121c5b
    • Hernando Castano's avatar
      Use Vote Ancestries Directly in Weight Calculations (#862) · 73f017e1
      Hernando Castano authored
      * 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
      73f017e1
    • Tomasz Drwięga's avatar
      CLI: Derive Account (#860) · e1502754
      Tomasz Drwięga authored
      * Move derive account.
      
      * Fix account derivation.
      e1502754
    • Tomasz Drwięga's avatar
      CLI: Relay Messages (#858) · 07b6f5a2
      Tomasz Drwięga authored
      
      
      * Relay Messages.
      
      * Fix docs.
      
      * Fix copyright date.
      
      * copyright increment
      
      Co-authored-by: default avataradoerr <[email protected]>
      07b6f5a2
    • Hernando Castano's avatar
      Weights for `pallet-bridge-grandpa` (#815) · 25b1ee79
      Hernando Castano authored
      * 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
      25b1ee79
    • Hernando Castano's avatar
      Use GrandpaJustification instead of Vec<u8> in Pallet API (#847) · f3be647a
      Hernando Castano authored
      * 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.
      f3be647a
    • Tomasz Drwięga's avatar
      Make relay CLI generic (#849) · 1250e18b
      Tomasz Drwięga authored
      
      
      * 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]>
      1250e18b
    • Svyatoslav Nikolsky's avatar
    • Tomasz Drwięga's avatar
      Correctly format SS58-prefixed addresses in the CLI (#845) · 5588b41e
      Tomasz Drwięga authored
      
      
      * Fix SS58 formatting of addresses.
      
      * cargo fmt --all
      
      * Use only lifetime hint.
      
      * Update relays/bin-substrate/src/cli.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Remove unnecessary optimisation.
      
      * Add re-formatting test.
      
      * cargo fmt --all
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      5588b41e
    • Svyatoslav Nikolsky's avatar
      on-demand headers relay (#833) · bc2830a7
      Svyatoslav Nikolsky authored
      
      
      * on-demand headers relay
      
      * bool::then
      
      * move file
      
      * atomic submit_signed_extrinsic
      
      * remove cli options from future
      
      * test on-demand relay
      
      * TODOs
      
      * fixed initialization call for Westend -> Millau
      
      * Update relays/client-substrate/src/client.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * removed on_demand_headers_relay.rs
      
      * on_demand_headers_relay traces
      
      * fix compilation
      
      * fmt
      
      * docs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      bc2830a7
    • Tomasz Drwięga's avatar
      Rococo (mocky)Runtime and Client (#841) · f2404c54
      Tomasz Drwięga authored
      
      
      * 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]>
      f2404c54
    • Tomasz Drwięga's avatar
      Expose storage of finality-verifier pallets. (#844) · 48f6d077
      Tomasz Drwięga authored
      * Expose storage of finality-verifier pallets.
      
      * Fix compilation.
      48f6d077
    • Tomasz Drwięga's avatar
      Initialize logger properly. (#843) · d12cdc54
      Tomasz Drwięga authored
      d12cdc54
    • Hernando Castano's avatar
      Larger Test Keyring Support (#842) · e181d12d
      Hernando Castano authored
      * 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
      e181d12d
    • Svyatoslav Nikolsky's avatar
      Changed how relay loops are started (#840) · 5db7e507
      Svyatoslav Nikolsky authored
      * slightly changed relay loop initialization
      
      * git mv
      
      * clippy
      
      * more clippy
      
      * loop_run -> run_loop
      
      * review and clippy
      
      * clippy
      5db7e507
    • Hernando Castano's avatar
      Rename Finality Verifier and Call Dispatch Pallets (#838) · f83c319f
      Hernando Castano authored
      * 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
      f83c319f
    • Tomasz Drwięga's avatar
      Flatten back the structure (#837) · cef85ccf
      Tomasz Drwięga authored
      * Remove chains.
      
      * Move relay clients.
      
      * Flatten generic.
      
      * Fix fmt.
      cef85ccf
    • Svyatoslav Nikolsky's avatar
      Westend->Millau headers relay in deployments (#831) · 05d2b662
      Svyatoslav Nikolsky authored
      * reorganize monitoring
      
      * Westend->Millau bridge
      
      * support multiple bridges
      
      * initialize Westend -> Millau bridge byMillau.George
      
      * fix intersecting ports
      
      * ignore dashboards
      
      * single bridged network
      
      * deal with multple --env-file args
      
      * fix chain name
      
      * use images from docker hub
      
      * update show_help
      
      * updated comment
      
      * mount whole dashboards directory
      
      * removed unneeded network
      
      * reverted reverse-proxy changes
      
      * prometheus -> targets
      
      * separate Grafana.Dockerfile with builtin /etc/grafana
      
      * Revert "separate Grafana.Dockerfile with builtin /etc/grafana"
      
      This reverts commit 53e04c4556f882d19e3af0fac581a926b8e0c167.
      
      * read dashboards from /etc/grafana/dashboards
      
      * stop comment
      05d2b662
    • Hernando Castano's avatar
      Tunable Justification Generator (#835) · 12242158
      Hernando Castano authored
      * 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
      12242158
    • Svyatoslav Nikolsky's avatar
      Rename pallet-message-lane into pallet-bridge-messages (#834) · 36ccf649
      Svyatoslav Nikolsky authored
      * use runtime:: prefix for message-lane pallet traces
      
      * renamed message-lane (module and primitives) folder into messages
      
      * replace "message lane" with "messages" where appropriate
      36ccf649
    • Hernando Castano's avatar
      Make Test Helpers `no_std` Compatible (#823) · 433b887c
      Hernando Castano authored
      * 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
      433b887c
    • Svyatoslav Nikolsky's avatar
      Add multiplier parameter to transaction_payment function (#830) · 8536e8df
      Svyatoslav Nikolsky authored
      * transaction_payment_without_multiplier -> transaction_payment
      
      * tests
      
      * fmt
      8536e8df
    • Svyatoslav Nikolsky's avatar
    • Svyatoslav Nikolsky's avatar
      updat jsonrpsee (#828) · 52a5d194
      Svyatoslav Nikolsky authored
      52a5d194
    • Svyatoslav Nikolsky's avatar
      Sync Westend to Millau (#824) · c96ef637
      Svyatoslav Nikolsky authored
      * 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
      c96ef637
    • Svyatoslav Nikolsky's avatar
      Make finality verifier pallet instantiable (#825) · 01a709de
      Svyatoslav Nikolsky authored
      * make finality verifier pallet instantiable
      
      * try to fix benchmarks
      
      * fix benchmarks compilation
      01a709de
    • Svyatoslav Nikolsky's avatar
      Added some ML-related constants for polkadot-like chains (#822) · 6e12da20
      Svyatoslav Nikolsky authored
      * added some ML-related constants for polkadot-like chains
      
      * comment
      6e12da20
    • Tomasz Drwięga's avatar
      Reorganize relay code to make it easy to add new networks. (#813) · a644b85a
      Tomasz Drwięga authored
      
      
      * Nest some crates.
      
      * Alter command execution to make it easier to add new bridges.
      
      * Rename sub-dirs.
      
      * cargo fmt --all
      
      * Address clippy.
      
      * Update relays/substrate/src/rialto_millau/cli.rs
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      a644b85a
    • Svyatoslav Nikolsky's avatar
      More tests for finality relay (#816) · f6c59dd6
      Svyatoslav Nikolsky authored
      * more tests for finality relay
      
      * clippy
      
      * remove env_logger dep
      
      * fmt
      
      * more clippy
      
      * removed prune_unjustified_headers
      
      * review
      f6c59dd6
    • Hernando Castano's avatar
      Clean Finality Verifier Pallet (#804) · 16a76405
      Hernando Castano authored
      
      
      * 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]>
      16a76405
    • Tomasz Drwięga's avatar
      Add Westend & Rococo primitives (#808) · cc4c98da
      Tomasz Drwięga authored
      * 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.
      cc4c98da
    • Hernando Castano's avatar
      Simplify operational extrinsics (#810) · bdcb8339
      Hernando Castano authored
      * Simplify operational extrinsics
      
      * Remove old extrinsics from finality verifier
      bdcb8339
    • Tomasz Drwięga's avatar
      Uniform git dependencies (Backport of substrate#2589) (#805) · 546a12ab
      Tomasz Drwięga authored
      
      
      * Make Substrate deps uniform
      
      * Rest of the deps.
      
      * Fix broken merge.
      
      * Revert substrate.
      
      * Fix tests
      
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      546a12ab
    • Tomasz Drwięga's avatar
      Add Transaction Payment Custom RPC (#806) · f5b7987e
      Tomasz Drwięga authored
      * Transaction payment RPC.
      
      * Add payment RuntimeApi to fix the build.
      
      * cargo fmt --all
      f5b7987e