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

Separate multisig from group #150

Merged
merged 15 commits into from
Dec 4, 2020
Merged

Conversation

ethanfrey
Copy link
Member

@ethanfrey ethanfrey commented Dec 3, 2020

Closes #80

This no longer stores the members locally (in contract), but uses raw queries to read them from an associated group.

The code changes were relatively small. The tests must be completely re-written to use multi-test. Notably, this was even a couple lines of code shorter after the refactor. And that using multiple contracts in a much more complicated test harness.

In the end, this works the same as the cw3-fixed-multisig, but opens the door for all the other mutlisig tickets

The first two commits are quite huge and just make a clone of cw3-fixed-multisig as a new contract. To review, you can just check all commits after the first two, and make sure to expand contract.rs, which is where most of the changes are: https://github.com/CosmWasm/cosmwasm-plus/pull/150/files/2a70c8baea7dfe534f136cff1bfa20b3485128fa..HEAD

@ethanfrey ethanfrey requested a review from maurolacy December 3, 2020 22:05
Copy link
Contributor

@maurolacy maurolacy left a comment

Choose a reason for hiding this comment

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

This is pretty good. I am amazed at how using the right abstractions simplifies the code and increases readability.
I was expecting cross-contract queries to be much more of an issue. This is as clear a build-up on top of fixed-multisig as possible.

Will review the tests later, and add single comments in any case.

contracts/cw3-flex-multisig/src/msg.rs Outdated Show resolved Hide resolved
contracts/cw3-flex-multisig/src/error.rs Outdated Show resolved Hide resolved
contracts/cw3-flex-multisig/src/state.rs Show resolved Hide resolved
contracts/cw3-flex-multisig/src/state.rs Outdated Show resolved Hide resolved
contracts/cw3-flex-multisig/src/contract.rs Show resolved Hide resolved
contracts/cw3-flex-multisig/src/state.rs Outdated Show resolved Hide resolved
contracts/cw3-flex-multisig/src/contract.rs Show resolved Hide resolved
contracts/cw3-flex-multisig/src/contract.rs Show resolved Hide resolved
contracts/cw3-flex-multisig/src/contract.rs Show resolved Hide resolved
contracts/cw3-flex-multisig/src/contract.rs Show resolved Hide resolved
Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>
@ethanfrey ethanfrey force-pushed the separate-multisig-from-group branch from 7f51929 to cd51d9c Compare December 4, 2020 08:50
@ethanfrey
Copy link
Member Author

I think I have addressed all outstanding issues. Just waiting for a review of the test code to merge this.

@ethanfrey ethanfrey added this to the v0.4.0 milestone Dec 4, 2020
@maurolacy
Copy link
Contributor

Nice translation of all the tests!

@ethanfrey ethanfrey merged commit 56d52ac into master Dec 4, 2020
@ethanfrey ethanfrey deleted the separate-multisig-from-group branch December 4, 2020 16:28
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.

Separate Groups from Multisigs
2 participants