-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add pallet-signal #12
Conversation
@2075 there are few moments I would like to clarify before finalizing this piece.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We still have a bunch of open questions which are not critical for now. I'd like to merge it, since the build is stable and tested. But during the hardening phase we should finalize our discussion and make appropriate changes to the code base.
@@ -0,0 +1,23 @@ | |||
use frame_support::pallet_prelude::{Encode, Decode}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we should keep structs and enums in separate places. For now, it's not critical, but let's discuss it later and use the same approach for all pallets.
pub const ACC2: AccountId = 2; | ||
pub const TREASURY_ACC: AccountId = 3; | ||
|
||
pub struct ControlFixture { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a reminder: remove these fixtures after Control and Flow will be merged.
The funds are collected from the contributors first, therefore they are unreserved and transferred to destination wallet.
undecided about these, saw it in other places as well. in general nothing should panic in a live system, therefore i consider those which are more like an internal sanity check and nothing that throws / generates an event, can be text. what do you think?
based on the current implementation it is a draw and could expire. in that case eventually a restart should be possible? gamedao-protocol/signal/src/lib.rs Line 715 in e929fc7
we could/should also prepare already for different preset ratios and create enums for there, like more than 1/4, 2/4, 3/4, 4/4 etc. |
Pallet Signal migration.
DONE:
TODO:
Next steps: