Alfredo Garcia
84258f5d8c
add some basic tests for swap tokens ( #1164 )
2024-04-10 10:28:37 +02:00
bear
f2092515a0
Move calculation relayer reward into MessageDeliveryAndDispatchPayment ( #1153 )
...
* Refactor logic
* Thanks svyatonik help, it compile
* Fix failed unit test
* Remove compile warning
* Rename
* Return result in pay_relayers_rewards
* Fix runtime compile issue
* Use MessageNonce
* Fix review issue
* Missing u64 replacement
* Revert return type changes
* Fix merge issue
* Remove useless clone
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
Tomasz Drwięga
eaf519dc1b
Rename MessageId -> BridgeMessageId ( #1152 )
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
bear
417903f9e7
Add OnMessageAccepted callback ( #1134 )
...
* Add `OnMessageAccepted` config type
* Update actual weight
* Add unit test
* Update weight
* Remove old comment & update wrong test data
* Make ci happy
* Add lane_id param
* update test case
* Make log info more readable
* Use saturating_sub
* Update docs
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
Alfredo Garcia
6b3b6516e7
calculate fee using full message payload ( #1132 )
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
Alexander
7e98cc8f37
Add local CI info to README ( #1131 )
2024-04-10 10:28:37 +02:00
Chevdor
3295b0c388
chore: spellchecker fixes ( #1130 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b9bd14562b
set fee for importing mandatory headers to zero ( #1127 )
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
Xavier Lau
3d4d66456d
Code Cleaning ( #1124 )
...
* Remove Trailing Space
* Correct Source Chain Name
2024-04-10 10:28:37 +02:00
bear
3c4167f11f
Format code work ( #1116 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8bb12bc888
fix spelling ( #1119 )
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
d554639380
added missing constants to Kusama/Polkadot primitives ( #1114 )
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
Tomasz Drwięga
2101ed9cc5
Remove fund account checks from upgrade. ( #1111 )
2024-04-10 10:28:37 +02:00
bear
e20163c4ea
Rename param and update comment ( #1108 )
...
* Rename param in `confirm_delivery`
* Fix typo
* Update comment
* Fix review issue
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
bear
ccfc1082f8
Remove unnessary deps ( #1101 )
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
Ignacio Palacios
8cbdc8244d
README fix ( #1100 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4dc76030c4
upgrade currency exchange pallet to frame v2 ( #1097 )
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
Tomasz Drwięga
1527f515de
Update high-level-overview.md ( #1093 )
...
Update outdated GRANDPA pallet docs.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
68eaee1bd4
migrate pallet-shift-session-manager to frame v2 ( #1090 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
92b3a69126
migrate eth PoA pallet to frame v2 ( #1091 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
239790fc72
Migrate dispatch pallet to frame v2 ( #1089 )
...
* pallet-bridge-dispatch -> frame v2
* fix metadata
2024-04-10 10:28:37 +02:00
Hector Bulgarini
b1db3df199
Bridge/This Chain Ids should be exposed as constants on pallet level. ( #1085 )
...
* Adding BridgedChainId constant to message pallet
* Addressing PR feedback
2024-04-10 10:28:37 +02:00