Skip to content
  1. Jul 03, 2023
    • Sasha Gryaznov's avatar
      contracts: switch to wasmi gas metering (#14084) · fda86dd5
      Sasha Gryaznov authored
      * upgrade to wasmi 0.29
      
      * prepare cleanup
      
      * sync ref_time w engine from the stack frame
      
      * proc_macro: sync gas in host funcs
      
      save: compiles, only gas pushing left to macro
      
      WIP proc macro
      
      proc macro: done
      
      * clean benchmarks & schedule: w_base = w_i64const
      
      * scale gas values btw engine and gas meter
      
      * (re)instrumentation & code_cache removed
      
      * remove gas() host fn, continue clean-up
      
      save
      
      * address review comments
      
      * move from CodeStorage&PrefabWasmModule to PristineCode&WasmBlob
      
      * refactor: no reftime_limit&schedule passes, no CodeStorage
      
      * bugs fixing
      
      * fix tests: expected deposit amount
      
      * fix prepare::tests
      
      * update tests and fix bugs
      
      tests::run_out_of_gas_engine, need 2 more
      
      save: 2 bugs with gas syncs: 1 of 2 tests done
      
      gas_syncs_no_overcharge bug fixed, test passes!
      
      cleaned out debug prints
      
      second bug is not a bug
      
      disabled_chain_extension test fix (err msg)
      
      tests run_out_of_fuel_host, chain_extension pass
      
      all tests pass
      
      * update docs
      
      * bump wasmi 0.30.0
      
      * benchmarks updated, tests pass
      
      * refactoring
      
      * s/OwnerInfo/CodeInfo/g;
      
      * migration: draft, compiles
      
      * migration: draft, runs
      
      * migration: draft, runs (fixing)
      
      * deposits repaid non pro rata
      
      * deposits repaid pro rata
      
      * better try-runtime output
      
      * even better try-runtime output
      
      * benchmark migration
      
      * fix merge leftover
      
      * add forgotten fixtures, fix docs
      
      * address review comments
      
      * ci fixes
      
      * cleanup
      
      * benchmarks::prepare to return DispatchError
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
      
      * store memory limits to CodeInfo
      
      * ci: roll back weights
      
      * ".git/.scripts/commands/bench-vm/bench-vm.sh" pallet dev pallet_contracts
      
      * drive-by: update Readme and pallet rustdoc
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
      
      * use wasmi 0.29
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
      
      * use wasmi 0.30 again
      
      * query memory limits from wasmi
      
      * better migration types
      
      * ci: pull weights from master
      
      * refactoring
      
      * ".git/.scripts/commands/bench-vm/bench-vm.sh" pallet dev pallet_contracts
      
      * addressing review comments
      
      * refactor
      
      * address review comments
      
      * optimize migration
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
      
      * another review round comments addressed
      
      * ci fix one
      
      * clippy fix
      
      * ci fix two
      
      ---------
      
      Co-authored-by: command-bot <>
      fda86dd5
    • gupnik's avatar
      Removes `pallet::call_index` from `dev_mode` example (#14492) · e42768ea
      gupnik authored
      
      
      * Removes call_index
      
      * Adds UI test and updates doc
      
      * Update frame/examples/dev-mode/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/examples/dev-mode/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      ---------
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      e42768ea
    • Bastian Köcher's avatar
      wasm-builder: Make `hash` and `date` optional (#14490) · 42243fb3
      Bastian Köcher authored
      * wasm-builder: Make `hash` and `date` optional
      
      Apparently there are installations where the `hash` and `date` is optional.
      
      Closes: https://github.com/paritytech/substrate/issues/14335
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      ---------
      
      Co-authored-by: command-bot <>
      42243fb3
    • Bastian Köcher's avatar
      sp-api: Put `frame-metadata` behind some feature (#14398) · 698a6d1a
      Bastian Köcher authored
      * sp-api: Put `frame-metadata` behind some feature
      
      Closes: https://github.com/paritytech/substrate/issues/14296
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Review feedback
      
      ---------
      
      Co-authored-by: command-bot <>
      698a6d1a
    • Bastian Köcher's avatar
      sc-tracing: Only print events for whitelisted targets (#14487) · d124c907
      Bastian Köcher authored
      
      
      * sc-tracing: Only print events for whitelisted targets
      
      We should only print events for whitelisted targets, otherwise we may run into some stack overflow
      while printing the event.
      
      * Update client/tracing/src/lib.rs
      
      Co-authored-by: default avatarKoute <[email protected]>
      
      * Fix
      
      ---------
      
      Co-authored-by: default avatarKoute <[email protected]>
      d124c907
    • Cyrill Leutwiler's avatar
      6005d199
  2. Jul 02, 2023
  3. Jul 01, 2023
  4. Jun 30, 2023
  5. Jun 29, 2023
  6. Jun 28, 2023
  7. Jun 27, 2023
    • Liam Aharon's avatar
      fix(test-externalities): include memory db reference counts in snapshots (#14411) · 2119c802
      Liam Aharon authored
      * persist memory db reference counts in snapshots
      
      * update proxy_test snapshot
      
      * clippy
      
      * comment
      
      * comment
      
      * add snapshot versioning
      
      * update proxy_test
      
      * compact snapshot version
      
      * kick ci
      
      * kick ci
      
      * check snapshot version without extra struct
      2119c802
    • Sebastian Kunert's avatar
      Remove unused dependencies (#14464) · ede49c7a
      Sebastian Kunert authored
      ede49c7a
    • gupnik's avatar
      [FRAME Core] Adds ability to split a pallet across multiple files (#13950) · 5d877401
      gupnik authored
      
      
      * Initial setup
      
      * Updates macro_magic version and refactors accordingly
      
      * Removes unwrap from macro
      
      * Splits into multiple sections
      
      * Uses call_site to fix macro hygiene issue
      
      * Initial setup
      
      * Removes unnecessary changes
      
      * Moves template palet back
      
      * Updates cargo.lock
      
      * Moves BagsList inside mod
      
      * Comments access to internal functions for now
      
      * Updates tests
      
      * Uncomments code
      
      * Fixes test
      
      * Moves bags-list to separate crate
      
      * Initial setup
      
      * Removes bags-list changes
      
      * Fix structure
      
      * Minor update
      
      * Addresses review comment
      
      * Adds a couple of UI tests. More to be added
      
      * Adds err files
      
      * Adds test for no pallet
      
      * Adds doc
      
      * Updates versions
      
      * Adds benchmarking
      
      * Updates doc link
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Minor update
      
      * Adds missing changes
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Update frame/support/procedural/src/lib.rs
      
      Co-authored-by: default avatarSam Johnson <[email protected]>
      
      * Addresses review comments
      
      * Addresses review comments
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Update frame/support/procedural/src/lib.rs
      
      Co-authored-by: default avatarSam Johnson <[email protected]>
      
      * Update frame/support/procedural/src/lib.rs
      
      Co-authored-by: default avatarSam Johnson <[email protected]>
      
      * Update frame/support/procedural/src/lib.rs
      
      Co-authored-by: default avatarSam Johnson <[email protected]>
      
      * Adds UI test for disambiguation
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Makes clippy happy
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Fixes frame support test
      
      * Fixes frame support test
      
      * Split items other than storage
      
      * Updates versions
      
      * Fixes some review comments
      
      * Addresses review comments
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Updates docs
      
      * Adds experimental disclaimer
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Update frame/support/test/tests/split_ui/no_section_found.rs
      
      Co-authored-by: default avatarSam Johnson <[email protected]>
      
      * Addresses review comments
      
      * Fixes test
      
      ---------
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarcommand-bot <[email protected]>
      Co-authored-by: default avatarSam Johnson <[email protected]>
      5d877401
  8. Jun 26, 2023
    • Davide Galassi's avatar
      Added missing BLS feature (#14461) · 13cb7ccc
      Davide Galassi authored
      13cb7ccc
    • Michal Kucharczyk's avatar
      `GenesisBuilder` runtime API (#14131) · 9a5d9a58
      Michal Kucharczyk authored
      
      
      * GenesisConfigBuilder: preliminary API proposal
      
      * fmt
      
      * comment removed
      
      * build_default_config removed
      
      * Update client/genesis-builder/src/lib.rs
      
      * config -> gensis_config
      
      * GenesisConfigBuilder: helper added
      
      * moved to primitives
      
      * licesne changed to apache-2.0
      
      * Cargo.toml: name/path to genesis-builder updated
      
      * helper removed
      
      * sp-sd version bumped
      
      * sp-std bump
      
      * naming + new function
      
      * fix
      
      * build_from_patch_json -> build_with_patch
      
      * fix
      
      * Cargo.lock updated
      
      * readme: license updated
      
      * Update primitives/genesis-builder/src/lib.rs
      
      Co-authored-by: default avatarDavide Galassi <[email protected]>
      
      * Update primitives/genesis-builder/src/lib.rs
      
      Co-authored-by: default avatarDavide Galassi <[email protected]>
      
      * Update primitives/genesis-builder/Cargo.toml
      
      Co-authored-by: default avatarDavide Galassi <[email protected]>
      
      * Cargo.lock updated
      
      * removed redundant function
      
      * GenesisConfigBuilder API: no_defaults function added
      
      * Cargo.lock updated
      
      * GenesisConfigBuilder API: patching fn removed
      
      * trigger CI job
      
      ---------
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarDavide Galassi <[email protected]>
      9a5d9a58
  9. Jun 25, 2023
  10. Jun 24, 2023
  11. Jun 23, 2023
    • Jegor Sidorenko's avatar
      Pay tx fee with assets by using the asset conversion pallet (#14340) · be7c654c
      Jegor Sidorenko authored
      
      
      * Pay tx by swapping the assets
      
      * Change liquidity structure
      
      * Uncomment the event
      
      * Update frame/transaction-payment/asset-tx-payment/src/payment.rs
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * New approach
      
      * Fix bounds
      
      * Clearer version
      
      * Change IsType with Into and From
      
      * Enable event
      
      * Check ED + fix the logic
      
      * Add temp comments
      
      * Rework the refund
      
      * Clean up
      
      * Improve readability
      
      * Getting closer
      
      * fix
      
      * Use fungible instead of Currency
      
      * Test account without ed
      
      * Final push
      
      * Fixed
      
      * Rename to pallet-asset-conversion-tx-payment
      
      * Bring back the old pallet
      
      * Update versions
      
      * Update docs
      
      * Update readme
      
      * Wrong readme updated
      
      * Revert back doc change
      
      * Fix import
      
      * Fix kitchensink
      
      * Fix
      
      * One more time..
      
      * Wait pls
      
      * Update frame/asset-conversion/src/lib.rs
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * Update frame/support/src/traits/tokens/fungibles/regular.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Update docs/comments
      
      * Docs improvement
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Payed -> paid
      
      * Docs
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/README.md
      
      Co-authored-by: default avatarMuharem Ismailov <[email protected]>
      
      * Rewrite docs
      
      * Try to clean the deps
      
      * Add debug assert
      
      * Return back frame-benchmarking
      
      * Update cargo
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/src/mock.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Rename
      
      * clearer error message
      
      * Docs for Pay by Swap (#14445)
      
      * docs
      
      * better error name
      
      * more comments
      
      * more docs on swap trait
      
      * Fix compile errors
      
      * Another fix
      
      * Refactoring
      
      * Update frame/transaction-payment/asset-conversion-tx-payment/src/payment.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Emit an error if we fail to swap the refund back
      
      * Add integrity_test
      
      * Update frame/asset-conversion/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Fmt
      
      * Use defensive_ok_or
      
      * child PR: Tidy swap event (#14441)
      
      * Dedup raising swap event
      
      * use expect rather than unwrap
      
      * Additional checks for future defence.
      
      * cargo fmt
      
      * Update frame/asset-conversion/src/lib.rs
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      
      ---------
      
      Co-authored-by: default avatarJegor Sidorenko <[email protected]>
      
      ---------
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: default avatarMuharem Ismailov <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      be7c654c
    • Branislav Kontur's avatar
      Adds ability to prepare/initialize before running `set_code` benchmark (#14435) · 3e2c73df
      Branislav Kontur authored
      * Adds ability to prepare/initialize before running `set_code` benchmark
      
      * Fix
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev frame-system
      
      * Replaced BenchmarkHelper with function
      
      * Fix
      
      * Introduced `set_code_data` for benchmark with default value
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev frame-system
      
      * (Hope) Final adjustment (because system parachains generates ValidationFunctionStored instead of CodeUpdated)
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev frame-system
      
      * ".git/.scripts/commands/bench-vm/bench-vm.sh" pallet dev frame-system
      
      ---------
      
      Co-authored-by: command-bot <>
      3e2c73df
  12. Jun 22, 2023
  13. Jun 21, 2023
  14. Jun 20, 2023