Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Add tests for AccountsDeployContract facet #213

Merged
merged 13 commits into from
Jul 24, 2023
Merged

Conversation

0xNeshi
Copy link
Contributor

@0xNeshi 0xNeshi commented Jul 19, 2023

Closes #159

Instructions on making this work

  • run yarn or yarn install to install npm dependencies
  • run yarn test to verify all tests still pass

@0xNeshi 0xNeshi added the enhancement New feature or request label Jul 19, 2023
@0xNeshi 0xNeshi self-assigned this Jul 19, 2023
@0xNeshi 0xNeshi force-pushed the acc-depl-cont-tests branch 2 times, most recently from 1352e2c to f96168f Compare July 20, 2023 05:57
@0xNeshi 0xNeshi changed the title WIP: Add tests for AccountsDeployContract facet Add tests for AccountsDeployContract facet Jul 20, 2023
string veBondingName;
string veBondingSymbol;
uint256 veBondingDecimals;
address veBondingReserveDenom;
address veBondingReserveDenom; // should this be string?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should veBondingReserveDenom this be string?
Name and type combo is really confusing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, DaoTokenData isn't used anywhere right now. @SovereignAndrey is the concept of SubDaos not fleshed out? Looks like we're missing some use cases of the data we're storing here.

Copy link
Contributor

@SovereignAndrey SovereignAndrey Jul 21, 2023

Choose a reason for hiding this comment

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

@stevieraykatz Yea, SubDaos are not even planned on for go-live a little while still, so we might better just disable the createSubDao endpoint in Accounts for now. There's prob some holes in there since:
A) no ones looked at those contracts yet for a re-work
B) we need better product requirements to ensure we're meeting all the needed items whilst we do the above (A)

Copy link
Contributor Author

@0xNeshi 0xNeshi Jul 21, 2023

Choose a reason for hiding this comment

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

so we might better just disable the createSubDao endpoint in Accounts for now

@SovereignAndrey are you talking about AccountsDeployContract.createDaoContract? If so, we can just close this PR haha

Copy link
Contributor

@SovereignAndrey SovereignAndrey Jul 24, 2023

Choose a reason for hiding this comment

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

Yes, sorry was thinking about the cosmos naming I think. I think we can maybe keep this PR, but add a revert for the create endpoint. Ultimately, I think we'll need to pull this facet out into a "SubDaoFactory" as a separate contract since it's not really related to the Accounts, but only concerned in governing them and gatekeeping access to them. It'll need to be along with the removal/commenting out of the donation matching code too since that'll tie in with subDaos + for charities it will rely on HALO token being live too.

Copy link
Contributor

@stevieraykatz stevieraykatz left a comment

Choose a reason for hiding this comment

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

The test and small renames look good. Leaving open so @SovereignAndrey can reply

string veBondingName;
string veBondingSymbol;
uint256 veBondingDecimals;
address veBondingReserveDenom;
address veBondingReserveDenom; // should this be string?
Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, DaoTokenData isn't used anywhere right now. @SovereignAndrey is the concept of SubDaos not fleshed out? Looks like we're missing some use cases of the data we're storing here.

@0xNeshi 0xNeshi merged commit eaa0356 into master Jul 24, 2023
1 check failed
@0xNeshi 0xNeshi deleted the acc-depl-cont-tests branch July 24, 2023 07:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add tests for AccountsDeployContract facet
3 participants