Guillaume Thiolliere
2d4aa3a42e
Companion: Rename pallet trait Trait to Config ( #2014 )
...
* rename Trait -> Config
* revert diener changes
* rename HostConfig to ActiveConfig as more meaningful
* fix merge
* "Update Substrate"
* cargo update -p sp-io
Co-authored-by: parity-processbot <>
2020-11-30 15:13:43 +00:00
Sergei Shulepov
94670d8082
A simple check to reject obviously wrong validation code binaries ( #1989 )
...
* A simple check to reject obviously wrong validation code binaries
* Use wasm-magic constants in the tests.
* tabs not spaces
* move WASM_MAGIC into lib.rs
2020-11-19 19:22:17 +00:00
Kian Paimani
65106d7792
Reconfigure on_initialize weight. ( #1838 )
...
* Reconfigure transaction payment and on_initialize weight.
* Some tests to investigate with
* fix build
* Update runtime/common/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* undo change to multiplier.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-10-27 21:05:04 +00:00
Kian Paimani
c5d041041f
Companion for substrate/pull/6896 ( #1610 )
...
* make polkadot work again,
* Fix build
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-10-08 15:10:21 +00:00
Kian Paimani
4d5b7a6245
Companion for substrate/pull/7215 ( #1768 )
...
* Companion for substrate/pull/7215
* More fixes
* Fix build
* fix
* Fix again with normal
* Fix build
* Latest changes
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-10-04 14:12:34 +02:00
Fedor Sakharov
07a3f73811
Parachains v1 registrar module. ( #1559 )
...
* Initial commit.
* Fix build
* Add comments, remove Event
* Dont expose calls
* Remove TODO and origins
* Fix merge
* Enable or disable parathread registration
2020-10-01 19:00:59 -04:00
Guillaume Thiolliere
944e192532
Companion: Handle construct_runtime breaking change. ( #1692 )
...
* use construct_runtime index
* fix
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-09-22 15:20:13 +00:00
Bastian Köcher
1934a74cc7
Companion for ModuleToIndex to PalletInfo rename ( #1743 )
...
* Companion for `ModuleToIndex` to `PalletInfo` rename
* "Update Substrate"
Co-authored-by: parity-processbot <>
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org >
2020-09-22 16:19:12 +02:00
Robert Habermeier
57aef8eef5
Remove v0 parachains runtime ( #1501 )
...
* remove v0 parachains modules and switch to v1 primitives
* get tests compiling for runtime-common
* remove registrar module
* Add a dummy module
* remove runtime-parachains
* mostly remove old parachains code from polkadot-runtime
* remove slots::Trait implementation
* remove sp_std prelude import
* add a ZeroSizedTypeDifferentiator to dummy
* finish porting over polkadot runtime
* ZeroSizedTypeDifferentiator was actually unnecessary
* westend
* kusama
* test-runtime (no dummy modules)
* fix warning
* fix chain-specs
* fix test-service
* test-client
* remove dead import
* remove unused needed_extrinsics parameter
* runtimes compile
* remove rococo-v0
* remove remaining references to Rococo
* bump versions
2020-08-13 15:55:27 +02:00
Shawn Tabrizi
73f09e5154
Unalias Substrate Imports ( #1530 )
...
* cargo.toml updates
* session and system
* more
* more
* more
* more
* more
* fix
* compiles
* fix tests
* fix more tests
* fix mock
* fix deleted space
* Update validation/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update Cargo.lock
* update rococo
* remove unused warning
* update add benchmarks
* rename weight file
* forgot a file
* Update chain_spec.rs
* Revert "remove unused warning"
This reverts commit 4227cd0d1525286fb466dccb817564c9b37f8645.
* fix merge
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-08-04 13:23:33 +00:00
Fedor Sakharov
a9e3a1b11d
Sudo wrapper for paras ( #1517 )
...
* Sudo wrapper for paras
* Move to separate module
* Add some docs
2020-08-03 21:32:57 +02:00
Xiliang Chen
143f5600f4
update impl_outer_origin ( #1444 )
2020-07-21 20:02:41 +02:00
Shawn Tabrizi
3fa224bfa4
Pallet for Purchase ( #1369 )
...
* initial mock
* remove statement
* Merge branch 'master' into shawntabrizi-crowdsale
* only work for dead accounts
* Revert "Merge branch 'master' into shawntabrizi-crowdsale"
This reverts commit 5d26bc22f30fdbc58854dc64398bddc1f19c4d24.
* update storage name
* Re-mock
* Update comment
* payouts
* test signature verification
* Update wording
* fix tests
* support both free and locked balance
* Single statement set in configuration trait
* Configurable purchase limit, initiated status
* Account creation tests
* make note about `max_amount` check
* Update validity status tests
* update balance tests
* payment test
* finish tests
* enable in runtime
* Test and verify ed25519
* make purchase pallet more configurable on the fly
* Remove runtime check on purchase amount.
* clean up trait
* add basic weights
* add extra super saftey check for vesting
* Add vat tracking
* remove unused const
* Update to W3F Origins
* remove stale comment
* Support existing accounts w/o existing vesting schedule
* Update runtime/common/src/purchase.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* Add support for partially unlocked portion of purchased DOTs
* add trait import
* Expose constants from pallet
* Fixes
* Fixes
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-07-17 14:23:56 +02:00
Robert Habermeier
3b13cd9a85
Refactor primitives ( #1383 )
...
* create a v1 primitives module
* Improve guide on availability types
* punctuate
* new parachains runtime uses new primitives
* tests of new runtime now use new primitives
* add ErasureChunk to guide
* export erasure chunk from v1 primitives
* subsystem crate uses v1 primitives
* node-primitives uses new v1 primitives
* port overseer to new primitives
* new-proposer uses v1 primitives (no ParachainHost anymore)
* fix no-std compilation for primitives
* service-new uses v1 primitives
* network-bridge uses new primitives
* statement distribution uses v1 primitives
* PoV distribution uses v1 primitives; add PoV::hash fn
* move parachain to v0
* remove inclusion_inherent module and place into v1
* remove everything from primitives crate root
* remove some unused old types from v0 primitives
* point everything else at primitives::v0
* squanch some warns up
* add RuntimeDebug import to no-std as well
* port over statement-table and validation
* fix final errors in validation and node-primitives
* add dummy Ord impl to committed candidate receipt
* guide: update CandidateValidationMessage
* add primitive for validationoutputs
* expand CandidateValidationMessage further
* bikeshed
* add some impls to omitted-validation-data and available-data
* expand CandidateValidationMessage
* make erasure-coding generic over v1/v0
* update usages of erasure-coding
* implement commitments.hash()
* use Arc<Pov> for CandidateValidation
* improve new erasure-coding method names
* fix up candidate backing
* update docs a bit
* fix most tests and add short-circuiting to make_pov_available
* fix remainder of candidate backing tests
* squanching warns
* squanch it up
* some fallout
* overseer fallout
* free from polkadot-test-service hell
2020-07-09 21:23:03 -04:00
Shawn Tabrizi
099e41dc9e
Companion for #6575 (Add WeightInfo) ( #1352 )
...
* Add `WeightInfo`
* fix test
* fix tests
* fix more tests
2020-07-08 18:22:22 +02:00
Kian Paimani
3c9d72fb57
Companion for substrate/pull/6334 ( #1263 )
...
* fix all runtimes and add test'
* Fix build
* Undo changes to lock file?
* Fix runtime test
* Remove unused imports
* cargo update -p sp-io
* Update Cargo.lock
* bump spec version
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-06-18 09:41:39 +02:00
Guillaume Thiolliere
8492e622ae
Companion: remove IsCallable make use of introduced in-origin filtering ( #1226 )
...
* remove IsCallable make use of in-origin filter
* update lock
* bump version for runtimes as spec as changed
* trigger CI
* Revert "trigger CI"
This reverts commit 5ac58fd42ac50dfb2fcd41ca866c7f6a605c5112.
2020-06-16 10:32:19 +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
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
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
joe petrowski
0792aba17f
change BlockHashCount parameter ( #1086 )
2020-05-12 15:19:27 +02:00
Shawn Tabrizi
f64c2a940f
Update Runtime Weights and Fee Calculation ( #1064 )
...
* Update Runtime Weights and Fee Calculation
* bump spec
* Order of operations avoids saturation
* Update runtime/polkadot/src/constants.rs
* Use frame consts
* Update Cargo.lock
* Update Cargo.lock
* Update Cargo.lock
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-05-05 09:41:41 +02:00
Shawn Tabrizi
0a10e37c99
Introduce BlockExecutionWeight and ExtrinsicBaseWeight ( #1023 )
...
* Update to changes in Substrate
* Fix trait
* Remove `TransactionBaseFee`
* add temporary values for extrinsic base weight and block execution weight
* Update Cargo.lock
2020-04-25 10:04:35 +02:00
Shawn Tabrizi
58f992fa33
Companion PR for substrate#5446 (Update Weights to u64) ( #994 )
2020-04-16 11:31:41 +02:00
Shawn Tabrizi
c01ef7198f
Separate WeightToFee calculation for Kusama and Polkadot ( #854 )
...
* Separate `WeightToFee` calculation for Kusama and Polkadot
* Bump spec
2020-02-19 13:23:50 -08:00
Shawn Tabrizi
c975d4ee84
Update copyright year ( #718 )
2020-01-05 17:57:13 +01:00
Arkadiy Paronyan
a00d74d825
Support both polkadot and kusama runtimes ( #704 )
...
* Allow both polkadot and kusama runtimes
* Allow both polkadot and kusama runtimes
* Make `collator` build
* Removed kusama runtime
* Introduced common runtime
* Updated for latest substrate
* Updated CI targets
* Updated CI version check
* Removed unused dependency
* Pulled latests substrate
* Pulled latest substrate
* Fixed version
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* NEW_HEADS_IDENTIFIER moved to primitives
* Updated CI check script
* Fixed script
* Set epoch duration for polkadot
* ci: check_runtime for both runtimes
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: gabriel klawitter <gabreal@users.noreply.github.com >
2020-01-03 18:31:39 +00:00