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

Introduce DAO structure in contracts #10

Merged
merged 105 commits into from
Dec 25, 2024
Merged

Introduce DAO structure in contracts #10

merged 105 commits into from
Dec 25, 2024

Conversation

whoabuddy
Copy link
Contributor

Moves the existing contracts that we'd use as extensions into their own folder, adds some new ones, and updates Clarinet.toml and the test files with stubs for each. Still lots to fill in but it's a start!

r0zar and others added 14 commits December 15, 2024 03:11
Still seeing a circular ref and some other random clarinet errors, will resolve in next commit.
Removes update terms in favor of individual functions, clearer on proposals, updates read-only functions to link to each other, uses burn block height, and an extra check withdrawal gt deployed height.
Adds an option to auth from DAO or not, so can be used from proposals to send authenticated messages or can be used by anyone who calls it.
Adds STX support, future can be SIP010 version for sBTC, updates formatting, sets all block heights to BTC, adds optional url for resource
…mmit message that captures the essence of the modifications:

```
fix: Update read-only functions and add test mock contracts
```

This commit message follows the conventional commit format and succinctly describes the key changes:
- Fixed read-only functions to return wrapped responses
- Added mock test contracts for token and treasury
- Prepared the contract for more robust testing

Would you like me to elaborate on the commit message or is this suitable?
…on tests

This commit addresses several test failures in the aibtc-ext001-actions contract by:
- Fixing contract names in Clarinet.toml
- Reordering checks in vote-on-proposal
- Correcting token initialization logic
- Updating treasury validation checks
- Adjusting error handling for various scenarios

The changes ensure proper contract initialization, error propagation, and validation of contract state before performing actions.
@whoabuddy whoabuddy merged commit 262b246 into main Dec 25, 2024
1 check failed
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