1. Nov 09, 2021
  2. Nov 01, 2021
  3. Oct 13, 2021
  4. Sep 21, 2021
  5. Aug 19, 2021
    • Kian Paimani's avatar
      remove the uselsss weight return type from election provider API (#9569) · 7a32c350
      Kian Paimani authored
      
      
      * remove the uselsss weight return type from election provider API
      
      * fix everything, should be ready for final benchmark
      
      * simplify on_init a bit furhter
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * remove unwraps
      
      * fmt
      
      * Update lock file
      
      * whitelist block weight
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fix warning
      
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      7a32c350
  6. Aug 11, 2021
  7. Jul 22, 2021
  8. Jul 21, 2021
    • Bastian Köcher's avatar
      Run cargo fmt on the whole code base (#9394) · 7b56ab15
      Bastian Köcher authored
      * Run cargo fmt on the whole code base
      
      * Second run
      
      * Add CI check
      
      * Fix compilation
      
      * More unnecessary braces
      
      * Handle weights
      
      * Use --all
      
      * Use correct attributes...
      
      * Fix UI tests
      
      * AHHHHHHHHH
      
      * 🤦
      
      * Docs
      
      * Fix compilation
      
      * 🤷
      
      * Please stop
      
      * 🤦
      
       x 2
      
      * More
      
      * make rustfmt.toml consistent with polkadot
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      7b56ab15
  9. Jul 13, 2021
  10. Jun 22, 2021
  11. Jun 09, 2021
    • Zeke Mostov's avatar
      [try-runtime-cli] Offchain worker support (#8966) · f0120d3b
      Zeke Mostov authored
      
      
      * make remote-ext work with ws and safe RPCs
      
      * Update docs.
      
      * Update utils/frame/remote-externalities/Cargo.toml
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * Fix test
      
      * Update lock file
      
      * Update utils/frame/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fix build again.
      
      * checkpoint, merging the paged rpc now
      
      * revert lifetime stuff
      
      * WIP: remote client init not working
      
      * Small cleanups
      
      * use jsonrpsee alpha.7
      
      * WIP
      
      * Executiing without errors
      
      * Reorg & cleanup
      
      * Trivial cleaning
      
      * Add txpool & keystore extension
      
      * Small cleaning
      
      * More :cleaning
      
      * Flags: page-size, override-code
      
      * WIP
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Remove heap_pages
      
      * Dry code extraction from state
      
      * Formatting
      
      * More formatting
      
      * Add issue todo
      
      * Use jsonrpsee 0.2.0
      
      * Try trigger gitlab
      
      * Fix "block_import_works" test
      
      * fix native_big_block_import_fails_on_fallback test
      
      * fix commit should work
      
      * Rewrite UI tests
      
      * Revert "Rewrite UI tests"
      
      This reverts commit ada7f670f701c21fb399946a3f6918453f537bcb.
      
      * try again with UI
      
      * Use const for legacy heap pages val
      
      * Move parse module to its own file
      
      * Move rpc_api module to its own file
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * trait names: Block, not B
      
      * Corect HEAP_PAGES_TEST_LEGACY export
      
      * Update utils/frame/remote-externalities/src/rpc_api.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Revert test_ext heap_page insert; adjust storage root instead
      
      * Doc comments for try_runtime::cli::Command
      
      * TryRuntime stub
      
      * trailing comma
      
      * Remove unused dev dep in frame-executive
      
      * Improve parse::hash variable name & error index
      
      * Use Result for rpc_api fns
      
      * Richer err messagges
      
      * Remove HEAP_PAGE_TEST_LEGACY
      
      * Update bin/node/executor/tests/basic.rs
      
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      f0120d3b
  12. Jun 01, 2021
  13. May 29, 2021
  14. May 25, 2021
  15. Apr 21, 2021
  16. Mar 29, 2021
  17. Mar 23, 2021
    • Steve Biedermann's avatar
      Improve remote-externalities (#8397) · f9b6c869
      Steve Biedermann authored
      
      
      * make builder generic to allow using different hash types
      
      * expose "cache", "block_number" and "modules" as cli options for live state
      
      * Change Builder to be generic over Block instead of Hash
      add rpc method to get hash from block number
      allow passing of block numbers and hashes
      
      * fix live tests
      
      * fix formatting in utils/frame/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * change cli to only accept block hashes
      break up lines that were too long
      use starts_with instead of match s.get
      use unwrap_or_default instead of unwrap_or(Vec::new())
      
      * improve error message
      
      * fix indentation
      
      * replace Block with sp_runtime::testing::Block
      
      * Move cache test out of remote-test feature tests
      Add cache file (contains only "Proxy" module) for local test
      
      * simplify match expression to and_then
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Combine the two cfg attributes into one
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Restrict visibility of test_prelude use statements to crate level
      
      * Fix usage of and_then
      
      * Rename cache to snapshot
      
      * Remove fully qualified path for Debug
      
      * Refine naming. snapshot to state_snapshot
      
      * Remove unnecessary comment
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      f9b6c869
  18. Mar 18, 2021
    • Shaun Wang's avatar
      Replace 'Module' with 'Pallet' in construct_runtime macro (#8372) · 2e552244
      Shaun Wang authored
      * Use 'Pallet' struct in construct_runtime.
      
      * Fix genesis and metadata macro.
      
      * Fix 'Pallet' type alias.
      
      * Replace 'Module' with 'Pallet' for all construct_runtime use cases.
      
      * Replace more deprecated 'Module' struct.
      
      * Bring back AllModules and AllPalletsWithSystem type, but deprecate them.
      
      * Replace deprecated 'Module' struct from merge master.
      
      * Minor fix.
      
      * Fix UI tests.
      
      * Revert UI override in derive_no_bound.
      
      * Fix more deprecated 'Module' use from master branch.
      
      * Fix more deprecated 'Module' use from master branch.
      2e552244
  19. Mar 09, 2021
  20. Mar 06, 2021
    • Niklas Adolfsson's avatar
      refactor(remote ext): use jsonrpsee (#8105) · 6bd09c07
      Niklas Adolfsson authored
      
      
      * A clean new attempt
      
      * Checkpoint to move remote.
      
      * A lot of dependency wiring to make it feature gated.
      
      * bad macro, bad macro.
      
      * refactor(remote ext): use jsonrpsee
      
      * refactor(remote ext): use jsonrpsee
      
      * Undo the DB mess.
      
      * fix(remote ext): use max limit `u32::MAX`
      
      * resolve TODOs
      
      * jsonrpsee switch to `hyper` as backend
      
      * Update utils/frame/try-runtime/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * update jsonrpsee
      
      * remove boiler-plate
      
      * suppress warnings to CI happy
      
      * Unbreak his build
      
      * Use option
      
      * fix nit; make it work again
      
      * fix err message.
      
      * Update utils/frame/remote-externalities/Cargo.toml
      
      * Fix uri stuff
      
      * remove needless clone
      
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarkianenigma <[email protected]>
      6bd09c07
  21. Feb 26, 2021
  22. Feb 19, 2021