Skip to content

Commit 51c47b4

Browse files
committed
Merge branch 'devnet-ready' into feat/solidity-get-stake
2 parents 8647528 + 80150de commit 51c47b4

File tree

118 files changed

+57956
-107537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+57956
-107537
lines changed

.github/workflows/cargo-audit.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,11 @@ jobs:
2323
sudo apt-get update &&
2424
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
2525
26-
- name: Install Rust Stable
27-
uses: actions-rs/[email protected]
28-
with:
29-
toolchain: stable
30-
components: rustfmt, clippy
31-
profile: minimal
32-
33-
- name: Utilize Shared Rust Cache
34-
uses: Swatinem/[email protected]
35-
with:
36-
key: ubuntu-latest-${{ env.RUST_BIN_DIR }}
37-
3826
- name: Install cargo-audit
39-
run: cargo install --version 0.20.1 cargo-audit
27+
run: cargo install --version 0.20.1 --force cargo-audit
28+
29+
- name: Display cargo-audit --version
30+
run: cargo audit --version
4031

4132
- name: cargo audit
4233
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this

.github/workflows/check-devnet.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
sudo apt-get install -y curl clang curl libssl-dev llvm \
2121
libudev-dev protobuf-compiler
2222
23-
- name: Set up Rust Toolchain
24-
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
25-
2623
- name: Install substrate-spec-version
2724
run: cargo install substrate-spec-version
2825

.github/workflows/check-docker.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build Docker Image
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: SubtensorCI
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up QEMU
15+
uses: docker/setup-qemu-action@v2
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v2
19+
20+
- name: Build Docker Image
21+
run: docker build .

.github/workflows/check-finney.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
sudo apt-get install -y curl clang curl libssl-dev llvm \
2121
libudev-dev protobuf-compiler
2222
23-
- name: Set up Rust Toolchain
24-
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
25-
2623
- name: Install substrate-spec-version
2724
run: cargo install substrate-spec-version
2825

.github/workflows/check-rust.yml

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ jobs:
4343
env:
4444
RELEASE_NAME: development
4545
# RUSTFLAGS: -A warnings
46-
RUSTV: ${{ matrix.rust-branch }}
4746
RUST_BACKTRACE: full
48-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
4947
SKIP_WASM_BUILD: 1
5048
TARGET: ${{ matrix.rust-target }}
5149
steps:
@@ -55,10 +53,10 @@ jobs:
5553
- name: Install dependencies
5654
run: sudo apt-get update && sudo apt-get install -y build-essential
5755

58-
- name: Install Rust ${{ matrix.rust-branch }}
56+
- name: Install Rust Nightly
5957
uses: actions-rs/[email protected]
6058
with:
61-
toolchain: ${{ matrix.rust-branch }}
59+
toolchain: nightly
6260
components: rustfmt
6361
profile: minimal
6462

