-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dao wallet cleanup #15753
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
chia/wallet/dao_wallet/dao_wallet.py
Outdated
|
||
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 |
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.
"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 |
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.
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 |
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.
We should mention this is for the hints
tidy up and some refactoring of dao_wallet.py