-
Notifications
You must be signed in to change notification settings - Fork 2.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
Add capability to freeze token Accounts #297
Add capability to freeze token Accounts #297
Conversation
Also:
|
I far prefer passing a parameter.
Keeping the authorities completely separate seems ok to me. Freeze is arguably more powerful than Mint, but I like the idea of not having to order them |
59a06fd
to
016fd10
Compare
016fd10
to
5eb4272
Compare
While you have eyes on the token program, open to any way to reduce the loads of copypasta in the tests |
e116f95
to
d683aff
Compare
d48e3d1
to
2c4a6b9
Compare
2c4a6b9
to
68dd692
Compare
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.
looking really good overall
45c35dd
to
1731ff5
Compare
An authority may want the ability to "freeze" specific accounts.
Add a new authority to the Mint and a new initialized state variant to Account. The authority is able to toggle that variant for an associated account. Setting the variant to "frozen" disables any changes from being made to the account, ie transfer in or out, approve, revoke, set-authority, burn.
Fixes #229