dboures
49c53ad653
token-js: Add sync version of getAssociatedTokenAddress ( #3171 )
...
* token-js: Bump web3.js dependency to 1.41.0
* token-js: Add sync version of getAssociatedTokenAddress
* token-js: add test for getAssociatedTokenAddressSync
* Update lockfile
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-05-17 00:30:31 +02: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
b6eb64b0b4
token-2022: check pending and available balance on confidential token tests ( #3145 )
...
* token-2022: check pending and available balance on confidential token tests
* token-2022: cargo fmt
2022-05-07 15:00:58 +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
d087b574e6
Accommodate upstream web3.js changes in twotx patch ( #3140 )
2022-05-04 17:32:51 -06:00
Jon Cinque
e59a0dc186
token-2022: Set transfer fee two epochs ahead ( #3120 )
2022-04-27 17:48:08 +02:00
Tyera Eulberg
51ece68cec
Add feature-wrapping for new ConfidentialTransferInstruction::TransferWithFee ( #3116 )
2022-04-26 13:15:09 -06:00
Tyera Eulberg
b3fe5b6d5d
Bump token-2022 ( #3113 )
...
* Bump token-2022
* Bump solana dependencies
2022-04-26 12:15:26 -06:00
Tyera Eulberg
2c1a671a77
Make spl-token-2022 instruction decoders pub ( #3112 )
...
* Make instruction decoders pub
* Add missing doc
2022-04-26 07:56:08 -06:00
Tyera Eulberg
2491b29a1e
Add AuthorityType variant to use for mint close-authority adjustment ( #3111 )
2022-04-26 07:55:15 -06:00
Jon Cinque
c616db83c4
token-2022: Add compatibility test for instructions ( #3106 )
2022-04-22 23:55:18 +02: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
Harsh Ghodkar
f7d4ebecc6
added a flag to check if the recipient address is correct ( #3085 )
...
* added a flag to check if the recipient address is correct
* small fix
* Made the changes of adding the check to a suggested block
* updating from base
* was able to clear merge conflicts
* added a couple tests
* better names for tests
* done with fixes
* cargo fmt
2022-04-21 21:53:30 +02:00
Ronald Hood Jr
ae2e000434
InitializeImmutableOwner Instruction ( #3068 )
...
* initializeImmutableOwner Instruction
* Immutable Owner Testing
* immutable owner tests
* Creating Mint and Initializing Account
* Parameter Synchronization
* Documentation Update
Co-authored-by: Ronald Hood <ronald.hood@yale.edu>
2022-04-21 20:43:56 +02:00
samkim-crypto
76f0532d83
token-2022: fix confidential transfer tests ( #3096 )
...
* token-2022: update zk-token-sdk to 1.10.8
* token-2022: remove ignore tag for confidential tranfer test
2022-04-21 12:21:21 -04:00
Jon Cinque
bbde6d8703
token-cli: Add tests for all cases from docs ( #3070 )
...
* token-cli: Add tests for all cases from docs
* Add TestValidator and build.rs for programs
* Fix solana-test-validator version
* Add solana-test-validator to patch script
2022-04-15 21:51:16 +02:00
Jon Cinque
1d1c2b178b
Upgrade crates to 1.10.8 ( #3076 )
2022-04-11 22:25:27 +02:00
Jon Cinque
513c1143a2
token-cli-bench: Remove RPC utils in favor of Tpu Client ( #3046 )
2022-04-01 13:41:33 +02:00
Jordan Sexton
552ada1035
remove old ts dir
2022-03-30 11:12:13 -06:00
Jon Cinque
fe4eb13fec
token-js: Fix build due to duplicated web3.js ( #3048 )
2022-03-29 21:24:21 +02:00
Danny Povolotski
29d424e597
fully switch to @solana/buffer-layout ( #2634 )
...
* remove unused buffer-layout
* change to solana implementation of buffer-layout
* use latest buffer-layout and utils
* update buffer-layout-utils
* update buffer-layout-utils
* info.data is already Uint8Array
* update deps, fix lint
* remove node engine requirements
Co-authored-by: Danny Povolotski <danny@192.168.1.34>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
2022-03-26 22:00:59 -06:00
Jon Cinque
b7a3fc6243
token-2022: Fix (rarely) flakey test by changing tx ( #3015 )
2022-03-19 02:39:31 +01:00
Jon Cinque
2292dc2c8c
token-2022: Refactor instruction encoding / decoding ( #3011 )
2022-03-17 18:27:06 +01:00
Brennan Gebotys
a2bbabc1dc
add getMultipleAccounts for Token ( #2990 )
...
* add getMultipleAccounts for Token
* update naming convention of fcn
* rename & reorg code
* lint fix
Co-authored-by: obiwan <you@example.com>
2022-03-11 22:11:50 +01: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
Jon Cinque
56a1e97c95
token-js: Update @solana/web3.js dependency ( #3001 )
2022-03-10 22:32:31 +01: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
Tyera Eulberg
810c79ec32
token-2022: Allow anyone to burn/close an Account owned by the system program or the incinerator ( #2890 )
...
* Allow anyone to burn and close token Accounts owned by the system program and the incinerator
* Require rent from incinerator/system-owned token accounts be burnt when accounts closed
* Add support to OG program
2022-03-09 19:31:39 -07:00
Lijun Wang
76a92cda2d
Added checks if a token account is initialized when checking validity ( #2986 )
...
* Added checks if an account is initialized when checking validity
2022-03-09 16:53:48 -08:00
Tyera Eulberg
221935bdba
Ignore failing test ( #2999 )
2022-03-09 16:48:36 -07:00
Tyera Eulberg
26d3a33939
Update twoxtx patch ( #2997 )
2022-03-09 12:15:42 -07:00
samkim-crypto
7ab4de6174
token-2022: minor rename pod types with descriptive types ( #2983 )
2022-03-04 12:26:28 -05:00
Tyera Eulberg
e17706c7be
Spell out destination ( #2977 )
2022-03-03 12:34:17 -07:00
Lijun Wang
bbbf250a67
Support unpacking token accounts fields partially ( #2970 )
...
* Support unpacking token accounts fields partially
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-03-02 11:34:55 -08:00
Michael Vines
ab23d6b41e
Augment ct tests with decryptable_available_balance assertions
2022-02-28 17:26:32 -08:00
Michael Vines
22135e547c
Add ConfidentialTransferInstruction Deposit/Transfer/Withdraw tests
2022-02-28 09:34:23 -08:00
Michael Vines
3450f173de
Fix transfer bug
2022-02-28 09:34:23 -08:00
Michael Vines
38243ddcd4
Add temporary twoxtx feature for ConfidentialTransfer extension unit testing
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
29089e873e
Fix copypasta ( #2962 )
2022-02-26 13:28:57 -07:00
samkim-crypto
66cf3e9720
token-2022: update doc style for confidential extension instructions ( #2961 )
2022-02-26 09:21:48 -05:00
Jon Cinque
2e1286b06a
token-js: Support MintCloseAuthority ( #2951 )
2022-02-25 00:24:26 -05: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
d505f2a739
Add comment ( #2954 )
2022-02-24 16:46:47 -07:00
Jon Cinque
c3fda0d956
token-js: Add support for extension data ( #2950 )
2022-02-24 15:55:29 -05:00
Jon Cinque
5229a21c6a
token-js: Update instruction enum for UiAmountToAmount / AmountToUiAmount ( #2949 )
...
* token-js: Unflake create native test
* Add UiAmountToAmount and AmountToUiAmount to enum
2022-02-24 15:17:32 -05:00
Tyera Eulberg
f4c5fdcfcf
Bump solana to v1.9.9 ( #2902 )
2022-02-23 16:20:55 -07:00
Michael Vines
131612417a
Do not permit token accounts to be closed when the withheld amount is non-zero
2022-02-23 11:48:03 -08:00