Roman Useinov
a1f7b74d8a
[Fix] Deposit weight hardcoded to pre-bench value ( #1651 )
...
* [Fix] Deposit weight hardcoded to pre-bench value
* lint
2022-09-21 10:57:54 +00:00
Sergej Sakac
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
Muharem Ismailov
fc97bf456a
Bump runtimes transaction version for v9290 ( #1647 )
2022-09-20 13:36:04 +00:00
Roman Useinov
fc48b45862
[Fix] Hardcode teleport weight until XCM pallet is fixed ( #1641 )
...
* [Fix] Hardcode teleport weight until XCM pallet is fixed
* fix build
* solve dead code
* fix lint
* more eloquent weights
* quick fix
2022-09-20 10:17:54 +00:00
joe petrowski
6a2dd3c688
Revert "[Fix] Weight calculations for Wild -> affects teleports ( #1639 )" ( #1640 )
...
This reverts commit a5686cf93b .
2022-09-19 20:18:14 +00:00
Roman Useinov
a5686cf93b
[Fix] Weight calculations for Wild -> affects teleports ( #1639 )
...
* [Fix] Weight calculations for Wild -> affects teleports
* introduce a separate asset limit for teleports
* fix deposit
* reshuffle abstractions
* fix imports
* little refactoring
* Update parachains/common/src/xcm_config.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* add comments
Co-authored-by: Squirrel <gilescope@gmail.com >
2022-09-19 18:29:31 +00:00
Squirrel
5b84ea0788
Don't panic. ( #1629 )
2022-09-16 10:28:15 +00:00
Keith Yeung
2072bdf777
Companion for paritytech/substrate#12219 ( #1610 )
...
* Remove CanAuthorWith trait
CanAuthotWith trait removed. Also all dependencies, parameters, type
paramers were removed. This is related to removal of native runtime.
* Companion for paritytech/substrate#12219
* Fixes
* polkadot-runtime-common updated
cargo update -p polkadot-runtime-common
* warning fixed
* Update cid
* update lockfile for {"polkadot", "substrate"}
* Update substrate
* update lockfile for {"polkadot", "substrate"}
* Update polkadot
* Fix tests
* 🤦
Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-09-14 07:59:03 +00:00
Sergej Sakac
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
Muharem Ismailov
981ab19d54
runtimes version to 9290 ( #1612 )
...
* runtimes version to 9290
* No need to bump shell
Co-authored-by: Giles Cope <gilescope@gmail.com >
2022-09-12 10:12:06 +00:00
Keith Yeung
11b18e89c6
Companion for paritytech/substrate#12183 ( #1601 )
...
* Companion for paritytech/substrate#12183
* Fixes
* Update pallets/xcmp-queue/src/lib.rs
* Update pallets/xcmp-queue/src/lib.rs
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
2022-09-08 05:29:53 +00:00
Keith Yeung
36e721bf2a
Companion for paritytech/substrate#12157 ( #1590 )
...
* Remove RefTimeWeight
* [ci] Apply cargo-fmt
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: parity-processbot <>
2022-09-02 19:36:55 +00:00
Shawn Tabrizi
2c1e88522c
Companion for Weight v1.5 Follow Up ( #1584 )
...
* fixes
* oopsie
* [ci] Apply cargo-fmt
* fixes
* [ci] Apply cargo-fmt
* fixes
* fix cumulus template
* fix merge
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: parity-processbot <>
2022-09-01 19:25:05 +00:00
Muharem Ismailov
8765c22840
Update Cumulus to Latest Substrate and Polkadot Master ( #1551 )
...
* proposal provider impl for proposals func
* rustfmt
* impl proposals_count fn
* update lockfile for {"substrate", "polkadot"}
* cargo update pallet-alliance
* cargo update deps
* fix for https://github.com/paritytech/substrate/commit/324a18e3c5cbf333672c54f9367f530ea976928d
* update lockfile for {"substrate", "polkadot"}
* fix try runtime feature flags
* update log target
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-09-01 17:20:08 +00:00
Roman Useinov
cc14953b05
[Feature] Add XCM benchmark weights to Statemint and Statemine ( #1454 )
...
* [Feature] Add XCM benchmarark weights to Statemint and Statemine
* add xcm-bench-template
* add polkadot xcm bench pallet to statemint
* Sample benchmarking that compiles
* add benches to the module
* Remove batches assertion and whitelist ActiveConfig
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
* fix benchmarks
* fix get_multi_asset
* fmt and more bench fixes
* reformat
* move Xcm type definitions
* define types twice
* remove commented out lines
* define Xcm bench types globally
* test use
* fix semi
* make sure the type definittion is properly documented
* tweak TrustedTeleporter/Reserve
* use dots as asset
* copy benchmarks over, fix the ci script
* remove extra asset
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
* benchmarks setup for statemint/e and westmint
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::fungible
* remove a check
* ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::generic
* implement WeightInfoBounds for all the asset runtimes
* update Cargo.lock
* fix Muharem's comments
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
* Update parachains/runtimes/assets/statemint/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix some review comments
* fix file headers
* more fixes to licenses and such
* fix another inconsistency
* Extend weights template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* remove a placeholder
* remove redundant overrides
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::fungible
* Update benchmarking.rs
* remove redundant bench
* fix
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
* Update pallets/xcm-benchmarks/src/fungible/mock.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* remove TODO's
* remove local xcm-benchmark-pallet impl
* disable CheckedAccount in benches
* update template
* fix up imports
* fix xcm
* fix the template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-09-01 11:39:01 +02:00
Shawn Tabrizi
48d4f1c57d
Companion for Weight v1.5 ( #1581 )
...
* cargo test -p cumulus-primitives-utility
* cargo test -p cumulus-pallet-xcmp-queue
* cargo test -p cumulus-pallet-xcm
* cargo test -p cumulus-pallet-dmp-queue
* cargo test -p pallet-template
* cargo test -p cumulus-test-runtime
* fix weights
* fix more weights
* cargo test -p parachains-common
* cargo test -p parachain-template-runtime
* fix weights import
* cargo test -p collectives-polkadot-runtime
* cargo test -p contracts-rococo-runtime
* more
* unused
* fixes
* Update benchmarking.rs
* Update lib.rs
* Update lib.rs
* fix
* fix bug in conversion
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-08-31 12:24:42 +00:00
Oliver Tale-Yazdi
52d1473da4
Co #12059 : Revert "Auto-incremental CollectionId" ( #1557 )
...
* Remove try_increment_id weight info
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"polkadot", "substrate"}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-08-19 13:41:05 +00:00
Muharem Ismailov
7a0620e07e
Transaction payment runtime apis: query call info and fee details ( #1535 )
...
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-08-18 11:01:56 +00:00
Roman Useinov
fa9fabc9db
[benchmarks] pr with weights master ( #1522 )
...
* [benchmarks] pr with weights
* fix weights to reflect the current master state
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
2022-08-10 13:10:20 +02:00
Ignacio Palacios
d9d19c1d53
Upgrade spec_version to 9230 and bump transaction_version for assets parachains. ( #1340 ) ( #1494 )
...
* Transaction version bump + updated spec_version
* Reformatting issue
* Adding missing runtimes
* Upgrading contracts pallet runtime version
* Upgrading Seedling runtime
* Bump polkadot-parachain version
Co-authored-by: Wilfried Kopp <wilfried@parity.io >
Co-authored-by: Hector Bulgarini <hbulgarini@gmail.com >
Co-authored-by: Wilfried Kopp <wilfried@parity.io >
2022-08-08 17:02:50 +02:00
girazoki
8f2a3a5077
Statemint runtimes to accept sufficient assets as xcm fee payment ( #1278 )
...
* point to my branch
* girazoki-add-TakeFirstAssetTrader-to-utility
* Commit lock
* point at custom branch
* add new trader to statemine runtimes
* compiles
* Back to master
* Update last tomls
* Imports up
* remove non-needing imports
* FMT
* log messages properly
* Use TakeRevenue instead of HandleCredit
* Introduce xcm fee handler
* check total supply in tests
* FMT
* fix test
* Start decoupling balance calculation into different traits
* Make traits a bit more generic
* PR suggestions
* add import
* import well
* Place xcmfeesassethandler into parachains common
* fix tests
* config parameters
* Min amount to fee receiver
* Make minimum amount for block author to be at least the ED
* Doc in AssetFeeAsExistentialDepositMultiplier
* saturating sub
* make sure we dont enter twice
* FMT
* fmt again
* adapt tests
* Add doc and struct for weight refund
* Doc
* More doc
* PR suggestions
* store all info related to asset payment as multiasset
* return AssetNotFound instead of TooExpensive
* Use asset transactor to deposit fee
* uninstall from statemint
* R for RUntime and CON for BalanceConverter
* Rework logic to avoid unnecesary match and error
* Rework ED check, also in case of refund
* rework typo
* In case refund makes drop below ED, just refund the difference
* fix test westmint
* clone id
* move test imports to preamble
* move test imports to preamble
* test-utils with builderS
* lock file updated
* remove unused imports
Co-authored-by: Stephen Shelton <steve@brewcraft.org >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: joepetrowski <joe@parity.io >
2022-08-03 16:04:13 +00:00
Sergej Sakac
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
ZhiYong
73750cf19c
Companion for substrate#11690 ( #1377 )
...
* Companion for substrate#11690
* Fix
* Fix
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
2022-07-29 21:01:54 +02:00
Jegor Sidorenko
c943e5eac4
Companion to #11398 ( #1324 )
...
* Companion to #11398
* Remove buy_item() from AssetOwner
* Remove set_price() as well
* Remove set_price and buy_item from the proxy in Westmint and Statemine
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
2022-07-13 13:21:34 +00:00
Branislav Kontur
c623784f13
Typo + some clippy stuff (unnecessary clone/to_string/refs) + fmt ( #1437 )
2022-07-11 11:05:40 +00:00
Squirrel
39a5f24477
NonTransfer should be a superset of collator selection ( #1385 )
...
* This should ideally be set.
* Not convinced guard order is always guarenteed.
* assets / uniques should not be included.
* correction
2022-06-18 14:06:52 +00:00
ZhiYong
7319a16ec8
Companion for substrate#11618 ( #1367 )
...
* Companion for substrate#11618
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-06-16 02:43:16 +00:00
Shawn Tabrizi
5ed97fd59a
Lower all Assets / NFT deposits by 10x ( #1332 )
...
* lower all deposits by 10x
* undo rococo stuff
* Apply suggestions from code review
* update asset deposits
* align statemint deposit ratios
Co-authored-by: joepetrowski <joe@parity.io >
2022-06-14 17:13:11 +00:00
Bastian Köcher
2ddfe5edc4
Ensure relay chain block number strictly increases ( #1280 )
...
* Ensure relay chain block number strictly increases
This is a safeguard for when async backing is enabled on the relay chain and multiple parachain
blocks per relay chain block are legal. We will need to later change this to support then multiple
parachain blocks per relay chain block.
* Make the check configurable
* Fix compilation
* Update pallets/parachain-system/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update pallets/parachain-system/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Fix test
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2022-06-05 09:21:03 -05:00
joe petrowski
e3a2a10e45
Statemint Should Not Recognise DOT Reserves ( #1318 )
...
* recognise no reserves
* adjust should_execute
* docs and pass should_execute
* typo
2022-06-01 11:11:31 +00:00
Gavin Wood
ba258329c8
Companion for #11124 ( #1316 )
...
* Fixes
* Bump
* Formatting
* Bump
* Bump
2022-05-31 18:50:02 +01:00
Squirrel
586ba3b26b
transfer ownership of uniques looks cheaper. ( #1302 )
...
batch all now looking a bit expensive compared to batch. no big changes.
2022-05-27 10:49:55 +00:00
joe petrowski
97a97965b6
Runtime Documentation ( #1282 )
...
* add docs to parachain runtimes
* update and add top readme
* clarify docs
* review plus licenses
* Update parachains/README.md
* Update parachains/runtimes/assets/README.md
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
* Update parachains/runtimes/assets/README.md
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-05-24 12:58:39 +02:00
Chevdor
c2abd7bde5
Runtime version bump to 922 ( #1283 )
...
* Runtime version bump to 922
* Switch to 9220
2022-05-23 14:37:20 +02:00
Squirrel
bc0c98884f
dir restructure to support more CGP ( #1266 )
...
* rerame res to chain-specs
* split polkadot-parachains dir
* rename dir parachains-common to common
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Wilfried Kopp <wilfried@parity.io >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
2022-05-20 13:43:04 +01:00