samkim-crypto
4ddaae5f21
Bump zk token sdk ( #3002 )
...
* token-2022: bumping zk-token-sdk to 1.10.1-pre1 and updating variable names accordingly
* token-2022: updating client and test variables to match newest zk-token-sdk
2022-03-11 06:57:32 -05:00
Jon Cinque
29479fcc72
token-2022: Make program and crate deployable ( #2985 )
...
* token-2022: Make program and crate deployable
* Featurize the syscall usage
* Re-add GenericTokenAccount
* Rebase correctly with GenericTokenAccount
* Add updated valid_account_data implementation
2022-03-10 17:42:16 +01:00
samkim-crypto
af90facd1d
token-2022: add fee withdraw and harvest instructions ( #2907 )
...
* token-2022: add fee harvest instruction for confidential extension
* token-2022: cargo fmt
* token-2022: add `WithdrawWithheldTokensMint` processor
* token-2022: add `WithdrawWithheldTokensAccounts` processor
* token-2022: incorporate VerifyWithdrawWithheldTokens instruction
* token-2022: minor variable name changes
* token-2022: additional comments + renaming variables
* token-2022: check if confidential extension was approved for fee harvest
Co-authored-by: Michael Vines <mvines@gmail.com>
* token-2022: fix error type for overflow
* token-2022: remove unnecessary fee extension check for confidential token harvest
* token-2022: add extra detail on front-running for harvesting fees
* token-2022: fix pending balance
* token-2022: bump zk-token-sdk to 0.8.0
* token-2022: fix minor variable name issue
* token-2022: minor spelling
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* token-2022: addressing smaller review feedback
* token-2022: change fee_mint to transfer_fee_config in confidential transfer
* Update token/program-2022/Cargo.toml
* token-2022: fix cargo bpf-test fail
* token-2022: fixing a previous comment mistake
Co-authored-by: Michael Vines <mvines@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-02-24 21:16:32 -05:00
Tyera Eulberg
0268d76d30
token-2022: complete memo extension functionality ( #2876 )
...
* Add NoMemo error and use syscall to require memos
* Flesh out + dedupe memo-transfer tests
* Add memo v1 test cases
2022-02-24 16:48:42 -07:00
Tyera Eulberg
f4c5fdcfcf
Bump solana to v1.9.9 ( #2902 )
2022-02-23 16:20:55 -07:00
Tyera Eulberg
3d92f8f4dc
Add token Amount/UiAmount conversion Instructions ( #2928 )
...
* Add Amount/UiAmount conversion Instructions to spl-token
* Use invalid-mint error in spl_token get_account_data_size
* Add Amount/UiAmount conversion Instructions to spl-token-2022
2022-02-17 16:25:57 -07:00
Jon Cinque
20864c0be7
token: Support both token programs in associated-token-account ( #2904 )
...
* token: Support both token programs in associated-token-account
* Rename spl-token -> spl-token-2022, spl-token-legacy -> spl-token
* Use spl-token by default
* Check mint in get_account_data_len
* Add checks for either token program
* Rebase fix
* Update version comments in tests
2022-02-15 14:20:14 +01:00
samkim-crypto
7330b17482
token-2022: add fee for confidential extension ( #2897 )
...
* token-2022: add fee for confidential extension
* token-2022: change receiver to dest for consistency
* token-2022: addressing readability review comments for confidential extension
2022-02-11 08:37:30 -05:00
Michael Vines
1b369e1cf7
Bump spl-token-2022 version to 0.2.0
2022-02-10 16:03:45 -08:00
Tyera Eulberg
428d93bdcb
Move program-2022 tests to new crate ( #2892 )
2022-02-09 15:02:33 -07:00
Tyera Eulberg
83c3ffad25
Bump solana crates to v1.9.5 ( #2780 )
...
* Bump solana crates to v1.9.5
* Update sol_set_return_data type signature and un-ignore test
2022-01-21 22:52:10 -07:00
Tyera Eulberg
fbd3dd4247
Bump solana-zk-token-sdk ( #2772 )
2022-01-21 15:57:55 -07:00
Tyera Eulberg
821ad120d8
Bump zk-token-sdk and impl Default for confidential-transfer extensions ( #2771 )
2022-01-21 13:33:41 -07: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
Tyera Eulberg
cad24e502a
Add GetAccountDataSize implementation ( #2736 )
...
* Add helper to get required Account extensions
* Add GetAccountDataSize processor
* Add get_account_data_size instruction
* Add test harness to check return data
* Add test of basic mint/account get-len
* Move method inside impl ExtensionType
2022-01-13 18:50:01 -07:00
Michael Vines
5fe1eb6a9d
Add Confidential Transfer Extension boilerplate
2022-01-07 14:58:41 -08:00
Jon Cinque
eedcbd8602
token: Extension state packing ( #2642 )
...
* token: Extension state packing
* Move to bytemuck
* Cleanup a bit
* Remove all unsafe, address feedback
* Address feedback
* Add test for multisig-length account
* Add tests for Account and multi-extension
* Remove last todo
* Add more tests
2022-01-04 17:55:51 -05: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
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
Michael Vines
9acb082dc3
Upgrade to Solana v1.8.1
2021-10-20 22:52:19 -07:00
Michael Vines
1c417ffa4f
Fork Token 2022 program
2021-10-12 10:43:58 -07:00