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
Chevdor
3295b0c388
chore: spellchecker fixes ( #1130 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7730e417a8
Increase pause before messages generation start ( #1126 )
...
* increase pause before messages generation start
* spelling
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
bear
3c4167f11f
Format code work ( #1116 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
6e3b083ab3
Fix spelling ( #1118 )
...
* I'm just trying to do my job
* spelling
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
Svyatoslav Nikolsky
88fa487631
Fix spellcheck ( #1110 )
...
* fix spellcheck
* invariants
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
Svyatoslav Nikolsky
bd74b0ab24
Add missing docs ( #1095 )
...
* added missing docs
* added .cargo to gitignore
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
Hernando Castano
75df85f52a
Make CI happy again ( #1086 )
...
* Appease `cargo-spellcheck`
* Increase logging for `cargo-spellcheck`
* Fix config file name
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
69d41127bc
Fix Westend -> Millau sync ( #1064 )
...
* read justifications from stream using channel + task that fills that channel
* Arc<Mutex> -> Mutex
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
09d30894d1
When restarting client, also "restart" tokio runtime ( #1065 )
...
* remember new tokio runtime on reconnect
* compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
63d6fc436a
use tokio reactor to execute jsonrpsee futures ( #1061 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
08fd53adef
Use BABE to author blocks on Rialto (previously: Aura) ( #1050 )
...
* use BABE to author blocks on Rialto (previously: Aura)
* removed extra script
* use bp_rialto::Moment
* fix tests
* Babe should control session end
* test
* Revert "test"
This reverts commit 4bbbd76b1fe0aa65002fcfa600cfdc6d15c899e2.
* clippy
* fix test
* Revert "Revert "test""
This reverts commit e9220184d4a14ef4f5a792b239e835528d3baa31.
* Revert "Revert "Revert "test"""
This reverts commit 9f56a5528945f1d8f82c6346826be68207bf9c75.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e18844d1f4
Allow reading suri && password override from file ( #1059 )
...
* allow reading suri && password override from file
* fix clippy
* Update relays/bin-substrate/src/cli/mod.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update relays/bin-substrate/src/cli/mod.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
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
88ee6bd6a0
Pay dispatch fee at target chain cli option ( #1043 )
...
* dispatch-fee-payment=at-target-chain cli option
* generate at-target-chain messages
* Update relays/bin-substrate/src/cli/send_message.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
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
a428420866
Cli option for greedy relayer + run no-losses relayer by default ( #1042 )
...
* cli option for greedy relayer + run no-losses relayer by default
* trigger build
* Revert "trigger build"
This reverts commit f77ae3a634b909bb4dc915941a4c1011a86019f0.
* NoLosses -> Rational
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
166b5309e6
give real value to Rialto and Millau tokens ( #1038 )
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
084c2e6c64
fixed metrics prefix ( #1037 )
2024-04-10 10:28:37 +02:00
halfpint104
84da766881
Use kebab-case for bridge arguments ( #1036 )
...
* Updates bridge CLI arguments to be kebab case
* Updates scripts to use kebab case for bridge initialisation and relaying of headers/messages
* Updates message sending subcommand to be kebab case
* Updates documentation for message sending subcommand
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
db0216dabb
estimate transaction fee ( #1015 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
165730a2c2
Rococo <> Wococo messages relay ( #1030 )
...
* MessagesInstance -> BridgedMessagesInstance
* Chain::ID -> Bridge::THIS_CHAIN_ID+Bridge::BRIDGED_CHAIN_ID
* FromBridgedChainEncodedMessageCall<B> -> FromBridgedChainEncodedMessageCall<DecodedCall>
* impl Parameter for ()
* copypaste storage_map_final_key to avoid different runtime references/dummy runtimes
* moved dummy runtime from primitives to relay client
* Rococo <> Wococo messages relays
* send R<>W messages using relay
* fmt
* return Result from get_dispatch_info
* fix benchmarks compilation
* clippy
2024-04-10 10:28:37 +02:00
Chevdor
c8aeb11b26
Update the wasm builder to substrate master ( #1029 )
...
* chore: update the wasm builder to substrate master
* Bump Substrate
* Update weight of sending remarks
ref https://github.com/paritytech/polkadot/pull/3354
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
kaichao
655901250d
Make target signer optional when sending message. ( #1018 )
...
* make target signer optional in send message.
* remove non-used argument
* fmt
* better doc
* trigger build
* fix clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3e103c16ce
greedy relayer don't need message dispatch to be prepaid if dispatch is supposed to be paid at the target chain ( #1016 )
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
6ff79e9959
Return dispatch_fee_payment from message details RPC ( #1014 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ee43a560f8
Relay basic single-bit message dispatch results back to the source chain ( #935 )
...
* relay dispatch result flags back to the source chain
* OnMessagesDelivered callback
* add lane id to OnDeliveredMessages callback
* fix benchmarks && upate weights
* clippy
* clippy
* clipy another try
* OnMessagesDelivered -> OnDeliveryConfirmed
* Update primitives/messages/src/source_chain.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
87c48f649b
Use plain source_queue view when selecting nonces for delivery ( #1010 )
...
* use plain source_queue view when selecting nonces for delivery
* Revert "use plain source_queue view when selecting nonces for delivery"
This reverts commit f1fdc3fa9a0934271b125328e69e4f16014780d1.
* Revert "Revert "use plain source_queue view when selecting nonces for delivery""
This reverts commit ccefa5ece24c675649251ebc5c686ef972eed2f4.
* clippy
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
20b7f341e1
pay dispatch fee at target chain ( #911 )
...
* pay dispatch fee at target chain
* refund unspent dispatch weight to messages relayer
* test that transfer actually happens
* pay-at-target-cchain benchmarks + fix previous benchmarks (invalid signature)
* include/exclude pay-dispatch-fee weight from delivery_and_dispatch_fee/delivery tx cost
* remvoe some redundant traces
* enum DispatchFeePayment {}
* typo
* update docs
* (revert removal of valid check)
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Hernando Castano
613803a15d
Bump Substrate to 286d7ce ( #1006 )
...
* Bump dependencies
- Substrate to `74a1bfdcc`
- `finality-grandpa` to `0.14.1`
- `fs-swap` to `0.2.6`
* Add `pallet_randomness_collective_flip` to runtimes
* Rename GenesisConfig fields
See Substrate PR: https://github.com/paritytech/substrate/pull/8990
* Missed PoA renames in Rialto GenesisConfig
* Use `spawn_essential_handle` for transaction pool
See Substrate PR: https://github.com/paritytech/substrate/pull/9074
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
f321b07606
Rococo <> Wococo relayer balance guard ( #998 )
...
* relayer balance guards in Rococo <> Wococo
* removed printlns
* update constant
* update constant
* start balance guard for Wococo -> Rococo
* Update relays/bin-substrate/src/chains/wococo_headers_to_rococo.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/bin-substrate/src/chains/wococo_headers_to_rococo.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: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00