Ryo Onodera
96215957d8
Remove unconditional hidden commitment override for sanity ( #1528 )
2021-03-30 22:37:56 +09:00
Justin Starry
5473494f24
spl-token: Bump web3.js to v1.2.2 ( #1516 )
2021-03-30 00:11:12 +08:00
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
6eac7bc331
fix: add support for browser modules to @solana/spl-token ( #1337 )
...
* fix: add support for browser modules
* chore: format and lint
* chore: fix flow
2021-02-25 14:56:09 +08:00
Justin Starry
80b93879e9
fix: fix flow typedefs in token js
2021-02-13 17:03:42 +08:00
Justin Starry
bdbfe25980
chore: fix defs check
2021-02-13 17:03:42 +08:00
Justin Starry
b9aa9d0be8
Finish renaming x2 instructions to xChecked ( #981 )
2020-12-29 17:09:26 +08:00
Yutaro Mori
81a63712ac
Fix u64.fromBuffer return type to u64 ( #830 )
2020-11-12 10:40:46 +01:00
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
Michael Vines
aa9984e0d0
Replace mkdirp-promise with mkdirp
2020-10-06 18:01:48 -07:00
Jon Cinque
0a059706c0
Upgrade web3 to 0.78.0 and sdk to 1.3.13 ( #537 )
...
* Update `sendAndConfirmTransaction` to use `preflightCommitment` of
`recent`. For the token tests, on my machine, it took roughly 18.5
seconds, and with `skipPreflight: true` it was about 21.5 seconds.
2020-09-25 20:49:05 +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 <justin@solana.com>
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