-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Assignment interfaces for rgb20 #156
Assignment interfaces for rgb20 #156
Conversation
add three interfaces of iimpl to IfacePair: global_name, assignment_name, transition_name in
new assignment interfaces for rgb20
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 except one commend (please check it).
Also you need to run fmt
and clippy
, as in other PRs, and make PRs in a way that they do not share the same history
src/interface/contract.rs
Outdated
pub type InflationAllowanceAllocation = OutputAssignment<Amount>; | ||
pub type UpdateRights = OutputAssignment<VoidState>; | ||
pub type BurnEpoch = OutputAssignment<VoidState>; | ||
pub type BurnRight = OutputAssignment<VoidState>; |
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 think we do not need these newtypes (and certainly not in the global namespace, since they are RGB20-specific).
Just use FungibleAllocation
, and RightsAllocation
instead in the code you have added. The rest looks good
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.
have changed the code, and thanks for the advice(fmt and clippy).
Another PR just published, you can review it.
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.
The other PR is merged, so can you pls update this PR with removing these type names - and I will merge it and proceed to the next ones
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.
@cymqqqq your PRs share the same commits, thus if you update one of them the other will have a diverging history. I suggest to split the commits into PRs (such that each one has one or two) - or just give the one PR with all commits. Otherwise the process will be quite complex
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 have updated this PR, and thanks, I will try my best to just give one PR later. :)
new assignment interfaces for rgb20