Svyatoslav Nikolsky
6103fbe40b
Update jsonrpsee reference ( #1049 )
...
* update jsonrpsee
* test
* Revert "test"
This reverts commit 2b69652ab92ff0d9649088c76faed2c94384540d.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f5f73537a8
bump dependencies before start referencing polkadot repo ( #1048 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
db0216dabb
estimate transaction fee ( #1015 )
2024-04-10 10:28:37 +02:00
kaichao
010588e95a
Allow Root to assume SourceAccount. ( #1011 )
...
* Allow Root to assume SourceAccount.
* fmt code
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c69c682a4c
Add --only-mandatory-headers mode ( #1004 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
09df16612b
Messages relayer operating mode ( #995 )
...
* introduce relayer mode enum
* removed MaximalReward mode
* TODO
* Saturating -> SaturatingAdd
* ref issue in TODOs
* Update relays/messages/src/message_race_delivery.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
4a47452c20
Move ChainWithBalances::NativeBalance -> Chain::Balance ( #990 )
...
* move ChainWithBalances::NativeBalance -> Chain::Balance
* dummy commit
* Revert "dummy commit"
This reverts commit c00642153d260685a91d4fffbc424d225741fceb.
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
f8f8f42a89
in auto-relays keep trying to connect to nodes until connection is established ( #971 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4321d20d2f
jsonrpsee alpha6 ( #938 )
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
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
Svyatoslav Nikolsky
a783775ca5
RestartNeeded is a connection error ( #894 )
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
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
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
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
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
acb872fbb0
Flatten back the structure ( #837 )
...
* Remove chains.
* Move relay clients.
* Flatten generic.
* Fix fmt.
2024-04-10 10:28:37 +02:00