Commit Graph

465 Commits

Author SHA1 Message Date
Ricardo Rius 58a425667e Fix Statemine ss58 prefixes. (#829)
* Fix Statemine prefix

* Add prefix to chain spec
2021-12-08 11:56:50 +01:00
Chevdor f42092d23e Add CI to build docker images on releases (#836)
* Fix the url of the fetched file

* Fix binary in the GPG check

* Add docker build

* Import GPG pub keys

* Copy missing binaries

* Checkout first

* Add missing mkdir

* Set bin as executable

* Fix exec flag earlier

* Fix docker calls

* Fix version parsing

* Fix image names

* Cleanup

* Fix ENV issue

* Only allow user keys on pre-releases

* Add Docker Hub token and enable pushing

* Make Docker owner configurable via secrets

* Fix owner

* Remove duplicate secret
2021-12-07 14:50:16 +01:00
Chevdor 782e40b177 Add check_labels script and workflow (#782) 2021-12-06 15:30:42 +01:00
Bastian Köcher 32a86d8ef4 Adds support for returning a custom header from validate_block (#825)
* Adds support for returning a custom header from `validate_block`

This adds support for returning a custom header from `validate_block`. Before this, we always
returned the header of the block that was validated (and still do it by default). However, after
this pr it is possible to set a custom header or better custom head data that will be returned
instead from `validate_block`. This can be for example when a chain wants to fork.

* FMT
2021-12-03 12:49:13 +01:00
Kian Paimani 70ea98995a Integrate try-runtime into cumulus (#793)
* almost integrate

* revert branch changes

* remove extra deps

* some review comments'

* Fix a bunch of stuff

* Update parachain-template/node/Cargo.toml

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Fix

* Fix

* fix benchmark

* fmt

* Remove wrong bench test

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2021-12-02 14:00:54 +01:00
Keith Yeung ad8fa5fc07 Refactor some types in XCMP queue (#813)
* Rename InboundXcmpStatus and its related types

* Rename OutboundXcmpStatus and its relevant types

* Add documentation to the newly created types

* Ensure storage prefixes are kept the same

* Add code comments

* Revert storage name changes

* typo fix

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2021-12-02 00:24:04 +00:00
Shawn Tabrizi a3798775d8 Companion for #10379 (EnsureOneOf) (#810)
* new ensure one of

* Update Cargo.lock

* Update SUbstrate & Polkadot

Co-authored-by: Bastian Köcher <info@kchr.de>
2021-12-01 23:06:50 +00:00
Ignacio Palacios 6b3ac7e1a2 Increase statemine balance (#808)
* increase statemine balance

* Fix formatting

Co-authored-by: Wilfried Kopp <wilfried@parity.io>
2021-12-01 22:13:59 +01:00
Chevdor 030ea4cc0c Fix secret used to send announcements (#821)
* Fix secret used to send announcements

* Fix matrix secret
2021-12-01 16:35:50 +01:00
Chevdor c53b2bb461 Allow manual start (#818) 2021-12-01 16:05:27 +01:00
zjb0807 b51a6fa4cc use double quotes instead of single quotes (#815) 2021-12-01 03:00:11 +00:00
Guillaume Thiolliere 9a76627938 companion for pallet order fix (#711)
* companion

* Run cargo update

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
2021-12-01 01:51:58 +00:00
zjb0807 71ac3005ae Companion for #10324 - update frame-benchmarking/runtime-benchmarks (#802)
* update frame-benchmarking/runtime-benchmarks

* cargo update

* add more feature flags

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2021-11-30 21:47:09 +01:00
Andronik Ordian 5442e7a928 cargo update -p polkadot-primitives (#809) 2021-11-29 18:12:59 +01:00
Bastian Köcher a093ee03c9 Update Substrate & Polkadot (#803) 2021-11-28 07:43:50 +01:00
Chevdor 0e48d6c504 CI: Release start (#788)
* Initial version

* Fix branch pattern

* Fix template

* Update .github/ISSUE_TEMPLATE/release.md

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Update .github/ISSUE_TEMPLATE/release.md

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Rebase master and fmt

* Swap out Polkadot JS section for integration tests + remove tags

* remove tags

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2021-11-24 18:15:43 +01:00
Gavin Wood dcd65eabda Bump (#792) 2021-11-24 16:14:04 +01:00
Gavin Wood e8669aeff8 Fix use of weight limit errors (#791) 2021-11-24 13:26:45 +01:00
Bastian Köcher 485b16984f Update Substrate & Polkadot (#789) 2021-11-24 09:25:53 +01:00
Chevdor 916890ddac Fix rococo naming (#785) (#786) 2021-11-22 17:52:47 +01:00
Sergejs Kostjucenko d527b60240 Fix CODEOWNERS syntax (#783) 2021-11-22 17:13:49 +02:00
Chevdor 4f4e17975f Add srtool check in master and release branches (#780) 2021-11-22 15:39:57 +01:00
Sergejs Kostjucenko d34784ff68 Add entry in CODEOWNERS (#779) 2021-11-22 15:49:46 +02:00
Chevdor f71f75dd10 Fix CI for runtimes and rococo (#774)
* Specify the ref to checkout

* Fix default ref2

* Fix naming
2021-11-22 14:48:59 +01:00
Sergejs Kostjucenko 2147095120 Add CODEOWNERS file (#778) 2021-11-22 15:04:50 +02:00
Chevdor de05e7fa04 Fix rococo naming for master (#776)
* package naming conflict fixed (#753)

* Fix rococo naming

Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2021-11-22 13:58:15 +01:00
Bastian Köcher 801c1bef0a Update Substrate & Polkadot (#770)
* Update Substrate & Polkadot

* Disable tests without debug assertions
2021-11-19 23:46:14 +01:00
Robert Klotzner 72a373411a Remove dead dep. (#765)
* Remove dead dep.

* cargo update -p polkadot-primitives

* Revert "cargo update -p polkadot-primitives"

This reverts commit 4e48e1dabe44fc1fb99c0d074281998e82584ba8.

* cargo update -p polkadot-primitives

Co-authored-by: Andronik Ordian <write@reusable.software>
2021-11-19 17:41:11 +00:00
Chevdor e4e8d4fb83 Add changelog generation (#761)
* WIP Release notes generation and templates

* WIP Add new sections to the template

* WIP renaming and wip

* Fix runtime template

* Add doc, NO_CACHE and tweaking of the templates

* Renaming cl into cumulus to make room for the polkadot and substrate

* Fetch data from Substrate and Polkadot

* WIP convert bash script to ruby

* Convert to Ruby

* Fix host function delection

* Extract priority to a macro

* Fix misc changes

* Draft release workflow

* Fix runtime dir

* Add ENV to ignore runtimes

* Install tooling separately

* WIP troubleshooting - remove sudo

* Minor formatting fixes

* Fix workflow

* Add missing dep

* Linting

* Fix changelog script

* Add missing tera install

* Use absolute paths

* Fix path + cleanup

* Fix changelog generation

* Add missing pre-release ENV

* Fix rust version ENV

* Fix release notes path

* Fix output

* Fix runtime_dir for cumulus

* Fix ENV substitutions

* Fix styling

* Debugging

* Styling

* Fix call to fetch the runtime version

* Cleanup and doc

* Delete sample .env

* Update scripts/changelog/templates/change.md.tera

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Change XCM emoji marker for a ✉️

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2021-11-19 17:30:05 +01:00
Georges 69f030f81c Moving pallet-asset-tx-payment from cumulus to substrate (#712)
* Moving `pallet-asset-tx-payment` to substrate

* Pointing `substrate` to my branch to fix the CI

* Fixing cargo.lock

Memmlock2 was in double

* Duplicate Prost-build

* cargo update

* Fixing cargo.lock post merge

* Changes to `Cargo.toml` after substrate merge
2021-11-19 14:06:38 +01:00
Bastian Köcher 29aaa00086 Update Substrate & Polkadot (#766) 2021-11-17 15:39:40 +01:00
Liu-Cheng Xu 986372bb68 Specify edition 2021 in .rustfmt.yml (#760)
This PR is mainly to fix the error `[E0670]: async fn is not permitted in the 2015 edition` when
using Vim along with rust-analyzer, it also removes an unused dependency from parachain-template.

Ref: https://github.com/rust-analyzer/rust-analyzer/issues/1959
2021-11-16 15:12:50 +01:00
Dan Shields 70923da617 move to rust 2021 (#759)
* move to rust 2021

* fix formatting, more moves
2021-11-16 15:12:06 +01:00
David Salami 8d4f82a1f0 Update field event variants (#749)
* update field events

* update polkadot and substrate

Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
2021-11-16 03:31:36 +00:00
Shawn Tabrizi b6786e69bf Update Cargo.lock (#763) 2021-11-15 21:00:53 +00:00
Arkadiy Paronyan b2d9102b0d Update for latests substrate & polkadot (#756)
* Update for latests substrate & polkadot

* fmt
2021-11-12 16:45:09 +01:00
sandreim 5f5190625d Companion to substrate #10196 - Add group name in task metrics (#732)
* Use blank task group name

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* cargo fmt

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Update

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* update Cargo.lock and switch from 0.9.12 to master

* format with LATEST nightly

Co-authored-by: Andronik Ordian <write@reusable.software>
2021-11-11 19:41:36 +00:00
Dan Shields 3284976a1b Tweaks from template downstream review #80 (#705)
* tweaks from template downstream review #80

* more tweaks

* Update parachain-template/node/src/command.rs

* tweaks to template and other chainspecs

* fmt

* update more tweaks from downstream

* fix build
2021-11-11 19:20:39 +00:00
Denis Pisarev ab2c9cd020 polkadot collator builder (#740)
* dockerfiles: polkadot-collator_builder.Containerfile and docs

* dockerfiles: optimize test dockerfile
2021-11-11 13:57:57 +01:00
Sebastian Kunert 2691e1928e Port transaction pool benchmark (#738)
Adds a benchmark to measure transaction throughput.
2021-11-11 10:30:54 +01:00
Benjamin Kampmann 3ca9905166 Update to latest substrate and polkadot dependencies (#745) 2021-11-10 19:08:50 +01:00
Alexander Popiak ece4188f2d Align the Statemint Runtimes (#736)
* align the different Statemint runtimes so they are more similar in structure

* align Unpaid Execution filter

* revert changes to Unpaid execution filter for Westmint
2021-11-10 12:00:17 +01:00
Bastian Köcher c6c9ee1a09 Remove parachain-id cli command (#739)
This was never planned to be a permanent feature. This was mainly added for testing purposes, but
now was copied by everybody. The users should be more specific about the para id and set this
properly in the chain spec.
2021-11-10 08:56:00 +01:00
Alexander Popiak eaa5a0e663 bump spec_version (#733) 2021-11-09 18:11:51 +01:00
Alexander Popiak 1dd2605b95 Align Call Indices between Westmint and Statemint (#731)
* align construct_runtime calls between statemint runtimes

* bump westmint transaction_version
2021-11-09 17:39:50 +01:00
Alexander Popiak 05fd790612 adjust XCM unit weights to 1B (#735) 2021-11-09 17:14:16 +01:00
Ignacio Palacios c16db9c66f Remove randomness collective flip new (#726)
* randomess collective flip removed

* cargo.lock + fix

* remove migration for statemint

* fmt fix

* update cargo.lock

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2021-11-09 17:01:44 +01:00
Bastian Köcher ae12a80b35 Rework the runtime upgrade test (#727)
* Rework the runtime upgrade test

* Update test/service/tests/runtime_upgrade.rs

* Update test/service/tests/runtime_upgrade.rs

* Update Cargo.lock

* FMT

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2021-11-09 15:02:34 +01:00
Alexander Popiak c63c5229ba Upstream Statemine Release v5 Changes to Master (#720)
* Update references

* update deps

* set substrate deps for pallet-asset-tx-payment

* add DisabledValidatorsThreshold to parachain template

* add DisabledValidatorsThreshold to statemint runtimes

* adjust imports

* update Cargo-lock

* add DisabledValidatorsThreshold to mock config

* cargo +nightly fmt

* adjust on_disabled type

* remove on_chain_votes function in ParachainHost impl

* remove ScrapedOnChainVotes

* bump polkadot-collator version

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

* update Cargo.lock

* set spec_versions to 500

* Statemine cannot execute.

* disallow XCM execute on statemint

* cargo fmt

* remove unnecessary dep on node-primitives

* select parachains-common/std feature when building rococo-runtime with std

* adjust Statemint to the three digit spec_version format

* Add script to generate simple changelogs (#668)

* Update weights from v4 for v5 comparison (#673)

* updates weights

* pallet_unique benchmarks added + weights upstream from v4

* Fix benchmarks after Parachain Template (#677)

* updates weights

* pallet_unique benchmarks added + weights upstream from v4

* benchmarks fix for parachain template

* Weights updates for Statemine v5 (#682)

* updates weights

* pallet_unique benchmarks added + weights upstream from v4

* weights updates for statemine v5

* mention Storage in construct_runtime macro for pallet-xcm (#680)

* Use pallet-xcm for version wrapping (#689)

* use PolkadotXcm for XcmRouter WrapVersion

* use PolkadotXcm for version wrapping

Co-authored-by: Bryan Chen <xlchen1291@gmail.com>

* patch weight for batch_all from rerun

* Runtime version bump to v503 (#694)

* adjust genesis value generation scripts to output entries array + add script to derive encoded call

* add script to generate shell spec from runtime wasm

* Ensure a bad datastream cannot cause problems (#701)

* Ensure a bad datastream cannot cause problems

* Formatting

* Formatting

* update Polkadot (to 0.9.11 169bab55d)

* bump spec versions

* Allow Queries and Subscriptions

Fixes

Formatting

* fix build

* make fmt happy

* statemint imports

* slight naming changes in script

* add shell genesis data + wasm + chainspec

* adjust generated shell spec with production config values

* update Substrate and Polkadot to master

* fix deps

* swap out bootnodes for statemint shell

* add a script for verifying the shell chain spec

* add sha checksum for head data

* remove verification script

* remove hex wasm file

* update Substrate and Polkadot again and fix compilation

* update and fix lock file

* formatting

* remove redundant dispatch_as weight

Co-authored-by: Bastian Köcher <info@kchr.de>
Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
Co-authored-by: Gav Wood <gavin@parity.io>
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
Co-authored-by: Bryan Chen <xlchen1291@gmail.com>
Co-authored-by: joepetrowski <joe@parity.io>
2021-11-08 15:52:47 +01:00
Shawn Tabrizi eec45a7232 Companion for dispatch_as (#715)
* dispatch as companion

* oops, forgot to save file

* Update Cargo.lock
2021-11-04 16:44:18 +00:00