Skip to content

Commit

Permalink
Add pallet-assets support for a mixer (#163)
Browse files Browse the repository at this point in the history
* Add pallet-assets support for a mixer

* Add pallet

* Fmt
  • Loading branch information
drewstone authored Jun 28, 2021
1 parent 2f523fa commit da006a0
Show file tree
Hide file tree
Showing 8 changed files with 1,497 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"pallets/merkle",
"pallets/merkle/rpc",
"pallets/mixer",
"pallets/assets-mixer",
"pallets/tokens",
"pallets/traits",
"pallets/utilities",
Expand Down
69 changes: 69 additions & 0 deletions pallets/assets-mixer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[package]
authors = ["Drew Stone <drew@commonwealth.im>, Filip Lazovic"]
description = "Pallet for mixing pallet-assets assets in a zero-knowledge mixer"
edition = "2018"
license = "Unlicense"
name = "pallet-assets-mixer"
version = "3.0.0"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
log = "0.4.8"
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
pallet-assets = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }
pallet-balances = { version = "3.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }
frame-support = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }
frame-system = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }
sp-std = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }
sp-runtime = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }

merkle = { package = "pallet-merkle", path = "../merkle", default-features = false }

serde = { version = "1.0.101", optional = true, features = ["derive"] }
merlin = { version = "2.0.0", default-features = false }
frame-benchmarking = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6", optional = true }

[dependencies.bulletproofs]
version = "2.0.3"
package = "webb-bulletproofs"
default-features = false
features = ["yoloproofs"]

[dependencies.bulletproofs-gadgets]
version = "2.1.1"
default-features = false

[dependencies.curve25519-dalek]
version = "3.0.0"
default-features = false
features = ["u64_backend", "alloc"]

[dependencies.bencher]
version = "0.1.5"

[dev-dependencies]
sp-core = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }
sp-io = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }
pallet-randomness-collective-flip = { default-features = false, version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.6" }

[features]
default = ["std"]
std = [
"serde",
"codec/std",
"pallet-assets/std",
"pallet-balances/std",
"frame-support/std",
"frame-system/std",
"bulletproofs/std",
"bulletproofs-gadgets/std",
"frame-benchmarking/std",
"merkle/std",
]
runtime-benchmarks = [
"frame-benchmarking",
"frame-system/runtime-benchmarks",
"frame-support/runtime-benchmarks",
]
Loading

0 comments on commit da006a0

Please sign in to comment.