-
Notifications
You must be signed in to change notification settings - Fork 57
Implement block emissions #551
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
Merged
Merged
Changes from 31 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c1bcb0f
add genesis liquidity implementation
da51543
Merge branch 'develop' of https://github.com/serai-dex/serai into emi…
b9df73e
add missing deposit event
2b32fe9
fix CI issues
207f2bd
minor fixes
c320402
make math safer
8be0538
fix fmt
1cd9868
implement block emissions
df774d1
Merge branch 'develop' of https://github.com/serai-dex/serai into emi…
7041dbe
make remove liquidity an authorized call
826f998
implement setting initial values for coins
926ddd0
add genesis liquidity test & misc fixes
7ecbfde
Merge branch 'develop' of https://github.com/serai-dex/serai into emi…
20cf4c9
updato develop latest
90a5232
Merge branch 'develop' of https://github.com/serai-dex/serai into emi…
04fcb2b
fix rotation test
33fcd27
Merge branch 'emissions' of https://github.com/akildemir/serai into b…
3ed6bd3
fix licencing
1d5a53d
add fast-epoch feature
971b93b
only create the pool when adding liquidity first time
30df837
add initial reward era test
317b929
test whole pre ec security emissions
b8a9d20
fix clippy
929d0bf
Merge branch 'develop' of https://github.com/akildemir/serai into emi…
904c6dd
Merge branch 'emissions' of https://github.com/akildemir/serai into b…
929e66c
add swap-to-staked-sri feature
d40df53
rebase to develop latest
84b534a
rebase changes
8eb7e66
fix tests
a23e7f6
Merge branch 'develop' into HEAD
kayabaNerve 3cb7386
Remove accidentally commited ETH ABI files
kayabaNerve e1b4a9a
fix some pr comments
bb5fd37
Finish up fixing pr comments
dd9aeb1
exclude SRI from is_allowed check
c620d8f
Misc changes
kayabaNerve File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pub use serai_emissions_primitives as primitives; | ||
|
||
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)] | ||
#[cfg_attr(feature = "borsh", derive(borsh::BorshSerialize, borsh::BorshDeserialize))] | ||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] | ||
pub enum Call { | ||
// This call is just a place holder so that abi works as expected. | ||
empty_call, | ||
} | ||
|
||
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)] | ||
#[cfg_attr(feature = "borsh", derive(borsh::BorshSerialize, borsh::BorshDeserialize))] | ||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] | ||
pub enum Event { | ||
empty_event, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.