Skip to content

Commit

Permalink
refactor cxrml dir (paritytech#95)
Browse files Browse the repository at this point in the history
wasm successful
pending has not remove {:?} debug trait
  • Loading branch information
Aton authored and gguoss committed Nov 16, 2018
1 parent a2643fc commit 85759df
Show file tree
Hide file tree
Showing 14 changed files with 100 additions and 30 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ chainx-network = { path = "./network" }
chainx-pool = { path = "./pool" }
chainx-rpc = { path = "./rpc" }
chainx-api = { path = "./api" }
cxrml-pendingorders = { path = "./cxrml/pendingorders" }
cxrml-pendingorders = { path = "./cxrml/exchange/pendingorders" }
cxrml-tokenbalances = { path = "./cxrml/tokenbalances" }

env_logger = "0.5.13"
Expand Down Expand Up @@ -67,10 +67,10 @@ members = [
"cxrml/support",
"cxrml/tokenbalances",
"cxrml/staking",
"cxrml/financialrecords",
"cxrml/funds/financialrecords",
"cxrml/multisig",
"cxrml/bridge/btc",
"cxrml/pendingorders",
"cxrml/matchorder",
"cxrml/exchange/pendingorders",
"cxrml/exchange/matchorder",
"cxrml/example",
]
2 changes: 1 addition & 1 deletion cxrml/bridge/btc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ srml-consensus = { git = "https://github.com/paritytech/substrate", default-feat
srml-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false }
cxrml-support = { path = "../../support", default-features = false }
cxrml-tokenbalances = { path = "../../tokenbalances", default-features = false }
cxrml-financialrecords = { path = "../../financialrecords", default-features = false }
cxrml-financialrecords = { path = "../../funds/financialrecords", default-features = false }

# bitcoin-rust
chain = { git = "https://github.com/chainx-org/bitcoin-rust", default-features = false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ sr-primitives = { git = "https://github.com/paritytech/substrate", default_featu
srml-support = { git = "https://github.com/paritytech/substrate", default_features = false }
srml-system = { git = "https://github.com/paritytech/substrate", default_features = false }
srml-balances = { git = "https://github.com/paritytech/substrate", default_features = false }
cxrml-tokenbalances = { path = "../tokenbalances" }
cxrml-pendingorders = { path = "../pendingorders" }
log = "0.4"

# cxrml module
cxrml-support = { path = "../support", default_features = false }
cxrml-support = { path = "../../support", default_features = false }
cxrml-tokenbalances = { path = "../../tokenbalances", default_features = false }
cxrml-pendingorders = { path = "../pendingorders", default_features = false }

[features]
default = ["std"]
Expand All @@ -38,4 +38,6 @@ std=[
"srml-system/std",
"srml-balances/std",
"cxrml-support/std",
"cxrml-tokenbalances/std",
"cxrml-pendingorders/std",
]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ sr-primitives = { git = "https://github.com/paritytech/substrate", default_featu
srml-support = { git = "https://github.com/paritytech/substrate", default_features = false }
srml-system = { git = "https://github.com/paritytech/substrate", default_features = false }
srml-balances = { git = "https://github.com/paritytech/substrate", default_features = false }
cxrml-tokenbalances = { path = "../tokenbalances" }

log = "0.4"

# cxrml module
cxrml-support = { path = "../support", default_features = false }
cxrml-support = { path = "../../support", default_features = false }
cxrml-tokenbalances = { path = "../../tokenbalances", default_features = false }

[features]
default = ["std"]
Expand All @@ -37,4 +38,5 @@ std=[
"srml-system/std",
"srml-balances/std",
"cxrml-support/std",
"cxrml-tokenbalances/std",
]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ srml-system = { git = "https://github.com/paritytech/substrate", default_feature
srml-balances = { git = "https://github.com/paritytech/substrate", default_features = false }

# cxrml module
cxrml-support = { path = "../support", default_features = false }
cxrml-tokenbalances = { path = "../tokenbalances", default_features = false }
cxrml-support = { path = "../../support", default_features = false }
cxrml-tokenbalances = { path = "../../tokenbalances", default_features = false }

[features]
default = ["std"]
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ chainx-primitives = { path = "../primitives" }
cxrml-support = { path = "../cxrml/support" }
cxrml-staking = { path = "../cxrml/staking" }
cxrml-tokenbalances = { path = "../cxrml/tokenbalances" }
cxrml-financialrecords = { path = "../cxrml/financialrecords" }
cxrml-financialrecords = { path = "../cxrml/funds/financialrecords" }
cxrml-multisig = { path = "../cxrml/multisig" }
# bridge
cxrml-bridge-btc = { path = "../cxrml/bridge/btc" }
cxrml-pendingorders = { path = "../cxrml/pendingorders" }
cxrml-matchorder = { path = "../cxrml/matchorder" }
# exchange
cxrml-pendingorders = { path = "../cxrml/exchange/pendingorders" }
cxrml-matchorder = { path = "../cxrml/exchange/matchorder" }

[features]
default = ["std"]
Expand Down
83 changes: 70 additions & 13 deletions runtime/wasm/Cargo.lock

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

11 changes: 9 additions & 2 deletions runtime/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ chainx-primitives = { path = "../../primitives", default-features = false }
cxrml-support = { path = "../../cxrml/support", default-features = false }
cxrml-staking = { path = "../../cxrml/staking", default-features = false }
cxrml-tokenbalances = { path = "../../cxrml/tokenbalances", default-features = false }
cxrml-financialrecords = { path = "../../cxrml/financialrecords", default-features = false }
cxrml-multisig = { path = "../../cxrml/multisig", default-features = false }
# bridge
cxrml-bridge-btc = { path = "../../cxrml/bridge/btc", default-features = false }
# funds
cxrml-financialrecords = { path = "../../cxrml/funds/financialrecords", default-features = false }
# exchange
cxrml-pendingorders = { path = "../../cxrml/exchange/pendingorders", default-features = false }
cxrml-matchorder = { path = "../../cxrml/exchange/matchorder", default-features = false }

[features]
default = []
Expand Down Expand Up @@ -63,7 +68,9 @@ std = [
"cxrml-tokenbalances/std",
"cxrml-financialrecords/std",
"cxrml-multisig/std",
"cxrml-bridge-btc/std"
"cxrml-bridge-btc/std",
"cxrml-pendingorders/std",
"cxrml-matchorder/std",
]

[profile.release]
Expand Down

0 comments on commit 85759df

Please sign in to comment.