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

Tg4 spec and uses #34

Merged
merged 43 commits into from
Apr 21, 2021
Merged

Tg4 spec and uses #34

merged 43 commits into from
Apr 21, 2021

Conversation

maurolacy
Copy link
Contributor

Closes #27.

Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the spec and one change request.

I will review the contracts shortly.

packages/tg4/src/helpers.rs Show resolved Hide resolved
packages/tg4/src/query.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. 2 requests:

  • Change the pagination type in the ListMembersByWeight query
  • Explain why we choose MultiIndex over UniqueIndex (or visa versa) in the members() Map. (You understand storage-plus quite well and this can be elucidating for future readers.

contracts/tg4-group/src/contract.rs Show resolved Hide resolved
contracts/tg4-group/src/contract.rs Outdated Show resolved Hide resolved
contracts/tg4-group/src/msg.rs Outdated Show resolved Hide resolved
contracts/tg4-group/src/state.rs Show resolved Hide resolved
contracts/tg4-stake/src/contract.rs Show resolved Hide resolved
contracts/tg4-stake/src/msg.rs Outdated Show resolved Hide resolved
contracts/tg4-stake/src/state.rs Show resolved Hide resolved
Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I saw the valset changes.
Looks good. Made one more suggested enhancement

contracts/tgrade-valset/src/contract.rs Show resolved Hide resolved
Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these fixes - API, docs, and optimization.
Looking good.

contracts/tg4-group/src/state.rs Show resolved Hide resolved
@ethanfrey ethanfrey merged commit 6c42da5 into main Apr 21, 2021
@ethanfrey ethanfrey deleted the tg4-spec branch April 21, 2021 08:51
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.

Add tg4 to extend cw4 and implement
2 participants