Jon Cinque
d3539c19f9
token-2022: Fail to close account with withheld fees ( #2871 )
...
* token-2022: Fail to close account with withheld fees
* Add comment to use `get_extension`
2022-02-04 23:07:22 +01:00
Jon Cinque
0a0a6d9380
token-2022: Try to fix flaky test ( #2874 )
2022-02-04 20:11:01 +01:00
Jon Cinque
eb048559eb
token-2022: Add withdraw withheld tokens from accounts ( #2857 )
...
* token-2022: Add withdraw withheld tokens from accounts
* Add instruction field for number of signers
* Update instruction field
* Rename field and update comment
* Fix test?
2022-02-03 00:08:13 +01:00
Jon Cinque
ab05e4e597
token-2022: Fix flaky test ( #2851 )
2022-02-01 11:57:02 +01:00
Jon Cinque
ccebd8d4c8
token-2022: Add transfer fee withdrawal from mint ( #2849 )
2022-02-01 01:00:20 +01:00
Jon Cinque
1f77ba09ed
token-2022: DRY out the transfer fee tests ( #2845 )
2022-01-31 22:08:44 +01:00
Jon Cinque
95f6c4f501
token-2022: Add harvest from accounts to mint ( #2820 )
...
* token-2022: Add harvest from accounts to mint
* Address feedback
2022-01-29 12:21:57 +01: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
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
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
Jon Cinque
ba46fedafb
token-2022: Add init transfer fee config ( #2757 )
2022-01-20 13:29:40 +01:00