Commit Graph

34 Commits

Author SHA1 Message Date
Jon Cinque 49c7e7df53
token-2022: Fix non-transferable extension for unchecked transfers (#4005) 2023-02-03 00:42:21 +01:00
hana 56b1a95230
token-js: sanity check header space in tlv data (#3936) 2023-01-05 17:00:53 -08:00
hanako mumei d1dfa2d233 token-js: CPI Guard tests 2022-12-15 17:27:46 -08:00
hanako mumei 980065ec6c token-js: implement CPI Guard 2022-12-15 17:27:46 -08:00
Athar Mohammad 3dd744d450
js support for permanent delegate authority (#3833) 2022-11-23 16:29:09 +01:00
mwrites f61af23932
[token-js] : JS binding for CreateIdempotent instruction (#3558)
* JS binding for CreateIdempotent instruction

* revert

* newline

* Removed Idempotent flag and extracted Idempotent logic to its own set of functions

* Conventions
2022-10-06 16:56:32 +02:00
Sammy Harris 6f4bdaa912
Update token-js with rent-less instructions (#3590)
* add new token instructions

* add decode helper function

* remove commented out thingy

* fix decode order

* update unit test

* add new unit tests
2022-09-12 17:52:53 -05:00
Athar Mohammad 2fe0ce60f8
[token-js] : Support for UiAmountToAmount and AmountToUiAmount instructions (#3345)
* suport for amountToUiAmount instruction

* support for uiamount to amount instruction

* upgrade @solana/web3.js to 1.47.4

* move amount.test from e2e-2022 to e2e

* fix and sort imports

Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
2022-08-24 01:54:16 -05:00
Jordan Sexton 29d316e811
Fix Token program ESM exports (#3508)
* Fix Memo program ESM exports

* fix repository link

* Fix Token program ESM exports

* web3.js is a peer dependency

* memo/ts -> memo/js (same as token)

* add gh-pages dev dep

* add explicit js extensions

* use explicit js imports

* lint fixes for type imports

* fix version

* check in package-lock.json

* check in package-lock.json

* update spl-memo dep

* reorg imports

* move spl-memo to dev deps

* remove editorconfig

* update spl-memo

* update node version in CI

* memo and token use npm now

* use npm ci commands

* reorder imports
2022-08-22 19:07:03 -05:00
Jon Cinque 6b5e7cbbeb
token-js: Add reallocate instruction implementation (#3447) 2022-08-09 17:26:31 +02:00
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