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

dao wallet cleanup #15753

Merged
merged 7 commits into from
Jul 14, 2023
Merged

dao wallet cleanup #15753

merged 7 commits into from
Jul 14, 2023

Conversation

geoffwalmsley
Copy link
Contributor

tidy up and some refactoring of dao_wallet.py

@geoffwalmsley geoffwalmsley requested a review from matt-o-how July 13, 2023 10:01
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Jul 13, 2023
@github-actions
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@geoffwalmsley geoffwalmsley marked this pull request as ready for review July 13, 2023 10:15
@geoffwalmsley geoffwalmsley requested a review from a team as a code owner July 13, 2023 10:15
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Jul 13, 2023
@github-actions
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.


class DAOWallet(WalletProtocol):
"""
This is a wallet in the sense that it conforms to the interface needed by WalletStateManager.
It is not a user-facing wallet. A user cannot spend or receive XCH though a wallet of this type.

It is expected that a wallet of type DAOCATWallet will be the user-facing wallet, and use a
DAOWallet for state-tracking of the Treasury Singleton and its associated Proposals.
Wallets of type CAT and DAO_CAT are be the user-facing wallets which hold the voting tokens a user
Copy link
Contributor

Choose a reason for hiding this comment

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

"are be"

@@ -321,12 +296,12 @@ async def create_new_dao_wallet_from_coin_spend(
self.log = logging.getLogger(name if name else __name__)

self.log.info(f"Creating DAO wallet from a coin spend {launch_coin.name()} ...")
# Create did info from the coin spend
# Create dao info from the coin spend
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to comment out this whole function given we aren't using it or testing it and it probably doesn't work?

# breakpoint()
# add interested puzzle hash so we can folllow treasury funds and proposals

# add treasury id to interested puzzle hashes so we can folllow treasury funds
Copy link
Contributor

Choose a reason for hiding this comment

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

We should mention this is for the hints

@matt-o-how matt-o-how merged commit ccb42c5 into dao-wallet Jul 14, 2023
@matt-o-how matt-o-how deleted the gw.dao_wallet_cleanup branch July 14, 2023 15:08
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