Tyera Eulberg
821ad120d8
Bump zk-token-sdk and impl Default for confidential-transfer extensions ( #2771 )
2022-01-21 13:33:41 -07:00
Tyera Eulberg
498d347cdd
token-2022: bump compute limit for close test ( #2770 )
2022-01-21 11:54:02 -07:00
Jon Cinque
54cb4ad1d8
associated-token-account: Revert to using spl-token-2022 ( #2769 )
...
* associated-token-account: Revert to using spl-token-2022
* Clear up no-entrypoint feature for rust client
2022-01-21 19:17:44 +01:00
Jon Cinque
78e7a9538e
associated-token-account: Bump dependent token version to 3.3 ( #2766 )
...
* associated-token-account: Bump dependent token version to 3.3
* Fix uses of deprecated instruction
2022-01-21 11:01:06 +01:00
Jon Cinque
f5a6dc671c
token-2022: Zeroize account data on close ( #2764 )
...
* token-2022: Zeroize account data on close
* Address feedback
2022-01-21 02:47:48 +01:00
Jon Cinque
81f50127f1
token: Bump version to 3.3.0 ( #2765 )
2022-01-21 01:47:02 +01:00
Jon Cinque
3eccf25ece
token: Zeroize data on account close ( #2763 )
2022-01-21 01:03:00 +01:00
Jon Cinque
ba46fedafb
token-2022: Add init transfer fee config ( #2757 )
2022-01-20 13:29:40 +01:00
Jon Cinque
db0b2c5295
token-2022: Add mint close authority support everywhere ( #2754 )
...
* token-2022: Add mint close authority support everywhere
* Address feedback
2022-01-19 18:40:00 +01:00
Jon Cinque
480dc6870f
token-2022: Add init mint close authority ( #2744 )
2022-01-19 12:44:45 +01:00
Trent Nelson
f3704db5ff
Bump token-2022 test CUs again for tip of 1.9
2022-01-18 18:19:52 -07:00
Jon Cinque
0a61bc4ea3
token: Bump compute units in tests ( #2752 )
2022-01-18 13:15:08 +01:00
Tyera Eulberg
00b8a4b332
token-2022: Support extensions in InitializeAccount variations ( #2743 )
...
* Prep helper fn to reuse code
* Adjust error to match current _initialize_account handling
* Add new helper to initialize extension from ExtensionType
* Include required extensions in InitializeAccount processing
* Initialize native mint
* Add missing native-mint test case for get_account_data_size
* Remove superfluous mint unpack
* Limit scope of StateWithExtensionsMut method
* Update comments to be correct
* Check account length vis-a-vis required extensions in Initialize
* Noop confidential-transfer case, add comments, and make fn name more explicit
* gt -> ne
2022-01-15 13:59:03 -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
e7737760ee
Port the remainder of the zk-token program to the ConfidentialTransfer extension
2022-01-13 10:44:42 -08:00
Jon Cinque
ac85fca43d
token: Refactor transfer fee instructions + processor ( #2733 )
2022-01-13 12:08:17 +01:00
Michael Vines
db9f89828b
Allow the confidential transfer extension to block `CloseAccount`
2022-01-12 09:54:53 -08:00
Jon Cinque
c85373aa3e
token: Check self-ownership in `validate_owner`
2022-01-12 08:20:10 -08:00
Michael Vines
583afbd35f
Drop `new_base` argument, `pack_base()` now works on `self.base`
2022-01-11 21:11:19 -08:00
Jon Cinque
f2056358b7
token: Add checks for mixed type initialization ( #2723 )
...
* token: Add checks for mixed type initialization
* Address feedback
2022-01-12 01:33:02 +01:00
Michael Vines
991eb83a67
Confidential transfer extension
2022-01-11 13:22:20 -08:00
Michael Vines
2caec406bc
Rename StateWithExtensionsMut::get_extension()
2022-01-10 13:15:02 -08:00
Michael Vines
9aa859c929
Display RPC transport stats
2022-01-10 11:54:22 -08:00
Michael Vines
7f0e86cc0f
Harden StateWithExtensions unpacking
2022-01-08 09:20:02 -08:00
Tyera Eulberg
d166e28836
Strip extension account-type prefixes ( #2715 )
...
* Strip account-type prefixes
* Edit comment
2022-01-07 16:46:01 -07:00
Michael Vines
3cc92d294a
How about ConfidentialTransferState and ConfidentialTransferAuditor?
2022-01-07 14:58:41 -08:00
Michael Vines
5fe1eb6a9d
Add Confidential Transfer Extension boilerplate
2022-01-07 14:58:41 -08:00
Michael Vines
7cc9bd7013
Move each extension into its own module
2022-01-06 09:41:06 -08:00
Michał Piotrowski
fe7b848024
token tests p1 ( #2700 )
...
* token tests p1
* token tests - address review comments
* fix cs
2022-01-05 17:11:31 -05: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
Jordan Sexton
78b8ef9688
remove dist tag from package version
2021-12-27 20:09:33 -06:00
Jordan Sexton
14952a75ba
organize config
2021-12-27 20:03:13 -06:00
Jordan Sexton
0cd82ce775
fix default arg
2021-12-27 20:03:13 -06:00
Jordan Sexton
ad0525ebfe
remove watch command
2021-12-27 20:03:13 -06:00
Jordan Sexton
afaef4c141
update yarn.lock
2021-12-27 20:03:13 -06:00
Jordan Sexton
9378b1ed94
set lower compatible version of web3js
2021-12-27 20:03:13 -06:00
Jordan Sexton
074ef06126
update buffer-layout-utils
2021-12-27 20:03:13 -06:00
Jordan Sexton
bba59e9e05
update dev deps
2021-12-27 20:03:13 -06:00
Jordan Sexton
a8b27006b4
update version to 0.2.0-alpha.0@next
2021-12-27 20:03:13 -06:00
Jordan Sexton
537bfe3efe
add checked + unchecked decode functions
2021-12-27 20:03:13 -06:00
Jordan Sexton
6e7b7d7faa
InitializeAccount doesn't have multisigners
2021-12-27 20:03:13 -06:00
Jordan Sexton
7ac61bc957
target esnext with esm build, es6 with cjs
2021-12-27 20:03:13 -06:00
Jordan Sexton
1844efe298
fix comments
2021-12-27 20:03:13 -06:00
Colin Ogoo
70893b0299
build(cjs/esm): create cjs/esm bundles
...
- update build script to build both esm and cjs compatible packages
- add postbuild script to delegate the module type check to package.json within lib/esm and lib/cjs directory
2021-12-27 20:03:13 -06:00
Colin Ogoo
cc074a1b5e
build(rollup): remove rollup and related packages
...
step one of removing rollup from the build pipeline
2021-12-27 20:03:13 -06:00
Jordan Sexton
0db9c3dc00
fix decoded type
2021-12-27 20:03:13 -06:00
Jordan Sexton
8ca7381402
fix argument order
2021-12-27 20:03:13 -06:00
Jordan Sexton
931befabb0
add more decode functions, refactor
2021-12-27 20:03:13 -06:00