Skip to content

Commit 8f2b47e

Browse files
committed
replace _otf with _subtensor_
1 parent eb88056 commit 8f2b47e

File tree

20 files changed

+130
-130
lines changed

20 files changed

+130
-130
lines changed

Cargo.lock

Lines changed: 60 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ useless_conversion = "allow" # until polkadot is patched
5050
[workspace.dependencies]
5151
node-subtensor-runtime = { path = "runtime", default-features = false }
5252
pallet-admin-utils = { path = "pallets/admin-utils", default-features = false }
53-
pallet-collective-otf = { path = "pallets/collective", default-features = false }
53+
pallet-subtensor-collective = { path = "pallets/collective", default-features = false }
5454
pallet-commitments = { path = "pallets/commitments", default-features = false }
5555
pallet-registry = { path = "pallets/registry", default-features = false }
5656
pallet-crowdloan = { path = "pallets/crowdloan", default-features = false }
@@ -124,8 +124,8 @@ frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-s
124124
frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
125125
frame-metadata = { version = "20.0.0", default-features = false }
126126

127-
pallet-proxy-otf = { path = "pallets/proxy", default-features = false }
128-
pallet-utility-otf = { path = "pallets/utility", default-features = false }
127+
pallet-subtensor-proxy = { path = "pallets/proxy", default-features = false }
128+
pallet-subtensor-utility = { path = "pallets/utility", default-features = false }
129129
pallet-babe = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
130130
pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
131131
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }

pallets/collective/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "pallet-collective-otf"
2+
name = "pallet-subtensor-collective"
33
version = "4.0.0-dev"
44
authors = ["Parity Technologies <[email protected]>, Opentensor Technologies"]
55
edition.workspace = true

pallets/proxy/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "pallet-proxy-otf"
2+
name = "pallet-subtensor-proxy"
33
version = "38.0.0"
44
authors = ["Bittensor Nucleus Team"]
55
edition.workspace = true
@@ -26,7 +26,7 @@ subtensor-macros.workspace = true
2626

2727
[dev-dependencies]
2828
pallet-balances = { workspace = true, default-features = true }
29-
pallet-utility-otf = { workspace = true, default-features = true }
29+
pallet-subtensor-utility = { workspace = true, default-features = true }
3030
sp-core = { workspace = true, default-features = true }
3131

3232
[features]
@@ -46,12 +46,12 @@ runtime-benchmarks = [
4646
"frame-system/runtime-benchmarks",
4747
"sp-runtime/runtime-benchmarks",
4848
"pallet-balances/runtime-benchmarks",
49-
"pallet-utility-otf/runtime-benchmarks",
49+
"pallet-subtensor-utility/runtime-benchmarks",
5050
]
5151
try-runtime = [
5252
"frame-support/try-runtime",
5353
"frame-system/try-runtime",
5454
"sp-runtime/try-runtime",
5555
"pallet-balances/try-runtime",
56-
"pallet-utility-otf/try-runtime",
56+
"pallet-subtensor-utility/try-runtime",
5757
]

