Skip to content
Open
Show file tree
Hide file tree
Changes from 239 commits
Commits
Show all changes
284 commits
Select commit Hold shift + click to select a range
bf0ee07
remove kill case
open-junius Nov 5, 2025
a18639d
bump version
open-junius Nov 5, 2025
757b846
fix wrong variable
open-junius Nov 5, 2025
85657c5
fix conflict
open-junius Nov 5, 2025
8458abe
fix conflict
open-junius Nov 5, 2025
b2385bd
add comments for pallet config in test
open-junius Nov 5, 2025
842c2ae
Separate admin freeze window check from rate limit check
ales-otf Nov 5, 2025
34dc6e7
Update spec version
ales-otf Nov 5, 2025
6326a1a
Merge pull request #2180 from opentensor/chore/separate-admin-freeze-…
sam0x17 Nov 5, 2025
2af7993
Merge remote-tracking branch 'origin/testnet' into devnet-ready
sam0x17 Nov 6, 2025
fbefae9
fix conflict
open-junius Nov 6, 2025
3ee8f4d
bump version
open-junius Nov 6, 2025
e8f889c
Add set_root_claim_type to proxy filter
shamil-gadelshin Nov 6, 2025
54e7033
change name of reveal fn and move to block step
camfairchild Nov 6, 2025
8ad48b3
update moving prices outside of coinbase
camfairchild Nov 6, 2025
f00a7ac
filter root out just in case
camfairchild Nov 6, 2025
feeee61
refactor coinbase
camfairchild Nov 6, 2025
4abd92d
chore: fmt
camfairchild Nov 6, 2025
1f965d4
chore: clippy
camfairchild Nov 6, 2025
1ea4ddf
add test for reg disabled
camfairchild Nov 6, 2025
7a9b662
refactor get sn terms
camfairchild Nov 6, 2025
0b5df3c
test wip -- set price
camfairchild Nov 6, 2025
fb0cd73
make maybe init v3 pub
camfairchild Nov 6, 2025
6e20035
add type
camfairchild Nov 6, 2025
660b1c6
fix coinbase test
camfairchild Nov 6, 2025
a0c2369
rename test vars and add comment
camfairchild Nov 6, 2025
8652a5f
rename fn
camfairchild Nov 6, 2025
ba0fae0
rename sub -> excess
camfairchild Nov 6, 2025
47a5d54
Merge branch 'hotfix/vune/epoch-fn-inp' into feat/new-coinbase
camfairchild Nov 6, 2025
8e6286c
remove ref to subs
camfairchild Nov 6, 2025
c38aa09
remove dup fn
camfairchild Nov 6, 2025
61227c8
rename vars
camfairchild Nov 6, 2025
c2598a9
add test for injection order
camfairchild Nov 7, 2025
09a2cac
add comment to test
camfairchild Nov 7, 2025
3b9c11e
add tests for drain pending
camfairchild Nov 7, 2025
1b540d9
rename test
camfairchild Nov 7, 2025
d3d5819
rename tests
camfairchild Nov 7, 2025
f1c0476
lower eps
camfairchild Nov 7, 2025
9de47ed
add another subnetterms test
camfairchild Nov 7, 2025
01f8f61
remove unneeded test setup
camfairchild Nov 7, 2025
16822b4
wip
camfairchild Nov 7, 2025
f4eb1ad
Merge branch 'main' into feat/new-coinbase
camfairchild Nov 8, 2025
8b8f763
move reg disabled filter to sn to emit to
camfairchild Nov 8, 2025
1c4729a
commit Cargo.lock
open-junius Nov 10, 2025
41f4d15
commit Cargo.lock
open-junius Nov 10, 2025
448c5f1
fix CI
open-junius Nov 10, 2025
830ca37
bump version
open-junius Nov 10, 2025
4fdcdbc
fix leasing to distribute alpha only
l0r1s Nov 10, 2025
b4f259e
Merge branch 'main' into feat/new-coinbase
camfairchild Nov 12, 2025
5ac4880
add dividends emission event
l0r1s Nov 11, 2025
e60d314
Merge branch 'main' into testnet
camfairchild Nov 12, 2025
b97bb55
Merge branch 'devnet' into devnet-ready
camfairchild Nov 12, 2025
e3400c9
Merge branch 'devnet-ready' into feat/new-coinbase
camfairchild Nov 12, 2025
5dfdf47
fix test for change from main
camfairchild Nov 12, 2025
5cfed02
remove line from merge resolution
camfairchild Nov 12, 2025
55e52c1
refactor emit_to_sns
camfairchild Nov 12, 2025
6fc320e
fix conflict
open-junius Nov 12, 2025
d740a8e
bump version
open-junius Nov 12, 2025
c4f92ad
fix conflict
open-junius Nov 12, 2025
bfb1111
bump version
open-junius Nov 12, 2025
55d642e
Merge branch 'devnet-ready' into leasing-alpha-distrib
l0r1s Nov 12, 2025
c32c955
fix conflict
open-junius Nov 12, 2025
5c08499
fix evm test
open-junius Nov 12, 2025
b65feee
bump version
open-junius Nov 12, 2025
87b78c5
fix clippy
l0r1s Nov 12, 2025
5a4f754
bump spec version
l0r1s Nov 12, 2025
6942824
Merge pull request #2197 from opentensor/fix-evm-testing
open-junius Nov 12, 2025
adc634d
Merge branch 'devnet-ready' into fix_warning_in_test
open-junius Nov 12, 2025
4530cc9
Merge branch 'devnet-ready' into fix-doc-for-storage
open-junius Nov 12, 2025
7e4cf14
Merge remote-tracking branch 'origin/devnet' into devnet-ready
sam0x17 Nov 12, 2025
e0e8c9b
bump spec
camfairchild Nov 12, 2025
9578092
Merge pull request #2193 from opentensor/fix_warning_in_test
sam0x17 Nov 12, 2025
45a36ee
Merge pull request #2144 from opentensor/fix-doc-for-storage
sam0x17 Nov 12, 2025
5557500
switch e2e tests to github runners
sam0x17 Nov 12, 2025
6511867
Merge remote-tracking branch 'origin/devnet-ready' into feat/new-coin…
sam0x17 Nov 12, 2025
119281e
Merge pull request #2172 from opentensor/feat/evm-pure-proxy-precompile
sam0x17 Nov 12, 2025
a90a5bc
Merge branch 'devnet-ready' into leasing-alpha-distrib
l0r1s Nov 12, 2025
d3a662e
fix evm test
l0r1s Nov 13, 2025
800cddd
debug github action
l0r1s Nov 13, 2025
e30e8b5
combine build directly as tar
l0r1s Nov 13, 2025
d8c42d4
reset debug
l0r1s Nov 13, 2025
ce25ddc
try fix 2
l0r1s Nov 13, 2025
2020da5
missing sudo
l0r1s Nov 13, 2025
2d93e2e
exporter fix
l0r1s Nov 13, 2025
391397d
trigger ci?
l0r1s Nov 13, 2025
ca14a10
try with cache to /mnt
l0r1s Nov 13, 2025
827b81b
build on root but save on mnt
l0r1s Nov 13, 2025
a791e75
missing sudo 2
l0r1s Nov 13, 2025
f713dfd
try to docker root to /mnt
l0r1s Nov 13, 2025
2ed1e77
fix perms
l0r1s Nov 13, 2025
bbcd169
Merge pull request #2188 from opentensor/feat/new-coinbase
sam0x17 Nov 13, 2025
3e7825c
fix e2e bittensor pipeline
l0r1s Nov 13, 2025
89115b9
fix evm test
l0r1s Nov 13, 2025
1a6fc1d
Merge pull request #2203 from opentensor/fix-e2e-ci
sam0x17 Nov 14, 2025
f678cdd
Merge pull request #2196 from opentensor/leasing-alpha-distrib
l0r1s Nov 14, 2025
8e14188
initial impl
JohnReedV Nov 14, 2025
84b4023
fix wrong alpha price in precompile
open-junius Nov 17, 2025
cd2ab8a
fix all wrong price
open-junius Nov 17, 2025
7052e44
bump version
open-junius Nov 17, 2025
8b8b230
remove unnecessary into
open-junius Nov 17, 2025
8e9464e
added migration to clean unknown neurons axon/cert/prom
l0r1s Nov 17, 2025
b30ffc7
fix typo
l0r1s Nov 17, 2025
85784df
remove done gov migrations
l0r1s Nov 17, 2025
bec8360
Merge pull request #2210 from opentensor/fix-wrong-alpha-price-precom…
open-junius Nov 17, 2025
e24a5f1
cargo clippy
l0r1s Nov 17, 2025
b497d90
bump spec version
l0r1s Nov 17, 2025
511c66b
Merge branch 'devnet-ready' into clear-axon-prom
l0r1s Nov 17, 2025
cf8d17e
Merge branch 'devnet-ready' into remove-gov-done-migrations
l0r1s Nov 17, 2025
f5cd13a
Merge branch 'testnet' into testnet-into-devnet-ready
l0r1s Nov 17, 2025
a1369c7
Merge pull request #2215 from opentensor/testnet-into-devnet-ready
sam0x17 Nov 17, 2025
5e8b036
Merge branch 'devnet-ready' into remove-gov-done-migrations
l0r1s Nov 17, 2025
66114d4
Merge branch 'devnet-ready' into clear-axon-prom
l0r1s Nov 17, 2025
d492d31
missed prometheus cleaning
l0r1s Nov 17, 2025
313192d
cargo fmt
l0r1s Nov 17, 2025
78f07b4
refund for both success and fail
open-junius Nov 18, 2025
536c50c
cargo clippy
open-junius Nov 18, 2025
1cc545b
Add specific subnets for Keep claim type.
shamil-gadelshin Nov 17, 2025
b1778b6
Merge branch 'devnet-ready' into root-claim-upgrade2
shamil-gadelshin Nov 18, 2025
acdb631
finish pallet impl
JohnReedV Nov 18, 2025
83e040d
fix comments & add freeze_struct
JohnReedV Nov 18, 2025
a6a3817
fix imports
JohnReedV Nov 18, 2025
0fca3db
rename pallet
JohnReedV Nov 18, 2025
0f711d0
use saturating math
JohnReedV Nov 18, 2025
680880f
fix logs
JohnReedV Nov 18, 2025
c327692
fmt
JohnReedV Nov 18, 2025
27bc798
fix localnet script
JohnReedV Nov 18, 2025
a57c732
bump version
open-junius Nov 19, 2025
6bf5072
remove unused params
JohnReedV Nov 19, 2025
1911158
add weights
JohnReedV Nov 19, 2025
db695a3
restrict execute_revealed source to local/inblock
JohnReedV Nov 19, 2025
1db33f8
remove more unused
JohnReedV Nov 19, 2025
754d508
remove key_epoch param
JohnReedV Nov 19, 2025
0b64fc1
use Pays::Yes
JohnReedV Nov 19, 2025
8036d0a
auto-update benchmark weights
github-actions[bot] Nov 19, 2025
7f4553b
Merge branch 'pallet-shield' of github.com:opentensor/subtensor into …
JohnReedV Nov 19, 2025
b177620
add benchmarks for pallet-shield
JohnReedV Nov 20, 2025
b8b20c7
fix typo
JohnReedV Nov 20, 2025
e18887b
Refactor comments.
shamil-gadelshin Nov 21, 2025
11dbff3
Merge pull request #2216 from opentensor/refund-evm-failed-preocompile
open-junius Nov 22, 2025
fb9d941
fix typo again
JohnReedV Nov 23, 2025
5334e2e
Merge branch 'devnet-ready' into root-claim-upgrade2
shamil-gadelshin Nov 24, 2025
b4c95f2
Bump spec version
shamil-gadelshin Nov 24, 2025
b3d2594
Merge branch 'devnet' into fix/clean-merge
ales-otf Nov 24, 2025
b4bfe39
Update spec version
ales-otf Nov 24, 2025
3c096d6
auto-update benchmark weights
github-actions[bot] Nov 24, 2025
0a4845c
finalize weights
JohnReedV Nov 24, 2025
f1ce2fe
zepter
JohnReedV Nov 24, 2025
11d2281
Merge branch 'devnet-ready' into pallet-shield
JohnReedV Nov 24, 2025
3dd0e0f
Merge pull request #2225 from opentensor/fix/clean-merge
sam0x17 Nov 24, 2025
7a572dc
bump spec
JohnReedV Nov 24, 2025
db44756
add unit tests
JohnReedV Nov 24, 2025
dea3a03
chore: clean up old identity storage items
cuteolaf Nov 25, 2025
d8fe74b
remove epoch
JohnReedV Nov 25, 2025
1999fbf
remove epoch in benchmarks
JohnReedV Nov 25, 2025
7634bc4
auto-update benchmark weights
github-actions[bot] Nov 25, 2025
238e33e
Merge pull request #2218 from opentensor/root-claim-upgrade2
sam0x17 Nov 25, 2025
5f68f45
add fast-runtime compatibility
JohnReedV Nov 25, 2025
6ea7c54
fmt
JohnReedV Nov 25, 2025
e99df02
more timing
JohnReedV Nov 25, 2025
c153a37
clippy
JohnReedV Nov 25, 2025
534baf6
Merge pull request #2219 from opentensor/pallet-shield
sam0x17 Nov 25, 2025
97fc388
set announce_next_key & execute_revealed pays::no
JohnReedV Nov 26, 2025
f6567be
bump spec
JohnReedV Nov 26, 2025
f08b692
Merge pull request #2227 from opentensor/pallet-shield-pays-no
sam0x17 Nov 26, 2025
1a0f8cc
feat: migration for removing storage items
cuteolaf Nov 26, 2025
6a674d7
fix rust
cuteolaf Nov 26, 2025
7c747ec
fixes for migration
cuteolaf Nov 26, 2025
d172444
fix benchmark
cuteolaf Nov 26, 2025
fb02a19
fix tests
cuteolaf Nov 26, 2025
61daf55
tests for migration
cuteolaf Nov 26, 2025
fc79576
cargo fmt
cuteolaf Nov 26, 2025
fead518
bump spec_version
cuteolaf Nov 26, 2025
e3489c5
bump spec_version to 351
cuteolaf Nov 26, 2025
8713d68
Merge branch 'devnet-ready' into clean-up-subnet-identities-storage
cuteolaf Nov 26, 2025
ee5f9fc
fix lcoalnet testing
open-junius Nov 26, 2025
eb55f5d
use account One and Two
open-junius Nov 26, 2025
4c15cdf
bump version
open-junius Nov 26, 2025
33bdf7b
Merge pull request #2229 from opentensor/fix-localnet-for-testing
sam0x17 Nov 26, 2025
5ad09d1
Merge branch 'devnet-ready' into clear-axon-prom
l0r1s Nov 26, 2025
2688df0
Merge branch 'devnet-ready' into remove-gov-done-migrations
l0r1s Nov 26, 2025
9580005
Merge pull request #2213 from opentensor/remove-gov-done-migrations
sam0x17 Nov 26, 2025
a38b4e9
Merge branch 'devnet-ready' into clean-up-subnet-identities-storage
cuteolaf Nov 26, 2025
5126a38
Merge pull request #2212 from opentensor/clear-axon-prom
sam0x17 Nov 26, 2025
62f49e6
fix badProof
JohnReedV Nov 26, 2025
d802832
Merge pull request #2231 from opentensor/mev-shield-badproof-fix
sam0x17 Nov 27, 2025
67a31c9
Merge branch 'devnet-ready' into clean-up-subnet-identities-storage
cuteolaf Nov 27, 2025
a4fbd02
fix: merge errors
cuteolaf Nov 26, 2025
cd49565
fix low gas fee for precompile
open-junius Nov 27, 2025
f7ac435
bump version
open-junius Nov 27, 2025
08b0584
clean up code
open-junius Nov 27, 2025
18ce436
clean up code
open-junius Nov 27, 2025
9c0d8b9
add doc for gas setting
open-junius Nov 27, 2025
b088e71
Merge pull request #2232 from opentensor/fix-low-gas-fee
open-junius Nov 27, 2025
083286b
Merge pull request #2226 from cuteolaf/clean-up-subnet-identities-sto…
sam0x17 Nov 28, 2025
61d323b
replace nonce protection with key
JohnReedV Nov 30, 2025
20aa637
auto-update benchmark weights
github-actions[bot] Dec 1, 2025
25d6a6c
Make admin freeze window check explicit
ales-otf Dec 1, 2025
7d0108c
Merge branch 'devnet-ready' into chore/explicit-admin-window-check
ales-otf Dec 1, 2025
b5f3abf
prune submissions
JohnReedV Dec 1, 2025
cdf4620
Merge remote-tracking branch 'origin/main' into devnet-ready
sam0x17 Dec 1, 2025
09d91ba
Merge branch 'devnet-ready' into next-key-replaces-nonce-check
JohnReedV Dec 1, 2025
2db51ce
Merge pull request #2233 from opentensor/next-key-replaces-nonce-check
sam0x17 Dec 1, 2025
6c10711
Merge remote-tracking branch 'origin/hotfix/vune/disable-tx-fees-in-a…
sam0x17 Dec 1, 2025
2695f46
fix stale nonce
JohnReedV Dec 2, 2025
25e9b19
bump spec
JohnReedV Dec 2, 2025
62e5587
clippy
JohnReedV Dec 2, 2025
019fb95
Merge branch 'devnet-ready' into chore/explicit-admin-window-check
ales-otf Dec 2, 2025
703e8f9
Update spec version
ales-otf Dec 2, 2025
8eaa911
Merge pull request #2241 from opentensor/mev-shield/fix-stale-nonces
sam0x17 Dec 2, 2025
c797cd1
Merge pull request #2235 from opentensor/chore/explicit-admin-window-…
sam0x17 Dec 2, 2025
9e3998b
add `DecryptionFailed` in Event
basfroman Dec 3, 2025
f0b4ce0
ensure error messages in logs match on-chain mark_decryption_failed r…
basfroman Dec 3, 2025
8a4caa7
charge & refund in announce_next_key
JohnReedV Dec 3, 2025
b2cfb9f
clippy
JohnReedV Dec 3, 2025
3b4ed9b
fix bug
JohnReedV Dec 3, 2025
b3e1c83
clippy
JohnReedV Dec 3, 2025
219cf7d
bump spec
JohnReedV Dec 3, 2025
6b146c5
add test mark_decryption_failed_removes_submission
JohnReedV Dec 4, 2025
66bbffe
add benchmark mark_decryption_failed
JohnReedV Dec 4, 2025
5837721
bump spec
JohnReedV Dec 4, 2025
5c81fce
update dispatch weight
JohnReedV Dec 4, 2025
c7d908c
Remove set_root_claim_type from proxy type.
shamil-gadelshin Dec 4, 2025
c592ed2
Spec version bump
shamil-gadelshin Dec 4, 2025
79959bf
Merge pull request #2253 from opentensor/remove-root-claim-proxy-type2
sam0x17 Dec 4, 2025
98a06c2
Merge remote-tracking branch 'origin/devnet' into devnet-ready
sam0x17 Dec 4, 2025
a7fe130
Merge pull request #2249 from opentensor/feat/roman/mev-add-Decryptio…
JohnReedV Dec 4, 2025
c1d3071
Merge remote-tracking branch 'origin/devnet-ready' into devnet-ready
sam0x17 Dec 4, 2025
a7a58af
Merge branch 'devnet-ready' into mevshield-fix-spam-attack-vector
JohnReedV Dec 4, 2025
b42a286
change mevshield dispatch calsses
JohnReedV Dec 4, 2025
45f6371
add test announce_next_key_charges_then_refunds
JohnReedV Dec 4, 2025
1c64119
Merge pull request #2250 from opentensor/mevshield-fix-spam-attack-ve…
sam0x17 Dec 4, 2025
87a4dd2
Fix alpha issuance function
gztensor Dec 4, 2025
11a7ba9
bump spec
sam0x17 Dec 4, 2025
ff87871
Merge pull request #2254 from opentensor/fix/get_alpha_issuance
sam0x17 Dec 4, 2025
e171a0c
Move set_root_claim_type to the staking proxy type
grbIzl Dec 4, 2025
5b1320b
bump CI
sam0x17 Dec 4, 2025
fd82d9e
Merge pull request #2256 from opentensor/move-root-claim-to-staking-p…
sam0x17 Dec 4, 2025
0fc7e4f
Extrinsic to disable LP on all subnets
gztensor Dec 4, 2025
6a1a36d
Remove test_user_liquidity_access_control
gztensor Dec 4, 2025
7175c63
Remove toggle_user_liquidity tests
gztensor Dec 4, 2025
71fc1c2
clippy
gztensor Dec 5, 2025
5e94d28
Comment failing benchmark
gztensor Dec 5, 2025
fb8c6d1
fix build issue
sam0x17 Dec 5, 2025
056c127
Remove unused import
gztensor Dec 5, 2025
5d545ad
fmt
gztensor Dec 5, 2025
a7b5d97
Merge pull request #2257 from opentensor/feat/disable_lp
sam0x17 Dec 5, 2025
f6fd940
simpler mev
camfairchild Dec 5, 2025
ab672fb
bump spec
camfairchild Dec 5, 2025
6ebaa9d
cleanup
camfairchild Dec 5, 2025
5147b04
Merge pull request #2260 from opentensor/feat/vune/simpler-mev
sam0x17 Dec 5, 2025
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
30 changes: 20 additions & 10 deletions .github/workflows/check-bittensor-e2e-tests.yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:

