Nikos Kontakis
8028fe1632
Update README.md ( #931 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
816fb36107
Truncate output in logs. ( #930 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
7c2b54c5e7
Make sure that relayers have dates in logs. ( #927 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
479e51c67b
Add pruning to bechmarks & update weights. ( #918 )
...
* 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.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
fd44cab992
Add properties to Chain Spec ( #917 )
...
* Add properties to chainspec.
* Update bin/millau/node/src/chain_spec.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
978de95938
Fix issue with on-demand headers relay not starting ( #921 )
...
* require lane source -> target headers when weknow all headers that have produced messages, but are unable to deliver all messages because of unrewarded relayers vec capacity
* Update relays/messages/src/message_race_delivery.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
63ce1b5973
Prefix in relay loops logs ( #920 )
...
* prefix in relay loops logs
* fmt
2024-04-10 10:28:37 +02:00
Hernando Castano
25a4151a8b
Prep for Westend to Rococo Header Sync ( #915 )
...
* Bump Rococo and Westend RuntimeVersions
* Add helper scripts for running Rococo<>Westend header sync
* Remove extra space
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Niklas Adolfsson
f857771ce8
Update jsonrpsee to 0.2.0-alpha.5 ( #914 )
...
* update jsonrpsee to 0.2.0-alpha.5
* cargo fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
5e26ba4999
(temporarily) Switch to jsonrpsee master ( #913 )
...
* (temporarily) switch to jsonrpsee master
* removed param used for tests
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
49e04b7b26
Update Kusama/Polkadot metrics ( #910 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f6fd87f39e
fix polkadot primitives ( #908 )
2024-04-10 10:28:37 +02:00
Hernando Castano
b8e021c22c
Prettify test output when encoding doesn't match ( #907 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
234e6b95e4
Update weights ( #898 )
...
* New weights.
* Fix test.
* cargo fmt --all
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
e9b8827c83
CLI: naming clean-up. ( #897 )
...
* Small naming clean up.
* Small naming clean up.
* Add Rococo module to CLI
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
bca83fd020
Westend<>Rococo Headers Relay ( #875 )
...
* 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: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a69026af44
Use complex headers+messages relay in test deployments ( #905 )
...
* use complex relay in deployments
* enable lane 00000001
* add alerts for lane 00000001
* revert local substrate relay
* updated doc
* review
2024-04-10 10:28:37 +02:00
Hernando Castano
888f85e346
Stop recursing when creating test headers ( #906 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e2131724fb
Complex headers+messages Millau<->Rialto relay ( #878 )
...
* complex headers+messages relay
* post-merge fix
* fix + test issue with on-demand not starting
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
0d60f42b5e
Use Substrate state_getReadProof RPC method to get storage proofs ( #893 )
...
* use Substrate state_getReadProof method instead of pallet-bridge-messages-rpc
* Fix typo
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
aa17c272f1
Support more than u8::max_value GRANDPA validators ( #896 )
...
* Support moar validators.
* Update weights script.
* Use correct type for benchmarking accounts
* Use package name instead of manifest path
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
f92449a461
Grandpa Pallet Pruning ( #890 )
...
* Pruning.
* Add tests.
* Address review.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a783775ca5
RestartNeeded is a connection error ( #894 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
a2566970eb
CLI: Estimate Fee ( #888 )
...
* Move estimate-fee
* Add parsing test.
* Address review comments.
* Fix compilation.
* Move things around.
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
9f01c459bd
CLI: Send Message ( #886 )
...
* Send Message WiP
* It compiles.
* Add tests.
* Use common macro.
* Nicer balance display.
* Get rid of redundant send_message_call function.
* Fix clippy.
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
7c639687b6
CLI: Encode Message ( #889 )
...
* Encode message.
* Update docs related to `sender`
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
b569f201cf
Bump jsonrpsee to Alpha.3 ( #892 )
...
* Bump `jsonrpsee` to `alpha.3`
* Arc-ify `WsClient`
2024-04-10 10:28:37 +02:00
Hernando Castano
fe4c899594
Use new Cargo feature resolver ( #891 )
...
* Use new Cargo feature resolver
* Simplify runtime benchmark CI commands
* Add `runtime-benchmarks` feature to Millau runtime
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d4489a0a92
Install CA certificates in relay images ( #880 )
...
* update CA certificates in relay images
* clippy
* clippy
* clippy
2024-04-10 10:28:37 +02:00
Hernando Castano
81d4eb9ea6
Westend Mock Runtime and Client ( #874 )
...
* Copy-Pasta Call code from mock Rococo to mock Westend runtime
* Update Westend client to include signing and call related code
* Add missing part of license header
* Move `account_info_storage_key` to `polkadot-core` crate
2024-04-10 10:28:37 +02:00
Hernando Castano
c6ae74725b
Bump Substrate ( #871 )
...
* 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
2024-04-10 10:28:37 +02:00
Hernando Castano
d9c553374c
Check for both possible error variants ( #870 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
ed5577bf33
Extract select_bridge macro. ( #869 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
52e3967a2d
Fix encode-call CLI options ( #868 )
...
* Add tests.
* Fix default and conflicting options.
* Fix default variant.
* Update tests.
2024-04-10 10:28:37 +02:00
Hernando Castano
2f1c4c23fc
Remove Substrate Pallet ( #866 )
...
* Remove `pallet-substrate-bridge`
* Fix transfer call encoding test
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
cb90ea0979
Pre-create metrics registry before loop is started + administrative metrics ( #848 )
...
* administrative metrics
* fmt
* fix compilation
* fix compilation again
* and another one
* remove GenericLoopMetrics
* chttp -> isahc
* remove redundant marker
* not about price metrics
* fmt
2024-04-10 10:28:37 +02:00
Hernando Castano
21baffc832
Update Copyright Date to 2021 ( #864 )
...
* Update copyright date to 2021
* Bump date in license header template
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
5f16df28ed
CLI: Encode Call & Multiple Bridge Instances. ( #859 )
...
* 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: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
1dbba1b95b
De-duplicate signing/connection params. ( #861 )
...
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
1928e2b870
Use Vote Ancestries Directly in Weight Calculations ( #862 )
...
* 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
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
0d7291d729
CLI: Derive Account ( #860 )
...
* Move derive account.
* Fix account derivation.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
da3f94d99f
CLI: Relay Messages ( #858 )
...
* Relay Messages.
* Fix docs.
* Fix copyright date.
* copyright increment
Co-authored-by: adoerr <0xad@gmx.net >
2024-04-10 10:28:37 +02:00
Hernando Castano
025a9cad59
Weights for pallet-bridge-grandpa ( #815 )
...
* 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
2024-04-10 10:28:37 +02:00
Hernando Castano
67cdca8aa4
Use GrandpaJustification instead of Vec<u8> in Pallet API ( #847 )
...
* 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.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
904b9f4da5
Make relay CLI generic ( #849 )
...
* 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: Hernando Castano <HCastano@users.noreply.github.com >
* Fix copyright.
* Add issue numbers.
* More todos.
* Update comments.
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b6d034afaf
fix delay in message_lane_loop_is_able_to_recover_from_connection_errors ( #850 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
bc50fa6616
Correctly format SS58-prefixed addresses in the CLI ( #845 )
...
* Fix SS58 formatting of addresses.
* cargo fmt --all
* Use only lifetime hint.
* Update relays/bin-substrate/src/cli.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Remove unnecessary optimisation.
* Add re-formatting test.
* cargo fmt --all
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4e4e9a8e4e
on-demand headers relay ( #833 )
...
* 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: Hernando Castano <HCastano@users.noreply.github.com >
* removed on_demand_headers_relay.rs
* on_demand_headers_relay traces
* fix compilation
* fmt
* docs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
51fc83941b
Rococo (mocky)Runtime and Client ( #841 )
...
* Implement fake rococo runtime.
* Generate correct storage key.
* cargo fmt --all
* Move client-rococo.
* Satisfy clippy.
* Apply suggestions from code review
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Address review comments.
* Clippy again.
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
60c1c24784
Expose storage of finality-verifier pallets. ( #844 )
...
* Expose storage of finality-verifier pallets.
* Fix compilation.
2024-04-10 10:28:37 +02:00