Commit Graph

141 Commits

Author SHA1 Message Date
Squirrel c066eaee49 shell and seedling did not build (#1567)
* shell and seedling did not build

(even though CI was green). Time for more CI.

* let's just fix the build in this PR

* Update parachains/runtimes/starters/shell/Cargo.toml

No need to rem this out as we're not testing the new CI changes in this PR.
2022-08-24 11:37:22 +00:00
dependabot[bot] 85718e90bb Bump serde from 1.0.143 to 1.0.144 (#1565)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.143 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 22:56:46 +02: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
Branislav Kontur ffe19fd0b7 Removed dependance on rococo_parachain_runtime for unrelated stuff (#1500)
* Clean misleading imports `rococo_parachain_runtime::{AccountId, AuraId}`

* Remove dependance on `rococo_parachain_runtime` for unrelated stuff

* fmt + rebase fix

* Addressing review comments

* Addressing review comments

* Fix for `purge_chain_works` works now with `rococo-local` and purge command needs to allow `rococo-native`
2022-08-16 12:22:22 +02:00
dependabot[bot] 5107fcf29e Bump serde from 1.0.141 to 1.0.143 (#1541)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.141 to 1.0.143.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.141...v1.0.143)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 07:11:52 +00:00
joe petrowski 7bd426f31e Add Collectives Parachain (#1346)
* add new runtime and remove unnecessary pallets

* make runtime build

* add collectives to collator node

* sketch alliance config in runtime

* Slash handler was supposed to be commented out (for now)

* correct signature

* move to impls

* add alliance to runtime

* rustfmt

* IsReserve, remove Ping, update fn deposit

* add transaction_payment event

* Update parachains/runtimes/collectives/collectives-polkadot/src/lib.rs

Co-authored-by: Squirrel <gilescope@gmail.com>

* fmt

* add genesis config to chain spec

* fix merge

* local and dev configs only (for now)

* remove duplicate imports

* Collectives polkadot runtime to cargo workspace members (#1397)

* Collectives polkadot runtime: use unit type impl for identity verifier (#1398)

* apply fn rename

* fmt

* one less todo

* Less code in magic macros (#1407)

* Less code in magic macros

* cargo fmt

* Bench alliance (#1427)

* add benchmarks

* call one script from the other

* shebang changes so works on nixos too.

* bench in parallel as separate jobs

* hyphens can turn into underscores

* remove workaround to trigger bench

Co-authored-by: alvicsam <alvicsam@gmail.com>
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>

* enable ci jobs

* fix publish bench results jobs

* chainspecs for collectives-westend (#1441)

* initial chainspecs for collections relay chain

* plumb in the collectives-westend chainspec

* add Runtime::CollectivesWestend

* lock

* Collectives: teleport slashed assets  (#1433)

* Collectives: teleport slashed assets

* fmt

* Cargo.lock > polkadot-parachain 0.9.25

* create temp account for imbalance

* treasury acc id from pallet id

* move accounts into constants, use here junction for assets

* assets location is relay chain, accounts as parameters

* fix typos

* fix typo

* Update parachains/runtimes/collectives/collectives-polkadot/src/constants.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* Move alliance proposal provider to impls.rs (#1464)

* Move to impls alliance proposal provider

* rustfmt

* Bumping spec version

(so that we can redeploy with slashing change.)

* cargo lock

* slurp collectives digest to make appear in release notes (#1473)

* add slurp

* Slurp better :)

* Bring some order

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
Co-authored-by: Wilfried Kopp <wilfried@parity.io>

* reorder barrier

* Update parachains/runtimes/collectives/collectives-polkadot/src/xcm_config.rs

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* address review

* clean construct runtime

* fmt

* looks pretty but brings in too much

Co-authored-by: Squirrel <gilescope@gmail.com>
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com>
Co-authored-by: alvicsam <alvicsam@gmail.com>
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
Co-authored-by: Wilfried Kopp <wilfried@parity.io>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
2022-08-11 11:11:10 +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
dependabot[bot] 5288f025d1 Bump serde from 1.0.140 to 1.0.141 (#1490)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.140...v1.0.141)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-02 08:54:19 +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
Miguel Hervas aefb75b96e Adding TxVersion Check to signed params (#1483) 2022-07-29 18:15:48 +02:00
dependabot[bot] 59a4c78d47 Bump serde from 1.0.139 to 1.0.140 (#1457)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.139 to 1.0.140.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.140)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 07:17:03 +00:00
dependabot[bot] 21d2f135df Bump serde from 1.0.137 to 1.0.139 (#1439)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.137 to 1.0.139.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.139)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-16 23:13:09 +02:00
dependabot[bot] ff01da6498 Bump smallvec from 1.8.1 to 1.9.0 (#1421)
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-16 15:12:16 +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
Squirrel 30c7c38836 Penpal testing runtime (#1254)
* adapt to common good paras

* fmt

* Updated to leave parachain-template alone

* use norm_id + cargo fmt

* removed comment as we are not touching parachain template

* is_penpal

* updated code to new locations

* changes required to get penpal running

* cargo fmt

* remove warning, rename chain

* Update polkadot-parachain/src/command.rs

* Update polkadot-parachain/src/command.rs

Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>

* remove now moved functions

* added runtime description

* add missing copyright notices

* more copyright notices.

Co-authored-by: NachoPal <ignacio.palacios.santos@gmail.com>
2022-07-12 12:59:41 +00:00
Branislav Kontur c623784f13 Typo + some clippy stuff (unnecessary clone/to_string/refs) + fmt (#1437) 2022-07-11 11:05:40 +00:00
Ignacio Palacios 5c8fc013d1 Update Readme for integration-tests (#1429)
* Update Readme for integration-tests

* Update parachains/README.md

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
2022-07-06 11:10:14 +02:00
Ignacio Palacios 313d450c01 Adding integration tests (#1426)
* adding parachains integration tests

* final integration-tests

* Update parachains/integration-tests/statemine/xcm/2_ump.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Update parachains/integration-tests/statemine/xcm/1_dmp.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Update parachains/integration-tests/statemine/xcm/4_hrmp.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Update parachains/integration-tests/statemint/xcm/1_dmp.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Update parachains/integration-tests/statemint/xcm/2_ump.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Update parachains/integration-tests/statemint/xcm/4_hrmp.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Update parachains/integration-tests/statemine/xcm/3_hrmp-open-channels.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Update parachains/integration-tests/statemint/xcm/3_hrmp-open-channels.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* clean up & trailling spaces

* leftovers

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
2022-07-05 12:24:54 +02:00
bernardo ee49f744dd add wss bootnodes to statemine/t chainspec (#1378)
* add wss bootnodes to statemint chainspec

* add wss bootnodes to statemine chainspec
2022-06-29 11:29:28 -03:00
dependabot[bot] c2e0886045 Bump smallvec from 1.8.0 to 1.8.1 (#1409)
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 08:39:27 +00:00
Alexander Gryaznov c7d8da1783 Companion for substrate#11501 (#1404)
* Companion for substrate#11501

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>
2022-06-23 12:48:13 +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
Keith Yeung d577099011 Companion for paritytech/substrate#11631 (#1363) 2022-06-16 17:36:19 +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
Keith Yeung dd71ee0334 Bounded ping pallet (#1333)
* Bounded ping pallet

* cargo fmt
2022-06-15 20:58:52 +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 f157bf7adb Add rockmine json (#1290) 2022-05-31 10:06:42 +00:00
Gavin Wood 02d9eb0883 Companion to Substrate #11490 (#1305)
* Fix warnings

* Bump

* Fix build

* Fix the build

* Fixes

* Formatting

Co-authored-by: Bastian Köcher <info@kchr.de>
2022-05-30 19:47:28 +02: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
Alexander Theißen bcc7ccb594 contracts: Update bootnodes (#1294) 2022-05-26 10:57:40 +00:00
Squirrel 545dfe327d sudo was removed but we were still pulling in the crate. (#1289) 2022-05-24 12:13:31 +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