Commit Graph

24 Commits

Author SHA1 Message Date
Jon Cinque c4f10d8d53
token-js: Throw if using token-2022 instructions with tokenkeg (#3296)
* token-js: Throw if using token-2022 instructions with tokenkeg

* Fixup updated params
2022-06-29 13:39:30 -04:00
Kunal Desai 7caf27cca6
Support interest bearing mint in token-js (#3266)
* Support interest bearing mint in token-js

* pr feedback

* Add tests + actions.ts

* Update docs

* pr feedback
2022-06-27 18:50:05 -04:00
Jon Cinque 056948bbd1
token-js: Add memo transfer support (#3257) 2022-06-16 11:32:28 -04:00
Jon Cinque 5c478568c6
token-js: Support non-transferable mint (#3256) 2022-06-16 09:40:29 -04:00
Jon Cinque b461406e97
token-js: Add default account state support (#3255) 2022-06-16 09:40:11 -04:00
Ronald Hood Jr 5493842399
token-js: Bindings For Transfer Fee Extension IXs (#3102)
* JS Bindings For Transfer Fee Extensions IXs

* Add tests and actions

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-06-10 01:31:57 +02:00
Kunal Desai ad97543192
Support InitializeAccount3 in token js (#3233) 2022-06-09 13:57:01 +02:00
Kunal Desai 6096ac6f46
Support InitializeAccount2 instruction (#3229)
* Support InitializeAccount2 instruction

* Add unit test
2022-06-08 22:29:49 +02:00
dboures 49c53ad653
token-js: Add sync version of getAssociatedTokenAddress (#3171)
* token-js: Bump web3.js dependency to 1.41.0

* token-js: Add sync version of getAssociatedTokenAddress

* token-js: add test for getAssociatedTokenAddressSync

* Update lockfile

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-05-17 00:30:31 +02:00
Ronald Hood Jr ae2e000434
InitializeImmutableOwner Instruction (#3068)
* initializeImmutableOwner Instruction

* Immutable Owner Testing

* immutable owner tests

* Creating Mint and Initializing Account

* Parameter Synchronization

* Documentation Update

Co-authored-by: Ronald Hood <ronald.hood@yale.edu>
2022-04-21 20:43:56 +02:00
Jon Cinque 2e1286b06a
token-js: Support MintCloseAuthority (#2951) 2022-02-25 00:24:26 -05:00
Jon Cinque c3fda0d956
token-js: Add support for extension data (#2950) 2022-02-24 15:55:29 -05:00
Jon Cinque 5229a21c6a
token-js: Update instruction enum for UiAmountToAmount / AmountToUiAmount (#2949)
* token-js: Unflake create native test

* Add UiAmountToAmount and AmountToUiAmount to enum
2022-02-24 15:17:32 -05:00
Jon Cinque bb6a91c56f
token-js: Support token-2022 in base tests (#2927) 2022-02-17 23:26:54 +01:00
Jon Cinque f9a93e5636 Port e2e tests to mocha 2022-02-15 16:33:36 -06:00
Jordan Sexton 118bd047aa move ts to js 2022-02-15 16:33:36 -06:00
Jordan Sexton ca17166471 move js to js-old 2022-02-15 16:33:36 -06:00
Jon Cinque aef1e239b3
token: Add SyncNative instruction (program, CLI, JS) (#2091)
* Add SyncNative to program

* Add CLI support

* Add JS bindings

* Fix syncNative test to not run for existing token program

* Combine checks
2021-07-19 21:50:42 +02:00
Yihau Chen 6dada44f75 fix lint 2021-06-01 11:03:03 -06:00
Yihau Chen f5fb183b2d add allowOwnerOffCurve flag in getAssociatedTokenAddress 2021-06-01 11:03:03 -06:00
Trent Nelson d4dd97b3b1 fix: token/js bump web3.js to 1.12.0 2021-05-21 00:53:46 +00:00
Trent Nelson 3d04aa0109 chore: add negative test for ATA creation with off-curve owner 2021-05-05 15:48:59 -06: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