Commit Graph

17 Commits

Author SHA1 Message Date
Ryo Onodera 68b8da2996
Support associated token for JS (Also, make the program testable) (#1364)
* Implement some js helpers for associated tokens

* Create integration test and fix hard-coding in spl-associated-token

* Run lint:fix and pretty:fix

* Run flow as well...

* More robust test fixture setup

* Revert api breaking part

* Fix tests...

* Populate ts/flow type definitions

* Improve test a bit

* More consistent arg order; docs; more tests

* lints and pretty

* type definition updates and test tweaks

* More simplification...

* More cleanup

* Address review comments and small cleanings

* Bump the version
2021-03-03 20:56:22 +09:00
Justin Starry 80b93879e9 fix: fix flow typedefs in token js 2021-02-13 17:03:42 +08:00
Justin Starry 6cd9c768ad chore: add defs check 2021-02-13 17:03:42 +08:00
Paul 4394cb1ebb
[js-token-library] add freeze and thaw ix builder functions to module declarations (#851) 2020-11-16 18:49:15 +01:00
Paul 2731e8e029
[js-token-library] fix createSetAuthorityIx module declarations (#846) 2020-11-16 18:12:40 +08:00
Paul cb9a94142a
add freeze and thaw account methods to module declaration in spl token library (#730) 2020-10-27 21:15:52 +08:00
Justin Starry b8afb23642
Export token program id in JS client (#694) 2020-10-23 08:56:15 +08:00
Paul 85e4e09dc8
Add token properties to spl-token library module declaration files so downstream users can access them without having to bypass type checking (#672) 2020-10-20 17:46:25 +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
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
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
Justin Starry 3691b14a01 Update token js bindings 2020-08-28 16:02:32 -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 a07935371f
Prep token/js for publishing (#165) 2020-07-30 02:07:55 -07:00
anatoly yakovenko 97094e61e5
Token swap (#50)
* initial

* wip

* withdraw

* wip

* wip

* updates

* fix imports

* compiles

* check delegates

* wip

* wip

* wip

* fixup

* instruction serializer

* unpack func

* done!

* update

* wip docs

* docs

* boilerplate

* docs

* fix docs

* Add token-swap test

* Add token-swap js bindings

Co-authored-by: Jack May <[email protected]>
2020-06-30 15:37:35 -07:00