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

Assignment interfaces for rgb20 #156

Merged
merged 6 commits into from
Mar 12, 2024
Merged

Assignment interfaces for rgb20 #156

merged 6 commits into from
Mar 12, 2024

Conversation

cymqqqq
Copy link
Contributor

@cymqqqq cymqqqq commented Mar 10, 2024

new assignment interfaces for rgb20

jack added 4 commits March 9, 2024 20:41
add three interfaces of iimpl to IfacePair: global_name, assignment_name, transition_name in
new assignment interfaces for rgb20
Copy link
Member

@dr-orlovsky dr-orlovsky left a 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

Comment on lines 85 to 88
pub type InflationAllowanceAllocation = OutputAssignment<Amount>;
pub type UpdateRights = OutputAssignment<VoidState>;
pub type BurnEpoch = OutputAssignment<VoidState>;
pub type BurnRight = OutputAssignment<VoidState>;
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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. :)

@dr-orlovsky dr-orlovsky merged commit b87ff06 into RGB-WG:master Mar 12, 2024
13 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants