Skip to content

Commit 9f92bb6

Browse files
committed
Taplo format
1 parent 00bd699 commit 9f92bb6

File tree

14 files changed

+612
-622
lines changed

14 files changed

+612
-622
lines changed

.config/taplo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# all options https://taplo.tamasfe.dev/configuration/formatter-options.html
22

3-
exclude = [
4-
"target/**",
5-
]
3+
exclude = ["target/**"]
64

75
# global rules
86
[formatting]

Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,16 @@ substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git
174174
[workspace]
175175
resolver = "2"
176176
members = [
177-
"node",
178-
"pallets/common",
179-
"pallets/relayer-set",
180-
"pallets/transaction-storage",
181-
"pallets/validator-set",
182-
"runtime",
183-
"runtimes/bulletin-polkadot",
184-
"runtimes/bulletin-polkadot-parachain",
185-
"runtimes/bulletin-westend",
186-
"runtimes/bulletin-westend/integration-tests",
177+
"node",
178+
"pallets/common",
179+
"pallets/relayer-set",
180+
"pallets/transaction-storage",
181+
"pallets/validator-set",
182+
"runtime",
183+
"runtimes/bulletin-polkadot",
184+
"runtimes/bulletin-polkadot-parachain",
185+
"runtimes/bulletin-westend",
186+
"runtimes/bulletin-westend/integration-tests",
187187
]
188188
[profile.release]
189189
# Polkadot runtime requires unwinding.

node/Cargo.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,25 @@ substrate-build-script-utils = { workspace = true }
8888
[features]
8989
# Dependencies that are only required if runtime benchmarking should be built.
9090
runtime-benchmarks = [
91-
"bulletin-polkadot-runtime/runtime-benchmarks",
92-
"frame-benchmarking-cli/runtime-benchmarks",
93-
"frame-benchmarking/runtime-benchmarks",
94-
"frame-support/runtime-benchmarks",
95-
"pallet-transaction-payment/runtime-benchmarks",
96-
"pallet-transaction-storage/runtime-benchmarks",
97-
"polkadot-bulletin-chain-runtime/runtime-benchmarks",
98-
"polkadot-primitives/runtime-benchmarks",
99-
"sc-service/runtime-benchmarks",
100-
"sp-runtime/runtime-benchmarks",
91+
"bulletin-polkadot-runtime/runtime-benchmarks",
92+
"frame-benchmarking-cli/runtime-benchmarks",
93+
"frame-benchmarking/runtime-benchmarks",
94+
"frame-support/runtime-benchmarks",
95+
"pallet-transaction-payment/runtime-benchmarks",
96+
"pallet-transaction-storage/runtime-benchmarks",
97+
"polkadot-bulletin-chain-runtime/runtime-benchmarks",
98+
"polkadot-primitives/runtime-benchmarks",
99+
"sc-service/runtime-benchmarks",
100+
"sp-runtime/runtime-benchmarks",
101101
]
102102
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
103103
# in the near future.
104104
try-runtime = [
105-
"bulletin-polkadot-runtime/try-runtime",
106-
"frame-support/try-runtime",
107-
"frame-try-runtime/try-runtime",
108-
"pallet-transaction-payment/try-runtime",
109-
"pallet-transaction-storage/try-runtime",
110-
"polkadot-bulletin-chain-runtime/try-runtime",
111-
"sp-runtime/try-runtime",
105+
"bulletin-polkadot-runtime/try-runtime",
106+
"frame-support/try-runtime",
107+
"frame-try-runtime/try-runtime",
108+
"pallet-transaction-payment/try-runtime",
109+
"pallet-transaction-storage/try-runtime",
110+
"polkadot-bulletin-chain-runtime/try-runtime",
111+
"sp-runtime/try-runtime",
112112
]

pallets/common/Cargo.toml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,11 @@ codec = { workspace = true }
1515
scale-info = { features = ["derive"], workspace = true }
1616

1717
polkadot-sdk-frame = { workspace = true, default-features = false, features = [
18-
"runtime",
18+
"runtime",
1919
] }
2020

2121
[features]
2222
default = ["std"]
23-
runtime-benchmarks = [
24-
"polkadot-sdk-frame/runtime-benchmarks",
25-
]
26-
std = [
27-
"codec/std",
28-
"polkadot-sdk-frame/std",
29-
"scale-info/std",
30-
]
31-
try-runtime = [
32-
"polkadot-sdk-frame/try-runtime",
33-
]
23+
runtime-benchmarks = ["polkadot-sdk-frame/runtime-benchmarks"]
24+
std = ["codec/std", "polkadot-sdk-frame/std", "scale-info/std"]
25+
try-runtime = ["polkadot-sdk-frame/try-runtime"]

pallets/relayer-set/Cargo.toml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,11 @@ log = { workspace = true, default-features = true }
1616
scale-info = { features = ["derive"], workspace = true }
1717

