Tyera Eulberg
2daa6e645f
token-2022: add DefaultAccountState mint extension ( #2810 )
...
* Add DefaultAccountState extension
* Check DefaultAccountState in InitializeAccount
* Add rust client functionality
* Add tests
* Simplify ix variants
* Fixup freeze-auth signing state for multisig
* Add InitializeMint check to prevent freeze_authority.is_none() and default AccountState::Frozen
* Use separate freeze_authority in program_test
* Add docs for default-state instruction data
* Rebase on #2807
2022-01-26 13:30:24 -07:00
Jon Cinque
e2d56f403d
token-2022: Assess transfer fees ( #2807 )
...
* Refactor transfer to use StateWithExtensionsMut
* Add basic transfer tests
* Add transfer fee calculation and use in transfer
* Add specific transfer fee tests
* Add self-transfer test + rename test
2022-01-26 19:25:10 +01:00
Jon Cinque
82d862ebde
token-2022: Enforce maximum transfer fee of 10k bps ( #2808 )
2022-01-26 14:02:24 +01:00
Tyera Eulberg
8eaaafed54
Refactor TestContext to enable unwrap_err ( #2805 )
2022-01-25 13:45:53 -07:00
Tyera Eulberg
87fe3793ea
token-2022: implement SetAuthority for TransferFeeConfig and WithheldWithdraw ( #2801 )
...
* Make comment more explicit
* Support setting TransferFeeConfig and WithheldWithdraw authorities
* Add tests
2022-01-25 10:23:34 -07:00
Michael Vines
679e9b1212
spl-token-client no longer hard codes the token program id
2022-01-24 17:41:47 -08:00
Jon Cinque
8bac649302
token-2022: Implement set transfer fee instruction ( #2797 )
...
* token-2022: Implement set transfer fee instruction
* Address feedback
2022-01-25 02:03:12 +01:00
Tyera Eulberg
cc8826ac70
token-2022: plumb program_id through instruction builders ( #2792 )
...
* Plumb program_id into ix builders
* Don't unwrap extension instructions
2022-01-24 14:14:21 -07:00
Tyera Eulberg
a98977f5fd
token-2022: add more tests ( #2783 )
...
* Add extended-mint case to test_get_account_data_size()
* Add missing account-type init
* Add basic init-acct ProgramTest tests
2022-01-24 11:39:13 -07:00
Tyera Eulberg
c03c1fc7b4
token-2022: make extension instruction builders consistent with vanilla token ( #2782 )
...
* Make TransferFee and MintClose ix builders consistent with vanilla token
* Make ConfidentialTransfer ix builders consistent with vanilla token
2022-01-24 11:03:37 -07:00
Tyera Eulberg
498d347cdd
token-2022: bump compute limit for close test ( #2770 )
2022-01-21 11:54:02 -07:00
Jon Cinque
f5a6dc671c
token-2022: Zeroize account data on close ( #2764 )
...
* token-2022: Zeroize account data on close
* Address feedback
2022-01-21 02:47:48 +01:00
Jon Cinque
ba46fedafb
token-2022: Add init transfer fee config ( #2757 )
2022-01-20 13:29:40 +01:00
Jon Cinque
db0b2c5295
token-2022: Add mint close authority support everywhere ( #2754 )
...
* token-2022: Add mint close authority support everywhere
* Address feedback
2022-01-19 18:40:00 +01:00
Jon Cinque
480dc6870f
token-2022: Add init mint close authority ( #2744 )
2022-01-19 12:44:45 +01:00
Trent Nelson
f3704db5ff
Bump token-2022 test CUs again for tip of 1.9
2022-01-18 18:19:52 -07:00
Jon Cinque
0a61bc4ea3
token: Bump compute units in tests ( #2752 )
2022-01-18 13:15:08 +01:00
Jon Cinque
3e1dd73396
token-2022: Basic integration with rust client ( #2739 )
...
* token-2022: Basic integration with rust client
* Rename ExtenstionType -> Self
* Fix merge conflicts
2022-01-14 20:34:43 +01:00
Jon Cinque
6ee008d256
Update SDK to 1.9.2, fix warnings ( #2674 )
...
* Update SDK to 1.9.2, fix warnings
* Upgrade honggfuzz
* Use `get_latest_blockhash` correctly
2021-12-28 23:02:47 -05:00
Dmitri Makarov
e039957fc4
Increase compute max units in program-2022 assert_instruction_count ( #2655 )
2021-12-21 10:59:44 -08:00
Jon Cinque
2cd68d3f5c
token-2022: Add transfer fee types and instructions ( #2608 )
...
* token-2022: Add transfer fee accounts and instructions
* Address feedback
* More feedback
* Move to mixins
* Separate instructions for mixin initialization
* Feedback again again again!
* Getting there...
* More more feedback again again
* Add `WithdrawWithheldTokensFromAccounts` instruction
* Add instruction serde, fix all errors
2021-12-14 23:36:02 +01:00
Jon Cinque
7764a9d5c7
token: Transition perf-monitor to solana-program-test ( #2586 )
...
* token: Transition perf-monitor to solana-program-test
* fmt
* Refactor for clarity
2021-11-16 23:15:45 +01:00