Commit Graph

31 Commits

Author SHA1 Message Date
Justin Starry b8afb23642
Export token program id in JS client (#694) 2020-10-23 08:56:15 +08:00
Daniel Kelleher 2fb7df6922
Standardise datatypes of amount parameters to accept u64s across the board in the token program JS client. (#594) 2020-10-09 19:36:38 +02:00
Jon Cinque 51c4dc6951
Fix lint check in CI (#519)
* Fix lint check in CI

* `npm run lint` now checks that code is properly formatted, instead of
  running the formatter
* Add extra commands to run the linting, include ts definitions file
* Update flow-bin, fix type errors that come up

* Clarify lint vs lint:fix as requested
2020-09-23 18:20:37 +02:00
Daniel Kelleher af98c77839
Expose Layouts and instruction creation functions to allow more flexible use of the Token and TokenSwap clients. (#517) 2020-09-23 14:22:56 +02:00
Tyera Eulberg 20d8685249
Rebase on solana-web3 bump (#421)
* Rebase on solana-web3 v0.75.0

* Doc cleanup
2020-09-10 21:20:23 +00:00
Daniel Kelleher ac3004b3c7
Wrapped SOL support (#416)
* Add support for wrapped native token account generation in the Token JS client.

* Some small changes to the token test script as per review comments
2020-09-10 13:16:24 -06:00
Jon Cinque f5e0d793a9
token-swap: Swap instruction fix and update libs for CI (#408)
* token-swap: Fix swap instruction

* Update SDK libs and fix outstanding issues

* Run lint in token/js

* Disable CI token-swap js tests

* Update code for web3.js 0.75.0

* Update output -> destination verbiage for clarity / consistency
2020-09-10 20:16:50 +02:00
Tyera Eulberg 7141298b2f
Flesh out @solana/spl-token with token2 instructions (#410)
* Fix token-js docs

* Add Freeze/Thaw instructions

* Add v2 instructions

* Add new instructions to js test

* Bump @solana/spl-token to v0.0.8

* Fix didThrow and remove invalidApprove
2020-09-10 17:17:45 +00:00
Justin Starry 05cc84ea64
Remove extra account padding (#363) 2020-08-29 17:03:24 +08:00
Justin Starry cbba9b3d6c
Fix isInitialized when account is frozen (#362) 2020-08-29 16:44:57 +08:00
Justin Starry 3691b14a01 Update token js bindings 2020-08-28 16:02:32 -07:00
Jack May 9df7b22087
Fix overflow when amounts are u64::MAX (#310) 2020-08-25 08:48:26 -07:00
Michael Vines a22908bbd9 Relocate js 2020-08-08 15:25:47 -07:00
Michael Vines 26ab9bb26a Reorganize crates based on program 2020-08-08 15:25:47 -07:00
Justin Starry ef75a1d523
Return signature from sendAndConfirmTransaction (#203) 2020-08-04 01:22:54 +08:00
Jack May 302855fa0a
Cleanup payer and remove use of instanceof (#176)
Co-authored-by: Justin Starry <[email protected]>
2020-07-31 11:37:33 +08:00
Justin Starry 17d129a32a
Setup rollup, fix prettier, and clean dependencies (#166)
* Setup rollup, fix prettier, and clean dependencies

* Setup rollup specific babel config

* Fix token-swap config
2020-07-31 01:01:57 +08:00
Jack May a07935371f
Prep token/js for publishing (#165) 2020-07-30 02:07:55 -07:00
Jack May ab5ea5c1f9
Add support for native token (#112) 2020-07-09 17:11:00 -07:00
Jack May 7a3fb516bc
Whittle down the token program across the board (#93)
* Whittle down the token program across the board

* nit

* nudge
2020-07-08 12:41:08 -07:00
Jack May 56dd582c6f
Remove supply from Token (#82) 2020-07-07 14:34:23 -07:00
Jack May ad823a1340
Add revoke instruction (#85) 2020-07-07 11:23:23 -07:00
Jack May 666b0b75e3
Remove initialize signers (#84)
* Remove initialize signers

* update js to do initialize atomically
2020-07-07 01:55:49 -07:00
Jack May e8704a1e30
Add multisig support 3 (#79) 2020-07-06 16:36:27 -07:00
Jack May 5ee2d1f993
Single delegate support (#77) 2020-07-06 07:49:20 -07:00
Jack May fc7a808461
Token type renaming (#70) 2020-07-01 01:40:36 -07:00
Jack May a1259e2deb
Prep token for impending token-swap merge (#69) 2020-06-30 16:37:55 -07:00
Jack May af8b4b17e6
Cleanup .js naming (#57) 2020-06-24 13:58:56 -07:00
Jack May e181b975c6
Fix serialization (#54) 2020-06-23 16:35:29 -07:00
Jack May 437d2d1c8b
Bump to Solana v1.2.3 and Solana-web3.js v0.60.0 (#46) 2020-06-18 11:02:42 -07:00
Tyera Eulberg dfbfc9367b
Reorganize repository in preparation for more programs (#20)
* Initial reorg

* Update READMEs

* Update CI

* Add CI build stages
2020-06-05 12:34:17 -06:00