Alexander Theißen
2d102308de
Companion for #9276 : Remove Filter impl on () ( #3420 )
...
* Switch from () to AllowAllFilter
* Rename AllowAllFilter -> AllowAll
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-12 21:12:52 +00:00
Kian Paimani
d53ec86bbe
Companion for substrate/pull/9286 ( #3443 )
...
* Fix weights
* try something to unbreak companion
* update Substrate
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
2021-07-09 20:25:13 +00:00
ferrell-code
39969ca536
paras.rs to FRAME V2 ( #3403 )
...
* to v2 macro
* line width
* fix mock
* actually compile moxk
* compile tests
* add hooks
* origin back in mocks
* assimilate_storage
* add generic
* maybe mock compiles now
* origin between parachain and system causing problem
* change origin
* type alias as origin
* keep origin
* add aliases to tests
* remove unnecessary imports
* Parachain -> Paras
* paras test
* nvm
* use genesis build in mock
2021-07-06 00:24:27 +00:00
Kian Paimani
505145efd3
Staking Miner ( #3141 )
...
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com >
2021-07-01 20:22:35 +01:00
Peter Goodspeed-Niklaus
95736d1bf1
Companion for Decouple Staking and Election - Part 3: Signed Phase ( #2793 )
...
* Companion for Decouple Staking and Election - Part 3: Signed Phase
https://github.com/paritytech/substrate/pull/7910
* remove some config types
* allow up to 5 signed submissions on polkadot and kusama
* signed phase is equal induration to unsigned phase
* use chain defaults for base and per-byte deposits; >= 16 SignedMaxSubmissions
* use a small but non-trivial solution reward
* reduce signed deposit per byte fee
* reduce signed reward, adjust polkadot expected soln size
* copy submit benchmark from substrate
* demo calculating an appropriate fee for the signed reward
Unfortunately, this doesn't work: it needs to be a constant function,
and AFAIK there's no way to make a trait method constant.
* SignedRewardBase is 1.5x the fee to submit a signed solution
* all chains use deposit byte of base per 50k
* update Substrate
* cargo update -p pallet-election-provider-multi-phase
Co-authored-by: parity-processbot <>
2021-06-28 14:36:20 +02:00
Squirrel
dcb08fd533
Use associated constant for max ( #3375 )
2021-06-28 11:32:33 +02:00
Shawn Tabrizi
acec54a74b
Don't allow bids for a ParaId where there is an overlapping lease period ( #3361 )
...
* add already leased
Co-Authored-By: parity-processbot <>
* add unit test
Co-Authored-By: parity-processbot <>
* add integration test and fix
Co-Authored-By: parity-processbot <>
* better doc
Co-Authored-By: parity-processbot <>
* Update runtime/common/src/slots.rs
* Update runtime/common/src/slots.rs
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/common/src/integration_tests.rs
* Update runtime/common/src/integration_tests.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_crowdloan.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_crowdloan.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_slots.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_slots.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Parity Bot <admin@parity.io >
2021-06-25 10:56:58 +00:00
Shawn Tabrizi
9e641ba187
Do not allow any crowdloan contributions during the VRF period ( #3346 )
...
* patch `is_ending` logic for sampling
* Create AuctionStatus abstraction
* clean up apis
* fix docs
* Add check for contributions during vrf
* custom error for this
* fix benchmark
* opening -> starting
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/common/src/auctions.rs
* avoid divide by zero stuff
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-06-24 17:24:37 -04:00
André Silva
6b408d1e38
runtime: remove randomness collective flip pallet ( #3347 )
...
* runtime: remove randomness collective flip pallet
* add storage migration to remove key
Co-Authored-By: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-22 23:36:04 +00:00
Shawn Tabrizi
6b1baba490
Use max_code_size and max_wasm_data_size from Parachains Configuration ( #3329 )
...
* use `configuration::config()` for max bytes
* Update integration_tests.rs
* Update paras_registrar.rs
* remove consts
* add asserts for non-zero
* more const clean up
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_paras_registrar.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_paras_registrar.rs
* add checks to `MAX_CODE_SIZE`
* re-pot MAX_POV_SIZE
* check pov limit in runtime
* POV_BOMB_LIMIT multiplier
* fix compile
* Update configuration.rs
* Update node/primitives/src/lib.rs
* fix test
Co-authored-by: Parity Bot <admin@parity.io >
2021-06-21 17:24:49 +00:00
Andreas Doerr
be2d1ce01b
Bump BEEFY ( #3302 )
2021-06-19 17:46:06 +02:00
Keith Yeung
7d82d93f34
Companion for #8949 ( #3216 )
...
* Remove Call part imports of the offences and authority discovery pallets
* Remove non-existent Call enum variants
* Move ValidateUnsigned impl to be under #[pallet::validate_unsigned] in claims pallet
* Remove unused imports
* Remove Call part import for randomness collective flip pallet
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-16 04:13:21 +00:00
Shawn Tabrizi
da71128daf
Companion for #9106 (remove_all with size limit) ( #3257 )
...
* update apis
* fix api
* rename to `KillStorageResult`
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-15 13:52:54 +00:00
Guillaume Thiolliere
364a8d751d
fix test ( #3240 )
2021-06-14 12:56:36 -05:00
Qinxuan Chen
e05bd988ed
Companion for #9061 ( #3200 )
...
* migrate pallet-randomness-collective-flip to new pallet attr macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-14 11:29:39 +00:00
Shawn Tabrizi
7f344df160
Companion for #9085 (pub calls) ( #3214 )
...
* update to use pub dispatchables
* update Substrate
* Update claims.rs
* remove warning
Co-authored-by: parity-processbot <>
2021-06-12 19:13:16 +01:00
Shaun Wang
693302bee0
Update claims pallet to FRAME v2 ( #3032 )
...
* Migrate claims pallet to pallet attribute macro.
* Trigger CI.
* Update runtime/common/src/claims.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-06-12 16:26:52 +00:00
Shaun Wang
1a9dc0d8e9
Migrate mmr pallet to pallet attribute macro. ( #3061 )
2021-06-09 23:27:53 +00:00
Gavin Wood
3d6df31cbe
Named reserve companion ( #3176 )
...
* fix build
* fix tests
* update
* fix
* update
* Bump
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
2021-06-04 11:17:59 +02:00
Zeke Mostov
127771ba38
Cleanup unused errors & events in lease coordination pallets ( #3174 )
...
* Cleanup unused errors & events in lease cordination modules
* Spelling
2021-06-04 00:01:30 -04:00
Shaun Wang
512b366280
Update purchase pallet to FRAME v2 ( #3075 )
...
* Migrate purchase wrapper pallet to pallet attribute macro.
* Apply review suggestions.
* Update runtime/common/src/purchase.rs
* Update runtime/common/src/purchase.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-02 18:30:55 -04:00
Shaun Wang
22f076c6d3
Update para sudo wrapper pallet to FRAME v2 ( #3074 )
...
* Migrate para sudo wrapper pallet to pallet attribute macro.
* Apply review suggestions.
2021-06-01 20:34:47 +00:00
Shaun Wang
ca10e33788
Migrate registrar pallet to pallet attribute macro. ( #3063 )
2021-06-01 20:32:31 +00:00
Bernhard Schuster
e8652e73db
cargo spellcheck ( #3067 )
2021-05-22 00:15:47 +00:00
Gavin Wood
933c9ac2bf
Reserves for bids during ending period persist until auction done ( #3058 )
...
* Reserves for bids during ending period persist until auction done
* Fixes
* Fixes
* Fixes
* Fixes
* Update auctions.rs
2021-05-20 10:15:52 +02:00
Shaun Wang
3137d94d11
Migrate crowdloan pallet to pallet attribute macro. ( #3036 )
2021-05-19 20:14:20 +00:00
Shaun Wang
8d30172a8f
Update auctions pallet to FRAME v2 ( #3031 )
...
* Migrate auctions pallet to pallet attribute macro.
* Rename extra constants.
2021-05-18 11:40:15 +00:00
Shawn Tabrizi
10685f836d
Check Parachain is Fully Registered Before Starting a Crowdloan ( #3018 )
...
* Add check that parachain is fully registered before starting crowdloan
* fix tests
* fix benchmarks
2021-05-14 10:59:12 +02:00
Shawn Tabrizi
c68903f3bb
Add Auctions and Crowdloans to Kusama and Westend ( #2999 )
...
* add to westend
* fixes
* fix runtime tests
* add to kusama
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_crowdloan.rs
* fix auctions benchmarks
* add benchmark to kusama
* update weights
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_crowdloan.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
* update to use weights
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_auctions.rs
* Initiate auctions with 2/3 council
* add check and docs
* update crowdloan deposits
* move tests
* move other tests
* update ending period
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_auctions.rs
* fix origin
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-05-11 22:29:01 +02:00
Gavin Wood
b55344819f
Extrinsic for reserving a parachain ID ( #3008 )
...
* Extrinsic for reserving a parachain ID
* Fixes
* Fixes
* Docs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_paras_registrar.rs
* Update runtime/common/src/paras_registrar.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_paras_registrar.rs
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-05-11 22:28:37 +02:00
Gavin Wood
ce4edd0398
Make ParaId value of public paras non-discretionary ( #2988 )
...
* Make ParaId value of public paras non-discretionary
* Fixes
* Fixes
* fix tests
* fix benchmark tests
* dont use hardcoded number
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-07 17:52:26 +02:00
ferrell-code
002f49fb03
Companion for Substrate#8663 ( #2945 )
...
* add pallet_authorship to test
* update Substrate
Co-authored-by: parity-processbot <>
2021-05-03 04:13:23 +00:00
Guillaume Thiolliere
41e57c4509
change junction parachain id from named field to unnamed field ( #2940 )
...
* use unnamed field for parachain variant in junction
* remove outdated comment
2021-04-27 14:49:55 +02:00
Shawn Tabrizi
9c0bb140c8
Companion for substrate#8665 (Bounded Treasury) ( #2932 )
...
* Add MaxApprovals for Bounded Treasury
* update weight
* update Substrate
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
Co-authored-by: parity-processbot <>
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-26 16:09:42 +00:00
Shawn Tabrizi
4838603eb4
Companion for impl Zero and One for fixed point numbers ( #2924 )
...
* fix build
* Update Cargo.lock
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
2021-04-23 00:07:05 -04:00
Peter Goodspeed-Niklaus
f822381c4c
Companion for Trim compact solution for length during preparation ( #2649 )
...
* Companion for Trim compact solution for length during preparation
https://github.com/paritytech/substrate/pull/8317
* eliminate potential for overflow in OffchainSolutionLengthLimit
* Apply suggestions from code review
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* update substrate: cargo update -p sp-io
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-04-13 13:53:51 +00:00
Shawn Tabrizi
2d21599ec5
expose sample length in consts metadata ( #2848 )
2021-04-12 13:14:03 +02:00
Shawn Tabrizi
2c9a26e192
Change Auctions to Eight Lease Periods Per Slot ( #2862 )
...
* initial patch
* fix tests
* fix benchmarks
* expose `SlotRange` consts
* Update Cargo.lock
* fix tests
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-04-10 08:20:53 +00:00
Shawn Tabrizi
9babb09900
Introduce System Parachains into Registrar ( #2858 )
...
* initial stuff
* adjust deposit
* remove unused
* weight stuff
* Update integration_tests.rs
* Update paras_registrar.rs
* Update paras_registrar.rs
* add test
* Update paras_registrar.rs
Co-authored-by: parity-processbot <>
2021-04-09 21:07:49 +02:00
Gavin Wood
c9102c11a4
XCM Revamp Continued ( #2865 )
...
* Introduce plurality XCM locations
* Add RelayedFrom
* DMP dispatch weight handling.
* Add pallet for XCM sending, add routing logic.
* Update error types & doc
* Fix warnings.
* Fixes
* Fixes
* Fixes
* Bump Substrate
* Fixes
* Docs
* Docs
* Docs
* Fixes
* Fixes
* Fixes
* Update xcm/pallet-xcm/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
* Fixes
* Update lib.rs
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-09 20:34:28 +02:00
Shawn Tabrizi
322e1f3dff
ModuleId to PalletId ( #2864 )
...
* lock substrate version for testing
* `ModuleId` to `PalletId`
* release substrate version
* Update Cargo.lock
Co-authored-by: Xavier Lau <c.estlavie@icloud.com >
2021-04-09 12:33:21 +02:00
André Silva
68626198f8
runtime: fix the session keys migration that includes the beefy key type ( #2855 )
...
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-04-08 21:51:46 +02:00
Gavin Wood
adc238ad86
XCM revamp ( #2836 )
...
* Remove unused relaying XCM
* Aggregate HRMP (XCMP/HMP) messages. Payloads for spambot.
* Revert lock
* Fix
* Broken example
* Introduce fee payment mechanics into XCM.
* Weight limitations on XCM execution
* Mock environment for tests and the first test
* Tests for XCM and a few refactors.
* Remove code that's not ready
* Fix for an XCM and an additional test
* Query response system
* XCMP message dispatch system reimagining
- Moved most of the logic into xcm-handler pallet
- Altered the outgoing XCMP API from push to pull
- Changed underlying outgoing queue data structures to avoid multi-page read/writes
- Introduced queuing for incoming messages
- Introduced signal messages as a flow-control sub-stream
- Introduced flow-control with basic threshold back-pressure
- Introduced overall weight limitation on messages executed
- Additonal alterations to XCM APIs for the new system
* Some build fixes
* Remove the Encode bounds sprayed around
* More faff
* Fix bounds amek use latest scale codec.
* remove println
* fixes
* Fix XcmExecutor Tests
* Fix XCM bounds using derivative crate
* Refactor names of XcmGeneric &c into Xcm
* Repot the xcm-executor into xcm-builder
* Docs
* Docs
* Fixes
* Update xcm/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Fixes
* Docs
* Update runtime/parachains/src/ump.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
* Fixes
* Fixes
* Fixes
* Docs
* Fixes
* Fixes
* Introduce transfer_asset specialisation.
* Fixes
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-07 22:38:29 +02:00
Andronik Ordian
1e4517800b
fix failing test ( #2844 )
2021-04-07 16:22:04 +00:00
Shawn Tabrizi
45be2ac97e
Relax Origin Checks in Registrar, Add Lock to Registration ( #2808 )
...
* Relax Origin Checks in Registrar
* fix tests
* Update runtime/common/src/paras_registrar.rs
* introduce para locks
* apply a lock after upgrade
* add test
* add lock when creating crowdloan
2021-04-07 15:16:35 +02:00
Robert Habermeier
251b6ca7bf
remove WASM_MAGIC ( #2832 )
...
* remove WASM_MAGIC
* fix test warnings
2021-04-07 12:00:22 +03:00
stanly-johnson
15dfdd68c0
feat: Add poke to Crowdloan ( #2807 )
...
* feat: Add poke to Crowdloan
* fixes
* less hard-coded benchmark
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-04 18:01:49 +02:00
Shawn Tabrizi
995d89c237
Crowdloan Dissolve Requires All Funds Refunded ( #2770 )
...
* implement auto refund
* add back retiring @jacogr
* bump substrate dep
* trying to get to work
* fix tests
* fix benchmarks
* Update runtime/common/src/crowdloan.rs
* fix docs
* remove unused traits
* remove unused
* unused
* Update runtime/common/src/crowdloan.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/common/src/crowdloan.rs
* Update crowdloan.rs
* Update runtime/common/src/crowdloan.rs
* Update runtime/common/src/crowdloan.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-04-04 13:31:35 +00:00
Shawn Tabrizi
85693d6883
Create Macro for Implementing SlotRange ( #2788 )
...
* Macro for generating `SlotRange`
* remove test code
* refactor slots into crate
* add no_std flag
* finish macro
* make compile
* fix copyright date
* don't assume lease periods per slot
* Update runtime/common/Cargo.toml
* Apply suggestions from code review
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* fixes
* Update lib.rs
* tests
* Move consts into struct
* docs
* fix compile
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update Cargo.lock
* Update runtime/common/src/slot_range.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fixes
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-04-04 13:11:37 +02:00
Gavin Wood
a960e2ff6d
Companion for OnSetCode #8496 ( #2794 )
...
* Make build with OnSetCode
* Fixes
* update Substrate
Co-authored-by: parity-processbot <>
2021-04-01 15:19:57 +02:00