Skip to content
  • Kian Paimani's avatar
    Fix elections-phragmen and proxy issue (#7040) · e8307b7b
    Kian Paimani authored
    * Fix elections-phragmen and proxy issue
    
    * remove TODO
    
    * Update bond to be per-vote
    
    * Update frame/elections-phragmen/src/lib.rs
    
    * Fix benchmakrs
    
    * Fix weight as well.
    
    * Add license
    
    * Make weight interpreted wasm! 🤦🏻
    
    ‍♂️
    
    * Remove a bunch of TODOs
    
    * Add migration
    
    * Better storage version.
    
    * Functionify.
    
    * Fix deposit scheme.
    
    * remove legacy bond.
    
    * Master.into()
    
    * better logging.
    
    * Fix benchmarking test
    
    * Fix confused deposit collection.
    
    * Add fine
    
    * Better name for storage item
    
    * Fix name again.
    
    * remove unused
    
    * Update frame/elections-phragmen/src/lib.rs
    
    Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
    
    * Update frame/elections-phragmen/src/lib.rs
    
    Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
    
    * cargo run --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark --chain dev --steps 50 --repeat 20 --extrinsic * --execution=wasm --wasm-execution=compiled --output ./bin/node/runtime/src/weights --header ./HEADER --pallet pallet_elections_phragmen
    
    * new weight fns
    
    * Fix build
    
    * Fix line width
    
    * fix benchmakrs
    
    * fix warning
    
    * cargo run --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark --chain dev --steps 50 --repeat 20 --extrinsic * --execution=wasm --wasm-execution=compiled --output ./bin/node/runtime/src/weights --header ./HEADER --pallet pallet_elections_phragmen
    
    * Tune the stake again
    
    * cargo run --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark --chain dev --steps 50 --repeat 20 --extrinsic * --execution=wasm --wasm-execution=compiled --output ./bin/node/runtime/src/weights --header ./HEADER --pallet pallet_elections_phragmen
    
    * All tests work again.
    
    * A large number of fixes.
    
    * more fixes.
    
    * Fix node build
    
    * Some fixes to benchmarks
    
    * Fix some warnings.
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_elections_phragmen --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_elections_phragmen --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * Update frame/elections-phragmen/src/lib.rs
    
    Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
    
    * a batch of review comments.
    
    * Fix a test.
    
    * Fix some more tests.
    
    * do migration with pallet version???
    
    * Final touches.
    
    * Remove unused storage.
    
    * another rounds of changes and fixes.
    
    * Update frame/elections-phragmen/src/lib.rs
    
    Co-authored-by: default avatarShawn Tabrizi <[email protected]>
    
    * Update frame/elections-phragmen/src/lib.rs
    
    Co-authored-by: default avatarShawn Tabrizi <[email protected]>
    
    * Review grumbles.
    
    * Fix a bit more.
    
    * Fix build
    
    * Experimental: independent migration.
    
    * WIP: isolated migration logics
    
    * clean up.
    
    * make migration struct private and move migration to own file
    
    * add doc
    
    * fix StorageInstance new syntax
    
    * Update frame/elections-phragmen/src/migrations_3_0_0.rs
    
    Co-authored-by: default avatarShawn Tabrizi <[email protected]>
    
    * another round of self-review.
    
    * bit better formatting
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_elections_phragmen --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * Fix tests.
    
    * Round of self-review
    
    * Clean migrations
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_elections_phragmen --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * Revert unwanted change to construct-runtime
    
    Co-authored-by: default avatarGavin Wood <[email protected]>
    Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
    Co-authored-by: default avatarShawn Tabrizi <[email protected]>
    Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
    e8307b7b