Commit Graph

2556 Commits

Author SHA1 Message Date
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
Jon Cinque b7b7690217
scripts: Update solana_version in Anchor.toml with dependencies (#2996) 2022-03-09 17:57:15 +01:00
Tyera Eulberg 0aa95f2d00
Bump regex (#2995) 2022-03-08 14:52:03 -07:00
Jon Cinque d51b58294f
anchor: Updates for token-2022 (#2984)
* anchor: Update version, add token-2022 and dependencies

* Add token program id
2022-03-04 16:15:23 -05: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
Tyera Eulberg 00767dbd28
Run CI on version updates (#2981) 2022-03-03 12:02:28 -07:00
Jon Cinque f5a12c63a1
fuzz: Fix fuzz build (#2980) 2022-03-03 13:59:38 -05:00
Tyera Eulberg 631cce088c
Bump rust versions (#2978)
* Bump rust versions

* clippy: unnecessary use of to_vec
2022-03-02 23:56:15 -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
Trent Nelson 0c0168f8a9 patch-crates: optionally patch zk-token-sdk 2022-03-01 08:31:06 -07:00
Trent Nelson ceb35f52e2 only update dependencies at version declared in ci/solana-version.sh 2022-03-01 08:31:06 -07: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 4c3a3d2d52 Add solana-zk-token-sdk 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 7f3cad3d11 Cargo.lock 2022-02-23 20:12:20 -07:00
Tyera Eulberg f4c5fdcfcf
Bump solana to v1.9.9 (#2902) 2022-02-23 16:20:55 -07:00
Jon Cinque d557474ff9
token-swap: Ceiling stable curve division (#2942) 2022-02-23 15:27:16 -05: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
Michael Vines 10559aed7a Reduce mut usage 2022-02-23 11:48:03 -08:00
Michael Vines 1bcd07dca1 Field name cleanup 2022-02-23 09:54:46 -08: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 7bdb77b330 Enable balance credits by default 2022-02-23 08:37:19 -08:00
Michael Vines 3f393e8a85 Remove unnecessary approval checks 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
Mykola Vasylchyshyn d6896a9715 Fix a typo in instruction.rs 2022-02-22 23:58:32 -07:00
Tyera Eulberg 6944577691
Custom build.rs for program-2022-test (#2940)
* Add custom build script from program-2022-test to build .so

* Log output
2022-02-22 22:29:28 -07:00
Michael Vines c4c14b5c51 Add confidential transfer initialize/update mint tests 2022-02-22 21:25:18 -07:00
Alexander Ray 27a58282d3
stake-pool: add bindings to js (#2806)
* stake-pool:
add new bindings
  | 'IncreaseValidatorStake'
  | 'DecreaseValidatorStake'
  | 'UpdateValidatorListBalance'
  | 'UpdateStakePoolBalance'
  | 'CleanupRemovedValidatorEntries'

* stake-pool:
add new bindings
  | 'IncreaseValidatorStake'
  | 'DecreaseValidatorStake'
  | 'UpdateValidatorListBalance'
  | 'UpdateStakePoolBalance'
  | 'CleanupRemovedValidatorEntries'

* - merge upstream with local changes

* - merge package.json

* - update package.json

* - fix lint issues

* - fix lint issues

* - another lint fix

* - fix & try

* - force rebuild

* - merge from upstream

* fix lint issues

* - update package.json

* - add debug info to prettier

* - update prettier settings

* cleanup package json

* - refactor according PR suggestions

* - refactor

* - refactor

* - force pr action

* - fix withdraw stake issue

* - fix issue
2022-02-22 22:41:18 -05:00
Jordan Sexton c259f09cf4 empty commit; rebuild docs 2022-02-22 14:15:23 -06:00
Jacob Creech 77330230bf
Update Token TS Docs (#2938)
* Revert "Added token ts docs (#2575)"

This reverts commit f64df314a3.

* Added token ts docs

* Added token ts docs

* Upgrade docusaurus

* Upgrade docusaurus

* Add autocomplete.js

* Update docusaurus

* fix: update feature-proposal

* Updated token docs

Update token docs backlinks

Update docusaurus
2022-02-22 13:47:11 -06:00
Michael Vines 45ce0818f0 Add zktoken paper 2022-02-22 12:22:48 -07:00
Jacob Creech 90aac5c98f
Revert "Added token ts docs (#2575)" (#2933)
This reverts commit f64df314a3.
2022-02-18 20:44:45 -06:00
Jacob Creech f64df314a3
Added token ts docs (#2575)
* Added token ts docs

Fixed typos

Added token ts docs

Added updating authority example

* Added wrapped sol ts docs

* Update to match current token ts

* Remove browser bundle token doc

Co-authored-by: Jacob CG <82475023+Jacob-CG@users.noreply.github.com>
2022-02-18 19:53:50 -06: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 bb6a91c56f
token-js: Support token-2022 in base tests (#2927) 2022-02-17 23:26:54 +01:00
Jon Cinque 558322798f
token-2022: Support extensions in `SyncNative` (#2926) 2022-02-17 22:50:10 +01:00