Svyatoslav Nikolsky
ef8c5b3c9e
fix compilation
2024-04-10 10:28:37 +02:00
dependabot[bot]
5b97b144a9
Bump sysinfo from 0.15.9 to 0.27.7
...
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo ) from 0.15.9 to 0.27.7.
- [Release notes](https://github.com/GuillaumeGomez/sysinfo/releases )
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits )
---
updated-dependencies:
- dependency-name: sysinfo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
dependabot[bot]
5e62f3040d
Bump env_logger from 0.8.4 to 0.10.0
...
Bumps [env_logger](https://github.com/rust-cli/env_logger ) from 0.8.4 to 0.10.0.
- [Release notes](https://github.com/rust-cli/env_logger/releases )
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.8.4...v0.10.0 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
dependabot[bot]
c357cb5b8e
Bump jsonpath_lib from 0.2.6 to 0.3.0
...
Bumps [jsonpath_lib](https://github.com/freestrings/jsonpath ) from 0.2.6 to 0.3.0.
- [Release notes](https://github.com/freestrings/jsonpath/releases )
- [Commits](https://github.com/freestrings/jsonpath/compare/v0.2.6...0.3.0 )
---
updated-dependencies:
- dependency-name: jsonpath_lib
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
dependabot[bot]
341efe2b6a
Bump backoff from 0.2.1 to 0.4.0
...
Bumps [backoff](https://github.com/ihrwein/backoff ) from 0.2.1 to 0.4.0.
- [Release notes](https://github.com/ihrwein/backoff/releases )
- [Commits](https://github.com/ihrwein/backoff/compare/v0.2.1...v0.4.0 )
---
updated-dependencies:
- dependency-name: backoff
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
dependabot[bot]
7963cf65c9
Bump tokio from 1.24.1 to 1.24.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.24.1 to 1.24.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
70eb076ab2
Expose relay version metric ( #1750 )
...
* expose relay version metric
* spelling
* and clippy
* clippy
* typo
* use version directly and determine git commit
* typos and leftovers
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
be27bd5e97
Batch transactions in complex relays ( #1669 )
...
* batch transactions in message relay: API prototype
* get rid of Box<dyn BatchTransaction> and actually submit it
* test batch transactions
* message_lane_loop_works_with_batch_transactions
* removed logger
* BatchConfirmationTransaction + BatchDeliveryTransaction
* more prototyping
* fmt
* continue with batch calls
* impl BatchCallBuilder for ()
* BatchDeliveryTransaction impl
* BundledBatchCallBuilder
* proper impl of BundledBatchCallBuilder + use it in RialtoParachain -> Millau
* impl prove_header in OnDemandHeadersRelay
* impl OnDemandParachainsRelay::prove_header (needs extensive tests)
* added a couple of TODOs
* return Result<Option<BatchTx>> when asking for more headers
* prove headers when reauire_* is called && return proper headers from required_header_id
* split parachains::prove_header and test select_headers_to_prove
* more traces and leave TODOs
* use finality stream in SubstrateFinalitySource::prove_block_finality
* prove parachain head at block, selected by headers relay
* const ANCIENT_BLOCK_THRESHOLD
* TODO -> proof
* clippy and spelling
* BatchCallBuilder::build_batch_call() returns Result
* read first proof from two streams
* FailedToFindFinalityProof -> FinalityProofNotFound
* changed select_headers_to_prove to version from PR review
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d63a75697c
Only store header state root (pallet-bridge-parachains) ( #1701 )
...
* store block number ++ state root in parachains pallet
* fixed parachains finality APIs
* (test commit)
* removed test code
* deduplicated code a bit
* removed commented code
* spelling
* Update modules/parachains/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update modules/parachains/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update modules/parachains/src/mock.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* added comment
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f58e076ca2
fixes for nightly clippy ( #1618 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
43afa02372
Read extrinsic dispatch result for mined transaction ( #1582 )
...
* read extrinsic dispatch result for mined transaction
* commit for the history
* Revert "commit for the history"
This reverts commit 99341b04750639db296172cc1432bd70e458ef4b.
* Revert "read extrinsic dispatch result for mined transaction"
This reverts commit 662b776cbf992be9f1637e52f023b782e8c441d1.
* check for successfult transaction in finality relay
* check for successful transaction in parachains relay
* TrackedTransactionStatus ->TrackedTransactionStatus<HeaderId>
* check for successful transaction in messages relay
* fix compilation
* message_lane_loop_is_able_to_recover_from_unsuccessful_transaction
* fixed too-complex-type clippy error
* aaand compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
0f79d1e86e
fail if transaction submit has failed ( #1584 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
70d6e91f20
TransactionInvalidationTracker ( #1544 )
...
* TransactionInvalidationTracker
* TransacitonInvalidationTracker -> TransactionTracker
* change sign_transaction method
* clippy and spelling
* removed comment
* more transactiontracker tests
* stalls_when_transaction_tracker_returns_error
* remove test code
* remove "impl TransactionTracker for ()"
* enum TrackedTransactionStatus
* test TransactionTracker in on_transaction_status
* do_wait
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f35b4f4897
Extract unsigned tx from the SignParam structure ( #1561 )
...
* change sign_transaction method
* clippy
* rustup update && clippy
* remove redudnant clone
2024-04-10 10:28:37 +02:00
Branislav Kontur
260dad5110
Bko cosmetics ( #1550 )
...
* Bump log version to 0.4.17
* Removed unnecesseray dependency + rename BridgeGrandpaMillauCall to BridgeGrandpaCall
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
31a2be845c
Fix on-different-forks metrics during initialization ( #1468 )
...
* fix on-different-forks metrics during initialization
* "initialize" parachain finality pallet in on-demand parachains relay
* decrease converstion rate requests count
* more error logging
* fix compilation
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7a92b40eab
Fix clippy warnings + try to enable proper (no-warning) clippy on CI ( #1410 )
...
* fix clippy warnings
* try to reenable proper clippy on CI
* fix clippy error
* more Eqs
* ignore clippy::derive-partial-eq-without-eq - clippy seems to be broken now :/
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c538a39816
Switch to gav-xcm-v3 branch to be able to test bridges + XCMv3 integration ( #1378 )
...
* switch to gav-xcm-v3 branch (wip)
* add comment
* play with CI
* keep playing with CI
* play with CI
* trigger CI
* Revert "trigger CI"
This reverts commit fc35ac648fe6a3ea8e710a2e07dfee7d8762c6c4.
2024-04-10 10:28:37 +02:00
Adrian Catangiu
14b27a0209
Update Substrate/Polkadot/Cumulus references ( #1364 )
...
cumulus: b468d0c33e
polkadot: 827792ca833396c82c726eda0bc2ad32ecddba73
substrate: 666f39b8a22108f57732215de006518738034ba2
bump serde_json to 1.0.79
sync changes from https://github.com/paritytech/substrate/pull/11022
fixed clippy warnings
Signed-off-by: acatangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
65c2c0ccce
Update Substrate/Polkadot/Cumulus references ( #1353 )
...
* cumulus: 4e95228291
polkadot: 975e780ae0d988dc033f400ba822d14b326ee5b9
substrate: 89fcb3e4f62d221d4e161a437768e77d6265889e
* fix refs
* sync changes from https://github.com/paritytech/polkadot/pull/3828
* sync changes from https://github.com/paritytech/polkadot/pull/4387
* sync changes from https://github.com/paritytech/polkadot/pull/3940
* sync with changes from https://github.com/paritytech/polkadot/pull/4493
* sync with changes from https://github.com/paritytech/polkadot/pull/4958
* sync with changes from https://github.com/paritytech/polkadot/pull/3889
* sync with changes from https://github.com/paritytech/polkadot/pull/5033
* sync with changes from https://github.com/paritytech/polkadot/pull/5065
* compilation fixes
* fixed prometheus endpoint startup (it now requires to be spawned within tokio context)
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2bf5b23262
edition = "2021" ( #1346 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e29b590785
Using-same-fork metric for finality and complex relay ( #1327 )
...
* using_same_fork metric in finality relay
* support `using_different_forks` in messages relay
* added dashboards and alerts
* lockfile
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
821b2e7184
Fix issues from cargo deny ( #1311 )
...
* update libp2p-core (RUSTSEC-2022-0009)
* update thread_local (RUSTSEC-2022-0006)
* time 0.2 -> time 0.3
* ignore RUSTSEC-2021-0130
* proper migration to time 0.3
* fix clippy?
* Revert "fix clippy?"
This reverts commit 53bc289631769071848e43976871304782486fed.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
bbf8b51f9c
Unify metric names ( #1209 )
...
* unify metric names
* refactor standalone metrics
* headers sync metrics
* post-merge fix
* fix compilation
* fmt
* fix dashboards
* fix local dashboards
* update Rococo/Wococo runtime version
* remove commented code
* fixed grumbles
* fmt
* fixed widget names
2024-04-10 10:28:37 +02:00
bear
48121604cd
Expose some const value and type ( #1186 )
...
* change const value visable
* Add docs
* Update docs
* Update docs 2
* Fix ci
* Fix spell check
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1ef41a59be
Message transactions mortality ( #1191 )
...
* transactions mortality in message and complex relays
* logging + enable in test deployments
* spellcheck
* fmt
2024-04-10 10:28:37 +02:00
Vladislav
5842968273
Unify error enums in substrate and ethereum clients with thiserror ( #1094 )
...
* Unify error enums in substrate and ethereum clients with `thiserror`
Related to https://github.com/paritytech/parity-bridges-common/issues/857
* Add license pre-amble
* rustfmt
* Fix spelling
2024-04-10 10:28:37 +02:00
hacpy
bd70de8b8b
Match substrate's fmt ( #1148 )
...
* Alter gitlab.
* Use substrate's rustfmt.toml
* cargo +nightly fmt --all
* Fix spellcheck.
* cargo +nightly fmt --all
* format.
* Fix spellcheck and fmt
* fmt?
* Fix spellcheck
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1df7076c4f
Transactions resubmitter ( #1083 )
...
* resubmit transactions: start
* resubmit transactions: continue
* enable resubmitter in deployments
* clippy
* spellcheck
* Update relays/client-substrate/src/chain.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* fix compilation
* fix compilation
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Tomasz Waszczyk
f86d101d7c
Fix full spellcheck ( #1076 )
...
* 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: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
fd39d3519e
Use real conversion rate in greedy relayer strategy ( #1035 )
...
* use real conversion rate in greedy relayer strategy
* only accept positive, normal numbers in FloatJsonValueMetric
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ecd20d9d24
Shared reference to conversion rate metric value ( #1034 )
...
* shared conversion rate metric value
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
6301ae0636
Always run on-demand headers relay in complex relay ( #975 )
...
* always run on-demand headers relay in complex relay
* fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
622a4b5c6f
reonnect to failed client in on-demand relay background task ( #936 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
38cd3a328d
Do not spawn additional task for on-demand relays ( #933 )
...
* do not spawn additional task for on-demand relays
* compilation
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
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
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
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
Tomasz Drwięga
70e9db4aad
Initialize logger properly. ( #843 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a17c7eb80c
Changed how relay loops are started ( #840 )
...
* slightly changed relay loop initialization
* git mv
* clippy
* more clippy
* loop_run -> run_loop
* review and clippy
* clippy
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
acb872fbb0
Flatten back the structure ( #837 )
...
* Remove chains.
* Move relay clients.
* Flatten generic.
* Fix fmt.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
d9bec5f387
Reorganize relay code to make it easy to add new networks. ( #813 )
...
* 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: 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
Tomasz Drwięga
8f11732bb9
Uniform git dependencies (Backport of substrate#2589) ( #805 )
...
* Make Substrate deps uniform
* Rest of the deps.
* Fix broken merge.
* Revert substrate.
* Fix tests
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
b806fb7756
Fix formatting. ( #738 )
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
Svyatoslav Nikolsky
f3ea6a8d3d
Reward delivery confirmation transaction submitter (aka confirmation relayer) ( #599 )
...
* reward confirmation relayer
* Update modules/message-lane/src/instant_payments.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* added some constants
* pallet_balances
* removed comment
* fix typo
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c20b4c868f
Fixed clippy warnings ( #537 )
...
* fixed clippy warnings
* Revert "Actually use pinned nightly version when building runtimes (#465 )"
This reverts commit dedddb6b0f22260e00053c28873a0cb1fbea22e2.
* Revert "Pin Rust Nightly Version (#420 )"
This reverts commit 8902ac2030cf7ef48ec512463424f134a3b38804.
* fix after revert
* another fix after revert
* more clippy fixes
2024-04-10 10:28:37 +02:00