jobs:
check-label:
runs-on: [self-hosted, type-ccx13]
runs-on: ubuntu-latest
outputs:
skip-bittensor-e2e-tests: ${{ steps.get-labels.outputs.skip-bittensor-e2e-tests }}
steps:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
find-btcli-e2e-tests:
needs: check-label
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: [self-hosted, type-ccx13]
runs-on: ubuntu-latest
outputs:
test-files: ${{ steps.get-btcli-tests.outputs.test-files }}
steps:
Expand All @@ -84,7 +84,7 @@ jobs:
find-sdk-e2e-tests:
needs: check-label
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: [self-hosted, type-ccx13]
runs-on: ubuntu-latest
outputs:
test-files: ${{ steps.get-sdk-tests.outputs.test-files }}
steps:
Expand All @@ -111,7 +111,7 @@ jobs:
build-image-with-current-branch:
needs: check-label
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: [self-hosted, type-ccx33]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -130,17 +130,27 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Move Docker data-root to /mnt/data
run: |
sudo systemctl stop docker
sudo mkdir -p /mnt/data/docker
sudo chown -R runner:runner /mnt/data
sudo chmod -R 777 /mnt/data
echo '{"data-root": "/mnt/data/docker"}' | sudo tee /etc/docker/daemon.json
sudo systemctl start docker
docker info | grep "Docker Root Dir"

