Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement global stake (commune-ai#70)
* test(pallets/subspace): add integrity checks for remove_subnet (#128) * test(pallets/subspace): add integrity checks for remove_subnet * test(pallets/subspace): add integrity checks for apply function (#129) * feat: benchmarking & adding faucet (#133) * Feat/benchmarking (#130) * feat: adding benchmarks * refac: restructuring lib.rs * feat: adding testnet faucet (#131) * feat: adding benchmarks * refac: restructuring lib.rs * feat: implementing faucet * fix: call index * cargo fmt * cargo fmt --------- Signed-off-by: JZ <[email protected]> * fix: testnet faucet * fix: faucet * chore: remove old spec file * Update lib.rs Signed-off-by: Luiz Carvalho <[email protected]> * chore: fix formatting * chore: make delegation fee public --------- Signed-off-by: JZ <[email protected]> Signed-off-by: Luiz Carvalho <[email protected]> Co-authored-by: saiintbrisson <[email protected]> * feat(pallets/subspace): deregister not whitelisted modules (#136) * feat: deregister not whitelisted modules on idle * chore: step weights * chore: add logs * chore: made deregistering a module resilient to index panics * Add ref docker tagging Signed-off-by: Davi Petris <[email protected]> * chore: disable whitelist removal * chore: add default modules to local spec * chore: structure chain spec patches better * feat: more complex spec * fix: chain spec * reafac: adding alice account balance * feat: adding snapshot builder * chore: update patch builder * feat: adding global stake (#146) * initial merge * refac: fixing registration on rootnet * wip: fixing tests * chore: start refactor of tests * wip: preventing panics in subnet emission * chore: move registration tests * feat: adding todos * feat: incentive ratio * chore: move subnet tests * feat: adding treasury epoch (#153) * feat: adding treasury epoch * feat: adding extra emission err * refac: added double check back * feat: tackle comments on feat/global-stake-v2 pull request (#152) * feat: add SubnetEmission migration * feat: add max subnet registrations per interval * feat: add stake migrations * feat: don't burn stake on subnet registration * feat: only remove stake on dangling keys * test: fix tests * feat: change default subnet burn adjustment interval * fix: remove the possibility of panic on stake migrations * chore: make clippy happy * wip: fixing migrations * fix: make migration run * feat: improved logging of migration * feat: improve remove_subnet_dangling_keys method * feat: add governance migration --------- Co-authored-by: YourUsername <[email protected]> * fix(subnet-emission): calculate lowest netuid skipping new ones * feat: implement incentive ratio for yuma * fix: compile warnings * fix: clear root net weight calls on epoch * chore: finished moving weight tests * chore: make governance tests compile * chore: rename governance tests * chore: make emission tests compile * chore: run fmt * refac: adding subnet consensus type * fix: compilation * chore: remove yuma incentive ratio * wip: refactoring registraioon & deregistraion landspace * chore: migrate subnet consensus type * refac(pallets/subpsace): use dispatch results (#141) * refac(pallets/subpsace): use dispatch results * refac(pallets/subpsace): fix allow panicking * refac(pallets/subspace): fix panics in math.rs * refac(pallets/subspace): change if lets to let else * fix(pallets/subpsace): fix weighted median * fix(pallets/subpsace): make weighted_median be safe * build: change lints to root workspace * chore: remove .repos * fix: step panicked * chore: fix clippy --------- Co-authored-by: YourUsername <[email protected]> Co-authored-by: saiintbrisson <[email protected]> * fix: clippy lints * fix: clippy errors * chore: move weight rate limit to subspace * tests: add rootnet tests (#156) * wip * test: rootnet pricing tests wip * feat: closer migration * test: fix rootnet tests * refac: `set_weights` * wip --------- Co-authored-by: YourUsername <[email protected]> Co-authored-by: saiintbrisson <[email protected]> * chore: start fixing tests * chore: fix subnet tests * fix: use correct default registrations per interval * chore: fix registration tests * fix: root tests * fix: registrations (#159) * feat: early return on non registerable subnets (#162) Co-authored-by: YourUsername <[email protected]> * feat: make some SubnetChangeset::validate_param checks exclusive to mineable subnets (#161) Co-authored-by: YourUsername <[email protected]> * feat: adding subnet migrations (#157) * feat: branch compatibility * feat: add rootnet migrations * feat: set rootnet burn and min stake on migration * feat: lower unit emission on migration * feat: set max allowed uids to 0 on treasury net --------- Co-authored-by: devwckd <[email protected]> * refac: add extra lints and fix possible errors (#160) * feat: branch compatibility * feat: add rootnet migrations * refac: add new lints and fix warnings/errors * chore: remove useless lints --------- Co-authored-by: YourUsername <[email protected]> * feat: remove hardcoded rootnet id (#164) * feat: migration logging (#163) * feat: adding migration logging * fix: calculate stake correctly --------- Co-authored-by: saiintbrisson <[email protected]> * fix: clippy warnings * chore: simplify stake migration * feat: adding tests * refac: removing useless test * chore: add changelog entries * fix: remove subnet gap ids on migration * chore: create modules for root and treasury subnets * chore: fix clippy * chore: commit cargo lock * chore: simplify migration * fix: consensus * wip * fix: tests * feat: adding balance to devnet sudo key * feat: fixing migration order * feat: add minimum stake allowed (#169) * feat: remove stake storage value (#171) * feat: remove stake storage value * chore: update changelog * fix: tests * fix: remove second delegation fee migration (#172) * refac: removing hardcoded rootnet netuid * fix: subnet pricing errors (#173) * wip * fix: account for non validator modules on root pricing weights * refac: changed authors * refac: stable existential deposit * refac: reordering operation order * feat: removing expect in `get_total_emission_per_block` * refac: error docs * chore: cargo fmt * feat: adding perfectly balance rootnet consensus configuration * test: add remove_subnet_dangling_keys test (#176) * feat: adding subnet burn test * fix: make benchmarks run (#175) Co-authored-by: devwckd <[email protected]> * feat: added missing `min_immunity_stake` migration * fofo * feat: automatically raise unit emission (#177) * feat: adding rootnet weight set error * chore: cargo fmt * fixing migrations (#181) * fix: correct emission migration * fix: migrations * feat: adding deregistration tests * chore: remove min stake (#183) * chore: remove min stake * fix: corrected test code * feat: adding rootnet registration tests + improving `MaxAllowedUids` safety (#179) * feat: adding rootnet registration tests + improving `MaxAllowedUids` safety * fix comment * feat: subnet immunity period (#185) * fix: tests (#187) * fix: tests * chore: Updating CHANGELOG * chore: adding extrinsic changes * chore: Update CHANGELOG.md Signed-off-by: Honza <[email protected]> * feat: add rootnet weight delegation (#188) * feat: add rootnet weight delegation * fix: benchmarks * chore: update codeowners * chore: updated CODEOWNERS * feat: adding funding.yml * refac: fofo * chore: fix docstings * wip: removal subnet migration * refac: fixing migration, removing * test: add weight_control_delegation unit test * refac: migration --------- Co-authored-by: YourUsername <[email protected]> * chore: updated changelog * chore: add support for manual seal * test: intorducing old tests (#189) * test: wip * feat: adding lowest uid test * refac: removing useless test * feat: reintroducing tests * feat: reintroduced founder share test * refac: removed outdated TODOs * chore: faucet module improvements * fix: migration total subnets --------- Co-authored-by: YourUsername <[email protected]> * chore: changed migration dereg logic * feat: remove validator permits from root pricing (#190) * feat: remove validator permits from root pricing * feat: change rootnet validator check to module check --------- Co-authored-by: devwckd <[email protected]> * feat: double check emission division --------- Signed-off-by: Honza <[email protected]> Co-authored-by: saiintbrisson <[email protected]> Co-authored-by: João Victor <[email protected]> Co-authored-by: Gabrielle Guimarães de Oliveira <[email protected]> Co-authored-by: devwckd <[email protected]> * chore: remove invalid codeowners Signed-off-by: Luiz Carvalho <[email protected]> * chore: remove all invalid codeowners Signed-off-by: Luiz Carvalho <[email protected]> --------- Signed-off-by: JZ <[email protected]> Signed-off-by: Luiz Carvalho <[email protected]> Signed-off-by: Davi Petris <[email protected]> Signed-off-by: Honza <[email protected]> Co-authored-by: Gabrielle Guimarães de Oliveira <[email protected]> Co-authored-by: Honza <[email protected]> Co-authored-by: Davi Petris <[email protected]> Co-authored-by: supreme <[email protected]> Co-authored-by: João Victor <[email protected]> Co-authored-by: devwckd <[email protected]>
- Loading branch information