Commit Graph

17 Commits

Author SHA1 Message Date
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
Jordan Sexton 8cca13cecf add initial instruction decoding functions 2021-12-27 20:03:13 -06:00
Jordan Sexton 7f8d04cdeb add instruction errors 2021-12-27 20:03:13 -06:00
Jordan Sexton e97f51031f fix doc comments 2021-12-27 20:03:13 -06:00
Jordan Sexton 3dc18b2f19 strictly type and expose instruction data layouts 2021-12-27 20:03:13 -06:00
Jordan Sexton 20463a7a6b change get*Info method names 2021-12-27 20:03:13 -06:00
Jordan Sexton 0b586a2809 include license in published package 2021-12-27 20:03:13 -06:00
Jordan Sexton 2cd6f68de8 add rollup to build 2021-12-27 20:03:13 -06:00
Jordan Sexton 60b8340ed4 add published files 2021-12-27 20:03:13 -06:00
Jordan Sexton 95c3ab4e4b build for node 14 (LTS) 2021-12-27 20:03:13 -06:00
Jordan Sexton d7d3f08a5e AccountInfo::data should already be a Buffer 2021-12-27 20:03:13 -06:00
Jordan Sexton e02d632b36 fix build from source directions 2021-12-27 20:03:13 -06:00
Jordan Sexton da6c573b0c organize imports 2021-12-27 20:03:13 -06:00
Jordan Sexton fef4438cd1 fix test 2021-12-14 16:49:30 -06:00
Jordan Sexton 4179acbf8b
Rewrite spl-token-js in TypeScript (#2539)
* first draft

* restructuring

* fix imports

* move errors to constants

* fmt

* fix ata

* finish core implementation

* don't export internal utils

* rename internal util files

* token account is owned by token program

* docs

* docs

* port example

* add basic tests from current implementation

* enable es6 features in lint config

* don't build tests into lib dir

* doc tweaks

* add preinstall script

* add types, don't postinstall

* allow keypairs to create accounts, and default to using ATAs

* add explicit enum values

* remove unused dependency

* expose allowOwnerOffCurve option to getOrCreateAssociatedTokenAccount action

* make multisigners optional

* WIP, undo

* update buffer-layout and buffer-layout-utils from npm

* update dev dependencies
2021-12-14 16:47:57 -06:00