Skip to content

Commit 96b4982

Browse files
Merge branch 'devnet-ready' into encrypt
2 parents 162453e + fe5f5aa commit 96b4982

File tree

3 files changed

+17
-60
lines changed

3 files changed

+17
-60
lines changed

.github/workflows/check-rust.yml

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -254,57 +254,8 @@ jobs:
254254
with:
255255
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
256256

257-
- name: cargo test --workspace
258-
run: cargo test --workspace
259-
260-
# runs cargo test --workspace --features=runtime-benchmarks
261-
cargo-test-benchmarks:
262-
name: cargo test w/benchmarks
263-
runs-on: SubtensorCI
264-
strategy:
265-
matrix:
266-
rust-branch:
267-
- stable
268-
rust-target:
269-
- x86_64-unknown-linux-gnu
270-
# - x86_64-apple-darwin
271-
os:
272-
- ubuntu-latest
273-
# - macos-latest
274-
include:
275-
- os: ubuntu-latest
276-
# - os: macos-latest
277-
env:
278-
RELEASE_NAME: development
279-
# RUSTFLAGS: -A warnings
280-
RUSTV: ${{ matrix.rust-branch }}
281-
RUST_BACKTRACE: full
282-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
283-
SKIP_WASM_BUILD: 1
284-
TARGET: ${{ matrix.rust-target }}
285-
steps:
286-
- name: Check-out repository under $GITHUB_WORKSPACE
287-
uses: actions/checkout@v4
288-
289-
- name: Install dependencies
290-
run: |
291-
sudo apt-get update &&
292-
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
293-
294-
- name: Install Rust ${{ matrix.rust-branch }}
295-
uses: actions-rs/[email protected]
296-
with:
297-
toolchain: ${{ matrix.rust-branch }}
298-
components: rustfmt, clippy
299-
profile: minimal
300-
301-
- name: Utilize Rust shared cached
302-
uses: Swatinem/[email protected]
303-
with:
304-
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
305-
306-
- name: cargo test --workspace --features=runtime-benchmarks
307-
run: cargo test --workspace --features=runtime-benchmarks
257+
- name: cargo test --workspace --all-features
258+
run: cargo test --workspace --all-features
308259

309260
# ensures cargo fix has no trivial changes that can be applied
310261
cargo-fix:

runtime/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ pub enum ProxyType {
629629
Registration,
630630
Transfer,
631631
SmallTransfer,
632+
RootWeights,
632633
}
633634
// Transfers below SMALL_TRANSFER_LIMIT are considered small transfers
634635
pub const SMALL_TRANSFER_LIMIT: Balance = 500_000_000; // 0.5 TAO
@@ -673,6 +674,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
673674
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::root_register { .. })
674675
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
675676
| RuntimeCall::Triumvirate(..)
677+
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
676678
),
677679
ProxyType::Triumvirate => matches!(
678680
c,
@@ -695,6 +697,10 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
695697
RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
696698
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::register { .. })
697699
),
700+
ProxyType::RootWeights => matches!(
701+
c,
702+
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
703+
),
698704
}
699705
}
700706
fn is_superset(&self, o: &Self) -> bool {

scripts/publish.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
#!/bin/bash
22
set -ex
33
cd support/macros
4-
cargo publish
4+
cargo publish --token $1
55
cd ../..
66
cd pallets/commitments
7-
cargo publish
7+
cargo publish --token $1
88
cd ..
99
cd collective
10-
cargo publish
10+
cargo publish --token $1
1111
cd ..
1212
cd registry
13-
cargo publish
13+
cargo publish --token $1
1414
cd ..
1515
cd subtensor
16-
cargo publish
16+
cargo publish --token $1
1717
cd runtime-api
18-
cargo publish
18+
cargo publish --token $1
1919
cd ../..
2020
cd admin-utils
21-
cargo publish
21+
cargo publish --token $1
2222
cd ../..
2323
cd runtime
24-
cargo publish
24+
cargo publish --token $1
2525
cd ..
2626
cd node
27-
cargo publish
27+
cargo publish --token $1
2828
echo "published successfully."

0 commit comments

Comments
 (0)