Commit 5073ade
mainnet deploy 2/24/2025 (#1340)
* fix migration test
* cargo fmt
* fix root
* cargo fmt
* add moving price to metagraph
* use correct min burn init (#1265)
* use correct min brun init
* fmt
* no into
* no into 2
* bump spec
* cargo update to fix cargo audit vulnerabilities
* bump spec version
* moving price init from emission
* cargo fmt
* bump spec version
* commit Cargo.lock
* cargo clippy
* cargo fmt
* DefaultMinimumPoolLiquidity and tempos in rao migration
* update readme of support of M series macs
* bump runtime version
* add tao_emission to stakeinfo runtime
* Refactor staking and neuron precompile with precompile-utils
* remove call from coinbase. already in block_step
* add negation for pow-reg-allowed
* only root can set min pow diff
* oops
* dont let ck-in-swap-sched move any stake/register
* add tests for validation filter
* add transfer stake to call nontransfer proxy filter
* also add proxy filters for new calls
* update staking priority
* bump spec
* use get_priority_staking for all stake operations
* bump spec
* clippy
* Remove ownership check from transition stake validation
* Fix number conversion issues in staking precompile
* max the price for EMA calc at 1.0
* uncommitted lockfile change
* bump spec version
* fix merge conflicts
* add CI action that requires clean merges between all named branches
* Refactor neuron precompil
- introduce PrecompileHandle and Precompile trait extensions
* fix
* fixes
* try again
* fix again
* fix
* fix
* stop needless wasting of CI hours with on push triggers we don't need
* Refactor metagraph precompile
* fix try runtime endpoints
* fix
* provide an identity for github action to prevent failure
* bump CI
* only run non-devnet try runtime if we are targeting devnet/testnet/main
* tweak
* Add serve_axon extrinsic validation
* Bump spec version
* Check IP validity in serve_axon validation first
* make set diff only root
* add test for set diff no owner
* add migration for min diff
* bump spec
* only allow top-stake SN owner hk to stay immune
* add tests
* only allow replace non-top-stake owner hk
* bump spec
* add tests using SubnetOwnerHotkey
* add impl for replace neuron
* add swap test
* add neuron prune impl
* add swap hotkey impl
* clippy
* clippy
* mistake in test
* add some tests
* add stake ext test
* add move_stake tests
* cargo lock
* bump spec
* clpy
* use bool return type
* clpy
* add higher liquidity on mvoe stake tests
* Refactor subnet precompile
* Reformat
* Update spec version
* Fix commit_hash type in Neuron::commit_weights precompile
* Prevent precision errors in share pool
* Fix unstaking 99.999% and add tests
* Fix event and logging in unstake_from_subnet
* only update tx rate limit *after* ensure
* add test and sn-owner-chk impl
* Fix build
* use is ok and
* Bump spec version
* Update primitives/share-pool/src/lib.rs
Co-authored-by: Cameron Fairchild <[email protected]>
* Update pallets/subtensor/src/tests/staking.rs
Co-authored-by: Cameron Fairchild <[email protected]>
* Remove unused variable
* Add test_get_shares_per_update
* try it again
* use latest rust-cache version
* improve spec version check cache performance
* try busting cache
* it worked 🔥
* use better rust cache throughout CI + clean up CI
* install rust nightly for cargo fmt
* whoops
* fix
* try re-enabling finney try truntime
* Update pallets/subtensor/src/tests/staking.rs
Co-authored-by: Cameron Fairchild <[email protected]>
* fix
* add get value using current_shares arg
* make delegate info useful again
* return different format for get delegated
* remove CODEOWNERS file so we can do green merges
* bump CI
* Set initial tempo to 360
* set equal in mock
* add test for weights rate limit v tempo
* make fields pub for testing
* sub out root divs to get alpha divs
* bump spec version to 241
* const fixes
* cargo clippy
* Add dest hotkey check and test
* Remove the commented test
* Bump spec version
* use rust 1.85.0
* upgrade to Rust 2024 Edition 🎉
* whitelist clippy useless conversion warning
* cargo fmt
* passes clippy
* Remove in/out peers args from docker compose
* fix test
* Update chainspecs
* Remove Stake map - in progress (tests broken)
* become delegate on every add_stake op
* bump spec
* Fix tests
* Fix clippy
* add root set sn moving alpha
* fmt
* fix test
* fixes GH #1330
* bump spec
* add a rate limit-set on decrease take (avoids close increase)
* add test
* add call to associate hk
* update comment from PR1335
* bump spec version
---------
Co-authored-by: unconst <[email protected]>
Co-authored-by: Unconst <[email protected]>
Co-authored-by: Cameron Fairchild <[email protected]>
Co-authored-by: Greg Zaitsev <[email protected]>
Co-authored-by: Prakash <[email protected]>
Co-authored-by: open-junius <[email protected]>
Co-authored-by: ibraheem-opentensor <[email protected]>
Co-authored-by: Aliaksandr Tsurko <[email protected]>
Co-authored-by: John Reed <[email protected]>
Co-authored-by: camfairchild <[email protected]>
Co-authored-by: gztensor <[email protected]>
Co-authored-by: camfairchild <[email protected]>1 parent 85f72d9 commit 5073ade
File tree
123 files changed
+3672
-5043
lines changed- .github/workflows
- docs
- node
- src
- chain_spec
- pallets
- admin-utils
- src
- tests
- collective
- src
- commitments
- src
- drand
- src
- registry
- src
- subtensor
- rpc
- src
- runtime-api
- src
- src
- coinbase
- epoch
- macros
- migrations
- rpc_info
- staking
- subnets
- swap
- tests
- utils
- primitives
- safe-math
- src
- runtime
- src
- precompiles
- solidity
- tests
- scripts/run
- support
- linting
- src
- macros
- src
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
123 files changed
+3672
-5043
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 27 | | |
41 | | - | |
42 | | - | |
43 | 28 | | |
44 | | - | |
45 | | - | |
46 | 29 | | |
47 | 30 | | |
48 | 31 | | |
| |||
51 | 34 | | |
52 | 35 | | |
53 | 36 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
59 | 43 | | |
60 | 44 | | |
61 | | - | |
| 45 | + | |
62 | 46 | | |
63 | 47 | | |
64 | 48 | | |
65 | 49 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 50 | | |
80 | | - | |
81 | | - | |
82 | 51 | | |
83 | 52 | | |
84 | | - | |
85 | | - | |
86 | 53 | | |
87 | 54 | | |
88 | 55 | | |
| |||
93 | 60 | | |
94 | 61 | | |
95 | 62 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 63 | + | |
99 | 64 | | |
100 | 65 | | |
101 | 66 | | |
102 | 67 | | |
103 | 68 | | |
104 | 69 | | |
105 | 70 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 71 | | |
117 | | - | |
118 | 72 | | |
119 | 73 | | |
120 | 74 | | |
121 | | - | |
122 | | - | |
123 | 75 | | |
124 | 76 | | |
125 | 77 | | |
| |||
129 | 81 | | |
130 | 82 | | |
131 | 83 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 84 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 85 | + | |
143 | 86 | | |
144 | 87 | | |
145 | 88 | | |
| |||
150 | 93 | | |
151 | 94 | | |
152 | 95 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 96 | | |
165 | | - | |
166 | | - | |
167 | 97 | | |
168 | | - | |
169 | 98 | | |
170 | | - | |
171 | 99 | | |
172 | 100 | | |
173 | | - | |
| 101 | + | |
174 | 102 | | |
175 | 103 | | |
176 | 104 | | |
177 | 105 | | |
178 | 106 | | |
179 | 107 | | |
180 | 108 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 109 | + | |
184 | 110 | | |
185 | 111 | | |
186 | 112 | | |
187 | 113 | | |
188 | | - | |
| 114 | + | |
189 | 115 | | |
190 | 116 | | |
191 | 117 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 118 | | |
204 | | - | |
205 | | - | |
206 | 119 | | |
207 | | - | |
208 | 120 | | |
209 | | - | |
210 | 121 | | |
211 | 122 | | |
212 | 123 | | |
| |||
216 | 127 | | |
217 | 128 | | |
218 | 129 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 130 | + | |
| 131 | + | |
223 | 132 | | |
224 | 133 | | |
225 | 134 | | |
| |||
228 | 137 | | |
229 | 138 | | |
230 | 139 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 140 | | |
245 | | - | |
246 | | - | |
247 | 141 | | |
248 | | - | |
249 | 142 | | |
250 | | - | |
251 | 143 | | |
252 | 144 | | |
253 | 145 | | |
| |||
257 | 149 | | |
258 | 150 | | |
259 | 151 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 152 | + | |
| 153 | + | |
264 | 154 | | |
265 | 155 | | |
266 | 156 | | |
| |||
280 | 170 | | |
281 | 171 | | |
282 | 172 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 173 | | |
287 | 174 | | |
288 | 175 | | |
289 | 176 | | |
290 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
291 | 184 | | |
292 | 185 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 25 | | |
39 | | - | |
40 | | - | |
41 | 26 | | |
42 | | - | |
43 | | - | |
44 | 27 | | |
45 | 28 | | |
46 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
47 | 33 | | |
48 | 34 | | |
49 | 35 | | |
50 | 36 | | |
51 | 37 | | |
52 | 38 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 39 | | |
61 | 40 | | |
62 | 41 | | |
| |||
0 commit comments