Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devnet ready To Devnet #678

Merged
merged 27 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9a179bb
feature-gate hash
camfairchild Jul 12, 2024
5039e5b
use 1.10.0-rc2
camfairchild Jul 12, 2024
322752b
add feature
camfairchild Jul 12, 2024
78a71f9
lock file update
camfairchild Jul 15, 2024
fc0ccbd
add production just target
camfairchild Jul 15, 2024
b09b3e6
fmt
camfairchild Jul 15, 2024
7364832
clippy
camfairchild Jul 16, 2024
64aca95
benchmarking fix
camfairchild Jul 16, 2024
9ec6c4e
fmt
camfairchild Jul 16, 2024
893b1ec
use rc3 with new fix polkadot-sdk/pull/4117
camfairchild Jul 18, 2024
237634c
incl lock
camfairchild Jul 18, 2024
c80df3d
bump CI
sam0x17 Jul 18, 2024
4a4adfd
Merge branch 'main' into feat/check-metadata-hash-extension
camfairchild Jul 18, 2024
0c28f29
Merge branch 'devnet-ready' into feat/devnet-companion/check-metadata…
camfairchild Jul 19, 2024
662728b
Merge pull request #665 from opentensor/merge_hot_swap
unconst Jul 22, 2024
336321f
clean coldkey swap
Jul 22, 2024
da1a9d2
fix clippy warnings
camfairchild Jul 23, 2024
8e4bf4c
fmt
camfairchild Jul 23, 2024
118db38
Merge branch 'devnet-ready' of github.com:opentensor/subtensor into c…
Jul 23, 2024
751b396
Merge pull request #674 from opentensor/fix/clippy/devnet-ready/hotke…
distributedstatemachine Jul 23, 2024
cf9869d
pre merge
Jul 23, 2024
592b3ad
Merge branch 'devnet-ready' of github.com:opentensor/subtensor into c…
Jul 23, 2024
9b18c41
fmt and clippy
Jul 23, 2024
af453f4
Merge pull request #672 from opentensor/feat/devnet-companion/check-m…
unconst Jul 23, 2024
b82a101
Merge branch 'devnet-ready' of github.com:opentensor/subtensor into c…
Jul 23, 2024
6f923c9
clippy
Jul 23, 2024
a452e87
Merge pull request #677 from opentensor/clean_cold_swap
unconst Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
485 changes: 277 additions & 208 deletions Cargo.lock

Large diffs are not rendered by default.

139 changes: 70 additions & 69 deletions Cargo.toml

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ lint:
@echo "Running cargo clippy with automatic fixes on potentially dirty code..."
just clippy-fix
@echo "Running cargo clippy..."
just clippy
just clippy

production:
@echo "Running cargo build with metadata-hash generation..."
cargo +{{RUSTV}} build --profile production --features="runtime-benchmarks metadata-hash"
1 change: 1 addition & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sp-io = { workspace = true }
sp-timestamp = { workspace = true }
sp-inherents = { workspace = true }
sp-keyring = { workspace = true }
frame-metadata-hash-extension = { workspace = true }
frame-system = { workspace = true }
pallet-transaction-payment = { workspace = true }
pallet-commitments = { path = "../pallets/commitments" }
Expand Down
2 changes: 2 additions & 0 deletions node/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ pub fn create_benchmark_extrinsic(
pallet_transaction_payment::ChargeTransactionPayment::<runtime::Runtime>::from(0),
pallet_subtensor::SubtensorSignedExtension::<runtime::Runtime>::new(),
pallet_commitments::CommitmentsSignedExtension::<runtime::Runtime>::new(),
frame_metadata_hash_extension::CheckMetadataHash::<runtime::Runtime>::new(true),
);

let raw_payload = runtime::SignedPayload::from_raw(
Expand All @@ -152,6 +153,7 @@ pub fn create_benchmark_extrinsic(
(),
(),
(),
None,
),
);
let signature = raw_payload.using_encoded(|e| sender.sign(e));
Expand Down
8 changes: 4 additions & 4 deletions pallets/subtensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mod registration;
mod root;
mod serving;
mod staking;
mod swap;
mod swap_coldkey;
mod swap_hotkey;
mod uids;
mod utils;
Expand Down Expand Up @@ -726,7 +726,7 @@ pub mod pallet {
#[pallet::storage] // --- MAP ( netuid ) --> last_mechanism_step_block
pub type LastMechansimStepBlock<T> =
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultLastMechanismStepBlock<T>>;
#[pallet::storage] // --- MAP ( netuid ) --> subnet_owner
#[pallet::storage] // --- MAP ( netuid ) --> (cold) subnet_owner
pub type SubnetOwner<T: Config> =
StorageMap<_, Identity, u16, T::AccountId, ValueQuery, DefaultSubnetOwner<T>>;
#[pallet::storage] // --- MAP ( netuid ) --> subnet_locked
Expand Down Expand Up @@ -801,10 +801,10 @@ pub mod pallet {
#[pallet::storage] // --- ITEM ( tx_rate_limit )
pub type TxDelegateTakeRateLimit<T> =
StorageValue<_, u64, ValueQuery, DefaultTxDelegateTakeRateLimit<T>>;
#[pallet::storage] // --- MAP ( key ) --> last_block
#[pallet::storage] // --- MAP ( hotkey ) --> last_block
pub type LastTxBlock<T: Config> =
StorageMap<_, Identity, T::AccountId, u64, ValueQuery, DefaultLastTxBlock<T>>;
#[pallet::storage] // --- MAP ( key ) --> last_block
#[pallet::storage] // --- MAP ( hotkey ) --> last_block
pub type LastTxBlockDelegateTake<T: Config> =
StorageMap<_, Identity, T::AccountId, u64, ValueQuery, DefaultLastTxBlock<T>>;

Expand Down
Loading
Loading