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
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
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
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
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
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
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
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
Hernando Castano
8d122b03f1
Rename Finality Verifier and Call Dispatch Pallets ( #838 )
...
* 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
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