-
Notifications
You must be signed in to change notification settings - Fork 142
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
Audit Fixes and Improvements #742
Merged
Merged
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
4b1398c
Add missing hooks to dao-voting-native-staked, start adding tests
JakeHartnell de50a62
Fix group contract attribute key emits "address"
JakeHartnell fbad6e7
Fix absoluteCount can be configured to be greater than the total
2a50a0b
Fix absoluteCount threshold for a new token is not validated
cdb8da2
Fix issuer contract can be blacklisted
74420d1
Fix Stargaze collection info bug, and absolute count validation
583db0c
Fix incorrect events are emitted for whitelist
c82fdd3
Fix lack of denom validation
d3ad487
Fix BEFORE_SEND_HOOK_FEATURES_ENABLED is not exposed through smart qu…
c6cf16d
Fix misleading from attribute when burning funds
c02a52a
Fix broken tests from denom validation
56159d2
Fix inconsistent attribute namings and orderings
27c1602
Fix INITITIAL_NFTS spelling XD
89cf32b
Fix counterintuitive variable namings
8bcae64
Better API for cw-tokenfactory-issuer
3b75780
Appease clippy gods
ce4e4fc
Reduce unneeded gas consumption by setting admin directly
JakeHartnell df1591b
Fix unneeded reply_always when instantiating new token
JakeHartnell bfff543
Remove unused function
JakeHartnell 360297a
Improve comments
JakeHartnell 527a600
Use “Migrate only if newer” pattern
JakeHartnell b4256b1
Clean up and fix issuer test-tube tests
JakeHartnell 2781cec
Combine all dao-related hooks into a single package
JakeHartnell f96e6e4
Improve code resuse by consilidating stake hooks
JakeHartnell 17928bc
Clean up types
JakeHartnell 51c79c0
Remove need for unused TokenFactoryQuery, use shared stake hooks
JakeHartnell f20b1cb
Fix stake hook tests, update schema
JakeHartnell dc48b30
Incorporate NFT staking hooks into dao-hooks package
JakeHartnell 2b04dbc
Add cw4::MemberChangedHookMsg and clean up dao-hooks pkg
JakeHartnell e48211f
Make clippy happy, use only migrate newer across all voting contracts
JakeHartnell 426d139
cargo fmt
JakeHartnell c2c230d
clippy on latest rust version
JakeHartnell 318cea5
Improve unstaking_duration validation reuse
8c1b31f
Allowlist should apply to transfers from *or to* an address
JakeHartnell 8883b75
Add info on renouncing Token Factory Admin
JakeHartnell a8683f4
Remove outdated comments
JakeHartnell 2cb2d59
Remove commented out metadata test
JakeHartnell f2d4ac3
More informative error to address BlockBeforeSend hook executing on m…
JakeHartnell 5953169
Use tagged versions or upstream git repos for deps
JakeHartnell dd93317
Better code documentation for cw-tokenfactory-issuer
JakeHartnell 7633b3e
Make it possible to unset BeforeSendHook, or set to a different contract
JakeHartnell 0115fe7
Default to BeforeSendHook features being disabled
JakeHartnell dc7af3c
BeforeSendHook refactor and tests
JakeHartnell 508d81c
Cleanup TODO, verify correct error
JakeHartnell 8c54bf2
Accurate comment
JakeHartnell fa1a74a
Improve active threshold validation reuse
JakeHartnell 71137e8
Don't create issuer for existing tokens
JakeHartnell b6f9c04
Reorg so we can have only one native token voting contract
JakeHartnell c46597e
No need to have an issuer for existing tokens
JakeHartnell cc764d0
Update Schema
JakeHartnell 87aaf6d
Fix up integration tests
JakeHartnell 21e91ee
Remove owner from dao-voting-cw721-staked
JakeHartnell 2d40452
Improve TF docs
JakeHartnell 4778813
Implement two-step ownership transfer for cw_tokenfactory_issue
JakeHartnell c232173
Tests for renouncing ownership
JakeHartnell be1ae92
Fix package name.
JakeHartnell 1c51285
Fix integration tests
JakeHartnell 26e24dd
set_before_update_hook -> set_before_send_hook
JakeHartnell 67e8b83
Address remaining TODOs
JakeHartnell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The fix looks good to me! There is just a println remaining in line 71 that looks like its left over from debugging
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.
Silly me! Thanks for catching that.