-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/restricted transfers closure (#1621)
* feat: compiles and is functional. Needs: - tests - clean up of warnings * chore: clean up tests * feat: finish tests * feat: Adapt allowance to use fungible, restirct native * fix: allowlist for dev * feat: add allowlist to centrifuge * feat: add allowlist Altair * feat: use fixed versioning for xcm * feat: add to dev * feat: make dispatch result * feat: Filter for xcm transfers * feat: add restricted xtoken to centrifuge * feat: add restricted xtoken altair * feat: add transfer proxy altair * feat: add transfer proxy centrifuge * feat: add transfer proxy dev * feat: rename error allowlist * fix: indendation * fix: doc comments restricted xtokens * chore: error * feat: integration tests wip * feat: filter for lp and for tokens * feat: use filter for tokens * feat: flter for lp logic and runtime adjustments * Restricted transfers follow-ups (#1630) * integration-tests: Add relay chain storage to env, update restricted token tests * restricted-xtokens: Remove xcm-simulator tests * deps: Update restricted-xtokens deps * transfer-allowlist: Use different trait for increasing an account balance in benchmarking setup * integration-tests: Add default constructor for generic envs * integration-test: Add LP eth usdc test via LP pallet * integration-tests: Check for allowance in LP eth usdc test * transfer-allowlist: Use non-default currency ID in benchmarks * clippy: Obey * transfer-allowlist: Drop custom currency ID in mock runtime * transfer-allowlist: Add non-default currency ID for tests * deps: Update pallet-restricted-xtokens deps * deps: Fix integration-tests deps * deps: Use workspace deps * restricted-xtokens: Update weights * restricted-xtokens: Update crate version * runtime: Add LP transfer extrinsics to Transfer proxy type --------- Co-authored-by: Cosmin Damian <[email protected]>
- Loading branch information
1 parent
2ba3d5a
commit 4c9d5f7
Showing
42 changed files
with
2,423 additions
and
531 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[package] | ||
name = "pallet-restricted-xtokens" | ||
authors.workspace = true | ||
description = "A wrapper pallet around orml-xtokens to allow restricting transfers" | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", workspace = true } | ||
scale-info = { workspace = true } | ||
serde = { workspace = true, optional = true } | ||
|
||
# substrate | ||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
# orml | ||
orml-xtokens = { workspace = true } | ||
orml-traits = { workspace = true } | ||
|
||
# polkadot | ||
xcm = { workspace = true } | ||
|
||
# local | ||
cfg-traits = { workspace = true } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"serde", | ||
"codec/std", | ||
"sp-std/std", | ||
"cfg-traits/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"scale-info/std", | ||
"orml-xtokens/std", | ||
"orml-traits/std", | ||
"xcm/std" | ||
] | ||
|
||
runtime-benchmarks = [ | ||
"cfg-traits/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"orml-xtokens/runtime-benchmarks", | ||
] | ||
try-runtime = [ | ||
"cfg-traits/try-runtime", | ||
"frame-support/try-runtime", | ||
"frame-system/try-runtime", | ||
"orml-xtokens/try-runtime", | ||
] |
Oops, something went wrong.