Noah Gundotra
a05f3bdebb
ac: rename Wrapper to Noop ( #3735 )
2022-10-24 09:32:36 -04:00
Noah Gundotra
5504af4996
Account Compression: Add CMT checks for out of bounds leaf indices and initialization ( #3724 )
...
* cmt: add check for leaf index OOB
* ac: add checks for leaf index OOB
* ac: add tests for leaf index OOB
* nit: fix some poor logging & unused imports
* cmt: add initialization checks before public methods
* cmt: update LeafContentsModified error message
* cmt: make tests easier to read, add PartialEq, Eq to CMTError
* ac: make LeafOOB error the last error in the struct to prevent breaking changes
* ac: fmt fix
2022-10-21 14:06:47 -04:00
Noah Gundotra
39935bab12
ac: expose ChangeLogEventV1 in crate ( #3707 )
2022-10-12 19:01:42 -04:00
Michael Danenberg
1e2579f8e8
Account Compression: Adding new() function for ChangeLogEvent and expose ChangeLogEventV1 ( #3688 )
...
Needed by Metaplex.
2022-10-11 09:05:44 -04:00
Noah Gundotra
b0d84fc44d
Account Compression: 0.1.2 release ( #3672 )
...
* ac: expose wrap_application_data_v1, hide wrap_event
* ac: separate event deserialization methods, update IDL
* ac: add test for deserializing application data event
* ac: add crate READMEs, update top-level README
* ac: bump version to 0.1.2
2022-10-06 11:58:16 -05:00
Noah Gundotra
c84f65c5ff
account-compression: update program ids in 0.1.1 ( #3670 )
2022-10-05 15:27:59 -05:00
Noah Gundotra
271c13b20c
Account Compression: Add Close Tree Instruction ( #3641 )
...
* ac: add close tree instruction
* ac: update sdk with close tree instruction
* ac: test close tree instruction
2022-09-26 09:52:51 -04:00
Noah Gundotra
dad3fbaf1c
Account Compression: Version ChangeLog + Test ( #3632 )
...
* AC: export idl in SDK, add cmt helper functions
* AC: remove unnecessary events, emit statements
* AC: update noop program id
* AC: make events a typed struct (remove anchor event attr)
* AC: update AC program id, only emit events via cpi
* AC: update TS sdk
* AC: add event tests
* AC: update Anchor.toml
* AC: remove old program ids
2022-09-22 15:05:24 -04:00
Noah Gundotra
9205a61a3f
AC: version on-chain accounts ( #3619 )
2022-09-21 09:16:11 -04:00
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