1. Dec 05, 2022
    • Dmitry Markin's avatar
      Upgrade tokio to 1.22.0 and replace async-std with tokio (#12646) · 5eb84f9c
      Dmitry Markin authored
      * Replace deprecated libp2p feature specs with correct ones
      
      * Bump tokio to 1.21.2
      
      * Replace async-std libp2p primitives with tokio ones
      
      * minor: rustfmt
      
      * Fix TestNet to run initialization in the tokio context
      
      * Convert telemetry test from async-std to tokio
      
      * Convert notifications tests from async-std to tokio
      
      * Convert chain sync tests from async-std to tokio
      
      * Ditch async-std completely
      
      * Make executor mandatory
      
      * Bump tokio to 1.22.0
      
      * minor: rustfmt
      
      * Explicitly use tokio runtime in tests
      
      * Move more tests to explicit tokio runtime
      
      * Explicitly set multithreaded runtime in tokio test
      
      * minor: rustfmt
      
      * minor: fix comment
      
      * Replace async-std with tokio in MMR tests
      5eb84f9c
  2. Dec 01, 2022
    • alexgparity's avatar
      Reduce provisioner work (#12749) · d20e4958
      alexgparity authored
      
      
      * Move create_inherent_data call to use side
      
      * Make provide_inherent_data async
      
      * Fix tests
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Log errors
      
      * Fix test
      
      * Fix test
      
      * fix
      
      * Deduplicate test code
      
      * fix
      
      * flag
      
      * Update client/consensus/slots/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Revert "Deduplicate test code"
      
      This reverts commit ba46adbe089329c78cd69ccdb08e27ed67bd77cf.
      
      * Fix test
      
      * remove commented out code
      
      * minor to start CI run
      
      * start CI
      
      * Update client/consensus/slots/src/lib.rs
      
      Co-authored-by: default avatarMarcin S. <[email protected]>
      
      * Apply PR suggestions
      
      * Apply PR suggestions
      
      * Update client/consensus/slots/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * minor
      
      * kickoff CI
      
      * PR suggestions
      
      * Compute remaining duration instead of using slot_info.duration
      
      * Don't rely on sub implementation for Instant
      
      * Apply PR suggestions
      
      * Use saturating_duration_since
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarMarcin S. <[email protected]>
      Co-authored-by: parity-processbot <>
      d20e4958
  3. Nov 30, 2022
  4. Nov 29, 2022
  5. Nov 28, 2022
    • joe petrowski's avatar
      Remove Default, HasCompact, and TypeInfo trait bounds on AssetId (#12740) · d56214c2
      joe petrowski authored
      * Remove Default, HasCompact, and TypeInfo trait bounds on AssetId
      
      * don't use default in benchmarking
      
      * add helper trait
      
      * add helper to assets tx payment test
      
      * docs fixes
      
      * i'm confused
      
      * aha, cargo
      
      * move affected dispatchable calls into new indices
      
      * Helper -> BenchmarkHelper
      
      * benchmark use of helper
      
      * actually, don't break every call interface
      
      * use into on AssetIdParameter
      
      * Remove From from AssetIdParameter and use it in BenchmarkHelper
      
      * include from
      
      Co-authored-by: parity-processbot <>
      d56214c2
  6. Nov 25, 2022
  7. Nov 18, 2022
  8. Nov 16, 2022
  9. Nov 15, 2022
    • Niklas Adolfsson's avatar
      release `sp-core 7.0.0` and `sp-runtime 7.0.0` (#12599) · 2b8af8cb
      Niklas Adolfsson authored
      * chore(release): sp-core v7.0.0
      
      * chore(release): sp-runtime v7.0.0
      
      * fix bad merge
      2b8af8cb
    • Anthony Alaribe's avatar
      Asset Pallet: Support repeated destroys to safely destroy large assets (#12310) · 679d2dcd
      Anthony Alaribe authored
      
      
      * Support repeated destroys to safely destroy large assets
      
      * require freezing accounts before destroying
      
      * support only deleting asset as final stage when there's no assets left
      
      * pre: introduce the RemoveKeyLimit config parameter
      
      * debug_ensure empty account in the right if block
      
      * update to having separate max values for accounts and approvals
      
      * add tests and use RemoveKeyLimit constant
      
      * add useful comments to the extrinsics, and calculate returned weight
      
      * add benchmarking for start_destroy and finish destroy
      
      * push failing benchmark logic
      
      * add benchmark tests for new functions
      
      * update weights via local benchmarks
      
      * remove extra weight file
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Update frame/assets/src/types.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * effect some changes from codereview
      
      * use NotFrozen error
      
      * remove origin checks, as anyone can complete destruction after owner has begun the process; Add live check for other extrinsics
      
      * fix comments about Origin behaviour
      
      * add AssetStatus docs
      
      * modularize logic to allow calling logic in on_idle and on_initialize hooks
      
      * introduce simple migration for assets details
      
      * reintroduce logging in the migrations
      
      * move deposit_Event out of the mutate block
      
      * Update frame/assets/src/functions.rs
      
      Co-authored-by: default avatarMuharem Ismailov <[email protected]>
      
      * Update frame/assets/src/migration.rs
      
      Co-authored-by: default avatarMuharem Ismailov <[email protected]>
      
      * move AssetNotLive checkout out of the mutate blocks
      
      * rename RemoveKeysLimit to RemoveItemsLimit
      
      * update docs
      
      * fix event name in benchmark
      
      * fix cargo fmt.
      
      * fix lint in benchmarking
      
      * Empty commit to trigger CI
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/assets/src/functions.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/assets/src/functions.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/assets/src/functions.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/assets/src/functions.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * effect change suggested during code review
      
      * move limit to a single location
      
      * Update frame/assets/src/functions.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * rename events
      
      * fix weight typo, using rocksdb instead of T::DbWeight. Pending generating weights
      
      * switch to using dead_account.len()
      
      * rename event in the benchmarks
      
      * empty to retrigger CI
      
      * trigger CI to check cumulus dependency
      
      * trigger CI for dependent cumulus
      
      * Update frame/assets/src/migration.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * move is-frozen to the assetStatus enum (#12547)
      
      * add pre and post migration hooks
      
      * update do_transfer logic to add new assert for more correct error messages
      
      * trigger CI
      
      * switch checking AssetStatus from checking Destroying state to checking live state
      
      * fix error type in tests from Frozen to AssetNotLive
      
      * trigger CI
      
      * change ensure check for fn reducible_balance()
      
      * change the error type to Error:<T,I>::IncorrectStatus to be clearer
      
      * Trigger CI
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarMuharem Ismailov <[email protected]>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      679d2dcd
  10. Nov 13, 2022
  11. Nov 09, 2022
    • joe petrowski's avatar
      Add `CreateOrigin` to Assets Pallet (#12586) · 11a01e89
      joe petrowski authored
      
      
      * add CreateOrigin to Assets pallet
      
      * fix asset-tx-payment test
      
      * use AccountId > u64 in test
      
      * Update frame/assets/src/benchmarking.rs
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      11a01e89
    • Robert Hambrock's avatar
      Consolidate and deduplicate MMR API methods (#12530) · 53f97350
      Robert Hambrock authored
      
      
      * histor. batch proof: make best block arg optional
      
      * correct testing range
      
      * make generate_batch_proof stub for historical
      
      * merge generate_{historical_}batch_proof functions
      
      * merge generate_{batch_}proof functions
      
      * merge verify_{batch_}proof functions
      
      * merge verify_{batch_}proof_stateless functions
      
      * remove {Leaf}Proof
      
      Not utilized by API anymore, so superfluous.
      Removal consistent with prior changes to just use "batch" proof API.
      
      * rename BatchProof->Proof
      
      no need to qualify if only one universal proof type.
      
      * cleanup
      
      * expose verify_proof rpc api
      
      * document verify_proof
      
      * expose verify_proof_stateless rpc api
      
      * add optional BlockHash to mmr_root rpc api
      
      * fixup! expose verify_proof rpc api
      
      * fix documentation phrasing
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * documentation grammar
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * define mmr error msgs together with error enum
      
      Co-authored-by: default avatarSerban Iorga <[email protected]>
      
      * fixup! define mmr error msgs together with error enum
      
      * map decoding errors to CallError::InvalidParams
      
      Co-authored-by: default avatarSerban Iorga <[email protected]>
      
      * fixup! map decoding errors to CallError::InvalidParams
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarSerban Iorga <[email protected]>
      53f97350
    • Ankan's avatar
      Bound Election and Staking by MaxActiveValidators (#12436) · 657d9920
      Ankan authored
      
      
      * bounding election provider with kian
      
      * multi phase implement bounded election provider
      
      * election provider blanket implementation
      
      * staking compiles
      
      * fix test for election provider support
      
      * fmt
      
      * fixing epmp tests, does not compile yet
      
      * fix epmp tests
      
      * fix staking tests
      
      * fmt
      
      * fix runtime tests
      
      * fmt
      
      * remove outdated wip tags
      
      * add enum error
      
      * sort and truncate supports
      
      * comment
      
      * error when unsupported number of election winners
      
      * compiling wip after kian's suggestions
      
      * fix TODOs
      
      * remove,fix tags
      
      * ensure validator count does not exceed maxwinners
      
      * clean up
      
      * some more clean up and todos
      
      * handle too many winners
      
      * rename parameter for mock
      
      * todo
      
      * add sort and truncate rule if there are too many winners
      
      * fmt
      
      * fail, not swallow emergency result bound not met
      
      * remove too many winners resolution as it can be guaranteed to be bounded
      
      * fix benchmark
      
      * give MaxWinners more contextual name
      
      * make ready solution generic over T
      
      * kian feedback
      
      * fix stuff
      
      * Kian's way of solvign this
      
      * comment fix
      
      * fix compile
      
      * remove use of BoundedExecution
      
      * fmt
      
      * comment out failing integrity test
      
      * cap validator count increment to max winners
      
      * dont panic
      
      * add test for bad data provider
      
      * Update frame/staking/src/pallet/impls.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * fix namespace conflict and add test for onchain max winners less than desired targets
      
      * defensive unwrap
      
      * early convert to bounded vec
      
      * fix syntax
      
      * fmt
      
      * fix doc
      
      * fix rustdoc
      
      * fmt
      
      * fix maxwinner count for benchmarking
      
      * add instant election for noelection
      
      * fmt
      
      * fix compile
      
      * pr feedbacks
      
      * always error at validator count exceeding max winners
      
      * add useful error message
      
      * pr comments
      
      * import fix
      
      * add checked_desired_targets
      
      * fmt
      
      * fmt
      
      * fix rust doc
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      657d9920
    • cheme's avatar
      update paritydb and remove dev deps on rocksdb (#12641) · 91ca3a22
      cheme authored
      
      
      * update paritydb and remove dev deps on rocksdb
      
      * feature rocksdb for node testing
      
      * feature decl in node-bench
      
      * revert change to rocksdb inclusion logic
      
      * Update bin/node/bench/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      91ca3a22
  12. Nov 08, 2022
  13. Nov 07, 2022
  14. Nov 01, 2022
  15. Oct 29, 2022
  16. Oct 25, 2022
  17. Oct 24, 2022
  18. Oct 19, 2022
  19. Oct 18, 2022
  20. Oct 14, 2022
  21. Oct 13, 2022
  22. Oct 11, 2022
  23. Oct 09, 2022
  24. Oct 06, 2022
  25. Oct 05, 2022
  26. Oct 04, 2022
  27. Oct 02, 2022
    • Alexander Theißen's avatar
      Remove contracts RPCs (#12358) · bb9d2fa7
      Alexander Theißen authored
      * Remove contracts RPCs
      
      * Remove serde as RPC serialization is no longer needed
      
      * Rename folder to match crate name
      
      * Compile fix
      
      * Remove Byte wrapper
      bb9d2fa7
  28. Sep 30, 2022
  29. Sep 29, 2022
    • Keith Yeung's avatar
      Properly set the max proof size weight on defaults and tests (#12383) · a4fb1d70
      Keith Yeung authored
      * Properly set the max proof size weight on defaults and tests
      
      * cargo fmt
      
      * Set proper max proof size for contracts pallet tests
      
      * Properly set max proof size for node
      
      * Properly set max proof size for frame system mock
      
      * Update test expectations
      
      * Update test expectations
      
      * Properly set max proof size for balances mock
      
      * Update test expectations
      
      * Update test expectations
      
      * Properly set max proof size for democracy mock
      
      * Properly set max proof size for scheduler mock
      
      * Properly set max proof size for fast unstake mock
      
      * Properly set max proof size for tx payment mock
      
      * Properly set max proof size for elections phragmen mock
      
      * Properly set max proof size for node template
      a4fb1d70