Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add block rewards to altair and centrifuge runtimes #1342

Merged
merged 30 commits into from
May 16, 2023
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0328dd0
feat: add ED funding to rewards pallet
wischli May 10, 2023
aad3cd7
feat: apply reward genesis config to dev runtime
wischli May 10, 2023
793797e
tests: apply rewards ED to block rewards
wischli May 11, 2023
e320b01
tests: add sanity intgr block rewards check
wischli May 11, 2023
cd36e63
feat: add block rewards to altair runtime
wischli May 11, 2023
1c64212
feat: add block rewards to cfg runtime
wischli May 11, 2023
7a4b92f
docs: improve blk rw migraton com
wischli May 11, 2023
afc4d54
feat: reduce collator kick threshold to 2 hours
wischli May 10, 2023
0301952
Revert "feat: reduce collator kick threshold to 2 hours"
wischli May 11, 2023
9b4dc2a
fix: re-enable transfer keep alive
wischli May 11, 2023
d2aeaa2
fix: chain_spec
wischli May 12, 2023
d0aa485
refactor: move rewards migration
wischli May 12, 2023
315bb78
feat: add session key migration
wischli May 12, 2023
e913b6f
Merge branch 'main' into feat/block-rewards-to-prod
wischli May 12, 2023
87446db
fix: mixed up tokens in spec
wischli May 12, 2023
12f08c1
refactor: rm dev migrations
wischli May 12, 2023
b87cd00
bench: fix block rewards
wischli May 15, 2023
a995225
Merge remote-tracking branch 'origin/main' into feat/block-rewards-to…
wischli May 15, 2023
2b43d2b
refactor: move migrations to sep file
wischli May 15, 2023
310f2b5
refactor: block rewards pallet id
wischli May 15, 2023
635a6af
refactor: improve pallet genesis build err log
wischli May 15, 2023
e3047d2
refactor: remove rewards domain concept (#1344)
wischli May 16, 2023
24616cf
refactor: rename LiquidityRewardsBase
wischli May 16, 2023
7d322e4
tests: add block rewards RAPI int
wischli May 16, 2023
9957c73
clippy: remove unused
wischli May 16, 2023
238ddc9
fmt: taplo
wischli May 16, 2023
4be7404
fix: dev chainspec after renaming
wischli May 16, 2023
1fb344e
refactor: apply suggestion from code review
wischli May 16, 2023
7bf4a40
Update runtime/centrifuge/src/lib.rs
wischli May 16, 2023
0fcf91c
Merge branch 'main' into feat/block-rewards-to-prod
wischli May 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: rm dev migrations
  • Loading branch information
wischli committed May 12, 2023
commit 12f08c1d7fec35d3c8bfcdb1da787c4520b1b5e1
18 changes: 1 addition & 17 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1924,13 +1924,6 @@ pub type UncheckedExtrinsic =
pub type CheckedExtrinsic =
fp_self_contained::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra, H160>;

parameter_types! {
// = 16.65 CFG per epoch (12h)
pub const CollatorRewards: Balance = 8_325 * MILLI_CFG;
// = 20,096 CFG per epoch (12h)
pub const TotalRewards: Balance = 10_048 * CFG;
}

/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Runtime,
Expand All @@ -1941,16 +1934,7 @@ pub type Executive = frame_executive::Executive<
UpgradeDev1020,
>;

type UpgradeDev1020 = (
pallet_block_rewards::migrations::InitBlockRewards<Runtime, CollatorRewards, TotalRewards>,
pallet_rewards::migrations::FundExistentialDeposit<
Runtime,
pallet_rewards::Instance2,
NativeToken,
ExistentialDeposit,
>,
pallet_loans_ref::migrations::v1::Migration<Runtime>,
);
type UpgradeDev1020 = ();

impl fp_self_contained::SelfContainedCall for RuntimeCall {
type SignedInfo = H160;
Expand Down