Commit Graph

417 Commits

Author SHA1 Message Date
Alexander Popiak e304662f04 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 d21c7fd2b3 Companion for dispatch_as (#715)
* dispatch as companion

* oops, forgot to save file

* Update Cargo.lock
2021-11-04 16:44:18 +00:00
Chevdor caa13478a7 Bump subwasm version (#716) 2021-11-03 10:10:35 +01:00
Guillaume Thiolliere faedf76da2 Udpate polkadot substrate (#713)
* udpate polkadot substrate

* fmt with latest nightly
2021-10-31 13:45:54 +00:00
Bastian Köcher f66be04c30 Update Substrate & Polkadot (#709)
* Update Substrate & Polkadot

* FMT
2021-10-30 01:17:48 +02:00
Keith Yeung ad517067da Bump syn to 1.0.81 (#707)
* Bump syn to 1.0.81

* Make formatting check happy
2021-10-27 19:26:49 +02:00
Gavin Wood 41c597faa7 Allow Queries and Subscriptions (#700)
* Allow Queries and Subscriptions

* Fixes

* Formatting
2021-10-27 18:14:27 +02:00
Gavin Wood 0793aa8937 Ensure a bad datastream cannot cause problems (#701)
* Ensure a bad datastream cannot cause problems

* Formatting

* Formatting
2021-10-27 13:40:24 +02:00
Chris Sosnin 8159c2c5f9 Companion for polkadot#3728 (#693)
* Update mock runtime API

* update Polkadot packages

Co-authored-by: joao-paulo-parity <joao-paulo@parity.io>
2021-10-22 16:31:58 +02:00
Alexander Popiak 95a453eac4 disable permissionless asset creation for Statemint (#669)
* disable permissionless asset creation for Statemint

* cargo fmt

* fix import and call format
2021-10-20 14:55:42 +02:00
Alexander Popiak 2ff5f7c443 fix runtime import formatting (#679) 2021-10-19 18:13:27 +02:00
Alexander Popiak a6ad40f86b Clean up the asset-tx-payment Pallet (#657)
* move dev-deps into correct section

* generate Readme.md

* Update pallets/asset-tx-payment/README.md

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

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
2021-10-19 10:48:11 +02:00
Gavin Wood 561e8eb349 Make sure comments and code for local origins match (#671)
* Make sure comments and code for local origins match

* Fixes
2021-10-17 22:37:01 +02:00
Martin Pugh 31aada1fc6 bump polkadot deps (#670) 2021-10-15 21:35:10 +02:00
Alexander Popiak 1ea5856f04 add minimal mention of Statemint in the readme (#656)
* add minimal mention of Statemint in the readme

* use unicode coin
2021-10-15 17:36:20 +02:00
Alexander Popiak 42107abc82 adjust Statemint to the three digit spec_version format (#667) 2021-10-15 14:57:37 +02:00
Alexander Popiak 4de36d5776 fix feature selection (#666)
* select parachains-common/std feature when building rococo-runtime with std

* remove unnecessary dep on node-primitives
2021-10-15 12:45:12 +02:00
Alexander Popiak a1a9e7e64d remove session benchmark todo (#665) 2021-10-15 12:06:03 +02:00
Andronik Ordian 902ae0d7ab update polkadot (#664) 2021-10-15 10:03:31 +02:00
Alexander Popiak 1669c4ed4e disallow XCM execute on statemint (#663) 2021-10-14 14:25:48 +02:00
Gavin Wood abcf2086e7 Statemine cannot execute. (#662)
* Statemine cannot execute.

* FMT

Co-authored-by: Bastian Köcher <info@kchr.de>
2021-10-14 11:15:57 +00:00
Bastian Köcher fbf418a000 Update Substrate & Polkadot (#660) 2021-10-14 11:03:36 +02:00
Dan Shields 308c8f6fc3 move to substrate.io (#658)
Co-authored-by: Dan Shields <danwshields@gmail.com>
2021-10-14 09:56:03 +02:00
Sergei Shulepov 9379cd6c18 Look at the upgrade go-ahead and restriction signals (#517)
* Look at the upgrade go-ahead and restriction signals

* Update Cargo.toml

* Drop old docs for validation code

* Update tests

* Fix typo

* Add doc-comments for read_optional_entry

* Add a note about ValidationData

* Introduce migration for removing unused storage entry

* Fix indentation

* Use intra-doc link syntax

* Double-check that GoAhead signal is not spurious

* fmt

* Drop commented code

* Fix typos

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

* Add a weight for StorageVersion write

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Chris Sosnin <chris125_@live.com>
Co-authored-by: Chris Sosnin <48099298+slumber@users.noreply.github.com>
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2021-10-12 18:08:23 +02:00
Ayush Mishra ee151d716c Added Key in subcommand (#651)
* Added Key in subcommand

* Update command.rs

Co-authored-by: Ayush <>
2021-10-12 13:09:07 +00:00
Alexander Popiak 3520acc3f2 Asset Transaction Payment (#488)
* use new pallet name based genesis config names

* use custom substrate and update polkadot

* add initial asset-tx-payment pallet

* update cargo.toml

* add (failing) tests

* dispatch Calls instead of using Pallet functions

* fix fee-refund split

* add test for transaction payment with tip

* update cargo.lock

* update cargo.lock

* remove mint workaround and use Mutable trait

* extract fee charging logic into OnChargeAssetTransaction trait

* use asset-tx-payment in statemint runtime

* make extrinsics public

* make extrinsics public

* use ChargeAssetIdOf type alias

* update deps

* move back to AssetIdOf

* remove extra rpc_http_threads

* use different substrate branch

* Update pallets/asset-tx-payment/src/payment.rs

Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Update pallets/asset-tx-payment/src/payment.rs

Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* remove overrides

* override substrate deps (again)

* increment spec_version and transaction_version (because we change transaction signing)

* remove direct dependency on pallet-balances from asset-tx-payment

* remove Assets pallet visibility workaround

* add docs and comments

* remove unused imports

* more docs

* add more debug asserts to document assumptions

* add test for tx payment from account with only assets

* add test for missing asset case

* extend test to cover non-sufficient assets

* add a test for Pays::No (refunded transaction)

* add type alias comments

* add more doc comments

* add asset-tx-payment to statemine and westmint

* improve formatting

* update license headers

* add default implementation of HandleCredit for ()

* update doc comments and format imports

* adjust Cargo.toml

* update cargo.lock

* cargo fmt

* cargo fmt

* cargo fmt

* cargo +nightly fmt

* add type alias for OnChargeTransaction

* cargo +nightly fmt

* convert ChargeAssetTxPayment from tuple struct to regular struct

* add more comments

* formatting

* adjust imports and comment

* cargo +nightly fmt

* reformat comment

* use ChargeTransactionPayment's own get_priority + update Substrate

* update Substrate and Polkadot

* cargo fmt

* cargo fmt

* add OperationalFeeMultiplier to asset tx payment tests

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* add doc links

* charge a minimum converted asset fee of 1 if the input fee is greater zero

* cargo +nightly fmt

* bump spec and transaction version

Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2021-10-11 11:57:37 +02:00
Alexander Popiak eff56f60f3 Upstream Statemine v4 Changes (#649)
* bump runtime spec version

* remove applied runtime migrations

* bump transaction_version

necessary because of extrinsic API changes to pallet-xcm
https://github.com/paritytech/polkadot/pull/3693

* Fix Benchmarks for Statemine-V4 release (#639)

* register validators

* register_as_candidate & leave_intent fixed

* new_session benchmark fixed

* intent_leave_modified

* clean up

* clean up

* benchmark script updated

* update cargo.lock

* done

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

* Version bump (#648)

* Version bump

fix #646

* Revert "Version bump"

This reverts commit 07517e0e76a37a1dd67176fec0524d0211666635.

* Bump polkadot-collator version

* Update polkadot-parachains/Cargo.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update deps

* Bump version to 4.0.0

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* cargo toml fix

* update deps and remove DisabledValidatorThreshold

* cargo +nightly fmt

* fix compile error

* fix client tests after Polkadot update

Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2021-10-11 10:27:49 +02:00
Alexander Popiak f499617c01 update Substrate and Polkadot (to include new transaction priority) (#645)
* update Substrate and Polkadot

* Update parachain-template/runtime/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2021-10-05 11:48:33 +00:00
Alexander Popiak caa8b8172b Statemint Reserve Asset Transfer (#552)
* add AssetId type alias in statemint-common

* add FungiblesAdapter to allow for asset transactions via XCM

* use custom Polkadot

* fix FungiblesAdapter usage and add CheckingAccount

* update deps

* remove polkadot overrides

* update deps

* pull NonZeroIssuance struct into common + add FungiblesTransactor to Statemine and Westmint

* remove unnecessary tuple wrapping + adjust asset transactor comments

* accept statemint as reserve in rococo test parachain

* adjust parachain config (add Statemint as reserve)

* add test and docs for AssetsFrom

* cargo fmt

Co-authored-by: Ricardo Rius <ricardo@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2021-10-05 11:35:03 +02:00
Bastian Köcher edd029b3d4 Add relay_parent to block announce data (#640)
* Add `relay_parent` to block announce data

This is required to make it more future proof when contextual execution is coming. While this
changes the `BlockAnnounceData` type, it is written in a way to make it backwards compatible.

* FMT
2021-10-04 09:53:18 +02:00
joe petrowski 9bfec25073 make asset creation on westmint low cost (#642) 2021-10-04 09:52:59 +02:00
Andronik Ordian a9a09abcb0 docs: make collators actually work (#638)
* docs: make collators actually work

* bump polkadot

* include recent fix for overseer
2021-10-02 21:00:18 +02:00
Bastian Köcher 0fad3ae44c Same procedure as not every day (#636)
* Same procedure as not every day

* Remove warning

* Update
2021-10-01 13:23:56 +02:00
Bastian Köcher 36d18c09c9 Remove a where bound that isn't required anymore (#633) 2021-09-30 14:36:25 +02:00
Chevdor 1a6491bfc7 Add extrincic ordering check to CI (#629)
* Add extrincic ordering check to CI

* Add missing script

* Fix default chain

* Ignore issues with pkill

* Continue on error while trying to stop the node

* Set embedded relay chain node

* Fix formatting
2021-09-30 10:26:19 +02:00
Bastian Köcher 0b921ddbc3 Fix purge-chain test (#624)
* Fix purge-chain test

* Update Substrate & Polkadot
2021-09-26 15:25:35 +02:00
Chevdor b75f18e71e chore: bump subwasm version to support V14 runtimes (#623) 2021-09-25 21:54:00 +02:00
Hernando Castano 391d2f5241 Add Parachain Template (#620)
* Add Canvas node as Parachain template

* Remove `pallet-contracts`

* Point to local Cumulus dependency

* Use double quotes instead of single quotes

* Get rid of GPL licensing

* Remove references to Canvas

* Get rid of warnings

* Remove GLP-3 License copy-pasta file

* Copy in README from `substrate-parachain-template`

* Add mention of `polkadot-launch` tool

* Add missing screenshot asset

* Remove Canvas hidden files and scripts

* Rename `template` to `parachain-template`

* Remove a few more Canvas references

* Add `pallet-template`

* Get `pallet-template` compiling

* Remove TODOs about Weights

* Sort some dependencies

* Remove contracts specific const

* Change binary name back to `parachain-collator`

* RustFmt

* Fix mock tests

* Purge sneaky whitespace

* Add template pallet index to runtime

Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com>

* Add force authoring to collator `polkadot-launch` config

Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com>

* Refer README readers to `substrate-parachain-template`

* Remove license header in `build.rs`

Co-authored-by: Michael Müller <michi@parity.io>

* Fix punctuation nitpick

Co-authored-by: Michael Müller <michi@parity.io>

* Remove unused `lib.rs` file

* Add note about Rococo network

Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com>
Co-authored-by: Michael Müller <michi@parity.io>
2021-09-23 20:47:47 +03:00
Keith Yeung 1aab3349cc Use DecodeLimit for decoding XCM messages (#605)
* Use DecodeLimit for decoding XCM messages

* Use decode_all_with_depth_limit in appropriate places

* Use decode_all while decoding byte vector

* cargo fmt
2021-09-19 15:29:34 +03:00
Robert Habermeier 85bde07641 bump deps (#618)
* bump deps

* update balances weights

* fix warnings
2021-09-17 13:18:30 -05:00
Chevdor 1dd000a011 ci: add quick-check with rustfmt (#615)
* ci: add quick-check with clippy and rustfmt

* chore: rustfmt round

* chore: set the same rustfmt config than substrate

* chore: fix formatting

* cI: remove clippy

* ci: switch to nightly for the checks

* ci: fix toolchains and naming

* ci: Limit the check to formatting

* chore: fix formatting

* Update .rustfmt.toml

* Update .rustfmt.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2021-09-16 16:57:52 +02:00
Andrew Jones 035a576008 Metadata v14 (companion to #3336) (#564)
* Remove event pallet::metadata attributes

* Add scale-info deps, TypeInfo derives, update call variants

* Update metadata runtime APIs

* Add missing scale_info dependency, update rococo runtime API

* Add missing scale_info dependency

* Remove pushed diener patches

* Cargo.lock

* Add missing scale-info dependencies

* Fixes

* Statemint runtime fixes

* Call struct variant empty matches

* Add missing scale-info dependency

* Fixes

* scale-info 1.0

* cargo update -p xcm

* update lock

* Update Cargo.lock

* update to latest polkadot

* remove rpc_http_threads

https://github.com/paritytech/substrate/pull/9737

* replace task executor with tokio handler

https://github.com/paritytech/substrate/pull/9737

* fix test compilation?

* Update Cargo.lock

* cargo update

* remove unused

* Update substrate and polkadot

* Update test/client/src/lib.rs

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2021-09-16 12:11:05 +02:00
Alexander b5e7376758 Add build with docker info to README (#609)
* Add build with docker info to README

* removed few lines

* small fix README
2021-09-16 11:49:53 +02:00
Bastian Köcher 5af2990cfd Upgrade Substrate & Polkadot (#612) 2021-09-16 06:57:29 +02:00
e.g. magical unicorn d5284b0e78 add new raw chainspecs for parachains (#611) 2021-09-14 11:06:13 +02:00
Bastian Köcher df28466db2 Remove rococo-v1 branch from README (#608) 2021-09-14 10:50:23 +02:00
Squirrel a0532634e1 less deps (#606) 2021-09-12 23:22:14 +02:00
Denis Pisarev 19a3fd57e5 dockerfiles: upgrade to ubuntu:20.04 (#603) 2021-09-12 00:41:17 +02:00
Hernando Castano 5ed9e95608 Bump Substrate, Polkadot, and BEEFY (#602)
* Bump Substrate, Polkadot, and BEEFY

* Add `Sync` bound to Aura trait bounds
2021-09-10 23:24:16 +02:00
Robert Habermeier 6c8f1f7b3c bump deps, fix aura-ext pallet, and fill in stubs for XCM (#600)
* bump deps, fix aura-ext pallet, and fill in stubs for XCM

* response handler, asset trap, asset claims

* subscription_service

* update xcmp-queue mock

* fix tests

* Update polkadot deps

Co-authored-by: Andronik Ordian <write@reusable.software>
Co-authored-by: Bastian Köcher <info@kchr.de>
2021-09-04 14:57:48 -05:00