Arkadiy Paronyan
d6d9bd9ea3
Encryption support for the statement store ( #14440 )
...
* Added ECIES encryption
* tweaks
* fmt
* Make clippy happy
* Use local keystore
* qed
2023-07-17 18:41:41 +00:00
André Silva
c761d4c39e
grandpa: avoid importing unnecessary justifications ( #14423 )
...
* grandpa: avoid importing unnecessary justifications
* grandpa: make justification_import_period configurable
* grandpa: keep the first justification
* grandpa: add test for justification import period
* grandpa: fix test
2023-07-17 17:38:34 +00:00
Evgeny Snitko
58bbe568cb
ci-unified:bullseye-1.70.0-2023-05-23 image for ci ( #14532 )
2023-07-17 19:34:14 +04:00
Kian Paimani
6479764161
improve pallet hooks docs ( #14578 )
...
* improve pallet hooks docs
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Sam Johnson <sam@durosoft.com >
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Sam Johnson <sam@durosoft.com >
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Sam Johnson <sam@durosoft.com >
* fix mastekn removal
* Apply suggestions from code review
Co-authored-by: Juan <juangirini@gmail.com >
* add diagram
* fix all links
* fix diagram
* improve diagram with some notes
* update
---------
Co-authored-by: Sam Johnson <sam@durosoft.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Juan <juangirini@gmail.com >
2023-07-17 10:37:01 +00:00
Kian Paimani
1a2d59b1af
basic improvements to sp-runtime docs ( #14583 )
2023-07-17 11:36:37 +02:00
Jacob T Firek
d4ad997deb
fixing return types in crypto module documentation ( #14554 )
...
* fixing return types in documentation
* Apply suggestions from code review
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-07-14 19:39:07 +00:00
PG Herveou
e8a9559696
Contracts add code_len to ContractsInfo ( #14523 )
...
* add code_len to v12
* fix
* Update frame/contracts/src/wasm/mod.rs
* fix
* fixes
* rm test
* add test back
* fix
* update test
* Fix comments
* fix build
* del
* fix clippy
* fix
* re-rename
2023-07-14 12:49:47 +00:00
Marijn Schouten
70694b903a
change $location from tt* to ty and remove unnecessary cb_* versions ( #14571 )
...
* change $location from tt* to ty and remove unnecessary cb_* versions
* fmt
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
Co-authored-by: parity-processbot <>
2023-07-14 12:43:24 +00:00
Vsevolod Stakhov
242e31ec2d
Remove redundant sync primitives for metrics ( #14564 )
...
* Remove redundant locks
* Re-enable warning for a sender when a queue got processed
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* Use debug for subsequent logging
* Update client/network/src/service/out_events.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Anton <anton.kalyaev@gmail.com >
Co-authored-by: parity-processbot <>
2023-07-14 10:47:38 +00:00
Aten Jin
d908e9bebe
do not filter word www in is_node_name_valid check ( #14575 )
2023-07-14 12:07:07 +02:00
Juan
6a29a70a92
Replace system config Index for Nonce ( #14290 )
...
* replace Index by Nonce
* replace Index by Nonce
* replace Index by Nonce
* replace Index by Nonce
* replace Index by Nonce
* wip
* remove index in lieu of nonce
* wip
* remove accountnonce in lieu of nonce
* add minor improvement
* rebase and merge conflicts
2023-07-14 06:56:48 +00:00
Francisco Gamundi
0fbeb31d50
WasmExecutor flag to ignore onchain heappages value ( #14508 )
...
* WasmExecutor flag to ignore onchain heappages value
* fmt
2023-07-14 06:14:14 +00:00
Tonimir Kisasondi
1047f1fad8
Fixes link to inflation documentation ( #14573 )
...
Original link in the source code pointed to a dead URL since the original documentation has moved. This pull request updates the URL with the current version.
2023-07-13 21:25:25 +00:00
Oliver Tale-Yazdi
ee0be2bab7
Re-add deprecated --execution arg on benchmark pallet ( #14567 )
...
* Add DeferGuard::new
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Re-add deprecated 'execution' arg to benchmark pallet cmd.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Extend tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove from tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-07-13 17:41:56 +00:00
Jegor Sidorenko
c4e880c155
Refactor the asset-conversion-tx-payment pallet ( #14558 )
...
* Code refactoring
* Fix imports
* Typo
* Update frame/asset-conversion/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Sync docs
---------
Co-authored-by: parity-processbot <>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2023-07-13 13:44:05 +00:00
gupnik
5e7b27e98c
Moves Block to frame_system instead of construct_runtime and removes Header and BlockNumber ( #14437 )
...
* Initial setup
* Adds node block
* Uses UncheckedExtrinsic and removes Where section
* Updates frame_system to use Block
* Adds deprecation warning
* Fixes pallet-timestamp
* Removes Header and BlockNumber
* Addresses review comments
* Addresses review comments
* Adds comment about compiler bug
* Removes where clause
* Refactors code
* Fixes errors in cargo check
* Fixes errors in cargo check
* Fixes warnings in cargo check
* Formatting
* Fixes construct_runtime tests
* Uses import instead of full path for BlockNumber
* Uses import instead of full path for Header
* Formatting
* Fixes construct_runtime tests
* Fixes imports in benchmarks
* Formatting
* Fixes construct_runtime tests
* Formatting
* Minor updates
* Fixes construct_runtime ui tests
* Fixes construct_runtime ui tests with 1.70
* Fixes docs
* Fixes docs
* Adds u128 mock block type
* Fixes split example
* fixes for cumulus
* ".git/.scripts/commands/fmt/fmt.sh"
* Updates new tests
* Fixes fully-qualified path in few places
* Formatting
* Update frame/examples/default-config/src/lib.rs
Co-authored-by: Juan <juangirini@gmail.com >
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Juan <juangirini@gmail.com >
* ".git/.scripts/commands/fmt/fmt.sh"
* Addresses some review comments
* Fixes build
* ".git/.scripts/commands/fmt/fmt.sh"
* Update frame/democracy/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/democracy/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Addresses review comments
* Updates trait bounds
* Minor fix
* ".git/.scripts/commands/fmt/fmt.sh"
* Removes unnecessary bound
* ".git/.scripts/commands/fmt/fmt.sh"
* Updates test
* Fixes build
* Adds a bound for header
* ".git/.scripts/commands/fmt/fmt.sh"
* Removes where block
* Minor fix
* Minor fix
* Fixes tests
* ".git/.scripts/commands/update-ui/update-ui.sh" 1.70
* Updates test
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Updates doc
* Updates doc
---------
Co-authored-by: command-bot <>
Co-authored-by: Juan <juangirini@gmail.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-07-13 12:01:34 +00:00
Liam Aharon
e42a669c50
Fix Society v2 migration ( #14421 )
...
* fix society v2 migration
* Update frame/society/src/migrations.rs
* Update frame/society/src/migrations.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/society/src/migrations.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* update for versioned upgrade
* fix society v2 migration
* remove references to members being sorted from commnets
* fix type
* fix can_migrate check
* add sanity log
* fix sanity check
* kick ci
* kick ci
* run tests with --experimental flag
* versioned migration cleanup
* revert pipeline change
* use defensive!
* semicolons
* defensive and doc comment
* address pr comment
* feature gate the versioned migration
* defensive_unwrap_or
* fix test
* fix doc comment
* change defensive to a log warning
* remove can_migrate anti-pattern
* Update frame/society/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* add experimental feature warning to doc comment
* update doc comment
* bump ci
* kick ci
* kick ci
* kick ci
---------
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-07-13 10:08:45 +00:00
Sam Johnson
3ee352b109
update to docify 0.2.0 / crate-relative embed paths ( #14570 )
2023-07-13 09:05:04 +00:00
Toufeeq Pasha
0457c1a9e3
[pallet_collective] Enforce prime is a valid member of collective in set_members extrinsic ( #14354 )
...
* Updated set_members extrinsic to enforce prime is valid member of collective
* Added additional tests for set_members extrinsic
* applied the code review suggestions
2023-07-12 16:01:08 +00:00
Branislav Kontur
d3c42b2e8d
Fix refund benchmark for pallet_assets ( #14561 )
...
* Fix refund benchmark for pallet_assets
* Update frame/assets/src/benchmarking.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Re-added docs
* Another "fix"
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2023-07-12 13:41:46 +00:00
Nuke
474b773a6c
Update subkey README.md ( #14552 )
...
* Update `subkey` README.md
getsubstrate.io is not maintained.
Perhaps other things should be updated here in this PR too - open to suggestions!
* Update README.md
2023-07-12 11:48:21 +00:00
Michal Kucharczyk
87d41d0a89
GenesisBuild<T,I> deprecated. BuildGenesisConfig added. (#14306 )
...
* frame::support: GenesisConfig types for Runtime enabled
* frame::support: macro generating GenesisBuild::build for RuntimeGenesisConfig
* frame: ambiguity BuildStorage vs GenesisBuild fixed
* fix
* RuntimeGenesisBuild added
* Revert "frame: ambiguity BuildStorage vs GenesisBuild fixed"
This reverts commit 950f3d019d0e21c55a739c44cc19cdabd3ff0293.
* Revert "fix"
This reverts commit a2f76dd24e9a16cf9230d45825ed28787211118b.
* Revert "RuntimeGenesisBuild added"
This reverts commit 3c131b618138ced29c01ab8d15d8c6410c9e128b.
* Revert "Revert "frame: ambiguity BuildStorage vs GenesisBuild fixed""
This reverts commit 2b1ecd467231eddec69f8d328039ba48a380da3d.
* Revert "Revert "fix""
This reverts commit fd7fa629adf579d83e30e6ae9fd162637fc45e30.
* Code review suggestions
* frame: BuildGenesisConfig added, BuildGenesis deprecated
* frame: some pallets updated with BuildGenesisConfig
* constuct_runtime: support for BuildGenesisConfig
* frame::support: genesis_build macro supports BuildGenesisConfig
* frame: BuildGenesisConfig added, BuildGenesis deprecated
* Cargo.lock update
* test-runtime: fixes
* Revert "fix"
This reverts commit a2f76dd24e9a16cf9230d45825ed28787211118b.
* Revert "frame: ambiguity BuildStorage vs GenesisBuild fixed"
This reverts commit 950f3d019d0e21c55a739c44cc19cdabd3ff0293.
* self review
* doc fixed
* ui tests fixed
* fmt
* tests fixed
* genesis_build macrto fixed for non-generic GenesisConfig
* BuildGenesisConfig constraints added
* warning fixed
* some duplication removed
* fmt
* fix
* doc tests fix
* doc fix
* cleanup: remove BuildModuleGenesisStorage
* self review comments
* fix
* Update frame/treasury/src/tests.rs
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
* doc fix: GenesisBuild exposed
* ".git/.scripts/commands/fmt/fmt.sh"
* frame: more serde(skip) + cleanup
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Davide Galassi <davxy@datawok.net >
* frame: phantom fields moved to the end of structs
* chain-spec: Default::default cleanup
* test-runtime: phantom at the end
* merge master fixes
* fix
* fix
* fix
* fix
* fix (facepalm)
* Update frame/support/procedural/src/pallet/expand/genesis_build.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* fmt
* fix
* fix
---------
Co-authored-by: parity-processbot <>
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: Davide Galassi <davxy@datawok.net >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-07-12 10:22:12 +00:00
PG Herveou
49150ee583
quick updates ( #14557 )
2023-07-12 08:59:01 +00:00
PG Herveou
1818bb130e
Contracts rename v9 to v09 ( #14533 )
2023-07-12 08:33:22 +00:00
Bastian Köcher
ca5970e582
node-template: Remove accidentally added dependency ( #14553 )
...
`sc-statement-store` isn't used by the template and thus, should not appear in the `Cargo.toml`.
2023-07-11 20:55:38 +02:00
Bastian Köcher
5eb816d7a6
Removal of execution strategies ( #14387 )
...
* Start
* More work!
* Moar
* More changes
* More fixes
* More worrk
* More fixes
* More fixes to make it compile
* Adds `NoOffchainStorage`
* Pass the extensions
* Small basti making small progress
* Fix merge errors and remove `ExecutionContext`
* Move registration of `ReadRuntimeVersionExt` to `ExecutionExtension`
Instead of registering `ReadRuntimeVersionExt` in `sp-state-machine` it is moved to
`ExecutionExtension` which provides the default extensions.
* Fix compilation
* Register the global extensions inside runtime api instance
* Fixes
* Fix `generate_initial_session_keys` by passing the keystore extension
* Fix the grandpa tests
* Fix more tests
* Fix more tests
* Don't set any heap pages if there isn't an override
* Fix small fallout
* FMT
* Fix tests
* More tests
* Offchain worker custom extensions
* More fixes
* Make offchain tx pool creation reusable
Introduces an `OffchainTransactionPoolFactory` for creating offchain transactions pools that can be
registered in the runtime externalities context. This factory will be required for a later pr to
make the creation of offchain transaction pools easier.
* Fixes
* Fixes
* Set offchain transaction pool in BABE before using it in the runtime
* Add the `offchain_tx_pool` to Grandpa as well
* Fix the nodes
* Print some error when using the old warnings
* Fix merge issues
* Fix compilation
* Rename `babe_link`
* Rename to `offchain_tx_pool_factory`
* Cleanup
* FMT
* Fix benchmark name
* Fix `try-runtime`
* Remove `--execution` CLI args
* Make clippy happy
* Forward bls functions
* Fix docs
* Update UI tests
* Update client/api/src/execution_extensions.rs
Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/cli/src/params/import_params.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/api/src/execution_extensions.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Pass the offchain storage to the MMR RPC
* Update client/api/src/execution_extensions.rs
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
* Review comments
* Fixes
---------
Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com >
Co-authored-by: Koute <koute@users.noreply.github.com >
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
2023-07-11 14:21:38 +00:00
Bastian Köcher
a2b01c061b
CI: Do not fail on junit upload failure ( #14545 )
...
* CI: Do not fail on junit upload failure
* fix yaml for test-linux-stable
---------
Co-authored-by: alvicsam <alvicsam@gmail.com >
2023-07-11 11:26:44 +02:00
Oliver Tale-Yazdi
d0215bb04f
Add missing workspace members ( #14537 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-07-10 14:34:05 +00:00
Guillaume Yu Thiolliere
4674aeda07
Better handling of error in inherents logic. ( #14521 )
...
* impl
* trigger CI
* Revert "trigger CI"
This reverts commit 9426361416cb051b0507576b010efbc1a6ac65b7.
* Fix
* fix
* fix
* fix
2023-07-10 09:39:37 +02:00
Qinxuan Chen
6d2c1ed719
replace lru with schnellru ( #14539 )
2023-07-09 23:24:23 +02:00
Kian Paimani
6dd625d568
remove OnStakerSlash replace with OnStakingEvents ( #14527 )
...
* remove 'OnStakerSlash', replace with 'OnStakingEvents'
* fix other features in pallets
* small fixes
* fix docs
* fix docs
* fix docs
* Update primitives/staking/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
---------
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
2023-07-09 12:46:18 +00:00
Oliver Tale-Yazdi
53244d64bd
Fix spellcheck for benchmarking comments ( #14535 )
...
* Benchmarking spellcheck fix
Put everything that could cause spellcheck issues into backticks.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Also in templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet-balances
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2023-07-07 15:33:17 +00:00
PG Herveou
d3ef2badcb
contracts: Refactor instantiate with code ( #14503 )
...
* wip
* fixes
* rm comment
* join fns
* clippy
* Fix limits
* reduce diff
* fix
* fix
* fix typo
* refactor store to use self
* refactor run to take self by value
* pass tests
* rm comment
* fixes
* fix typo
* rm
* fix fmt
* clippy
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* Update frame/contracts/src/lib.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* Update frame/contracts/src/wasm/mod.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* Update frame/contracts/src/wasm/mod.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* PR review, rm duplicate increment_refcount
* PR review
* Update frame/contracts/src/wasm/prepare.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* Add test for failing storage_deposit
* fix lint
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
---------
Co-authored-by: command-bot <>
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
2023-07-07 13:46:16 +00:00
cuteolaf
9510ad7310
Update lib.rs ( #14528 )
2023-07-07 08:27:47 +00:00
Piotr Mikołajczyk
820949d38f
Add try-state hook to pallet aura ( #14363 )
...
* Add aura try-state hook
* Trigger checks after unit tests
2023-07-07 07:38:29 +00:00
Liam Aharon
cfe5e8a8df
run tests with --experimental flag ( #14502 )
2023-07-06 21:35:55 +00:00
Qinxuan Chen
e8e2048b88
chore: update some deps to prune duplicated deps ( #14515 )
...
* chore: update some deps to prune duplicated deps
- array-bytes: 4.1.0 => 6.1.0
- cid: 0.8.6 => 0.9.0
* fix
2023-07-06 16:46:44 +02:00
Liam Aharon
9c3ca04781
emit warn log on bad state ( #14513 )
2023-07-05 14:44:56 +00:00
Jegor Sidorenko
032aa05221
Use set_balance() instead of write_balance() in benchmark ( #14497 )
...
* Use set_balance instead of write_balance in benchmark
* Another approach
* Use BalanceOf::<T>::max_value() / 1000
* use a regular div instead of a checked one
2023-07-05 10:04:31 +00:00
Jegor Sidorenko
f5776f6897
Improve NFT locking ( #14510 )
...
* Update docs
* Prevent locking of the same NFT twice
* Validate item is not locked on burn
* Cover with tests
* chore
2023-07-05 09:17:08 +00:00
Bastian Köcher
1bf2504ebf
sc-cli: Remove SubstrateCli::native_runtime_version function ( #14511 )
...
The native runtime will be removed in the near future and thus this function will not be required
anymore.
\# Code changes
Downstream users just need to remove `native_runtime_version` from their implementation of the
`SubstrateCli` trait.
2023-07-05 07:38:06 +00:00
Sasha Gryaznov
f83fdeab53
contracts: switch from parity-wasm-based to wasmi-based module validation ( #14449 )
...
* 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
* save: scan_exports ported, compiles
* save (wip, not compiles)
* 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
* scan_imports ported
* scan_export ported, other checks removed
* tests fixed
tests fixed
* drop wasmparser and parity-wasm dependencies
* typo fix
* 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
* allow stored modules to have no memory imports
* rollback: allow stored modules to have no memory imports
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* address review comments
---------
Co-authored-by: command-bot <>
2023-07-04 21:38:47 +00:00
Bastian Köcher
79f600db70
Revert k256 removal ( #14499 )
...
* Revert "Remove k256 crate from frame-support dependencies (#14452 )"
This reverts commit 4d426214af .
* Keep the test
2023-07-03 23:38:51 +02:00
Ross Bulat
fc36e04dfa
Nomination pools: disallow setting above global max commission ( #14496 )
...
* add CommissionExceedsGlobalMaximum
* rename test
* amend set_commission_max_works_with_error_tests
* fmt
2023-07-03 21:22:12 +00:00
Hugo Trentesaux
7a2a1b93cb
Fix typo ( #14479 ) ( #14480 )
2023-07-03 17:09:29 +00:00
Sasha Gryaznov
fda86dd501
contracts: switch to wasmi gas metering ( #14084 )
...
* 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 <>
2023-07-03 11:04:10 +00:00
gupnik
e42768ea34
Removes pallet::call_index from dev_mode example ( #14492 )
...
* Removes call_index
* Adds UI test and updates doc
* Update frame/examples/dev-mode/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/examples/dev-mode/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-07-03 10:00:44 +00:00
Bastian Köcher
42243fb346
wasm-builder: Make hash and date optional ( #14490 )
...
* 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 <>
2023-07-03 09:58:42 +00:00
Bastian Köcher
698a6d1aa8
sp-api: Put frame-metadata behind some feature ( #14398 )
...
* 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 <>
2023-07-03 11:54:28 +02:00
Bastian Köcher
d124c90734
sc-tracing: Only print events for whitelisted targets ( #14487 )
...
* 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: Koute <koute@users.noreply.github.com >
* Fix
---------
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-07-03 09:47:42 +00:00