-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: LP V2 message forwarding (#1971)
* refactor: LpMessage * feat: extend LpMessage with forwarding * wip: forwarding pallet * chore: apply domainaddress refactor * refactor: combine traits, cleanup, add docs * chore: compile runtimes * tests: add UTs * fix: remove RouterProvider from Forwarder * feat: move serialization to runtime type * chore: apply suggestions from @cdamian's review * fix: release build * refactor: unite Receiver|SenderMessage types in mock * refactor: remove trait namespaces in forwarder test * fix: re-add RouterProvider to forwarder pallet * fix: use source domain * fix: use source domain fix: clippy * feat: instantiate mock_router * refactor: add MessageDeserializer to Gateway config * Revert "refactor: add MessageDeserializer to Gateway config" This reverts commit 128c35842646924a2489abbdd5e66a9dfecbfaf1. * refactor: remove receive_message gateway extrinsic * refactor: remove artifacts * taplo: fmt * fix: ensure multi-router-setup validity This reverts commit cd72182.
- Loading branch information
Showing
25 changed files
with
1,315 additions
and
227 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[package] | ||
name = "pallet-liquidity-pools-forwarder" | ||
description = "Centrifuge Liquidity Pools Relayer Pallet" | ||
version = "0.0.1" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
documentation.workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
parity-scale-codec = { workspace = true } | ||
scale-info = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
# Benchmarking | ||
frame-benchmarking = { workspace = true, optional = true } | ||
|
||
# Our custom pallets | ||
cfg-traits = { workspace = true } | ||
cfg-types = { workspace = true } | ||
|
||
[dev-dependencies] | ||
cfg-mocks = { workspace = true, default-features = true } | ||
cfg-primitives = { workspace = true } | ||
sp-io = { workspace = true, default-features = true } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"parity-scale-codec/std", | ||
"cfg-types/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"frame-benchmarking/std", | ||
"sp-std/std", | ||
"sp-core/std", | ||
"sp-runtime/std", | ||
"scale-info/std", | ||
] | ||
try-runtime = [ | ||
"cfg-traits/try-runtime", | ||
"cfg-types/try-runtime", | ||
"frame-support/try-runtime", | ||
"frame-system/try-runtime", | ||
"sp-runtime/try-runtime", | ||
"cfg-mocks/try-runtime", | ||
] | ||
runtime-benchmarks = [ | ||
"frame-benchmarking/runtime-benchmarks", | ||
"cfg-traits/runtime-benchmarks", | ||
"cfg-types/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
"cfg-mocks/runtime-benchmarks", | ||
] |
Oops, something went wrong.