@@ -84,11 +82,10 @@ jobs:
8482
env:
8583
RELEASE_NAME: development
8684
# RUSTFLAGS: -A warnings
87-
RUSTV: ${{ matrix.rust-branch }}
8885
RUST_BACKTRACE: full
89-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
9086
SKIP_WASM_BUILD: 1
9187
TARGET: ${{ matrix.rust-target }}
88+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
9289
steps:
9390
- name: Check-out repository under $GITHUB_WORKSPACE
9491
uses: actions/checkout@v4
@@ -98,13 +95,6 @@ jobs:
9895
sudo apt-get update &&
9996
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
10097
101-
- name: Install Rust ${{ matrix.rust-branch }}
102-
uses: actions-rs/[email protected]
103-
with:
104-
toolchain: ${{ matrix.rust-branch }}
105-
components: rustfmt, clippy
106-
profile: minimal
107-
10898
- name: Utilize Shared Rust Cache
10999
uses: Swatinem/[email protected]
110100
with:
@@ -128,12 +118,11 @@ jobs:
128118
# - macos-latest
129119
env:
130120
RELEASE_NAME: development
131-
RUSTV: ${{ matrix.rust-branch }}
132121
RUSTFLAGS: -D warnings
133122
RUST_BACKTRACE: full
134-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
135123
SKIP_WASM_BUILD: 1
136124
TARGET: ${{ matrix.rust-target }}
125+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
137126
steps:
138127
- name: Check-out repository under $GITHUB_WORKSPACE
139128
uses: actions/checkout@v4
@@ -166,8 +155,6 @@ jobs:
166155
runs-on: SubtensorCI
167156
strategy:
168157
matrix:
169-
rust-branch:
170-
- stable
171158
rust-target:
172159
- x86_64-unknown-linux-gnu
173160
# - x86_64-apple-darwin
@@ -180,7 +167,6 @@ jobs:
180167
env:
181168
RELEASE_NAME: development
182169
# RUSTFLAGS: -A warnings
183-
RUSTV: ${{ matrix.rust-branch }}
184170
RUST_BACKTRACE: full
185171
RUST_BIN_DIR: target/${{ matrix.rust-target }}
186172
SKIP_WASM_BUILD: 1
@@ -194,13 +180,6 @@ jobs:
194180
sudo apt-get update &&
195181
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
196182
197-
- name: Install Rust ${{ matrix.rust-branch }}
198-
uses: actions-rs/[email protected]
199-
with:
200-
toolchain: ${{ matrix.rust-branch }}
201-
components: rustfmt, clippy
202-
profile: minimal
203-
204183
- name: Utilize Shared Rust Cache
205184
uses: Swatinem/[email protected]
206185
with:
@@ -215,8 +194,6 @@ jobs:
215194
runs-on: SubtensorCI
216195
strategy:
217196
matrix:
218-
rust-branch:
219-
- stable
220197
rust-target:
221198
- x86_64-unknown-linux-gnu
222199
# - x86_64-apple-darwin
@@ -229,7 +206,6 @@ jobs:
229206
env:
230207
RELEASE_NAME: development
231208
# RUSTFLAGS: -A warnings
232-
RUSTV: ${{ matrix.rust-branch }}
233209
RUST_BACKTRACE: full
234210
RUST_BIN_DIR: target/${{ matrix.rust-target }}
235211
SKIP_WASM_BUILD: 1
@@ -243,13 +219,6 @@ jobs:
243219
sudo apt-get update &&
244220
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
245221
246-
- name: Install Rust ${{ matrix.rust-branch }}
247-
uses: actions-rs/[email protected]
248-
with:
249-
toolchain: ${{ matrix.rust-branch }}
250-
components: rustfmt, clippy
251-
profile: minimal
252-
253222
- name: Utilize Rust shared cached
254223
uses: Swatinem/[email protected]
255224
with:
@@ -278,7 +247,6 @@ jobs:
278247
env:
279248
RELEASE_NAME: development
280249
# RUSTFLAGS: -A warnings
281-
RUSTV: ${{ matrix.rust-branch }}
282250
RUST_BACKTRACE: full
283251
RUST_BIN_DIR: target/${{ matrix.rust-target }}
284252
SKIP_WASM_BUILD: 1
@@ -292,13 +260,6 @@ jobs:
292260
sudo apt-get update &&
293261
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
294262
295-
- name: Install Rust ${{ matrix.rust-branch }}
296-
uses: actions-rs/[email protected]
297-
with:
298-
toolchain: ${{ matrix.rust-branch }}
299-
components: rustfmt, clippy
300-
profile: minimal
301-
302263
- name: Utilize Rust shared cached
303264
uses: Swatinem/[email protected]
304265
with:
@@ -322,12 +283,6 @@ jobs:
322283
runs-on: SubtensorCI
323284

324285
steps:
325-
- name: Install stable Rust
326-
uses: actions-rs/toolchain@v1
327-
with:
328-
profile: minimal
329-
toolchain: stable
330-
331286
- name: Install Zepter
332287
run: cargo install --locked -q zepter && zepter --version
333288

.github/workflows/check-testnet.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
sudo apt-get install -y curl clang curl libssl-dev llvm \
2121
libudev-dev protobuf-compiler
2222
23-
- name: Set up Rust Toolchain
24-
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
25-
2623
- name: Install substrate-spec-version
2724
run: cargo install substrate-spec-version
2825

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Publish Docker Image
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read

