Sergej Sakac and Bastian Köcher
1c85bfe901
Broker: sale price runtime api ( #3485 )
...
Defines a runtime api for `pallet-broker` for getting the current price
of a core if there is an ongoing sale.
Closes : #3413
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2024-04-05 23:29:35 +00:00
8f8297e9de
Permissioned contract deployment ( #3377 )
...
Closes : #3196
---------
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: PG Herveou <pgherveou@parity.io >
2024-03-06 00:49:18 +00:00
Sergej Sakac
7e7c488ba8
Validate code when scheduling uprades from registrar ( #3232 )
...
Currently, anyone can registrar a code that exceeds the code size limit
when performing the upgrade from the registrar. This PR fixes that and
adds a new test to cover this.
cc @bkchr @eskimor
2024-02-14 17:00:03 +00:00
Sergej Sakac and Dónal Murray
30b30bee59
Enable cross-chain Coretime region transfers ( #3077 )
...
This PR allows Coretime regions to be transferable via XCM.
---------
Co-authored-by: Dónal Murray <donal.murray@parity.io >
2024-01-27 12:06:38 +00:00
663325313a
Add NonFungibleAdapter ( #2924 )
...
This PR introduces a new `NonFungibleAdapter`.
It will be useful for enabling cross-chain Coretime region transfers, as
the existing `NonFungiblesAdapter` is unsuitable for this purpose. This
is due to the fact that there is only one class of items within the
`pallet-broker`, i.e., the Coretime regions.
---------
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com >
Co-authored-by: Dónal Murray <donalm@seadanda.dev >
2024-01-26 08:23:19 +00:00
488cbe6896
Registrar: Deposit covering max code size ( #3020 )
...
This PR implements phase 1 of:
https://github.com/paritytech/polkadot-sdk/pull/2372#discussion_r1461873933
NOTE: This means that all the current parachains can upgrade their code
to the maximum size for free.
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Radha <86818441+DrW3RK@users.noreply.github.com >
2024-01-24 13:10:15 +00:00
Sergej Sakac and joe petrowski
50a2e28b00
Enable cross-chain NFT transfers on asset-hub ( #2796 )
...
This PR introduces the following changes:
- [x] Adds a `UniquesTransactor` to asset-hub-rococo
- [x] Adds a `UniquesTransactor` to asset-hub-westend
We can't add a transactor for `pallet-nfts` like we do for
`pallet-uniques` because `pallet-nfts` uses `nonfungibles_v2::Mutate`
instead of `nonfungibles::Mutate`, and making that work would be out of
scope of this PR.
With these modifications, reserve-based NFT cross-chain transfers can be
performed on asset-hub.
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2024-01-19 15:14:26 +00:00
Sergej Sakac
ae14e6da6a
Broker pallet: fix interlacing ( #2811 )
...
With the current code, when a user interlaces their region, the end
result will be three regions in the state:
- the non-interlaced region
- first part of the interlaced region
- second part of the interlaced region
The existing implementation retains the non-interlaced region in the
state, leading to a problematic scenario:
1. User 1 acquires a region from the market.
2. User 1 then interlaces this region.
3. Subsequently, User 1 transfers one part of the interlaced regions to
User 2.
Despite this transfer, User 1 retains the ability to assign the entire
original non-interlaced region, which is inconsistent with the fact that
they no longer own one of the interlaced parts.
This PR resolves the issue by removing the original region, ensuring
that only the two new interlaced regions remain in the state.
2023-12-29 08:04:53 +01:00
Sergej Sakac
64d52f225e
Publicly expose inaccessible pallet_uniques state ( #2727 )
...
A small PR to publicly expose the `pallet_uniques` state that is not
accessible through the nonfungibles implementation.
Currently, this state is unreachable from chain extensions.
2023-12-16 23:41:53 +01:00
Sergej Sakac
f14bf347e8
Broker pallet: RegionDropped event fix & additional tests ( #1609 )
...
This PR includes the following fix:
- [x] The `duration` is always set to zero in the `RegionDropped` event.
This is fixed in this PR.
Also added some additional tests to cover some cases that aren't covered
:
- [x] Selling a partitioned region to the instantaneous coretime pool.
- [x] Partitioning a region after assigning it to a particular task.
- [x] Interlacing a region after assigning it to a particular task.
2023-09-18 12:02:15 +02:00
6da4e90e51
Try-state for Referenda pallet ( #13949 )
...
* Try-state for Referenda pallet
* fix & more tests
* checking more stuff
* remove log
* two more tests
* Update frame/referenda/src/lib.rs
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
* fixes
* new check
* merge fixes
* fix warning
* remove check
* Update frame/referenda/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* separate into multiple functions
* clean up
* unnecessary return value specified
* fix
* Update frame/referenda/src/lib.rs
* fmt
* remove import
* fmt
* fix CI
* Update frame/referenda/src/lib.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* last fixes
* :P
* fmt
---------
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
2023-07-30 06:17:44 +00:00
Sergej Sakac and Andronik
ac253c7139
Add NetworkBridgeEvent::UpdatedAuthorityIds ( #6227 )
...
* Add NetworkBridgeEvent::UpdatedAuthorityIds
* update collator
* informing subsystems
* remove outdated authority data
* docs
* remove accidentally added line
* update docs
* emit event on session change
* emit
* check for update and update
* Update node/network/gossip-support/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/approval-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/bitfield-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/bridge/src/rx/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/collator-protocol/src/validator_side/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/collator-protocol/src/collator_side/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/bridge/src/rx/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/statement-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/statement-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages/network_bridge_event.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages.rs
Co-authored-by: Andronik <write@reusable.software >
* fixes
* merge fixes
* make clippy happy again
* fix
---------
Co-authored-by: Andronik <write@reusable.software >
2023-07-21 13:48:15 -05:00
15bd9e6fa7
try-runtime-cli: execute-block & create-snapshot tests ( #14343 )
...
* execute-block test
* test create-snapshot
* oops
* Update utils/frame/try-runtime/cli/tests/create_snapshot.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update utils/frame/try-runtime/cli/tests/create_snapshot.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update utils/frame/try-runtime/cli/tests/create_snapshot.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* remove snapshot
* execute block: new log
* use prefix & make tempfile a dev dependencie
* Update utils/frame/try-runtime/cli/tests/execute_block.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update utils/frame/try-runtime/cli/tests/create_snapshot.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* ".git/.scripts/commands/fmt/fmt.sh"
* --at option in execute-block test
* fixes & use --at option in create-snapshot test
* hmm
* fmt
* remove nonsense
* Update utils/frame/try-runtime/cli/tests/create_snapshot.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update utils/frame/try-runtime/cli/tests/execute_block.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* remove unnecessary test modules
* try to load snapshot file
* fix
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-06-24 09:36:15 +00:00
Sergej Sakac
4023f519b6
Try-runtime proper return types ( #2615 )
...
* Try-runtime proper return types
* update
* update pallet-xcm
2023-05-23 09:59:52 +00:00
Sergej Sakac and parity-processbot
2b6f0b0194
Try-runtime proper return types ( #7146 )
...
* Try-runtime proper return types
* update
* oops
* use ensure
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-05-23 07:40:37 +00:00
df87bae1a9
BREAKING - Try-runtime: Use proper error types ( #13993 )
...
* Try-state: DispatchResult as return type
* try_state for the rest of the pallets
* pre_upgrade
* post_upgrade
* try_runtime_upgrade
* fixes
* bags-list fix
* fix
* update test
* warning fix
* ...
* final fixes 🤞
* warning..
* frame-support
* warnings
* Update frame/staking/src/migrations.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* fix
* fix warning
* nit fix
* merge fixes
* small fix
* should be good now
* missed these ones
* introduce TryRuntimeError and TryRuntimeResult
* fixes
* fix
* removed TryRuntimeResult & made some fixes
* fix testsg
* tests passing
* unnecessary imports
* Update frame/assets/src/migration.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2023-05-23 06:56:10 +00:00
Sergej Sakac
903d62beec
Improve try-state docs ( #13967 )
...
* Improve Try-State docs
* fmt
* fixes
2023-05-21 23:30:49 +02:00
0bc3d2c0ce
Glutton Parachain ( #2294 )
...
* Glutton Parachain
* implement collator stuff
* add glutton
* implement missing api calls
* small changes
* use shell-runtime as starting point
* update docs
* Glutton chain configurations
* successfully build
* add local chain config
* chain spec
* update Cargo.lock
* Update parachains/runtimes/glutton/glutton-kusama/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update parachains/runtimes/glutton/glutton-kusama/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update parachains/runtimes/glutton/glutton-kusama/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update parachains/runtimes/glutton/glutton-kusama/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* explicit indices
* update para_id
* irrelevant docs
* update glutton.json
* para_id as cli argument
* expect
* merge
* update
* fixes
* xcm-builder/runtime-benchmarks added
* benchmarks enabled
* add glutton to bench scripts + nitpick
* remove local bootnode
* ".git/.scripts/commands/fmt/fmt.sh"
* make clippy happy
* fix clippy
* fix chain_spec
* fix chain_spec 2
* fix chain_spec 3
* ".git/.scripts/commands/bench/bench.sh" pallet glutton-kusama-dev-1300 glutton pallet_glutton
* Update polkadot-parachain/src/chain_spec/glutton.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update parachains/runtimes/glutton/glutton-kusama/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: NachoPal <ignacio.palacios.santos@gmail.com >
Co-authored-by: command-bot <>
2023-05-17 09:49:18 +00:00
Sergej Sakac and Oliver Tale-Yazdi
afbdfbca2a
Try-state for Collective pallet ( #13645 )
...
* write the try_state_ function
* update tests
* update check
* fix benchmarking
* fix nonsense
* Update frame/collective/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/collective/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* unique proposal index
* prime must be a member of the collective
* oops
* Add new checks
* use ensure
* fix
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-17 15:43:13 +10:00
Sergej Sakac
f4d079a723
Warn if pallet provided to try-state does not exist ( #13858 )
...
* Warn if pallet does not exist in try-state
* unwrap_or_default
2023-04-09 03:20:13 +10:00
1d6423b41d
Assets pallet: Don't allow set_min_balance when sufficient ( #13510 )
...
* Assets pallet: Don't allow set_min_balance when sufficient
* fix
* fix benchmark
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets
* Update frame/assets/src/lib.rs
* fix
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets
---------
Co-authored-by: command-bot <>
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-03-03 21:39:45 +01:00
Sergej Sakac and Bastian Köcher
47046d798c
Companion for #13486 ( #2253 )
...
* Companion for #13486
* fix
* Update Substrate & Polkadot
---------
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-03-02 11:28:27 +00:00
2b29966f75
Assets pallet: Giving the asset owner the ability to set minimum balance ( #13486 )
...
* set_min_balance
* allow when new_min_balance < old_min_balance
* add more specific event
* Update frame/assets/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/assets/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets
* use actual weight
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: command-bot <>
2023-03-02 10:16:47 +00:00
d5beaa5542
Glutton pallet ( #12833 )
...
* Pov-Limit pallet
* use Perbill & fixes
* fixes
* reads & writes
* update docs
* tests
* calculate weight
* fmt
* benchmark
* logic fix
* naming fix
* caclulate computation weight limit
* make the Hasher generic
* make the code compile
* generate weight
* fix on_idle
* fix
* fix
* make reading generic
* fix?
* fixes
* remove warning
* fix
* hasher fix :D
* change value
* test
* actual weight and expected weight are the same
* update
* fix
* add events
* remove useless line
* using actual hashing algorithm
* better readability
* fix nits
* Update
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add migration
* hardcode proof_size in weights.rs
* format
* fixes
* Fix weight
* docs
* fix
* Update frame/pov-limit/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/pov-limit/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* empty on_ilde & update weight.rs
* remove migration & fix benchmark
* remove migration from migrations
* initialize_pallet
* use blake2
* Update frame/pov-limit/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/pov-limit/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/pov-limit/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* rename pallet
* make the wasters non-generic
* rename to glutton
* fix
* small fixes & run benchmark
* increase left over ref-time in tests
* Update frame/glutton/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* or values
* fix
* generate weight
* Update frame/glutton/Cargo.toml
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix nits
* Adjustments
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Tweak constants
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* remove genesis config
* passing tests
* More precise results
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update node-executor test
* Calculate number of iterations in advance
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* increase criteria
* Final fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/glutton/src/tests.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/glutton/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/glutton/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix typos
* Update frame/glutton/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/glutton/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* expand/shrink
* fmt
* Revert "Update frame/glutton/src/lib.rs"
This reverts commit 98a237afd27de3deb15ba381871e12f71a9d71b1.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use CountedStorageMap
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add benchmark
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use manual map counter
Something with the R/W count in the benchmarking result did not add
up. Need to investigate but for now just using a manual counter.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use new template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Doc+typos
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton
* Apply suggestions from code review
Co-authored-by: Koute <koute@users.noreply.github.com >
* Add minimal README
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: command-bot <>
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-02-21 22:39:27 +00:00
Sergej Sakac
5ba5e0d25f
Fee and tip represented as asset ID inside AssetTxFeePaid ( #13083 )
...
* fee & tip in the asset ID Balance type
* docs
* rewrite
* update runtime config
* docs
2023-02-02 06:47:49 +00:00
Sergej Sakac and Kian Paimani
136086fffa
Calling proxy doesn't remove announcement ( #13267 )
...
* Calling proxy doesn't remove announcement
* Update frame/proxy/src/tests.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fmt
---------
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-02-01 18:17:05 +01:00
baa282194d
Warn validators with slow hardware ( #1863 )
...
* Warn validators with slow hardware
* update
* fix
* revert
* Fix printing logic
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update polkadot-parachain/src/service.rs
* import
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate", "polkadot"}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-01-21 18:14:53 +00:00
db726cf7bb
Warn validators with slow hardware ( #6269 )
...
* Warn validators with slow hardware
* update
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix printing logic
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add deps
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-01-21 17:36:47 +00:00
Sergej Sakac and Oliver Tale-Yazdi
5ccd9bfc5a
Warn validators with slow hardware ( #12620 )
...
* move Metric
* run hardware bench if validiator flag is being used
* fix rustdoc & update node-template
* fix
* unused improt
* warn
* move Requirement
* bench_result
* ensure_requirements
* make the code compile
* check if authority
* Update client/sysinfo/src/sysinfo.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* nit fixes
* warning signs
* Update client/sysinfo/src/sysinfo.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-01-20 20:26:12 +01:00
Sergej Sakac and Bastian Köcher
5af801ce60
Forbid stray tokens in call index ( #13036 )
...
* Check for call_index
* fixes
* pallet ui test for weight attribute
* Update frame/support/procedural/src/pallet/parse/call.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* fix
* small fix
* wrong return type
* ...
* .
* final fix
* update .stderr
* commit
* udpate
* Update frame/support/procedural/src/pallet/parse/call.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* update .stderr
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-01-02 10:23:33 +00:00
Sergej Sakac and Oliver Tale-Yazdi
8d3548df1c
Collective: Benchmark with greater MaxProposals ( #12454 )
...
* Collective: Benchmark with greated
* fix
* remove bs
* id_to_remark_data
* fix
* remove hardcoded
* clean up
* simplify
* questionable renaming
* better variable name
* better solution
* no need for large length
* better solution
* Update frame/collective/src/benchmarking.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix
* test
* remove test
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-11-14 22:34:30 +00:00
Sergej Sakac and Bastian Köcher
e5910d971e
New root_testing pallet ( #12451 )
...
* Move fill_block to RootOffences
* docs
* new pallet
* new line
* fix
* Update frame/root-testing/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/root-testing/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update bin/node/runtime/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/root-testing/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/root-testing/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/root-testing/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* fixes
* problem solved
* revert
* fix dependency
* hopefully making the CI happy
* ...
* dummy call
* remove dummy
* fix warning
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-11-13 18:48:11 +00:00
Sergej Sakac and parity-processbot
92ea52b112
remove fill_block ( #6200 )
...
Co-authored-by: parity-processbot <>
2022-11-12 14:14:35 +00:00
Sergej Sakac and Oliver Tale-Yazdi
65b285e632
Move Throughput into sc-sysinfo ( #12368 )
...
* move Throughput to sc-sysinfo
* replace u64
* fix in tests
* change Throughput
* refactored Throughput
* fixes
* moved tests & fixes
* custom serializer
* note
* fix serializer
* forgot to remove
* deserialize
* functioning deserialization :)
* try to make clipply happy
* Serialize as function
* test HwBench
* rename
* fix serialization
* deserialize as function
* unused import
* move serialize/deserialize
* don't serialize none
* remove nonsense
* remove nonsense comment :P
* fixes
* remove all the todos
* return enum
* fixes
* fix nit
* improve docs & readability
* Update client/sysinfo/src/sysinfo.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix all the nits
* rename
* fix
* Update client/sysinfo/src/sysinfo.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* remove unit from serialization
* Update utils/frame/benchmarking-cli/src/machine/hardware.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-11-04 17:13:57 +00:00
Sergej Sakac and parity-processbot
63d7ce61ab
Xcm-Simulator Docs ( #6178 )
...
* Xcm-Simulator Docs
* spelling
* examples
* better docs
Co-authored-by: parity-processbot <>
2022-11-03 23:49:04 +01:00
Sergej Sakac and Bastian Köcher
a1f8a74a37
Utility: add more tests for batch/batchAll/forceBatch ( #12506 )
...
* Utility: add more tests for batch/batchAll/forceBatch
* remove unnecessary
* batch works with council
* add more tests
* better call examples
* shorter code
* Update frame/utility/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/utility/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/utility/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* update TestBaseCallFilter
* fix
* fix?
* fix
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-10-28 15:18:09 +00:00
Sergej Sakac and parity-processbot
0cc0867c45
pallet-mmr: RPC and Runtime APIs work with block numbers ( #6072 )
...
* pallet-mmr: RPC API works with block numbers
* small fix
* update
* change types
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-13 11:04:00 +00:00
9dd89e7fa3
pallet-mmr: RPC API and Runtime API work with block numbers ( #12345 )
...
* pallet-mmr: RPC API works with block_numbers
* fixes
* update rpc
* fmt
* final touches in the rpc
* temporary fix
* fix
* fmt
* docs
* Update lib.rs
* use NumberFor
* validate input
* update runtime
* convert block_number to u64
* small edit
* update runtime api
* test fix
* runtime fix
* update test function
* fmt
* fix nits
* remove block_num_to_leaf_index from runtime api
* Update frame/merkle-mountain-range/src/lib.rs
Co-authored-by: Robert Hambrock <roberthambrock@gmail.com >
* fix tests
* get the code to compile after merge
* get the tests to compile
* fix in tests?
* fix test
* Update frame/merkle-mountain-range/src/tests.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update frame/merkle-mountain-range/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update primitives/merkle-mountain-range/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* fix errors & nits
* change block_num_to_leaf_index
* don't make any assumptions
* Update frame/merkle-mountain-range/src/tests.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update frame/merkle-mountain-range/src/tests.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update frame/merkle-mountain-range/src/tests.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* fix
* small fix
* use best_known_block_number
* best_known_block_number instead of leaves_count
* more readable?
* remove warning
* Update frame/merkle-mountain-range/src/lib.rs
Co-authored-by: Robert Hambrock <roberthambrock@gmail.com >
* simplify
* update docs
* nits
* fmt & fix
* merge fixes
* fix
* small fix
* docs & nit fixes
* Nit fixes
* remove leaf_indices_to_block_numbers()
* fmt
Co-authored-by: Robert Hambrock <roberthambrock@gmail.com >
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2022-10-13 10:13:56 +00:00
Sergej Sakac and parity-processbot
c8151aed3c
Maximum value for MultiplierUpdate ( #6021 )
...
* update multiplier
* fix
* update lockfile for {"substrate"}
* fmt
* fix typo
Co-authored-by: parity-processbot <>
2022-10-06 19:20:58 +02:00
4bf7097732
Maximum value for MultiplierUpdate ( #12282 )
...
* Maximum value for MultiplierUpdate
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Stephen Shelton <steve@brewcraft.org >
* Update lib.rs
* return constant
* fix in runtime
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fixes
* remove unused import
* Update lib.rs
* more readable
* fix
* fix nits
Co-authored-by: Stephen Shelton <steve@brewcraft.org >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-10-06 12:12:51 +00:00
8f048cf522
Improved election pallet testing ( #12327 )
...
* Improved election pallet testing
* fmt
* remove comment
* more checks
* fixes in logic
* roll_to_signed
* switch to roll_to_signed
* Update frame/election-provider-multi-phase/src/mock.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* remove useless checks
* remove warning
* add checks to signed.rs
* add some checks to unsigned.rs
* fmt
* use roll_to_signed and roll_to_unsigned
* remove nonsense
* remove even more nonsense
* fix
* fix
* remove useless checks
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2022-10-04 22:16:07 +00:00
ea43466879
New Pallet: Root offences ( #11943 )
...
* root-offences pallet
* fix errors
* cleaned up a bit
* remove unwrap()
* new pallet is getting compiled
* remove unnecessary type annotations
* remove more unnecessary type annotations
* addidtional cleaning
* commit
* cleaned up
* fix in logic
* add event
* removed Clone trait from AccountId
* test module
* remove unused imports
* fmt
* fix
* separate into functions, still messy
* test
* first test
* fmt
* cleaned up a bit
* separate into mock.rs and tests.rs
* basic docs for now
* pallet_staking GenesisiConfig
* fix
* added start_session
* passing tests
* impl GenesisConfig for pallet_session
* updated event
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* remove <T: Config
* specifying trait bounds inside Config
* commit
* active era increases correctly :)
* ExtBuilder
* slashing works
* new test
* additional test
* commit
* order
* fix?
* fix in logic
* remove unnecessary
* wrap comment at 100
* fmt
* merge fixes
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* docs
* Update frame/root-offences/README.md
Co-authored-by: Andronik <write@reusable.software >
* Update frame/root-offences/Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* license header
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Andronik <write@reusable.software >
2022-09-28 20:04:14 +00:00
249316d87f
Pallet staking events to named enum ( #12342 )
...
* Pallet staking events to named enum
* fmt
* update np staking tests
* update remaining events
* update benchmarks
* Update frame/nomination-pools/test-staking/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/staking/src/pallet/mod.rs
* Update frame/staking/src/pallet/mod.rs
* Update frame/staking/src/lib.rs
* Update frame/staking/src/pallet/impls.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
2022-09-27 11:44:20 +00:00
Sergej Sakac
28637fcb8f
Removed OuterCall alias & doc fixes ( #12349 )
2022-09-25 23:22:54 +02:00
d53444ef81
Rename Origin ( #1628 )
...
* Rename Origin
* more renaming
* fixes
* fix errors
* last fix?
* rename
* Update mock.rs
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-20 23:17:31 +00:00
937c4e76ae
Rename Origin ( #6020 )
...
* Rename Origin
* fmt
* fixes
* more fixes
* fix
* more fixing
* small fixes
* last touches
* update lockfile for {"substrate"}
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-20 22:53:12 +00:00
Sergej Sakac
e4b6f4a66d
BREAKING: Rename Origin ( #12258 )
...
* BREAKING: Rename Origin
* more renaming
* a bit more renaming
* fix
* more fixing
* fix in frame_support
* even more fixes
* fix
* small fix
* ...
* update .stderr
* docs
* update docs
* update docs
* docs
2022-09-20 22:13:09 +00:00
68ba7e544d
Companion for #11981 ( #1563 )
...
* Companion for #11981
* rename
* Event to RuntimeEvent in imports
* missed rename
* undo
* revert
* rename type Call & Event
* commit
* ...
* fix
* fix errors
* fixes
* fmt
* fix imports
* final fix?
* fmt
* fix?
* fixes after merge
* small fix
* cargo update -p polkadot-runtime-common
* cargo +nightly fmt
* update lockfile for {"polkadot", "substrate"}
* fix
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-12 23:55:33 +00:00
8ea6076fe5
Companion for #11981 ( #5915 )
...
* Companion for #11981
* more renaming
* fmt
* fixes
* add generic type
* Companion for #11831
* fix
* revert changes
* Delete rename-outer-enum.diff
* revert
* Update run_benches_for_runtime.sh
* rename type Call & type Event
* passing tests
* fmt
* small fixes
* commit
* fix
* fmt
* commit
* error fixes
* fix
* small fix in test
* Update lib.rs
* Update lib.rs
* Update lib.rs
* Update lib.rs
* Update lib.rs
* Update lib.rs
* Update lib.rs
* remove RuntimeCall from pallet_grandpa
* last fix
* commit
* rename
* merge fix
* update lockfile for {"substrate"}
* cargo +nightly fmt
* fix
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-09-12 23:03:47 +00:00
Sergej Sakac and Shawn Tabrizi
6e8795afe6
BREAKING: Rename Call & Event ( #11981 )
...
* rename Event to RuntimeEvent
* rename Call
* rename in runtimes
* small fix
* rename Event
* small fix & rename RuntimeCall back to Call for now
* small fixes
* more renaming
* a bit more renaming
* fmt
* small fix
* commit
* prep for renaming associated types
* fix
* rename associated Event type
* rename to RuntimeEvent
* commit
* merge conflict fixes & fmt
* additional renaming
* fix.
* fix decl_event
* rename in tests
* remove warnings
* remove accidental rename
* .
* commit
* update .stderr
* fix in test
* update .stderr
* TRYBUILD=overwrite
* docs
* fmt
* small change in docs
* rename PalletEvent to Event
* rename Call to RuntimeCall
* renamed at wrong places :P
* rename Call
* rename
* rename associated type
* fix
* fix & fmt
* commit
* frame-support-test
* passing tests
* update docs
* rustdoc fix
* update .stderr
* wrong code in docs
* merge fix
* fix in error message
* update .stderr
* docs & error message
* .
* merge fix
* merge fix
* fmt
* fmt
* merge fix
* more fixing
* fmt
* remove unused
* fmt
* fix
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-09-12 22:03:31 +00:00
Sergej Sakac and Bastian Köcher
2795b5fd29
Uniques: Small fix in docs ( #12143 )
...
* small fix in docs
* Update frame/uniques/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update lib.rs
* Update lib.rs
* Update lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-09-06 12:16:29 +00:00
7f1b9a937a
Uniques: Reset approved account after transfer ( #12145 )
...
* reset approved account
* wrap at 100
* doc
* fmt
* Update frame/uniques/src/tests.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* new test
* Update frame/uniques/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* fmt
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-09-01 08:45:20 +00:00
Sergej Sakac and command-bot
f0a8dc6a9d
companion for #11796 ( #1460 )
...
* companion for #11796
* fix
* ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_uniques
* ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_uniques
* ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_uniques
* fix
* update sp-io
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: command-bot <>
2022-07-31 11:23:53 +00:00
658b179686
Auto-incremental CollectionId ( #11796 )
...
* autoincrementing CollectionId
* fix
* benchmarking fix
* fmt
* fix
* update before checking
* fmt
* fix
* fmt
* commit
* tests & fix
* fix
* commit
* docs
* safe math
* unexpose function
* benchmark
* fmt
* better naming
* fix?
* merge fixes
* fmt
* ".git/.scripts/bench-bot.sh" pallet dev pallet_uniques
* wrong weight
* Update frame/uniques/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/uniques/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* using substrate trait instead of num-traits
* remove unnecessary trait
* emit NextCollectionIdIncremented in do_create_collection
* fix in benchmarks
* check for event & group import
* docs
Co-authored-by: Sergej Sakač <sergejsakac@Sergejs-MacBook-Air.local >
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-07-30 14:09:25 +00:00
Sergej Sakac and kianenigma
c2df8308d7
Companion for #11831 ( #5784 )
...
* Companion for #11831
* commti
* fix
* fix
* commit
* fix?
* added rpc extension
* fmt
* add dependency
* added NominationPools to runtimes
* implement np
* implement for kusama & westend
* remove np-rpc from rococco
* fmt
* add np-rpc to the client
* fix wrong dependency in client
* remove from client
* remove from rpc
* fix?
* switch back
* fix?
* .
* add rpc extension
* fmt
* fix dependency
* commit
* only implement the api in the runtimes
* update
* update runtimes
* update sp-io
* update
* Update Cargo.toml
* Update Cargo.toml
* Update Cargo.toml
* commit
* Revert "Merge branch 'rpc-pending-rewards' of github.com:Szegoo/polkadot into rpc-pending-rewards"
This reverts commit dd260820641060b6106b238081d674e902267f24, reversing
changes made to 8f3b58dbe28132a95c4d595700214f886da22e5e.
Co-authored-by: kianenigma <kian@parity.io >
2022-07-27 09:32:31 +00:00
cdfd2da02e
Rpc for pending rewards ( #11831 )
...
* rpc pending rewards
* commit
* remove unused imports
* fix
* fix
* fmt
* fix
* fmt
* fix
* docs
* docs & formatting
* better formatting
* temporary fix
* error handling
* fix?
* fmt
* use to_string
* fmt
* fixed error handling
* fix
* rpc added to client
* Update Cargo.toml
* Update Cargo.toml
* fix wrong reward counter
* expose function
* move implementation
* docs
* docs
* docs
* Update lib.rs
* Update lib.rs
* unexpose functions
* unused dependency
* update Cargo.lock
* Update frame/nomination-pools/src/lib.rs
* Update lib.rs
* Update lib.rs
* Update frame/nomination-pools/rpc/runtime-api/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove rpc
* remove rpc directory
* final fix
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-07-26 11:06:48 +02:00
Sergej Sakac
a0a806ac78
removed evaluation.rs ( #11766 )
...
* removed evaluation.rs
* no need for parent_hash
* fix
2022-07-16 23:38:38 +02:00
Sergej Sakac
c39bea2245
nomination-pools fix ( #11748 )
...
* Nomination pool fix
* fmt
2022-06-30 10:02:57 +00:00
Sergej Sakac
973b6be6f5
Added an event for cancel_proposal ( #11620 )
...
* Added an event for cancel_proposal
* test
2022-06-12 16:40:29 +00:00
Sergej Sakac and Keith Yeung
d09e835753
Tracable defensive errors ( #11532 )
...
* Tracable defensive errors
* small fixes
* fix
* refactored
* switched to defensive_ok_or
* Remove unnecessary type annotations and conversions
* cargo fmt
* Fixes
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-06-03 14:25:55 +00:00
Sergej Sakac
ccbab1beea
Fixed pruning docs ( #11519 )
2022-05-28 11:55:51 +02:00