Skip to content

Commit

Permalink
transfer alllowdeath
Browse files Browse the repository at this point in the history
Signed-off-by: zqhxuyuan <zqhxuyuan@gmail.com>
  • Loading branch information
zqhxuyuan committed Jul 8, 2023
1 parent af453d2 commit 853f41c
Show file tree
Hide file tree
Showing 26 changed files with 1,146 additions and 1,148 deletions.
21 changes: 0 additions & 21 deletions Cargo.lock

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

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ panic = 'unwind'

[workspace]
members = [
"zenlink-protocol",
"zenlink-protocol/rpc",
"zenlink-stable-amm",
"zenlink-stable-amm/rpc",
"zenlink-stable-amm/rpc/runtime-api",
"zenlink-swap-router",
"zenlink-vault",
"zenlink-gauge",
"zenlink-protocol",
"zenlink-protocol/rpc",
"zenlink-stable-amm",
"zenlink-stable-amm/rpc",
"zenlink-stable-amm/rpc/runtime-api",
"zenlink-swap-router",
# "zenlink-vault",
"zenlink-gauge",
]
4 changes: 2 additions & 2 deletions example/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ substrate-build-script-utils = { git = "https://github.com/paritytech/substrate"
[features]
default = []
runtime-benchmarks = [
"zenlink-template-runtime/runtime-benchmarks",
"polkadot-cli/runtime-benchmarks",
"zenlink-template-runtime/runtime-benchmarks",
"polkadot-cli/runtime-benchmarks",
]
try-runtime = ["zenlink-template-runtime/try-runtime"]
18 changes: 10 additions & 8 deletions example/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ edition = "2021"
[dependencies]
serde = { version = "1.0.119", optional = true }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
scale-info = { version = "2.1.2", default-features = false, features = ["derive"] }
scale-info = { version = "2.1.2", default-features = false, features = [
"derive",
] }

sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37",default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false }
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false }

zenlink-protocol = { path = "../../zenlink-protocol", default-features = false }
Expand All @@ -19,12 +21,12 @@ zenlink-protocol = { path = "../../zenlink-protocol", default-features = false }
[features]
default = ["std"]
std = [
"serde",
"codec/std",
"scale-info/std",
"sp-runtime/std",
"sp-std/std",
"zenlink-protocol/std"
"serde",
"codec/std",
"scale-info/std",
"sp-runtime/std",
"sp-std/std",
"zenlink-protocol/std",
]

runtime-benchmarks = []
159 changes: 79 additions & 80 deletions example/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,23 @@ targets = ["x86_64-unknown-linux-gnu"]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [
"derive",
] }
hex-literal = { version = "0.3.4", optional = true }
log = { version = "0.4.17", default-features = false }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.1.1", default-features = false, features = [
"derive",
] }
serde = { version = "1.0.143", optional = true, features = ["derive"] }
smallvec = "1.9.0"

# Local
zenlink-protocol = { path = "../../zenlink-protocol", default-features = false }
primitives = { path = "../primitives", default-features = false }
zenlink-stable-amm = {path = "../../zenlink-stable-amm", default-features = false }
zenlink-swap-router = {path = "../../zenlink-swap-router", default-features = false }
zenlink-vault = {path = "../../zenlink-vault", default-features = false }
zenlink-stable-amm = { path = "../../zenlink-stable-amm", default-features = false }
zenlink-swap-router = { path = "../../zenlink-swap-router", default-features = false }
zenlink-vault = { path = "../../zenlink-vault", default-features = false }

