samkim-crypto
937b64da37
Adjust confidential token rust client for offline signing ( #3347 )
...
* token-2022: remove account balance decryption from confidential transfer rust client
* token-2022: remove account balance decryption from withdraw withheld tokens from accounts
* token-2022: cargo fmt
* token-2022: update tests for new rust client syntax
* token-2022: cargo fmt
* token-2022: cargo clippy
* token-2022: minor
2022-07-16 05:34:19 +09:00
samkim-crypto
3afe1e652b
Derive elgamal key in token client ( #3308 )
...
* token-2022: derive elgamal key in token client
* token-2022: update program tests for key derivation
* token-2022: key derivation for apply pending balance
* token-2022: add configure account with max pending balance
* token-2022: update tests for apply pending balance
* token-2022: derive key for confidential trasfer with fee
* token-2022: update test for confidential transfer with fee
* token-2022: derive encryption keys for withdrawing withheld tokens
* token-2022: update tests
2022-07-04 15:47:33 +09:00
Jon Cinque
c1ee6a58be
Update Solana crates to 1.10.29 ( #3303 )
2022-07-01 16:51:01 -04:00
samkim-crypto
c3137af9df
token-2022: add tests for withdraw of confidential withheld tokens from accounts ( #3280 )
...
* token-2022: add tests for withdraw of confidential withheld tokens from accounts
* token-2022: cargo fmt
* token-2022: cargo clippy
2022-06-21 22:02:15 +09:00
samkim-crypto
0f316fb357
bump solana to v1.10.26 ( #3274 )
2022-06-20 09:55:49 +09:00
Jon Cinque
27014732dd
token-2022: Bump version for next release ( #3239 )
2022-06-10 22:38:33 +02:00
samkim-crypto
677acf173d
token-2022: limit incoming transfers for confidential transfer extension ( #3208 )
...
* token-2022: limit incoming transfers for confidential transfer extension
* token-2022: add maximum pending counter for confidential extension in client
* token-2022: update tests for ct configure account
* token-2022: cargo fmt
* divide pending balance into lo and hi
* token-2022: update ct processor for lo and hi pending balances
* token-2022: limit confidential transfer deposit and transfer amount in token client
* token_2022: rename TokenError::IllegalAmount
* token-2022: compare max pending credit as u64
* token-2022: fmt
* token-2022: minor fix error from rebase
* Update token/program-2022/src/extension/confidential_transfer/processor.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* token-2022: update configure account initialization comments
* token-2022: use strict comparison for max pending balance credit counter check
* token-2022: update deposit tests to check `pending_balance_hi` populated
* token-2022: update deposit tests to check that deposit and transfer fails when max pending exceeded
* token-2022: reset pending balance counter on `ApplyPendingBalance`
* token-2022: fix cargo test cases for credit counter
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-06-07 23:16:46 +09:00
Jon Cinque
773e2ee469
token-2022: Add interest-bearing extension ( #3013 )
...
* token-2022: Add interest-bearing extension
* Rename / comment feedback
* Rename interest-bearing -> interest-bearing mint
2022-06-01 16:46:30 +02:00
samkim-crypto
424c900345
bump solana to v1.10.19 ( #3195 )
...
* bump solana to v1.10.19
* update solana-version.sh
2022-05-25 08:40:30 +09:00
samkim-crypto
b2077609d9
token-2022: add tests for confidential transfer withdraw withheld tokens from mint ( #3181 )
2022-05-19 11:12:00 +09:00
Dmitri Makarov
f1c1d440e9
Bump solana to v1.10.15 ( #3176 )
2022-05-17 11:27:30 -07:00
samkim-crypto
9e029349fc
Rename encryption pubkey ( #3147 )
...
* token-2022: change elgamal pubkey to encryption pubkey
* token-2022: update client and tests for elgamal pubkey to encryption pubkey
2022-05-08 12:51:18 +09:00
samkim-crypto
bcf7aa2d6e
token-2022: client for confidential withdraw withheld tokens ( #3134 )
2022-05-06 15:52:43 +09:00
Tyera Eulberg
731a1363b1
Token client improvements ( #3139 )
...
* Use-stmt cleanup
* Use nonblocking RpcClient
* Arc-wrap RpcClient
* Confirm tx when using RpcClient
* Bump version for releasing
2022-05-04 18:11:11 -06:00
Tyera Eulberg
b3fe5b6d5d
Bump token-2022 ( #3113 )
...
* Bump token-2022
* Bump solana dependencies
2022-04-26 12:15:26 -06:00
samkim-crypto
049a89f351
token-2022: Add confidential transfer with fee instruction ( #2988 )
...
* token-2022: add separate transfer with fee instruction
* token-2022: add `TransferWithFee` client code
* apply twoxtx patch
* token-2022: add brief tests for transfer with fee
* Revert "apply twoxtx patch"
This reverts commit ce09d1f5d2fb496cd4ee9991be234726786e39f2.
* token-2022: cargo fmt
* token-2022: uncommenting the rest of the tests
* token-2022: cargo fmt
* token-2022: temporarily reverting to 5f89521
* token-2022: minor
* token-2022: clippy
* token-2022: apply twoxtx patch
* token-2022: fix transfer with fee test
* Revert "token-2022: apply twoxtx patch"
This reverts commit 577e63c2f38ce0a17fa4aede3d0acfd852b1d3ab.
* token-2022: simplify fee parameter for zkp on client
* token-2022: fix build
2022-04-22 14:00:42 -04:00
Jon Cinque
1d1c2b178b
Upgrade crates to 1.10.8 ( #3076 )
2022-04-11 22:25:27 +02:00
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
Tyera Eulberg
e17706c7be
Spell out destination ( #2977 )
2022-03-03 12:34:17 -07:00
Michael Vines
22135e547c
Add ConfidentialTransferInstruction Deposit/Transfer/Withdraw tests
2022-02-28 09:34:23 -08:00
Michael Vines
6875603085
Initial ConfidentialTransferInstruction::EmptyAccount test
2022-02-28 09:34:23 -08:00
Tyera Eulberg
f4c5fdcfcf
Bump solana to v1.9.9 ( #2902 )
2022-02-23 16:20:55 -07:00
Michael Vines
656f0eb1d9
Reduce test code duplication
2022-02-23 09:54:46 -08:00
Michael Vines
e111e997b7
Add {En,Dis}ableBalanceCredits test
2022-02-23 08:37:19 -08:00
Michael Vines
7c3b614af0
Add confidential transfer configure and approve account tests
2022-02-23 07:37:14 -08:00
Michael Vines
c4c14b5c51
Add confidential transfer initialize/update mint tests
2022-02-22 21:25:18 -07:00
Jon Cinque
558322798f
token-2022: Support extensions in `SyncNative` ( #2926 )
2022-02-17 22:50:10 +01:00
Michael Vines
93c8086e13
Rename token/rust to token/client
2022-02-11 21:47:43 -08:00