Currently this pallet is tightly coupled to cumulus-pallet-parachain-system for purposes of reading the relay chain block number.
In https://github.com/paritytech/cumulus/pull/515 the parachain system pallet began exposing the relay chain block number through a trait which means this pallet can be abstracted over the BlockNumberProvider.
This has two concrete positive effects:
Other chains can use this pallet unmodified even if they want to use the parachain block number for the vesting schedule.
Parachain system is removed from the dependency graph (and replaced with an easier-to-mock BlockNumberProvider in the tests).
Currently this pallet is tightly coupled to cumulus-pallet-parachain-system for purposes of reading the relay chain block number.
In https://github.com/paritytech/cumulus/pull/515 the parachain system pallet began exposing the relay chain block number through a trait which means this pallet can be abstracted over the
BlockNumberProvider
.This has two concrete positive effects:
BlockNumberProvider
in the tests).