Commit Graph

3 Commits

Author SHA1 Message Date
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 6e81794844
Account Compression: JS SDK release 0.1.1 (#3680)
* ac: beet* as deps, not peerDeps

* ac: expose depth size pairs, add canopyDepth to CMTAccount getters

* ac: add tests for CMT Account

* ac: update README.md

* ac: update lockfile
2022-10-13 11:52:16 -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