Commit Graph

9 Commits

Author SHA1 Message Date
Noah Gundotra 92b1ea35bb
Account Compression: Typescript SDK v0.1.3 (#3743)
* ac-ts: update typescript to match v0.1.4 on-chain

* ac: add prettier, lint, typedoc config

* ac: test all init pairs

* ac: format everything

* ac: breaking changes to instructions helpers

* ac: update tests to use getCurrentBufferIndex

* ac: add docs to ts sdk

* ac: add examples to Readme, Canopy calculation explanation

* ac: ts helpers now require ValidDepthSizePair

* ac: restructure MerkleTree in tests to follow  layout

* ac: lint, pretty

* ac: export MerkleTree file

* ac: revamp instruction helpers with merkle tree class

* ac: add docs

* ac: pretty, lint

* ac: update README with jnwng's feedback

* ac: export merkle-tree docs
2022-10-28 17:38:09 -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 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 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 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
Noah Gundotra 8528f92f07
SPL Account Compression JS Package (#3609)
* AC: fix tsconfig json files for publishing js package

* AC: fix package.json module exporting, move mpl to peerDeps

* AC: rename program ids and addresses to match crate
2022-09-16 15:56:31 -04: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