Commit Graph

845 Commits

Author SHA1 Message Date
Bastian Köcher d28df302b4 Update wasm builder to fix bugs in detecting changed files (#1169) 2020-05-29 15:52:34 +02:00
Kirill Pimenov b704fe8796 Bump Kusama spec version to 2000 (#1165) 2020-05-29 10:59:22 +02:00
Demi Obenour bcea20b377 Bump ‘spec_version’ in Westend (#1166)
This lets offline signers know that the transaction format has changed,
due to the addition of `transaction_version` to the signed payload.
2020-05-29 10:57:00 +02:00
Gavin Wood 7f30e2ed0f Bump (#1164)
* Bump

* Bump

* Bump
2020-05-28 16:36:52 +02:00
Robert Habermeier 1a3557a597 clarify some things about subsystems (#1157) 2020-05-28 14:15:07 +03:00
Bastian Köcher 94f407807e Make sure that vested claims are not transferable (#1160)
* Make sure that vested claims are not transferable

We need to deposit the claimed balance to the destination account before
setting the locks through the vesting module. Otherwise we loose the
locks and the vested claim is directly transferable.

* Add comment

* Enable missing feature for webbrowser check

* Remove unneeded error variant

* Increment `spec_version`'s

* Fix tests
2020-05-28 00:19:23 +02:00
Kian Paimani 357ed9f3ec companion for substrate/pull/6132 (#1159)
* companion for https://github.com/paritytech/substrate/pull/6132

* Fix more tests

* upsub

* Bump

* Update runtime/common/src/lib.rs

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

* remove cleanup

* Update runtime/westend/src/lib.rs

* Apply suggestions from code review

* Fix build

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2020-05-27 19:13:56 +02:00
Hernando Castano d5f343a73f Add tests for Polkadot runtime weights and fees (#1090)
* Add tests for Balance module weights

* Add tests for some of the Staking functions

* Add tests for system Pallet weights

* Add weight tests for Session pallet

* Add tests for Democracy Pallet weights

* Add tests for Phragment weights

* Add tests for Treasury weights

* Use consistent naming for tests

* Split tests into separate weight and fee suites

* Move weight constant checks into one test

* Use formulas instead of hardcoded weights

* Slim down number of tests

Mainly removing ones that are either root calls that aren't "important",
or others which will likely change if another test (which we kept) also
changes.

* Update timestamp set() weight

* Update Staking Pallet weights

* Update Democracy Pallet weights

* Update copyright year

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
2020-05-27 12:41:25 -04:00
Gav Wood 6fecdb8533 Introduce telemetry endpoint 2020-05-26 19:07:06 +02:00
Gavin Wood 1697ce1b7b Chain Candidate One: Final changes (#1155)
* Test CC1 spec

* Adaptive default chainspec

* Strip -pre

* Update to next CC1 iteration

* Raw chainspec
2020-05-26 18:55:22 +02:00
Cecile Tonglet 0ff80d0355 Add HeaderBackend trait to BuildParachainContext for cumulus validation (#1153) 2020-05-26 17:23:36 +02:00
Gavin Wood 7889aaa4a7 Test CC1 spec (#1154)
* Test CC1 spec

* Adaptive default chainspec
2020-05-26 16:21:11 +02:00
s3krit 57c2ded955 [CI] Add Polkadot runtime version to release notes, change release title to Polkadot CC1 (#1136)
* Include polkadot spec in release notes, retitle releases

* add CC1 to release title
2020-05-26 15:46:23 +02:00
Gavin Wood b170d9674f Prepare for final genesis (#1131)
* Update claim statements

* Update URLs

* Minor tweak to make enum agree with URL

* final html multihashes

* New hashes

* Version

* updated SAFT statement hash

* Update runtimes; this relies on substrate #6131

* Bump

* Share transaction filterer and fix Kusama

* Warning

* Gah!

* Tidy

* Westend fixes

* Westend fix

* Tweak constants

* Implement TCF stuff

* Fix

* Warning

* 15 minute lookahead

* 15 minute lookahead in Polkadot

* update max transactions

* Enable utility, disable vested_transfer

* Update runtime/common/src/lib.rs

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

* Filter calls for validate unsigned also

* Deduplicate

* Fix

* Introduce Polkadot (mainnet) chainspec

* Fix naming.

* Enable indices and fix comment.

* Fix compilation

* Enable indices and fix comment.

* polkadot: babe: enable secondary VRF slots

* Test JSON

* Allow set_heads

* Fix

* Raw chain spec added

Co-authored-by: keorn <github@i.keorn.org>
Co-authored-by: NikVolf <nikvolf@gmail.com>
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
Co-authored-by: Tomasz Drwięga <tomasz@parity.io>
Co-authored-by: André Silva <andre.beat@gmail.com>
2020-05-26 15:27:48 +02:00
Robert Habermeier cbb412f515 include implementor's guide in this repo (#1137)
* include implementor's guide in this repo

* most updated guide
2020-05-25 19:11:36 -04:00
joe petrowski 2906690893 Update README (#1134)
* update readme for current networks

* remove networks docs (they were copy/paste from readme)

* remove trailing whitespace

* add polkadot wiki

* remove hello world name

* remove authors/revision
2020-05-25 18:34:04 -04:00
Shawn Tabrizi 55d41a255b Expose more benchmarks (Scheduler, Elections) (#1128)
* More benchmarks

* Apply suggestions from code review

* update cargo

Co-authored-by: Gavin Wood <gavin@parity.io>
2020-05-22 13:58:08 +02:00
Marcio Diaz aa13e5df14 Companion for #5877 (#1123)
* Fixed point methods renames.

* Bump

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 22:11:33 +02:00
André Silva ddc6d5d5f8 cli: set default ss58 address format for each chain (#1127) 2020-05-21 19:52:18 +02:00
Shawn Tabrizi b01ee6eb00 Companion for #6046 (#1104)
* Update impls.rs

* companion for substrate#6069

* update to latest changes

* Update Cargo.lock

* Bump

Co-authored-by: André Silva <andre.beat@gmail.com>
Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 17:00:45 +02:00
Dudley bf79c453d9 updated from k < 3 to 0 < k <= 3 (#1119)
Co-authored-by: dud1337 <grant@dud.li>
2020-05-21 16:12:20 +02:00
Shawn Tabrizi 40b40de590 Add System to benchmarks (#1126)
* add system to benchmarks

* Update cargo files
2020-05-21 16:10:55 +02:00
Shawn Tabrizi b407af2672 Companion for Substrate #5961 (on_offence weight) (#1103)
* Add new trait to offences

* companion for substrate#6069

* update to latest changes

* Update Cargo.lock

Co-authored-by: André Silva <andre.beat@gmail.com>
Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 14:32:25 +01:00
thiolliere 882b73492d [Companion PR] make council members able to note preimage using operation extirnsic (#1120)
* make council members able to note preimage using operation extirnsic

* Bump

Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 14:26:18 +02:00
Federico Gimenez 39191d83c5 use new network identity format for Kusama bootnodes (#1124) 2020-05-21 13:49:00 +02:00
Alexander Theißen b6829b6d21 Companion for #6076 (Allow fee calculation to happen off-chain) (#1111)
* Switch from Convert to WeightToFeePolynomial

* Bump

Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 13:47:55 +02:00
Arkadiy Paronyan 162baa62fb Bump substrate (#1125) 2020-05-21 10:26:21 +02:00
Tomasz Drwięga e08e5ff462 Companion for #6067 (#1110)
* Companion to #6067

* Fix tests?

* Use AvailableBlockLimit instead of hardcoding the value.

* Bump substrate.
2020-05-20 16:03:28 +02:00
s3krit a184320503 [CI] Move check-labels to .post stage (#1114) 2020-05-20 12:26:10 +02:00
Nikolay Volf dc281e313d Update substrate, add block construction metrics (#1112)
* add metrics

* reset & update

* update
2020-05-19 19:01:16 +02:00
Pierre Krieger 58566274a0 Update to latest Substrate (#1107) 2020-05-18 23:55:04 +02:00
André Silva f6e8b10de4 fix Cargo.lock dependency version (#1105) 2020-05-17 11:10:01 +02:00
Jon Häggblad afb9af4cf0 Enable Babe RPC for getting epoch authorship (#1065)
Enable babe_epochAuthorship that was added in substrate#4729 for
querying information about slots that can be claimed in the current
epoch.
2020-05-16 12:46:21 +01:00
Arkadiy Paronyan a6f35ee989 Companion PR to #6039 (#1100)
* remove on_block_imported

* remove on_block_imported

Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-16 13:26:33 +02:00
Gavin Wood 8cb7cdbc64 Extra requirements for claimants (#1091)
* Introduce mandatory statement signing into claims

* Introduce SignedExtension

* Tests passing

* Bump runtime version

* Bump version, fix test

* Test for validate

* Another couple of tests

* Enable PrevalidateAttests on Polkadot

* Enable PrevalidateAttests on Polkadot

* Fix build

* Fixes

* More fixes

* Fix bench tests

* Fix & test Preclaim clobbering.

* Fix for errant claim logic

* Add test

* Update tests, always use Vec as input

* mint_claim can add signature, some_benchmarks

* Add claim with statement test

* finish benchmarks

* put the correct number of claims with benchmarks

* fix compiler warning

* Update weights

* Weight comments for validation

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2020-05-16 12:56:49 +02:00
Benjamin Kampmann b660c226d8 Companion for #6025 (#1098) 2020-05-15 19:35:39 +02:00
s3krit 5d58f7a43a [CI] Expose WASM binaries on publish (#1093)
* add build-wasm-release CI job

* temporarily run build-wasm-release everywhere

* temporary job to inspect artifacts dir

* fix test job

* fix test job again

* remove temporary job

* remove FIXME for when to run jobs

* remove pointless echo

* Change cargo build for wasm-pack

* Checksum polkadot_cli files

* make separate wasm dir for artifacts

* fix nits
2020-05-15 16:29:48 +02:00
Denis Pisarev 11cd00567a change (ci): fail test on warnings (#1102) 2020-05-15 16:29:11 +02:00
thiolliere 3beecb028c Companion: Democracy add weight. (#1076) 2020-05-15 13:48:11 +02:00
gabriel klawitter 6f1d6e9dcc ci: github api use token for pull requests (#1099) 2020-05-15 16:56:02 +05:30
Benjamin Kampmann 41f234f39d Update to lastest substrate master (#1101) 2020-05-15 11:37:24 +02:00
Demi Obenour c45b14d1f3 Add ‘transaction_version’ to the signed transaction (#1092)
This allows hardware wallets to know which transactions they can safely
sign.
2020-05-15 00:58:25 +02:00
Alexander Popiak cb1e21cb0c Companion PR to 5802 (#1050) 2020-05-14 17:20:07 +02:00
Bastian Köcher 45f64055a4 Companion pr for #6012 (#1095)
* Companion pr for #6012

* Update `Cargo.lock`
2020-05-13 20:19:44 +02:00
joe petrowski 0792aba17f change BlockHashCount parameter (#1086) 2020-05-12 15:19:27 +02:00
Shawn Tabrizi 105b4b4d56 Companion PR for paritytech/substrate#5954 (#1081)
* Update for split weights

* Update `Cargo.lock`

* Bump all `spec_version`s

Co-authored-by: Bastian Köcher <git@kchr.de>
2020-05-12 14:07:20 +02:00
Bastian Köcher d5033456bb Check for correct tag in check_tags.sh (#1087) 2020-05-12 13:08:05 +02:00
Max Inden 4084820f0e cli/src/cli.rs: Document --enable-authority-discovery flag (#1085) 2020-05-11 14:14:07 +02:00
Nikolay Volf 9049579103 Companion PR for substrate #5939 (#1075) 2020-05-11 12:13:24 +02:00
s3krit b2655b5220 [CI] add check_tags CI job (#1072)
* add check_tags CI job

* fix typo in gitlab-ci.yml

* add more useful CI output

* Make presence of github token optional
2020-05-08 17:31:23 +02:00