@@ -4,7 +4,7 @@ version = "0.1.0"
4
4
description = " Implementation of the bittensor blockchain"
5
5
authors = [" Substrate DevHub <https://github.com/substrate-developer-hub>" ]
6
6
homepage = " https://substrate.io/"
7
- edition = " 2021 "
7
+ edition = " 2024 "
8
8
license = " Unlicense"
9
9
publish = false
10
10
repository = " https://github.com/opentensor/subtensor"
@@ -23,21 +23,14 @@ rayon = "1.10"
23
23
24
24
[workspace ]
25
25
members = [
26
- " node" ,
27
- " pallets/commitments" ,
28
- " pallets/subtensor" ,
29
- " pallets/admin-utils" ,
30
- " pallets/collective" ,
31
- " pallets/registry" ,
32
- " primitives/*" ,
33
- " runtime" ,
34
- " support/tools" ,
35
- " support/macros" ,
36
- " support/linting" ,
37
- " support/procedural-fork" ,
38
- " pallets/drand" ,
26
+ " common" ,
27
+ " node" ,
28
+ " pallets/*" ,
29
+ " precompiles" ,
30
+ " primitives/*" ,
31
+ " runtime" ,
32
+ " support/*" ,
39
33
]
40
- exclude = [" support/procedural-fork" ]
41
34
resolver = " 2"
42
35
43
36
[workspace .lints .clippy ]
@@ -46,13 +39,29 @@ arithmetic-side-effects = "deny"
46
39
type_complexity = " allow"
47
40
unwrap-used = " deny"
48
41
manual_inspect = " allow"
42
+ useless_conversion = " allow" # until polkadot is patched
49
43
50
44
[workspace .dependencies ]
45
+ pallet-admin-utils = { default-features = false , path = " pallets/admin-utils" }
46
+ pallet-collective = { default-features = false , path = " pallets/collective" }
47
+ pallet-commitments = { default-features = false , path = " pallets/commitments" }
48
+ pallet-registry = { default-features = false , path = " pallets/registry" }
49
+ pallet-subtensor = { default-features = false , path = " pallets/subtensor" }
50
+ subtensor-custom-rpc = { default-features = false , path = " pallets/subtensor/rpc" }
51
+ subtensor-custom-rpc-runtime-api = { default-features = false , path = " pallets/subtensor/runtime-api" }
52
+ subtensor-precompiles = { default-features = false , path = " precompiles" }
53
+ subtensor-runtime-common = { default-features = false , path = " common" }
54
+ node-subtensor-runtime = { default-features = false , path = " runtime" }
55
+
51
56
async-trait = " 0.1"
52
57
cargo-husky = { version = " 1" , default-features = false }
53
58
clap = " 4.5.4"
54
- codec = { package = " parity-scale-codec" , version = " 3.6.1" , default-features = false , features = [" derive" ] }
55
- ed25519-dalek = { version = " 2.1.0" , default-features = false , features = [" alloc" ] }
59
+ codec = { package = " parity-scale-codec" , version = " 3.6.1" , default-features = false , features = [
60
+ " derive" ,
61
+ ] }
62
+ ed25519-dalek = { version = " 2.1.0" , default-features = false , features = [
63
+ " alloc" ,
64
+ ] }
56
65
enumflags2 = " 0.7.9"
57
66
futures = " 0.3.30"
58
67
hex = { version = " 0.4" , default-features = false }
@@ -63,7 +72,9 @@ memmap2 = "0.9.4"
63
72
ndarray = { version = " 0.15.6" , default-features = false }
64
73
parity-util-mem = " 0.12.0"
65
74
rand = " 0.8.5"
66
- scale-codec = { package = " parity-scale-codec" , version = " 3.6.12" , default-features = false , features = [" derive" ] }
75
+ scale-codec = { package = " parity-scale-codec" , version = " 3.6.12" , default-features = false , features = [
76
+ " derive" ,
77
+ ] }
67
78
scale-info = { version = " 2.11.2" , default-features = false }
68
79
serde = { version = " 1.0.214" , default-features = false }
69
80
serde-tuple-vec-map = { version = " 1.0.1" , default-features = false }
@@ -73,11 +84,11 @@ serde_with = { version = "=2.0.0", default-features = false }
73
84
smallvec = " 1.13.2"
74
85
litep2p = { git = " https://github.com/paritytech/litep2p" , tag = " v0.7.0" }
75
86
syn = { version = " 2.0.87" , features = [
76
- " full" ,
77
- " visit-mut" ,
78
- " visit" ,
79
- " extra-traits" ,
80
- " parsing" ,
87
+ " full" ,
88
+ " visit-mut" ,
89
+ " visit" ,
90
+ " extra-traits" ,
91
+ " parsing" ,
81
92
] }
82
93
quote = " 1"
83
94
proc-macro2 = { version = " 1" , features = [" span-locations" ] }
@@ -181,7 +192,9 @@ fc-consensus = { git = "https://github.com/opentensor/frontier", rev = "635bdac8
181
192
fp-consensus = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false }
182
193
fp-dynamic-fee = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false }
183
194
fc-api = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false }
184
- fc-rpc = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false , features = [" rpc-binary-search-estimate" ]}
195
+ fc-rpc = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false , features = [
196
+ " rpc-binary-search-estimate" ,
197
+ ] }
185
198
fc-rpc-core = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false }
186
199
fc-mapping-sync = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false }
187
200
precompile-utils = { git = " https://github.com/opentensor/frontier" , rev = " 635bdac882" , default-features = false }
@@ -199,21 +212,34 @@ pallet-hotfix-sufficients = { git = "https://github.com/opentensor/frontier", re
199
212
200
213
# DRAND
201
214
pallet-drand = { path = " pallets/drand" , default-features = false }
202
- sp-crypto-ec-utils = { git = " https://github.com/paritytech/polkadot-sdk.git" , tag = " polkadot-stable2409" , features = [" bls12-381" ] }
203
- getrandom = { version = " 0.2.15" , features = [" custom" ], default-features = false }
204
- sp-keystore = { git = " https://github.com/paritytech/polkadot-sdk.git" , tag = " polkadot-stable2409" , default-features = false }
215
+ sp-crypto-ec-utils = { git = " https://github.com/paritytech/polkadot-sdk.git" , tag = " polkadot-stable2409" , features = [
216
+ " bls12-381" ,
217
+ ] }
218
+ getrandom = { version = " 0.2.15" , features = [
219
+ " custom" ,
220
+ ], default-features = false }
221
+ sp-keystore = { git = " https://github.com/paritytech/polkadot-sdk.git" , tag = " polkadot-stable2409" , default-features = false }
205
222
w3f-bls = { version = " =0.1.3" , default-features = false }
206
- ark-crypto-primitives = { version = " 0.4.0" , default-features = false , features = [ " r1cs" , " snark" ] }
207
- ark-scale = { version = " 0.0.11" , default-features = false , features = [" hazmat" ] }
223
+ ark-crypto-primitives = { version = " 0.4.0" , default-features = false , features = [
224
+ " r1cs" ,
225
+ " snark" ,
226
+ ] }
227
+ ark-scale = { version = " 0.0.11" , default-features = false , features = [
228
+ " hazmat" ,
229
+ ] }
208
230
sp-ark-bls12-381 = { git = " https://github.com/paritytech/substrate-curves" , default-features = false }
209
- ark-bls12-381 = { version = " 0.4.0" , features = [" curve" ], default-features = false }
210
- ark-serialize = { version = " 0.4.0" , features = [ " derive" ], default-features = false }
231
+ ark-bls12-381 = { version = " 0.4.0" , features = [
232
+ " curve" ,
233
+ ], default-features = false }
234
+ ark-serialize = { version = " 0.4.0" , features = [
235
+ " derive" ,
236
+ ], default-features = false }
211
237
ark-ff = { version = " 0.4.0" , default-features = false }
212
238
ark-ec = { version = " 0.4.0" , default-features = false }
213
239
ark-std = { version = " 0.4.0" , default-features = false }
214
240
anyhow = " 1.0.81"
215
241
sha2 = { version = " 0.10.8" , default-features = false }
216
- rand_chacha = { version = " 0.3.1" , default-features = false }
242
+ rand_chacha = { version = " 0.3.1" , default-features = false }
217
243
tle = { git = " https://github.com/ideal-lab5/timelock" , rev = " 5416406cfd32799e31e1795393d4916894de4468" , default-features = false }
218
244
219
245
frame-metadata = " 16"
@@ -232,11 +258,11 @@ codegen-units = 1
232
258
[features ]
233
259
default = []
234
260
try-runtime = [
235
- " node-subtensor/try-runtime" ,
236
- " node-subtensor-runtime/try-runtime" ,
261
+ " node-subtensor/try-runtime" ,
262
+ " node-subtensor-runtime/try-runtime" ,
237
263
]
238
264
runtime-benchmarks = [
239
- " node-subtensor/runtime-benchmarks" ,
240
- " node-subtensor-runtime/runtime-benchmarks" ,
265
+ " node-subtensor/runtime-benchmarks" ,
266
+ " node-subtensor-runtime/runtime-benchmarks" ,
241
267
]
242
268
metadata-hash = [" node-subtensor-runtime/metadata-hash" ]
0 commit comments