# ORML
orml-tokens = { git = "https://github.com/manta-network/open-runtime-module-library", branch = "polkadot-v0.9.37", default-features = false }
Expand Down Expand Up @@ -71,7 +75,7 @@ xcm-executor = { git = "https://github.com/paritytech/polkadot", default-feature
cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false }
cumulus-pallet-dmp-queue = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false }
cumulus-pallet-parachain-system = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false }
cumulus-pallet-session-benchmarking = {git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false, version = "3.0.0"}
cumulus-pallet-session-benchmarking = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false, version = "3.0.0" }
cumulus-pallet-xcm = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false }
cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false }
cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false }
Expand All @@ -81,83 +85,78 @@ pallet-collator-selection = { git = "https://github.com/paritytech/cumulus.git",
parachain-info = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.37", default-features = false }

[features]
default = [
"std",
]
default = ["std"]
std = [
"codec/std",
"log/std",
"scale-info/std",
"serde",
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-primitives-core/std",
"cumulus-primitives-timestamp/std",
"cumulus-primitives-utility/std",
"frame-executive/std",
"frame-support/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"pallet-aura/std",
"pallet-authorship/std",
"pallet-balances/std",
"pallet-collator-selection/std",
"pallet-session/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-xcm/std",
"parachain-info/std",
"polkadot-parachain/std",
"polkadot-runtime-common/std",
"sp-api/std",
"sp-block-builder/std",
"sp-consensus-aura/std",
"sp-core/std",
"sp-inherents/std",
"sp-io/std",
"sp-offchain/std",
"sp-runtime/std",
"sp-session/std",
"sp-std/std",
"sp-transaction-pool/std",
"sp-version/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"primitives/std",
"zenlink-protocol/std",
"zenlink-stable-amm/std",
"zenlink-swap-router/std",
"orml-tokens/std",
"orml-traits/std",
"codec/std",
"log/std",
"scale-info/std",
"serde",
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-primitives-core/std",
"cumulus-primitives-timestamp/std",
"cumulus-primitives-utility/std",
"frame-executive/std",
"frame-support/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"pallet-aura/std",
"pallet-authorship/std",
"pallet-balances/std",
"pallet-collator-selection/std",
"pallet-session/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-xcm/std",
"parachain-info/std",
"polkadot-parachain/std",
"polkadot-runtime-common/std",
"sp-api/std",
"sp-block-builder/std",
"sp-consensus-aura/std",
"sp-core/std",
"sp-inherents/std",
"sp-io/std",
"sp-offchain/std",
"sp-runtime/std",
"sp-session/std",
"sp-std/std",
"sp-transaction-pool/std",
"sp-version/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"primitives/std",
"zenlink-protocol/std",
"zenlink-stable-amm/std",
"zenlink-swap-router/std",
"orml-tokens/std",
"orml-traits/std",
]

runtime-benchmarks = [
"hex-literal",
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-collator-selection/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"cumulus-pallet-session-benchmarking/runtime-benchmarks",
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
"zenlink-protocol/runtime-benchmarks",
"zenlink-stable-amm/runtime-benchmarks",
"zenlink-swap-router/runtime-benchmarks",
"zenlink-vault/runtime-benchmarks",
"hex-literal",
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-collator-selection/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"cumulus-pallet-session-benchmarking/runtime-benchmarks",
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
"zenlink-protocol/runtime-benchmarks",
"zenlink-stable-amm/runtime-benchmarks",
"zenlink-swap-router/runtime-benchmarks",
"zenlink-vault/runtime-benchmarks",
]

try-runtime = [
"frame-executive/try-runtime",
"frame-try-runtime",
]
try-runtime = ["frame-executive/try-runtime", "frame-try-runtime"]
32 changes: 16 additions & 16 deletions zenlink-gauge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ license = "GPL-3.0-only"
[dependencies]
serde = { version = "1.0.119", optional = true }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.1.1", default-features = false, features = [
"derive",
] }

frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.37" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
Expand All @@ -25,24 +27,22 @@ orml-tokens = { git = "https://github.com/manta-network/open-runtime-module-libr
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false }
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37"}
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }

[features]
default = ["std"]
std = [
"serde",
"codec/std",
"scale-info/std",
"sp-core/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-arithmetic/std",
"orml-tokens/std"
"serde",
"codec/std",
"scale-info/std",
"sp-core/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-arithmetic/std",
"orml-tokens/std",
]

runtime-benchmarks = [
"frame-benchmarking",
]
try-runtime = [ "frame-support/try-runtime" ]
runtime-benchmarks = ["frame-benchmarking"]
try-runtime = ["frame-support/try-runtime"]
36 changes: 18 additions & 18 deletions zenlink-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ log = { version = "0.4.14", default-features = false }
serde = { version = "1.0.119", optional = true }
# alias "parity-scale-code" to "codec"
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.1.1", default-features = false, features = [
"derive",
] }

# Substrate
frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.37" }
Expand All @@ -36,22 +38,20 @@ orml-tokens = { git = "https://github.com/manta-network/open-runtime-module-libr
[features]
default = ["std"]
std = [
"log/std",
"serde",
"codec/std",
"scale-info/std",
"sp-core/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-arithmetic/std",
"pallet-balances/std",

"orml-traits/std",
"log/std",
"serde",
"codec/std",
"scale-info/std",
"sp-core/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"sp-arithmetic/std",
"pallet-balances/std",

"orml-traits/std",
]

runtime-benchmarks = [
"frame-benchmarking",
]
try-runtime = [ "frame-support/try-runtime" ]
runtime-benchmarks = ["frame-benchmarking"]
try-runtime = ["frame-support/try-runtime"]
4 changes: 2 additions & 2 deletions zenlink-protocol/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ sp-runtime = { git = "https://github.com/paritytech/substrate", default-features

# Local packages

zenlink-protocol = { path = "..", version = "0.4.0"}
zenlink-protocol-runtime-api = { path = "./runtime-api", version = "0.4.0"}
zenlink-protocol = { path = "..", version = "0.4.0" }
zenlink-protocol-runtime-api = { path = "./runtime-api", version = "0.4.0" }
7 changes: 1 addition & 6 deletions zenlink-protocol/rpc/runtime-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,4 @@ serde_json = "1.0"

[features]
default = ["std"]
std = [
'codec/std',
'sp-api/std',
'sp-std/std',
'zenlink-protocol/std'
]
std = ['codec/std', 'sp-api/std', 'sp-std/std', 'zenlink-protocol/std']
Loading

0 comments on commit 853f41c

Please sign in to comment.