1818
polkadot-sdk-frame = { workspace = true, default-features = false, features = [
19-
"runtime",
19+
"runtime",
2020
] }
2121

2222
[features]
2323
default = ["std"]
24-
runtime-benchmarks = [
25-
"polkadot-sdk-frame/runtime-benchmarks",
26-
]
27-
std = [
28-
"codec/std",
29-
"log/std",
30-
"polkadot-sdk-frame/std",
31-
"scale-info/std",
32-
]
33-
try-runtime = [
34-
"polkadot-sdk-frame/try-runtime",
35-
]
24+
runtime-benchmarks = ["polkadot-sdk-frame/runtime-benchmarks"]
25+
std = ["codec/std", "log/std", "polkadot-sdk-frame/std", "scale-info/std"]
26+
try-runtime = ["polkadot-sdk-frame/try-runtime"]

pallets/transaction-storage/Cargo.toml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ scale-info = { features = ["derive"], workspace = true }
2020
tracing = { workspace = true }
2121

2222
polkadot-sdk-frame = { workspace = true, default-features = false, features = [
23-
"runtime",
23+
"runtime",
2424
] }
2525
sp-transaction-storage-proof = { workspace = true, default-features = false }
2626

@@ -30,20 +30,17 @@ pallets-common = { workspace = true }
3030
[features]
3131
default = ["std"]
3232
runtime-benchmarks = [
33-
"array-bytes",
34-
"pallets-common/runtime-benchmarks",
35-
"polkadot-sdk-frame/runtime-benchmarks",
33+
"array-bytes",
34+
"pallets-common/runtime-benchmarks",
35+
"polkadot-sdk-frame/runtime-benchmarks",
3636
]
3737
std = [
38-
"cid/std",
39-
"codec/std",
40-
"pallets-common/std",
41-
"polkadot-sdk-frame/std",
42-
"scale-info/std",
43-
"sp-transaction-storage-proof/std",
44-
"tracing/std",
45-
]
46-
try-runtime = [
47-
"pallets-common/try-runtime",
48-
"polkadot-sdk-frame/try-runtime",
38+
"cid/std",
39+
"codec/std",
40+
"pallets-common/std",
41+
"polkadot-sdk-frame/std",
42+
"scale-info/std",
43+
"sp-transaction-storage-proof/std",
44+
"tracing/std",
4945
]
46+
try-runtime = ["pallets-common/try-runtime", "polkadot-sdk-frame/try-runtime"]

pallets/validator-set/Cargo.toml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[package]
22
name = 'pallet-validator-set'
33
version = '1.0.0'
4-
authors = ['Gautam Dhameja <[email protected]>', 'Parity Technologies <[email protected]>']
4+
authors = [
5+
'Gautam Dhameja <[email protected]>',
6+
'Parity Technologies <[email protected]>',
7+
]
58
edition.workspace = true
69
repository.workspace = true
710
license = 'Apache-2.0'
@@ -12,11 +15,11 @@ log = { workspace = true, default-features = true }
1215
scale-info = { features = ["derive"], workspace = true }
1316

1417
polkadot-sdk-frame = { workspace = true, default-features = false, features = [
15-
"runtime",
18+
"runtime",
1619
] }
1720
sp-staking = { workspace = true, default-features = false }
1821
pallet-session = { workspace = true, default-features = false, features = [
19-
"historical",
22+
"historical",
2023
] }
2124

2225
[dev-dependencies]
@@ -26,22 +29,22 @@ pallets-common = { workspace = true, default-features = false }
2629
[features]
2730
default = ['std']
2831
runtime-benchmarks = [
29-
"pallet-session/runtime-benchmarks",
30-
"pallets-common/runtime-benchmarks",
31-
"polkadot-sdk-frame/runtime-benchmarks",
32-
"sp-staking/runtime-benchmarks",
32+
"pallet-session/runtime-benchmarks",
33+
"pallets-common/runtime-benchmarks",
34+
"polkadot-sdk-frame/runtime-benchmarks",
35+
"sp-staking/runtime-benchmarks",
3336
]
3437
std = [
35-
"log/std",
36-
"pallets-common/std",
37-
"sp-staking/std",
38-
'codec/std',
39-
'pallet-session/std',
40-
'polkadot-sdk-frame/std',
41-
'scale-info/std',
38+
"log/std",
39+
"pallets-common/std",
40+
"sp-staking/std",
41+
'codec/std',
42+
'pallet-session/std',
43+
'polkadot-sdk-frame/std',
44+
'scale-info/std',
4245
]
4346
try-runtime = [
44-
"pallet-session/try-runtime",
45-
"pallets-common/try-runtime",
46-
'polkadot-sdk-frame/try-runtime',
47+
"pallet-session/try-runtime",
48+
"pallets-common/try-runtime",
49+
'polkadot-sdk-frame/try-runtime',
4750
]

0 commit comments

Comments
 (0)