forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add capability to freeze token Accounts (solana-labs#297)
* Add freeze elements to state structs * Add can_freeze paramter to InitializeMint instruction, and plumb * Add fixed_supply parameter to InitializeMint * Convert to SetAuthority instruction * Add frozen restrictions * Add FreezeAccount instruction * Make FreezeAccount into toggle * Add parameter to make freezing explicit * Pass mint owner, freeze_authority as parameters * Rename ToggleFreeze * Make AuthorityType more explicit * Rename mint owner => mint_authority * Add Account::is_frozen method * C header updates * s/is_initialized/state for Account * Minting nit * Add helpers to clean up AuthorityType packing * Split FreezeAccount into 2 instructions * Pass new_authority as parameter not account * More C header updates * Use new COption helpers * Use boolean for toggle fn
- Loading branch information
1 parent
c2da3db
commit c00adbe
Showing
5 changed files
with
1,294 additions
and
220 deletions.
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
Oops, something went wrong.