Jon Cinque
d0bd3342e2
token-2022: Bump program, cli, and client for release ( #4039 )
2023-02-09 00:27:05 +01:00
dependabot[bot]
4da4314b59
build(deps): bump bytemuck from 1.12.1 to 1.13.0 ( #4027 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 20:27:18 +01:00
samkim-crypto
394c930f18
[token-2022, confidential-extension] Add confidential transfer authority type ( #4025 )
2023-02-06 12:50:35 +09:00
Jon Cinque
49c7e7df53
token-2022: Fix non-transferable extension for unchecked transfers ( #4005 )
2023-02-03 00:42:21 +01:00
dependabot[bot]
c3f46a478d
build(deps): bump num_enum from 0.5.7 to 0.5.9 ( #4020 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-02 16:12:15 +01:00
joeaba
891b4bdad8
chore: update maintainer references ( #4008 )
2023-01-31 08:06:36 -05:00
Jon Cinque
88684d52a2
ci: Update repo to Solana 1.14.12 ( #3989 )
2023-01-19 21:47:03 +01:00
samkim-crypto
e0b70a9749
rename ops to syscall for better readability ( #3944 )
2022-12-23 16:17:57 +09:00
samkim-crypto
b9aba3fb8d
[confidential-extension] Use `OptionalNonZeroPubkey` and `OptionalNonZeroEncryptionPubkey` for confidential extension ( #3943 )
...
* use OptionalNonZeroPubkey for the confidential mint authority pubkey
* add OptionalNonZeroEncryptionPubkey
* update tests
* Update token/program-2022/src/pod.rs
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* remove unnecessary COption convertion for OptionalNonZeroEncryptionPubkey
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-12-23 11:06:18 +09:00
samkim-crypto
6386f24253
[confidential-extension] Restrict `InitializeMint` and `UpdateMint` instructions ( #3938 )
...
* restrict `UpdateMint` instruction
* update tests and token client for `UpdateMint`
* restrict `InitializeAccount` instruction
* update client and tests for `InitializeMint` instruction
2022-12-20 14:24:31 +09:00
samkim-crypto
ac02e0afde
change ceil div variable name ( #3935 )
2022-12-20 09:04:00 +09:00
samkim-crypto
a083ce4f17
fix parenthesis error in fee calculation doc ( #3928 )
2022-12-19 13:03:08 +09:00
samkim-crypto
ba2b7951fc
remove ElGamal pubkey from confidential transfer `ConfigureAccount` data ( #3927 )
2022-12-19 11:58:46 +09:00
samkim-crypto
c51ccf05c2
[confidential-extension] Refactor and add comments for readability ( #3921 )
...
* pass over `InitializeAccount` to `Withdraw` instructions
* add `valid_as_source` and `valid_as_destination` functions
* pass over `Transfer` instruction
* pass over `ApplyPendingBalance` to `HarvestWithheldTokensToMint` instructions
* refactor pending balance credit counter increment
2022-12-16 12:42:55 +09:00
Jon Cinque
ae994afa3e
Update repo to `edition = "2021"` ( #3900 )
2022-12-13 23:46:26 +01:00
samkim-crypto
39a6d59f27
[token-2022] Divide encrypted fee into lo and hi (TOB-STK-11) ( #3878 )
...
* require regular fee proof for self-transfers with fee
* process encrypted lo and hi fee separately
2022-12-07 10:53:48 +09:00
samkim-crypto
bb404a6af5
update solana to 1.14.10 ( #3872 )
2022-12-06 12:59:00 +09:00
samkim-crypto
c7fbd4b69b
check expected new source ciphertext in processing confidential transfer ( #3867 )
2022-12-03 14:46:02 +09:00
hanako mumei
3c4267be06
token-2022: bump version to 0.5
2022-11-21 09:29:18 -08:00
samkim-crypto
6725958c26
[token-2022] Enable confidential payments only feature ( #3790 )
...
* add allow_non_confidential_credits field
* add tests for disabling non-confidential transfers
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* clarify comment wording
* Update token/program-2022/src/extension/confidential_transfer/processor.rs
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-11-17 13:10:21 +09:00
Jon Cinque
8d0a2e1000
token-2022: Add PermanentDelegate extension ( #3725 )
...
* token-2022: Add PermanentDelegate extension
* Address feedback
* Refactor getting permanent delegate
* Rename function
* More cleanup
* Fix ATA
2022-11-15 14:10:59 +01:00
samkim-crypto
da05275176
temporarily disable fees for downstream ci ( #3798 )
2022-11-07 11:17:31 +00:00
Tyera Eulberg
574fe73465
Fix CpiGuard typo, but actually DRY processor methods ( #3791 )
...
* Fix typo
* DRY CpiGuard
* DRY RequiredMemoTransfers
2022-11-02 10:33:37 -06:00
samkim-crypto
edac3c50f0
Disable confidential transfer tests ( #3786 )
...
* disable confidential transfer tests
* featurize additional parts of the code
2022-10-31 11:53:12 +09:00
samkim-crypto
abc77af1d9
Require pubkey validity proof when initializing confidential account ( #3784 )
2022-10-30 14:51:22 +09:00
Jon Cinque
9db366cfb7
token: Fix some spelling mistakes ( #3777 )
2022-10-28 18:03:20 -04:00
samkim-crypto
16384e2f00
add destination confidential account test for withdraw withheld instructions ( #3774 )
2022-10-29 05:49:32 +09:00
samkim-crypto
1c3af5e53d
[token-2022] Add doc regarding the ability of withdraw withheld authority [ZELLIC-3.4] ( #3773 )
...
* Mention the corresponding proof instruction in the token instruction doc
* add warning about withheld fees authority
2022-10-29 04:11:47 +09:00
samkim-crypto
94b912a2b2
Add pubkey consistency check on account and proof data ( #3768 )
2022-10-27 16:49:55 +09:00
samkim-crypto
d6a72ebfe4
Add pubkey consistency check on account and proof data ( #3767 )
2022-10-27 12:40:26 +09:00
samkim-crypto
7a2702936d
remove transfer with fee instruction ( #3766 )
2022-10-27 10:26:33 +09:00
samkim-crypto
0c8fb24d47
upgrade solana-program to 1.14.6 ( #3765 )
2022-10-27 07:59:25 +09:00
Jon Cinque
aaabce2035
token-2022: Return errors for malformed extension data ( #3762 )
2022-10-26 11:16:00 -04:00
Jon Cinque
d331f47c52
token-2022: Remove redundant mint initialization check ( #3763 )
2022-10-26 11:15:32 -04:00
Jon Cinque
0ff8fe1546
token-2022: Error sooner when searching for an extension in TLV data ( #3761 )
2022-10-26 11:15:08 -04:00
hanako mumei
836c9e67a6
token-2022: implement CpiGuard
...
(this is a reversion of a previous reversion of the original CpiGuard commit)
2022-10-25 19:31:15 -07:00
Jon Cinque
b45641f634
token-2022: Clarify `decode_instruction_data` ( #3760 )
2022-10-25 21:57:26 -04:00
Jon Cinque
8d79d85969
token-2022: Add unnecessary owner checks for more clarity ( #3759 )
2022-10-25 21:31:34 -04:00
samkim-crypto
12c11f6f9c
let error propagate instead of panicking ( #3754 )
2022-10-26 09:37:37 +09:00
samkim-crypto
02b1265ec8
fix minor test data description ( #3752 )
2022-10-26 09:37:04 +09:00
samkim-crypto
bf10dfddf4
fix possible panic from short data length ( #3751 )
2022-10-26 09:36:46 +09:00
Trent Nelson
2c28eaa036
Revert "token-2022: implement CpiGuard ( #3712 )"
...
This reverts commit 126fb93be2
.
2022-10-25 00:46:00 -06:00
hana
126fb93be2
token-2022: implement CpiGuard ( #3712 )
...
token-2022: implement CPI Guard
CPI Guard is an extension to block certain unsafe token operations from being done by programs through CPI
2022-10-24 18:36:57 -07:00
hanako mumei
d02d49e267
fix comment, remove allow dead code
2022-10-17 16:09:41 -07:00
hanako mumei
3a87c8fc0a
update solana to 1.14.4
2022-10-12 10:48:23 -07:00
timkoopmans
4e09bd54fb
typo
2022-10-04 15:59:29 -07:00
samkim-crypto
50abadd819
token-2022: integrate memo into confidential extension ( #3587 )
...
* resolve conflict
* add test for confidential extension with memo
* add test for confidential transfer with memo
* change proof instruction order for memo
* resolve conflict
* minor
* rename new_with_memo to new_with_required_memo_transfers
* fix failing tests due to rebase
* fix failing tests due to rebase
2022-09-26 12:27:44 +09:00
Jon Cinque
f97a3dc7cf
clippy: Deny integer arithmetic, add allows where needed ( #3606 )
2022-09-15 13:16:53 +02:00
samkim-crypto
4587da1eab
confidential-extension: Restrict deposit source and withdraw dest to base accounts ( #3540 )
...
* resolve conflict
* update token client for new deposit syntax
* resolve conflict
* update tests
* address doc comments
2022-09-14 16:22:52 +09:00
samkim-crypto
fb0e6572a7
token-2022: add calculate post and pre fee amounts ( #3570 )
...
* add calculate post and pre fee amounts
* fix typo
* Update token/program-2022/src/extension/transfer_fee/mod.rs
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* provide more info on ceiling division
* update tests
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-09-07 21:08:12 +09:00