Svyatoslav Nikolsky
4b525f4fe1
Token swap pallet benchmarks ( #1174 )
...
* token swap benchmarks
* spellcheck
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
772b52e479
fix spelling ( #1167 )
2024-04-10 10:28:37 +02:00
David
f3eefc9df9
Upgrade jsonrpsee to v0.3 ( #1051 )
...
* Upgrade `jsonrpsee` to v0.3
* whitespace
* fmt
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
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
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
Svyatoslav Nikolsky
b9bd14562b
set fee for importing mandatory headers to zero ( #1127 )
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
Xavier Lau
3d4d66456d
Code Cleaning ( #1124 )
...
* Remove Trailing Space
* Correct Source Chain Name
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
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
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
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
4dc76030c4
upgrade currency exchange pallet to frame v2 ( #1097 )
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
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
Svyatoslav Nikolsky
82a952c0db
fix typo ( #1080 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
eba80f42a9
Token-swap-over-bridge pallet ( #944 )
...
* token swap pallet
* token swap type (replay protection)
* post-merge fixes
* post-merge fix
* Update modules/token-swap/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update modules/token-swap/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* add missing comment part
* Update modules/token-swap/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* starting claim after lock period is over is forbidden
* move spec_version and weight to arguments
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
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
562fac801d
fixed wrong trace ( #1075 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4f7b0d3b19
merge two weight-related loops in messages pallet ( #1071 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
712ccbb742
increase_message_fee depends on stored mesage size ( #1066 )
2024-04-10 10:28:37 +02:00
Guillaume Thiolliere
23ff5db103
companion for https://github.com/paritytech/polkadot/pull/3507 ( #1067 )
...
* better test
* fmt
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
31828783ab
refund weight for mot pruning messages ( #1062 )
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
2e50bf8fb1
Confirm delivery detects when more than expected messages are confirmed ( #1039 )
...
* confirm delivery detects when more than expected messages are confirmed
* fix benchmarks compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dfdd541bc9
pre and post dispatch weights of OnDeliveryConfirmed callback ( #1040 )
...
* pre and post dispatch weights of OnDeliveryConfirmed callback
* Update modules/messages/README.md
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* clippy + compilation
* fix test issue from parallel PR
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
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
79e7845544
Fix insufficient balance when send message. ( #1020 )
...
* fix insufficient balance when send message.
* Revert "fix insufficient balance when send message."
This reverts commit b7a539c77b1eb0c6f7ccb1333e9fd2c4e18f8cbc.
* More derived account used for send messages.
* typo fix
* trigger build
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
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