Skip to content

Commit

Permalink
sort and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Feb 19, 2024
1 parent 0810b94 commit 2414dcb
Show file tree
Hide file tree
Showing 19 changed files with 61 additions and 77 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ members = [

[workspace.dependencies]
# local pin
encointer-meetup-validation = { path = "ceremonies/meetup-validation", default-features = false, version = "3.0.2" }
encointer-ceremonies-assignment = { path = "ceremonies/assignment", default-features = false, version = "3.0.2" }
encointer-meetup-validation = { path = "ceremonies/meetup-validation", default-features = false, version = "3.0.2" }
encointer-primitives = { path = "primitives", default-features = false, features = ["serde_derive"], version = "3.0.2" }
encointer-rpc = { path = "rpc", version = "3.0.2" }
ep-core = { path = "primitives/core", default-features = false, version = "3.0.2" }
Expand All @@ -48,16 +48,16 @@ pallet-encointer-communities-rpc-runtime-api = { path = "communities/rpc/runtime
# various
array-bytes = "6.1.0"
bs58 = { version = "0.4.0", default-features = false, features = ["alloc"] }
parity-scale-codec = { version = "3.6.4", default-features = false, features = [ "derive", "max-encoded-len"] }
crc = "2.1.0"
fixed = { package = "substrate-fixed", default-features = false, version = "0.5.9" }
geohash = { package = "substrate-geohash", version = "0.13.0" }
impl-serde = { version = "0.4.0", default-features = false }
impl-trait-for-tuples = { version = "0.2.2", default-features = false }
log = { version = "0.4.20", default-features = false }
parity-scale-codec = { version = "3.6.4", default-features = false, features = ["derive", "max-encoded-len"] }
parking_lot = "0.12.0"
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.188", default-features = false, features = [ "derive", "alloc" ] }
serde = { version = "1.0.188", default-features = false, features = ["derive", "alloc"] }
thiserror = "1.0.31"

# polkadot-sdk [no_std]
Expand All @@ -78,7 +78,7 @@ sp-runtime = { default-features = false, version = "28.0.0" }
sp-std = { default-features = false, version = "12.0.0" }

# rpc stuff [std]
jsonrpsee = { version = "0.16.3", features = ["client-core", "server", "macros" ] }
jsonrpsee = { version = "0.16.3", features = ["client-core", "server", "macros"] }
jsonrpsee-core = { version = "0.16.3" }
jsonrpsee-types = { version = "0.16.3" }
pallet-transaction-payment-rpc = { version = "27.0.0" }
Expand Down
2 changes: 0 additions & 2 deletions balances-tx-payment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ test-utils = { workspace = true }
default = ["std"]
std = [
"encointer-primitives/std",
# substrate deps
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-asset-tx-payment/std",
# encointer deps
"pallet-encointer-balances/std",
"pallet-encointer-ceremonies/std",
"pallet-transaction-payment/std",
Expand Down
2 changes: 1 addition & 1 deletion balances-tx-payment/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ repository = "https://github.com/encointer/pallets"
license = "GPL-3.0-or-later"

[dependencies]
parity-scale-codec = { workspace = true }
jsonrpsee = { workspace = true }
log = { workspace = true, features = ["std"] }
parity-scale-codec = { workspace = true }
parking_lot = { workspace = true }
thiserror = { workspace = true }

Expand Down
4 changes: 2 additions & 2 deletions balances-tx-payment/rpc/runtime-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ license = "GPL-3.0-or-later"
encointer-primitives = { workspace = true }

# substrate deps
parity-scale-codec = { workspace = true }
frame-support = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
sp-api = { workspace = true }
sp-std = { workspace = true }

[features]
default = ["std"]
std = [
"parity-scale-codec/std",
"encointer-primitives/std",
"frame-support/std",
"parity-scale-codec/std",
"scale-info/std",
"sp-api/std",
"sp-std/std",
Expand Down
6 changes: 2 additions & 4 deletions balances/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ license = "GPL-3.0-or-later"

[dependencies]
approx = { workspace = true, optional = true }
parity-scale-codec = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }

# local deps
Expand All @@ -34,15 +34,13 @@ test-utils = { workspace = true }
[features]
default = ["std"]
std = [
"parity-scale-codec/std",
# local deps
"encointer-primitives/std",
# substrate deps
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-asset-tx-payment/std",
"pallet-transaction-payment/std",
"parity-scale-codec/std",
"scale-info/std",
"sp-runtime/std",
"sp-std/std",
Expand Down
10 changes: 4 additions & 6 deletions bazaar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository = "https://github.com/encointer/pallets"
license = "GPL-3.0-or-later"

[dependencies]
parity-scale-codec = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }

# local deps
Expand All @@ -31,14 +31,12 @@ test-utils = { workspace = true }
[features]
default = ["std"]
std = [
"parity-scale-codec/std",
# local deps
"pallet-encointer-communities/std",
"encointer-primitives/std",
# substrate deps
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-encointer-communities/std",
"parity-scale-codec/std",
"scale-info/std",
"sp-core/std",
"sp-std/std",
Expand All @@ -52,6 +50,6 @@ runtime-benchmarks = [
]

try-runtime = [
"pallet-encointer-communities/try-runtime",
"frame-system/try-runtime",
"pallet-encointer-communities/try-runtime",
]
2 changes: 1 addition & 1 deletion bazaar/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ parking_lot = { workspace = true }
thiserror = { workspace = true }

# local deps
pallet-encointer-bazaar-rpc-runtime-api = { workspace = true }
encointer-primitives = { workspace = true }
encointer-rpc = { workspace = true }
pallet-encointer-bazaar-rpc-runtime-api = { workspace = true }

# substrate deps
sc-rpc = { workspace = true }
Expand Down
18 changes: 9 additions & 9 deletions ceremonies/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ repository = "https://github.com/encointer/pallets"
license = "GPL-3.0-or-later"

[dependencies]
parity-scale-codec = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }

# local deps
encointer-ceremonies-assignment = { workspace = true }
encointer-meetup-validation = { workspace = true }
encointer-meetup-validation = { workspace = true }
encointer-primitives = { workspace = true }
pallet-encointer-balances = { workspace = true }
pallet-encointer-communities = { workspace = true }
Expand Down Expand Up @@ -45,18 +45,18 @@ test-utils = { workspace = true }
[features]
default = ["std"]
std = [
"parity-scale-codec/std",
"pallet-encointer-balances/std",
"encointer-ceremonies-assignment/std",
"pallet-encointer-communities/std",
"encointer-meetup-validation/std",
"encointer-primitives/std",
"pallet-encointer-scheduler/std",
"frame-benchmarking/std",
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-encointer-balances/std",
"pallet-encointer-communities/std",
"pallet-encointer-scheduler/std",
"pallet-timestamp/std",
"parity-scale-codec/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
Expand All @@ -65,12 +65,12 @@ std = [
]

runtime-benchmarks = [
"pallet-encointer-balances/runtime-benchmarks",
"pallet-encointer-communities/runtime-benchmarks",
"pallet-encointer-scheduler/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-encointer-balances/runtime-benchmarks",
"pallet-encointer-communities/runtime-benchmarks",
"pallet-encointer-scheduler/runtime-benchmarks",
"sp-application-crypto",
]

Expand Down
2 changes: 1 addition & 1 deletion ceremonies/meetup-validation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ sp-core = { workspace = true, features = ["std"] }
[features]
default = ["std"]
std = [
"parity-scale-codec/std",
"encointer-primitives/std",
"parity-scale-codec/std",
"scale-info/std",
"serde/std",
"sp-runtime/std",
Expand Down
2 changes: 1 addition & 1 deletion ceremonies/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ parking_lot = { workspace = true }
thiserror = { workspace = true }

# local deps
pallet-encointer-ceremonies-rpc-runtime-api = { workspace = true }
encointer-primitives = { workspace = true }
encointer-rpc = { workspace = true }
pallet-encointer-ceremonies-rpc-runtime-api = { workspace = true }

# substrate deps
sc-rpc = { workspace = true }
Expand Down
14 changes: 5 additions & 9 deletions communities/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository = "https://github.com/encointer/pallets"
license = "GPL-3.0-or-later"

[dependencies]
parity-scale-codec = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }

# local deps
Expand All @@ -34,15 +34,13 @@ test-utils = { workspace = true }
[features]
default = ["std"]
std = [
"parity-scale-codec/std",
"pallet-encointer-balances/std",
# local deps
"encointer-primitives/std",
"pallet-encointer-scheduler/std",
# substrate deps
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-encointer-balances/std",
"pallet-encointer-scheduler/std",
"parity-scale-codec/std",
"scale-info/std",
"sp-io/std",
"sp-runtime/std",
Expand All @@ -54,11 +52,9 @@ runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",

]
try-runtime = [
"frame-system/try-runtime",
"pallet-encointer-balances/try-runtime",
"pallet-encointer-scheduler/try-runtime",
"frame-system/try-runtime",

]
20 changes: 10 additions & 10 deletions democracy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ license = "GPL-3.0-or-later"
publish = false

[dependencies]
parity-scale-codec = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }

# local deps
Expand Down Expand Up @@ -46,37 +46,37 @@ test-utils = { workspace = true }
[features]
default = ["std"]
std = [
"parity-scale-codec/std",
"pallet-encointer-balances/std",
"pallet-encointer-ceremonies/std",
"pallet-encointer-communities/std",
"encointer-primitives/std",
"pallet-encointer-scheduler/std",
"frame-benchmarking/std",
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-encointer-balances/std",
"pallet-encointer-ceremonies/std",
"pallet-encointer-communities/std",
"pallet-encointer-scheduler/std",
"pallet-timestamp/std",
"parity-scale-codec/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-std/std",
]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-encointer-balances/runtime-benchmarks",
"pallet-encointer-ceremonies/runtime-benchmarks",
"pallet-encointer-communities/runtime-benchmarks",
"pallet-encointer-scheduler/runtime-benchmarks",
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-application-crypto",
"sp-core",
]
try-runtime = [
"frame-system/try-runtime",
"pallet-encointer-balances/try-runtime",
"pallet-encointer-ceremonies/try-runtime",
"pallet-encointer-communities/try-runtime",
"pallet-encointer-scheduler/try-runtime",
"frame-system/try-runtime",
]
2 changes: 1 addition & 1 deletion faucet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ license = "GPL-3.0-or-later"

[dependencies]
approx = { workspace = true, optional = true }
parity-scale-codec = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }

# local deps
Expand Down
4 changes: 2 additions & 2 deletions primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ license = "GPL-3.0-or-later"

[dependencies]
bs58 = { workspace = true }
parity-scale-codec = { workspace = true }
crc = { workspace = true }
geohash = { workspace = true }
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }

Expand All @@ -39,9 +39,9 @@ full_crypto = ["sp-core/full_crypto"]
serde_derive = ["ep-core/serde_derive", "serde"]
std = [
"bs58/std",
"parity-scale-codec/std",
"ep-core/std",
"frame-support/std",
"parity-scale-codec/std",
"scale-info/std",
"serde/std",
"sp-core/full_crypto",
Expand Down
4 changes: 2 additions & 2 deletions primitives/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ license = "GPL-3.0-or-later"

[dependencies]
array-bytes = { workspace = true }
parity-scale-codec = { workspace = true }
fixed = { workspace = true }
impl-serde = { workspace = true, optional = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }

Expand All @@ -28,9 +28,9 @@ serde_json = { workspace = true }
default = ["serde_derive", "std"]
serde_derive = ["fixed/serde", "impl-serde", "serde"]
std = [
"parity-scale-codec/std",
"fixed/std",
"impl-serde/std",
"parity-scale-codec/std",
"scale-info/std",
"serde/std",
"sp-arithmetic/std",
Expand Down
Loading

0 comments on commit 2414dcb

Please sign in to comment.