- name: Build Docker Image
run: docker build -f Dockerfile-localnet -t localnet .

- name: Save Docker Image as Tar
run: docker save -o subtensor-localnet.tar localnet
run: docker save -o /mnt/data/subtensor-localnet.tar localnet

- name: Upload Docker Image as Artifact
uses: actions/upload-artifact@v4
with:
name: subtensor-localnet
path: subtensor-localnet.tar
path: /mnt/data/subtensor-localnet.tar

# main btcli job
run-btcli-e2e-tests:
Expand All @@ -149,7 +159,7 @@ jobs:
- find-btcli-e2e-tests
- build-image-with-current-branch
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: [self-hosted, type-ccx13]
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 16
Expand Down Expand Up @@ -181,7 +191,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: 'false'
enable-cache: "false"

- name: Create Python virtual environment
working-directory: ${{ github.workspace }}
Expand Down Expand Up @@ -243,7 +253,7 @@ jobs:
- find-sdk-e2e-tests
- build-image-with-current-branch
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: [self-hosted, type-ccx13]
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 16
Expand Down Expand Up @@ -275,7 +285,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: 'false'
enable-cache: "false"

- name: Create Python virtual environment
working-directory: ${{ github.workspace }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/evm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:

jobs:
run:
runs-on: [self-hosted, type-ccx33]
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
Expand Down
66 changes: 66 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ sha2 = { version = "0.10.8", default-features = false }
rand_chacha = { version = "0.3.1", default-features = false }
tle = { git = "https://github.com/ideal-lab5/timelock", rev = "5416406cfd32799e31e1795393d4916894de4468", default-features = false }

pallet-shield = { path = "pallets/shield", default-features = false }
ml-kem = { version = "0.2.0", default-features = true }

# Primitives

[profile.release]
Expand Down
27 changes: 27 additions & 0 deletions common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,33 @@ pub enum ProxyType {
RootClaim,
}

impl TryFrom<u8> for ProxyType {
type Error = ();

fn try_from(value: u8) -> Result<Self, Self::Error> {
match value {
0 => Ok(Self::Any),
1 => Ok(Self::Owner),
2 => Ok(Self::NonCritical),
3 => Ok(Self::NonTransfer),
4 => Ok(Self::Senate),
5 => Ok(Self::NonFungible),
6 => Ok(Self::Triumvirate),
7 => Ok(Self::Governance),
8 => Ok(Self::Staking),
9 => Ok(Self::Registration),
10 => Ok(Self::Transfer),
11 => Ok(Self::SmallTransfer),
12 => Ok(Self::RootWeights),
13 => Ok(Self::ChildKeys),
14 => Ok(Self::SudoUncheckedSetCode),
15 => Ok(Self::SwapHotkey),
16 => Ok(Self::SubnetLeaseBeneficiary),
_ => Err(()),
}
}
}

impl Default for ProxyType {
// allow all Calls; required to be most permissive
fn default() -> Self {
Expand Down
2 changes: 1 addition & 1 deletion evm-tests/run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$i" -eq 1000 ]; then
exit 1
fi

sleep 5
sleep 10

if ! nc -z localhost 9944; then
echo "node subtensor exit, port not available"
Expand Down
2 changes: 1 addition & 1 deletion evm-tests/src/address-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Address } from "viem"
import { encodeAddress } from "@polkadot/util-crypto";
import { ss58Address } from "@polkadot-labs/hdkd-helpers";
import { ss58Address, ss58Decode } from "@polkadot-labs/hdkd-helpers";
import { hexToU8a } from "@polkadot/util";
import { blake2AsU8a, decodeAddress } from "@polkadot/util-crypto";
import { Binary } from "polkadot-api";
Expand Down
62 changes: 62 additions & 0 deletions evm-tests/src/contracts/precompileGas.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

interface ISR25519Verify {
function verify(
bytes32 message,
bytes32 publicKey,
bytes32 r,
bytes32 s
) external pure returns (bool);
}

interface IED25519Verify {
function verify(
bytes32 message,
bytes32 publicKey,
bytes32 r,
bytes32 s
) external pure returns (bool);
}

contract PrecompileGas {
address constant IED25519VERIFY_ADDRESS =
0x0000000000000000000000000000000000000402;
address constant ISR25519VERIFY_ADDRESS =
0x0000000000000000000000000000000000000403;
IED25519Verify constant ed25519 = IED25519Verify(IED25519VERIFY_ADDRESS);
ISR25519Verify constant sr25519 = ISR25519Verify(ISR25519VERIFY_ADDRESS);

event Log(string message);

bytes32 message =
0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef;
bytes32 publicKey =
0x0000000000000000000000000000000000000000000000000000000000000000;
bytes32 r =
0x0000000000000000000000000000000000000000000000000000000000000000;
bytes32 s =
0x0000000000000000000000000000000000000000000000000000000000000000;

/**
* @notice Call the precompile using hardcoded signature data
* @param iterations Number of times to call the precompile
*/
function callED25519(uint64 iterations) external {
for (uint64 i = 0; i < iterations; i++) {
ed25519.verify(message, publicKey, r, s);
}
emit Log("callED25519");
}

/**
* @notice Call the precompile using hardcoded signature data
* @param iterations Number of times to call the precompile
*/
function callSR25519(uint64 iterations) external {
for (uint64 i = 0; i < iterations; i++) {
sr25519.verify(message, publicKey, r, s);
}
emit Log("callSR25519");
}
}
Loading
Loading