pallets/proxy/src/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ impl Config for Test {
133133
use super::{Call as ProxyCall, Event as ProxyEvent};
134134
use frame_system::Call as SystemCall;
135135
use pallet_balances::{Call as BalancesCall, Event as BalancesEvent};
136-
use pallet_utility_otf as pallet_utility;
137-
use pallet_utility_otf::{Call as UtilityCall, Event as UtilityEvent};
136+
use pallet_subtensor_utility as pallet_utility;
137+
use pallet_subtensor_utility::{Call as UtilityCall, Event as UtilityEvent};
138138

139139
type SystemError = frame_system::Error<Test>;
140140

pallets/subtensor/Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ libsecp256k1.workspace = true
3333
log.workspace = true
3434
substrate-fixed.workspace = true
3535
pallet-transaction-payment.workspace = true
36-
pallet-utility-otf.workspace = true
36+
pallet-subtensor-utility.workspace = true
3737
ndarray.workspace = true
3838
hex.workspace = true
3939
share-pool.workspace = true
@@ -44,7 +44,7 @@ runtime-common.workspace = true
4444
subtensor-runtime-common = { workspace = true, features = ["approx"] }
4545

4646
pallet-drand.workspace = true
47-
pallet-collective-otf.workspace = true
47+
pallet-subtensor-collective.workspace = true
4848
pallet-membership.workspace = true
4949
hex-literal.workspace = true
5050
num-traits = { workspace = true, features = ["libm"] }
@@ -54,7 +54,7 @@ w3f-bls.workspace = true
5454
sha2.workspace = true
5555
rand_chacha.workspace = true
5656
pallet-crowdloan.workspace = true
57-
pallet-proxy-otf.workspace = true
57+
pallet-subtensor-proxy.workspace = true
5858

5959
[dev-dependencies]
6060
pallet-balances = { workspace = true, features = ["std"] }
@@ -81,14 +81,14 @@ std = [
8181
"log/std",
8282
"num-traits/std",
8383
"pallet-balances/std",
84-
"pallet-collective-otf/std",
84+
"pallet-subtensor-collective/std",
8585
"pallet-drand/std",
8686
"pallet-membership/std",
8787
"pallet-preimage/std",
8888
"pallet-scheduler/std",
8989
"pallet-subtensor-swap/std",
9090
"pallet-transaction-payment/std",
91-
"pallet-utility-otf/std",
91+
"pallet-subtensor-utility/std",
9292
"rand_chacha/std",
9393
"safe-math/std",
9494
"scale-info/std",
@@ -113,29 +113,29 @@ std = [
113113
"sha2/std",
114114
"share-pool/std",
115115
"subtensor-runtime-common/std",
116-
"pallet-proxy-otf/std",
116+
"pallet-subtensor-proxy/std",
117117
"pallet-crowdloan/std",
118118
"runtime-common/std",
119-
"ndarray/std"
119+
"ndarray/std",
120120
]
121121
default = ["std"]
122122
runtime-benchmarks = [
123123
"frame-benchmarking/runtime-benchmarks",
124124
"frame-support/runtime-benchmarks",
125125
"frame-system/runtime-benchmarks",
126126
"pallet-balances/runtime-benchmarks",
127-
"pallet-collective-otf/runtime-benchmarks",
127+
"pallet-subtensor-collective/runtime-benchmarks",
128128
"pallet-drand/runtime-benchmarks",
129129
"pallet-membership/runtime-benchmarks",
130130
"pallet-preimage/runtime-benchmarks",
131131
"pallet-scheduler/runtime-benchmarks",
132132
"pallet-subtensor-swap/runtime-benchmarks",
133133
"pallet-transaction-payment/runtime-benchmarks",
134-
"pallet-proxy-otf/runtime-benchmarks",
134+
"pallet-subtensor-proxy/runtime-benchmarks",
135135
"pallet-crowdloan/runtime-benchmarks",
136-
"pallet-utility-otf/runtime-benchmarks",
136+
"pallet-subtensor-utility/runtime-benchmarks",
137137
"sp-runtime/runtime-benchmarks",
138-
"runtime-common/runtime-benchmarks"
138+
"runtime-common/runtime-benchmarks",
139139
]
140140
try-runtime = [
141141
"frame-support/try-runtime",
@@ -145,13 +145,13 @@ try-runtime = [
145145
"pallet-preimage/try-runtime",
146146
"pallet-scheduler/try-runtime",
147147
"pallet-transaction-payment/try-runtime",
148-
"pallet-utility-otf/try-runtime",
148+
"pallet-subtensor-utility/try-runtime",
149149
"sp-runtime/try-runtime",
150-
"pallet-collective-otf/try-runtime",
150+
"pallet-subtensor-collective/try-runtime",
151151
"pallet-drand/try-runtime",
152-
"pallet-proxy-otf/try-runtime",
152+
"pallet-subtensor-proxy/try-runtime",
153153
"pallet-crowdloan/try-runtime",
154-
"runtime-common/try-runtime"
154+
"runtime-common/try-runtime",
155155
]
156156
pow-faucet = []
157157
fast-runtime = ["subtensor-runtime-common/fast-runtime"]

pallets/subtensor/src/tests/batch_tx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use frame_support::{
44
traits::{Contains, Currency},
55
};
66
use frame_system::Config;
7-
use pallet_utility_otf as pallet_utility;
7+
use pallet_subtensor_utility as pallet_utility;
88
use sp_core::U256;
99

1010
// SKIP_WASM_BUILD=1 RUST_LOG=debug cargo test --package pallet-subtensor --lib -- tests::batch_tx::test_batch_txs --exact --show-output --nocapture

pallets/subtensor/src/tests/mock.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ use frame_support::{
1515
};
1616
use frame_system as system;
1717
use frame_system::{EnsureNever, EnsureRoot, RawOrigin, limits, offchain::CreateTransactionBase};
18-
use pallet_collective_otf as pallet_collective;
19-
use pallet_collective_otf::MemberCount;
20-
use pallet_utility_otf as pallet_utility;
18+
use pallet_subtensor_collective as pallet_collective;
19+
use pallet_subtensor_collective::MemberCount;
20+
use pallet_subtensor_utility as pallet_utility;
2121
use sp_core::{ConstU64, Get, H256, U256, offchain::KeyTypeId};
2222
use sp_runtime::Perbill;
2323
use sp_runtime::{

0 commit comments

Comments
 (0)