Skip to content
  • Shawn Tabrizi's avatar
    Participation Lottery Pallet (#7221) · 92f59682
    Shawn Tabrizi authored
    
    
    * Basic design
    
    * start adding tests
    
    * finish tests
    
    * clean up crates
    
    * use call index for match
    
    * finish benchmarks
    
    * add to runtime
    
    * fix
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * more efficient storage
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * Update lib.rs
    
    * Update bin/node/runtime/src/lib.rs
    
    * trait -> config
    
    * add repeating lottery
    
    * new benchmarks
    
    * fix build
    
    * move trait for warning
    
    * feedback from @xlc
    
    * add stop_repeat
    
    * fix
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * Support static calls
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    * fix test
    
    * add loop to mitigate modulo bias
    
    * Update weights for worst case scenario loop
    
    * Initialize pot with ED
    
    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs
    
    Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
    92f59682