Jon Cinque
563512bcfb
account-compression: Rename packages, prep for release ( #3600 )
2022-09-13 17:44:18 +02:00
Noah Gundotra
ee1b4be087
Account Compression: Autogenerate TS SDK with Solita ( #3551 )
...
* AC: SDK can be imported into test
* AC: rename program folder, update account type discriminant size to u8
* AC: tests now pass
AC: remove log statements
AC: update README
AC: restructure class as a type
* AC: remove 'roll' and 'gummy' references
* AC: remove anchor TS dependency from SDK
AC: fix unused, missing imports
AC: remove unused anchor imports
AC: remove test utils
* AC: move anchor tests inside js sdk
AC: remove unnecessary bn dependency, use Anchor just for testing
* AC: remove unused exports, update Solita path
* AC: update tsconfigs
* AC: address nits
* AC: add ser/de beets for CMT library types
* AC: update test formatting
* AC: clean up confusing tests
* AC: move convenience functions to instructions
* AC: move test deps out of build
* AC: add comment explaining header padding
Co-authored-by: Noah Gundotra <noahgundotra@noahs-mbp.mynetworksettings.com>
Co-authored-by: jarry-xiao <jarry.xiao@gmail.com>
Co-authored-by: Sam Orend <sam.orend22@gmail.com>
Co-authored-by: Jarry Xiao <61092285+jarry-xiao@users.noreply.github.com>
Co-authored-by: austbot <me@austbot.com>
2022-09-08 17:04:54 +05:30
Alexandru Agache
668dcac11a
fix ConcurrentMerkleTreeHeader (de)serialization ( #3572 )
...
The `account_type` member of `ConcurrentMerkleTreeHeader` is currently
an `#[repr(u32)]` enum, but borsh only uses one byte to serialize or
deserialize an enum tag, which leads to issues with `try_from_slice`
calls that get passed slices computed based on applying `size_of` to
`ConcurrentMerkleTreeHeader`. This commit replaces the underlying
type of `account_type` with an integer type.
Signed-off-by: Alexandru Agache <alexandruag@gmail.com>
Signed-off-by: Alexandru Agache <alexandruag@gmail.com>
2022-09-06 18:28:50 -05:00
ngundotra
7c7507f4ec
AC: downgrade solana program version in wrapper to reduce dependency burden
2022-09-01 19:48:43 -04:00
Noah Gundotra
3fe92ea05f
Add on-chain compression program that uses CMT ( #3489 )
2022-08-25 08:51:35 -10:00