.github/workflows/hotfixes.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
COMMENT_BODY=$(cat <<EOF
3939
## 🚨🚨🚨 HOTFIX DETECTED 🚨🚨🚨
4040
41-
It looks like you are trying to merge a hotfix PR into `main`. If this isn't what you wanted to do, and you just wanted to make a regular PR, please close this PR, base your changes off the `devnet-ready` branch and open a new PR into `devnet ready`.
41+
It looks like you are trying to merge a hotfix PR into \`main\`. If this isn't what you wanted to do, and you just wanted to make a regular PR, please close this PR, base your changes off the \`devnet-ready\` branch and open a new PR into \`devnet ready\`.
4242
4343
If you _are_ trying to merge a hotfix PR, please complete the following essential steps:
44-
1. [ ] go ahead and get this PR into `main` merged, so we can get the change in as quickly as possible!
45-
2. [ ] merge `main` into `testnet`, bumping `spec_version`
46-
3. [ ] deploy `testnet`
47-
4. [ ] merge `testnet` into `devnet`, bumping `spec_version`
48-
5. [ ] deploy `devnet`
49-
6. [ ] merge `devnet` into `devnet-ready`
44+
1. [ ] go ahead and get this PR into \`main\` merged, so we can get the change in as quickly as possible!
45+
2. [ ] merge \`main\` into \`testnet\`, bumping \`spec_version\`
46+
3. [ ] deploy \`testnet\`
47+
4. [ ] merge \`testnet\` into \`devnet\`, bumping \`spec_version\`
48+
5. [ ] deploy \`devnet\`
49+
6. [ ] merge \`devnet\` into \`devnet-ready\`
5050
5151
5252
If you do not complete these steps, your hotfix may be inadvertently removed in the future when branches are promoted to \`main\`, so it is essential that you do so.

.github/workflows/try-runtime.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: SubtensorCI
1515
steps:
1616
- name: Checkout sources
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Run Try Runtime Checks
2020
uses: "paritytech/[email protected]"
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: SubtensorCI
3030
steps:
3131
- name: Checkout sources
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333

3434
- name: Run Try Runtime Checks
3535
uses: "paritytech/[email protected]"
@@ -49,6 +49,6 @@ jobs:
4949
uses: "paritytech/[email protected]"
5050
with:
5151
runtime-package: "node-subtensor-runtime"
52-
node-uri: "wss://archive.chain.opentensor.ai:443"
52+
node-uri: "wss://archive.dev.opentensor.ai:443"
5353
checks: "all"
5454
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/update-chainspec.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ concurrency:
55
cancel-in-progress: true
66

77
on:
8-
push:
9-
branches: [main, testnet, staging, staging-ready]
8+
pull_request:
109

1110
workflow_dispatch:
1211
inputs:
@@ -24,43 +23,35 @@ jobs:
2423
runs-on: SubtensorCI
2524
permissions:
2625
contents: write
26+
if: >
27+
github.event.pull_request.head.ref != 'devnet-ready' &&
28+
github.event.pull_request.head.ref != 'devnet' &&
29+
github.event.pull_request.head.ref != 'testnet' &&
30+
github.event.pull_request.head.ref != 'main'
2731
2832
strategy:
2933
matrix:
30-
rust-branch:
31-
- nightly-2024-03-05
3234
rust-target:
3335
- x86_64-unknown-linux-gnu
3436
os:
3537
- ubuntu-latest
3638
include:
3739
- os: ubuntu-latest
3840
env:
39-
RELEASE_NAME: development
40-
RUSTV: ${{ matrix.rust-branch }}
4141
RUST_BACKTRACE: full
42-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
43-
TARGET: ${{ matrix.rust-target }}
4442
steps:
4543
- name: Check-out repository under $GITHUB_WORKSPACE
46-
uses: actions/checkout@v2
44+
uses: actions/checkout@v4
4745

4846
- name: Install dependencies
4947
run: |
5048
sudo apt-get update &&
5149
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
5250
53-
- name: Install Rust ${{ matrix.rust-branch }}
54-
uses: actions-rs/[email protected]
55-
with:
56-
toolchain: ${{ matrix.rust-branch }}
57-
components: rustfmt, clippy
58-
profile: minimal
59-
6051
- name: Utilize Shared Rust Cache
6152
uses: Swatinem/[email protected]
6253
with:
63-
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
54+
key: ubuntu-latest-target/x86_64-unknown-linux-gnu
6455

6556
- name: Build chainspecs
6657
run: ./scripts/build_all_chainspecs.sh

0 commit comments

Comments
 (0)