Tomasz Drwięga
7602d910d4
Disable cache in CI builds. ( #772 )
...
* Disable cache.
* Fix tests.
* Fix clippy?
* cargo fmt --all
2024-04-10 10:28:37 +02:00
Andreas Doerr
de5ac085a1
Bump Substrate and Deps ( #770 )
...
* Bump Substrate and Deps
* silence clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
90113303f1
Fix updated clippy grumbles ( #733 )
...
* 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
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
2493ce93b3
Bump env_logger from 0.8.2 to 0.8.3 ( #725 )
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.2...v0.8.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
7aa51f8d30
Update to latest substrate ( #723 )
...
* Bump substrate deps.
* Bump scale.
* Bump ethabi.
* Remove inherent from aura.
* Migrate to construct_runtime
* cargo fmt --all
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
2f44aecd97
Bump serde_json from 1.0.61 to 1.0.62 ( #708 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.61...v1.0.62 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8953967d92
pause relays(s) when node is syncing ( #605 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
adb58d8fb0
Bump log from 0.4.13 to 0.4.14 ( #692 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
44bf84269a
Extract common part of relay loops ( #660 )
...
* extract common parts of relay loops: begin
* merge client impls
* backoff in exchange loop
* reconnect without clone
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
507edb950c
Bump log from 0.4.11 to 0.4.13 ( #657 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
d630b6f751
Bump futures from 0.3.9 to 0.3.12 ( #655 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
b94ac80a55
Bump async-std from 1.8.0 to 1.9.0 ( #654 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
58fbd8cb49
Bump substrate & deps ( #637 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
5ed92180bb
Bump serde_json from 1.0.60 to 1.0.61 ( #606 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
595481f02e
Enable Wasmtime and Remove secp256k1 ( #593 )
...
Co-authored-by: Hernando Castano <castano.ha@gmail.com >
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
5a790c9874
Bump async-std from 1.7.0 to 1.8.0 ( #574 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
091a9ba7e2
Bump serde_json from 1.0.59 to 1.0.60 ( #563 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dd7242bc79
Migrate back to Substrate master ( #528 )
...
* migrate back to Substrate master
* fmt
* clippy
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
be56ee51d0
Bump futures from 0.3.7 to 0.3.8 ( #507 )
...
* Bump futures from 0.3.7 to 0.3.8
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.7...0.3.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Fix clippy.
* Fix more clippy.
* Fix clippy again?
* Cliipy yet again.
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
f88c71252a
Bump async-trait from 0.1.41 to 0.1.42 ( #524 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
580c8234f5
Bump env_logger from 0.8.1 to 0.8.2 ( #523 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
6c0110c11e
Bump async-std from 1.6.5 to 1.7.0 ( #491 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3e45356aad
Rialto -> Millau headers relay ( #477 )
...
* Rialto -> Millau headers relay
* removed more constraints
* removed file from other PR
* Update primitives/rialto/src/lib.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
1b96e51679
Subscribe to justifications in Millau->Rialto headers sync ( #394 )
...
* maintain MillauHeadersToRialto sync by subscribing to Millau justifications
* more tracing in maintain
* Update relays/substrate/src/headers_maintain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/substrate/src/headers_maintain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* -Please
* -TODO
* revert raise recursion limit
* updated comment
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
3738bc4277
Bump futures from 0.3.6 to 0.3.7 ( #456 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
c42023269a
Bump env_logger from 0.7.1 to 0.8.1 ( #424 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
31c90f1cae
Bump serde_json from 1.0.58 to 1.0.59 ( #426 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
55d22a0d1e
connect to substrate using ws ( #417 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
488162209b
Bump futures from 0.3.5 to 0.3.6 ( #413 )
2024-04-10 10:28:37 +02:00
Hernando Castano
f52c839d6e
Add GenesisConfig for Millau and Rialto Runtimes ( #401 )
...
* Add Rialto as a target for the Millau node
* Rename Rialto module to Rialto-PoA
This will reduce confusion as the Millau runtime has a
Rialto module as well which refers to the Substrate chain.
* Add Millau as a target for the Rialto node
* Be more explicit about Rialto PoA related code
* Missed some name changes in the Ethereum PoA relay
* Re-export Substrate pallet structs used by node
* Remove `first_scheduled_change` of Millau in Rialto node
* Make Millau's genesis config for Rialto bridge more accurate
* Set initial header for Millau config
* Update initial Millau authorities
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
* RustFmt Millau authorities
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
8b8248f83f
Split Rialto and Millau Nodes ( #372 )
...
* Split the Rialto Node into a standalone crate
* Split the Millau Node into a standalone crate
* Remove `bridge-node` crate
* Add benchmarking feature to nodes
* Check that benchmarks compile in CI
* Remove nodes from CI matrix
* Update Rialto node to Substrate 2.0
* Get Millau node compiling with Substrate 2.0
* Remove extra license text
* Remove comments in TOML files
* Move nodes and runtimes into Rialto and Millau folders
* Fix dependency paths
* Remove unused script
* Add issue to benchmarking TODO
* Fix benchmark manifest paths
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
52b11a58c9
extract common relay initialization func ( #392 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
fe2d786f13
Bump serde_json from 1.0.57 to 1.0.58 ( #396 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
87ea31a439
Bump async-trait from 0.1.40 to 0.1.41 ( #395 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
07a514e9f7
Get substrate dependencies from crates io ( #387 )
...
* get Substrate dependencies from crates.io
* removing unused dependencies
* cargo fmt --all
* remove commented dependencies
* remove commented dependencies again
* try to fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f43e405b5e
update async-std ( #388 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dbb72faa86
Substrate relay stub ( #376 )
...
* substrate-relay: initial commit
* MillauHeaderApi and RialtoHeaderApi
* post-merge fixes + TODOs + compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
52c1913fff
Extract minimal Rialto-Sub and Millau-Sub clients ( #365 )
...
* extracting sub clients
* fmt + lost docs
* revert enum BridgeInstance
* apply suggestions from review
* explicite debug impl
* remove unused imports from Millau
* fix typo
* fix instance + API name
* Update relays/ethereum/src/ethereum_sync_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* separate crates for millau and rialto client
* cargo fmt
* fix
* fmt
* remove no_std support
* fix compilation again
* Update relays/substrate-client/Cargo.toml
* Update relay clients to Substrate 2.0
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <castano.ha@gmail.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
be050bda84
Bump Substrate to v2.0.0 ( #382 )
...
* Change script to update versions.
* Bump versions.
* Address remainders.
* cargo fmt --all
* Fix tests.
* Whitelist BlueOak license
* Fix benchmarks?
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ec34870eab
Extract minimal ethereum client ( #359 )
...
* relay-ethereum-client
* use relay-ethereum-client from ethereum-poa-relay
* cargo fmt --all
* #![warn(missing_docs)]
* EthereumRpcClient -> EthereumClient
* make EthereumHeadersSyncPipeline private
* return concrete type from crate::new
* cleanup dependencies
* *self -> self
* remove trait Client
* sort deps
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d614cdaba8
Extract (headers, exchange, messages) relay loops into separate crates ( #357 )
...
* extracted relay crates
* moved metrics to utils
* exchange-relay compilation
* fix compilation of headers-relay
* fixed messages-relay compilation
* fixed ethereum-poa-relay compilation
* cargo lock
* cargo fmt --all
* clippy
* cargo fmt --all
* fix tests compilation
* clippy
* eof
* module level docs
* removed obsolete comment
* #![warn(missing_docs)]
* .0 -> Deref
* post-merge fix
* cargo fmt
* Update relays/headers-relay/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/headers-relay/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/headers-relay/src/lib.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
2ae886506d
Relay receiving + processing confirmations ( #351 )
...
* relay receiving + processing confirmations
* fmt && clippy
* removed message processing race
* remove more traces
* generic args names
2024-04-10 10:28:37 +02:00
Hernando Castano
5163f62df4
Rename Ethereum Headers to AuraHeader ( #354 )
...
* Rename Header to AuraHeader
This prevents some type conflicts with the PolkadotJS Apps types.
* Fix test and benchmark builds
* Update AuraHeader in types.json
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d8ae786792
Prepare separate runtime for testing sub2sub bridge ( #341 )
...
* renamed bin/node/runtime to bin/node/rialto-runtime
* replaced bridge-node-runtime references with rialto-runtime references
* separate folders for millau/rialto nodes+runtimes
* extracted pallet-shift-session-manager
* bridge-node -> bridge-node-runtime
* uninstall previous rust (temp solution???)
* fix dockerfile
* cargo fmt
* fix benchmarks check
* fix benchmarks again
* update LAST_RUST_UPDATE to clear the cache
* changed runtime comments
* move bin/node/* to bin/
* REVERT ME
* Revert "REVERT ME"
This reverts commit 7c335f946308ed11d9ed6ffec7c1c13dbe2743ed.
* specify container name
* REVERT ME
* container_name -> hostname
* fix typo
* aliases
* Revert "REVERT ME"
This reverts commit 0e74af5f8430f1975a3fc924d8b52079f266bda1.
* removed prefixes
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
bed44dec13
Relay DummyOrdered messages ( #318 )
...
* DummyOrdered relay: initial commit
* 1 ML file -> 3 files
* extracted generic message race loop
* uncommented race error procesing
* lane loop tests
* cargo fmt
* moved HeaderId to utils.rs
* restart lane loop on stall
* message delivery strategy tests
* removed obsolete code
* clippy
* Update relays/ethereum/src/message_lane_loop.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update relays/ethereum/src/message_lane_loop.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* added more races docs
* Update relays/ethereum/src/message_race_delivery.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* update docs
* Update relays/ethereum/src/message_race_loop.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* deal with TODOs
* removed docs
* docs
* cargo fmt --all
* Update relays/ethereum/src/message_race_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
112e60439a
Bump async-trait from 0.1.38 to 0.1.40 ( #329 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
933a8e9252
Bump async-trait from 0.1.37 to 0.1.38 ( #306 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.37 to 0.1.38.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.37...0.1.38 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b7cb0623d4
Update substrate reference to rc6 ( #321 )
...
* update substrate to rc6
* clippy
* fixed benchmarks compilation
* Update bin/node/node/src/service.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
aa90d16832
Fix (workaround) for "cannot read property 'toFixed' of null" ( #297 )
...
* fix (workaround) for NaN CPU usage
* cargo fmt --all
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1823923a79
Remove errors from log ( #294 )
...
* changed log level from error to trace
* incomplete during submit != synced
2024-04-10 10:28:37 +02:00