Svyatoslav Nikolsky
eb5a3eecd2
Revert "override conversion rate in estimate-message-fee RPC ( #1189 )" ( #1275 )
...
This reverts commit ad4299f6c91ce4c50cb6fbc739a0c788e2920956.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
741484214e
override conversion rate in estimate-message-fee RPC ( #1189 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
22b1e456ab
move storage keys computation to primitivs ( #1254 )
2024-04-10 10:28:37 +02:00
fewensa
3aff81a707
Change submit transaction spec_version and transaction_version query from chain ( #1248 )
...
* The `spec_version` and `transaction_version` query from chain
* fix compile
* Lint
* Custom spec_version and transaction_version
* runtime version params struct opt
* runtime version cli
* cli params
* Add missing types defined
* fix compile
* debug cli
* clippy
* clippy
* Query spec_version and transaction_version same times
* Fix vars
* Wrap option
* Wrap option
* Try fix ci
* Change follow suggestions
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
bbd3f1229a
Bump relay version to 1.0.0 ( #1249 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4cdd959057
Refactor message relay helpers ( #1234 )
...
* refactor message relay helpers
* single standalone_metrics function
* fixed tests
* clippy + fmt
* removed commented code
* add calls tracing
* fix spelling
* cargo fmt
* -commented code
* fix build again
* post-merge build fix
* clippy + fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e675b13042
Refactor finality relay helpers ( #1220 )
...
* refactor finality relay helper definitions
* add missing doc
* removed commented code
* fmt
* disable rustfmt for macro
* move best_finalized method const to relay chain def
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f84590817b
Update Rococo/Wococo version + prepare relay for Rococo<>Wococo bridge ( #1241 )
...
* update Rococo version + create relayers fund account
* start finality relay guards when complex relay is started
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
e69e94d4f9
Enable offchain indexing for Rialto/Millau nodes ( #1239 )
...
* Enable off-chain indexing for Rialto & Millau nodes
* cargo fmt --all
* cargo +nightly fmt --all
* fmt is weird.
2024-04-10 10:28:37 +02:00
Adrian Catangiu
1fb70c7ed7
Integrate BEEFY with Rialto & Millau runtimes ( #1227 )
...
* Add Beefy pallet to Rialto runtime
* Add Beefy gadget to Rialto node
* Add MMR pallet to Rialto runtime
* Add Beefy pallet to Millau runtime
* Add Beefy gadget to Millau node
* Add MMR pallet to Millau runtime
* Add pallet_beefy_mmr to Millau runtime
* Add pallet_beefy_mmr to Rialto runtime
* Implement MMR and BEEFY APIs in Rialto
* fix unit tests
- should_encode_bridge_send_message_call() tests for new
runtime encoding resulted from newly added pallets.
- runtime size_of::<Call>() slightly increased from newly
added pallets.
* fix grumbles
* tighten clippy allowances
* fix more grumbles
* Add MMR RPC to Rialto and Millau nodes
Also implement MmrApi in Millau runtime.
* rialto: use upstream polkadot_client::RuntimeApiCollection
2024-04-10 10:28:37 +02:00
Antonio Dropulic
7b30098a12
update dependencies ( #1229 )
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
Adrian Catangiu
57f3f36cb1
Remove unused PoA<>Substrate bridge ( #1210 )
...
* Decouple the PoA bridge code from Rialto
* Remove Rialto PoA bridge code
* Remove relays/bin-ethereum code
* Remove relays/client-ethereum code
* Remove modules/ethereum code
* Remove modules/ethereum-contract-builtin code
* Remove PoA bridge documentation
* Remove primitives/ethereum-poa code
* Decouple Rialto from currency-exchange
* Fix building with runtime-benchmarks
* Fix should_encode_bridge_send_message_call test
Because we removed some runtime modules/pallets, the
substrate2substrate bridge pallet has a different index within
the runtime so its calls have a different encoding.
Update the test to use the new encoding.
* Update readme - no more PoA bridge
* Remove deployments/bridges/poa-rialto
Also removes:
- deployments/networks/eth-poa.yml
- deployments/networks/OpenEthereum.Dockerfile
* Remove deployments/dev/poa-config
* Update deployments readme - no more PoA bridge
* Remove eth-related scripts
Deletes:
- deployments/networks/eth-poa.yml
- scripts/run-openethereum-node.sh
* Remove poa-relay from gitlab-ci
* Dockerfiles to use substrate-relay as default
* Remove modules/currency-exchange code
* Remove primitives/currency-exchange code
Signed-off-by: acatangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
fewensa
19201175e6
Custom relay strategy ( #1198 )
...
* Add relayer strategy
* Add default relayer strategy
* default relayer strategy
* expose relayer strategy
* fix compile
* fix compile
* docs
* Rename Relayer to Relay, keep RelayerDecide
* split `DefaultRelayerStrategy` into `AltruisticRelayerStrategy` and `RationalRelayerStrategy`
* Remove relayer mode
* Remove unused import
* Rename `RelayerStrategy` to `RelayStrategy`
* Add missing docs
* clippy
* clippy
* clippy
* clippy
* Revert `relayer_mode` and add `MixStrategy`
* Add `EnforcementStrategy`
* fix bug and simplify relay strategy
* Update message_lane_loop.rs
* Update messages_target.rs
* clippy
* clippy
* clippy
* clippy
* clippy
* clippy
* clippy
* fix test
* fix test
* test
test
test
fix test
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c2b38ba530
fix clippy things ( #1200 )
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
Svyatoslav Nikolsky
e23266c7e6
Bump dependencies ( #1180 )
...
* substrate: d0f6c1c60da22e04dd25c2eca46ebfe6f1571af0
polkadot: dd4b2e6a34a08a01b876d14641e99e7011be3463
cumulus: 9379cd6c18
* fmt
* fixed lost refs
* spelling
* benckhmarks
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
6396239e18
cargo +nightly fmt --all ( #1192 )
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
Svyatoslav Nikolsky
7b4f1c2236
Limit max call size of Rialto/Millau runtimes ( #1187 )
...
* max call size <= 230 bytes
* fix benchmarks
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b60df0849c
replace collective flip with babe randomness in Rialto ( #1188 )
...
* replace collective flip with babe randomness in Rialto
* fmt
* fix test
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f4a82d4e81
fix/ignore cargo deny issues ( #1183 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2c608cbb29
Resubmit transactions strategy for Polkadot/Kusama ( #1175 )
...
* resubmit strategy for Polkadot/Kusama
* spellcheck
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e5b5679592
fix checks order when registering parachain ( #1177 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a635048b8a
Register-parachain subcommand of substrate-relay ( #1170 )
...
* register parachain relay subcommand
* revert cargo patch
* added basic test
* fmt
2024-04-10 10:28:37 +02:00
Alfredo Garcia
84258f5d8c
add some basic tests for swap tokens ( #1164 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
75a1baac03
fix clippy warning ( #1163 )
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
87cbb382d9
Fix/ignore clippy warnings ( #1157 )
...
* fix/ignore clippy
* --locked check && test
* RUSTC_WRAPPER="" for clippy-nightly, check-nightly, test-nightly
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
70f87e826c
Add rialto-parachain runtime and node ( #1142 )
...
* Substrate: 63b32fbaa2764c0a8ee76b70cdfa0fcb59b7181f
Polkadot: 7229ab87acf5bc5d4d10655ad1a9819a1e317442
Cumulus: d5284b0e78
* rialto parachain runtime
* fixed tests
* add node + bump refs (not compiling yet):
Substrate: 630422d6108cbaaca893ab213dde69f3bdaa1f6b
Polkadot: 7229ab87acf5bc5d4d10655ad1a9819a1e317442
Cumulus: 5af2990cfd
GrandpaBridgeGadget: c152c45ac331eb8ab40d956ab1d008d181810ef4
* fix compilation (collator is not working)
* more fixes
* fmt
* spellcheck
* fix warnings
* fix compilation
* fmt
* trigger CI
* trigger CI
* Revert "trigger CI"
This reverts commit a31f53cec47909817b31a48f3c9f1abd9321f72c.
* benchmarks
* fix benchmarks
* fix again
* Revert "Revert "trigger CI""
This reverts commit 1dea8b42ac8bca830dea982fd2613eb89d607a6c.
* Revert "Revert "Revert "trigger CI"""
This reverts commit 8fb74fa5eba483b7f6a3ce3e25a60757aef4c6bc.
* try fix
* lost lock file
* spellcheck
* try to disable sccache for cargo check
* Revert "Revert "Revert "Revert "trigger CI""""
This reverts commit f157461482d4c1d19156715c4b1ee2acb169531b.
* try to disable again
* disable sccache for test
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
084da4343d
Box large arguments of GRANDPA pallet ( #1154 )
...
* box large arguments
* benchmarks
* fix
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
782d37522f
Fix spelling ( #1150 )
...
* fix spelling
* Revert "fix spelling"
This reverts commit 972bdac6c0c854f9c31e00aca005f228bb4ccbb1.
* Revert "Revert "fix spelling""
This reverts commit 44ad4f06a322aafefdae34b59b94ef0729d0b6bb.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
5dbf6ba78c
Relay subcommand that performs token RLT <> MLAU token swap ( #1141 )
...
* token swap relay
* token swap subcommand fixes
* fmt
* removed debug traces
* removed commented code
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2db84b74cc
Polkadot <> Kusama relayers ( #1122 )
...
* relay headers between Kusama and Polkadot
* relay messages between Kusama and Polkadot
* complex Kusama <> Polkadot relayer
* expose relayer_fund_account_id from messages pallet
* create relayers fund accounts on Kusama/Polkadot + some more fixes
* fmt
* fix compilation
* compilation + clippy
* compilation
* MAXIMAL_BALANCE_DECREASE_PER_DAY for K<>P header relays
* fmt
* deduplicate tests
* Update modules/messages/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* extract storage_parameter_key function
* other grumbles
* fix
* fmt
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
24bd2d6c51
Integrate token swap pallet into Millau runtime ( #1099 )
...
* integrate token swap pallet into Millau runtime
* set OnDeliveryConfirmed callback in Millau runtime
2024-04-10 10:28:37 +02:00
Alfredo Garcia
71080f94df
Add tests for Raw and BridgeSendMessage enum Call variants ( #1125 )
...
* add some missing tests to encode_call
* fix tests
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
79143f6ec6
Add parachain pallets to rialto runtime ( #1053 )
...
* use BABE to author blocks on Rialto (previously: Aura)
* removed extra script
* use bp_rialto::Moment
* fix tests
* Babe should control session end
* add parachain pallets to Rialto runtime
* add parachain pallets to rialto runtime + add parachains inherent data provider to node
* remove script again
* fmt
* allow unlicensed crates
* spellcheck
* fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
74024b028c
fix transaction resubmitter limits for Millau -> Rialto transactions ( #1135 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
77969c567f
add --mandatory-headers-only cli option to complex relay ( #1129 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7369ff9d70
Move some associated types from relay_substrate_client::Chain to bp_runtime::Chain ( #1087 )
...
* move some associated types from relay_substrate_client::Chain to bp_runtime::Chain
* dummy commit
* Revert "dummy commit"
This reverts commit 81bc64aa092df115a7c68e7bb7ca5e83ec31fd20.
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
Svyatoslav Nikolsky
d59d442e93
log max balance drop when sending message ( #1117 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
03a54df398
Fix delivery transaction estimation used by rational relayer ( #1109 )
...
* fix delivery transaction estimation in greedy relayer
* fixed typo
* improve logging
* improve logging
* fmt
* fix compilation
* fmt
* Update relays/lib-substrate-relay/src/messages_target.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* review
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Antonio Dropulic
5c71f0e996
Refactor substrate messages source and substrate messages target ( #1105 )
...
* Remove redundant generic parameters from SubstrateMessagesSource
* Remove redundant generic parameters from SubstrateMessagesTarget
* use uniform alias naming
* use aliases instead of fully quallified syntax
* pr feedback
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b5240f3f18
fix compilation ( #1107 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
864c830618
Emit mortal transactions from relay ( #1073 )
...
* mortal relay transactions
* sign block hash for mortal transactions
* TransactionEraOf
* add explanation
* enable mortal transactions for Westend -> Millau headers relay
* clippy
* spellcheck
2024-04-10 10:28:37 +02:00
Squirrel
8b52cd2593
Remove unused deps ( #1102 )
...
* remove unused dev deps
* Removing unused deps
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3ef4574594
Stored conversion rate updater ( #1005 )
...
* update conversion rate: initial commit
* Rialto=Polkadot && Millau=Kusama + actually update conversion rates
* update deployment scripts and readme
* allow non-zero difference between stored and real rates
* dummy commit
* Revert "dummy commit"
This reverts commit a438198180a8385feeaaca60c9d2da0950465215.
* clippy
* #[allow(clippy::float_cmp)] in conversion rate update
* dummy
* Revert "dummy"
This reverts commit 90cd6e47cda56f655e94dbef76138e6cc58d664a.
* spell
* shared_value_ref() -> get()
* Revert "shared_value_ref() -> get()"
This reverts commit 20aa30de6a59b2099cfba3e9676e71200b7bb468.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
fc9363619a
[BREAKING] Migrate messages pallet to frame v2 ( #1088 )
...
* get rid of frame_support::traits::Instance usage in messaging
* migrate messages pallet to frame v2
* fix benchmarks
* remove dummy event + add Parameter to metadata
* review
* typo
2024-04-10 10:28:37 +02:00
fewensa
8cb2633437
Common crate for substrate-relay ( #1082 )
...
* lib-substrate-relay
* pass to build
* remove unused file
* clippy && tests
* Changed follow suggestions
* License
* Make changes follow suggested
* docs
* fix fmt
2024-04-10 10:28:37 +02:00