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
hana
65769ce23d
Update rust to 1.60, solana to 1.11.6 ( #3492 )
...
also change bpf to sbf throughout the codebase
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-08-18 12:16:02 -07:00
Jordan Sexton
d6297495ea
token/js - make unpack functions consistent ( #3486 )
...
* make argument order and comments consistent for unpack functions
* add function to unpack multisig for parity
* update spl-memo version
* patch version bump
* run prettier
* fix comment
* update lockfile
2022-08-16 16:20:54 -05:00
Jon Cinque
d611db6a01
docs: Add token-2022 extension docs and JS examples ( #3457 )
...
* token-js: Add examples for all extensions
* docs: Add token-2022 extensions guide for JS
* Address feedback
* Fix extension
2022-08-16 01:07:21 +02:00
Pierre
730b628c57
token-js: expose unpack methods ( #3471 )
...
* feat: expose unpack methods
* default program id
Co-authored-by: Arrowana <8245419+Arrowana@users.noreply.github.com>
2022-08-15 15:30:51 +02:00
Jon Cinque
1970356887
token-js: Version bump to 0.3.0 ( #3448 )
...
* token-js: Bump version 0.3.0 for release
* Improve README with support info
2022-08-09 18:54:46 +02: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
e44d174f63
token-js: Clarify how to run tests ( #3269 )
2022-06-17 19:32:25 -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
Jon Cinque
79d2c606b8
CI: Add `--max-warnings 0` to eslint to abort on errors ( #3254 )
...
* CI: Add `--max-warnings 0` to eslint to abort on errors
* Fix lint issue
2022-06-16 09:39:55 -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
beeman
3af176d6c4
token-js: move start-server-and-test dep to devDependencies ( #3186 )
2022-05-20 14:19:04 +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
fe4eb13fec
token-js: Fix build due to duplicated web3.js ( #3048 )
2022-03-29 21:24:21 +02:00
Danny Povolotski
29d424e597
fully switch to @solana/buffer-layout ( #2634 )
...
* remove unused buffer-layout
* change to solana implementation of buffer-layout
* use latest buffer-layout and utils
* update buffer-layout-utils
* update buffer-layout-utils
* info.data is already Uint8Array
* update deps, fix lint
* remove node engine requirements
Co-authored-by: Danny Povolotski <danny@192.168.1.34>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
2022-03-26 22:00:59 -06:00
Brennan Gebotys
a2bbabc1dc
add getMultipleAccounts for Token ( #2990 )
...
* add getMultipleAccounts for Token
* update naming convention of fcn
* rename & reorg code
* lint fix
Co-authored-by: obiwan <you@example.com>
2022-03-11 22:11:50 +01:00
Jon Cinque
56a1e97c95
token-js: Update @solana/web3.js dependency ( #3001 )
2022-03-10 22:32:31 +01: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
Zicklag
48fbb5b7c4
Fix Broken Link to Token Program TypeScript Docs
2022-02-16 12:59:12 -06:00
Jordan Sexton
b5f3dfe0e4
token: fix gh-pages deploy path
2022-02-15 16:57:16 -06:00
Jordan Sexton
d525d1ea2e
token: fix gh-pages
2022-02-15 16:38:39 -06:00
Jordan Sexton
f487f520bf
run example
2022-02-15 16:33:36 -06:00
Jordan Sexton
00371383e8
update gh-pages config and link
2022-02-15 16:33:36 -06:00
Jordan Sexton
f2134f36e8
remove usage
2022-02-15 16:33:36 -06:00
Jordan Sexton
16aa92df0a
fix faq link
2022-02-15 16:33:36 -06:00
Jordan Sexton
292153ad40
increase mocha timeout
2022-02-15 16:33:36 -06:00
Jon Cinque
f9a93e5636
Port e2e tests to mocha
2022-02-15 16:33:36 -06:00
Jordan Sexton
70f2333e98
update version
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
Harsh Ghodkar
37a6db89db
shifted dotenv to dev dependancies
2022-02-07 08:57:37 -08:00
Harsh Ghodkar
c03de12813
update
2022-02-07 08:08:10 -08:00
Abhimanyu Singh Gaur
e29bc53c5f
Migrate to @solana/buffer-layout ( #2624 )
...
* Update package.json
* Fix build errors
* More fixes
* Add flow definitions
2021-12-09 16:26:14 +01:00
Jon Cinque
02d2736797
token-js: Add test for disabling mint authority ( #2582 )
2021-11-15 18:56:23 +01:00
fukaoi
5436ac239e
added transferChecked ( #2481 )
2021-10-13 16:55:19 +02:00
Krešimir Klas
889ccd6799
[token][js]: add missing checked instruction method declarations to module.d.ts ( #2484 )
...
The following methods:
- createApproveCheckedInstruction
- createMintToCheckedInstruction
- createBurnCheckedInstruction
- createSyncNativeInstruction
are missing from the `module.d.ts` file which means they won't be included in
the `lib/index.d.ts` module declaration file and therefore cannot be
referenced to when using the package with typescript.
Added the missing declarations.
2021-10-13 16:54:56 +02:00
dependabot[bot]
2513e327a5
build(deps-dev): bump @babel/node from 7.14.9 to 7.15.4 in /token/js ( #2419 )
...
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node ) from 7.14.9 to 7.15.4.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.15.4/packages/babel-node )
---
updated-dependencies:
- dependency-name: "@babel/node"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-16 08:32:30 +00:00
dependabot[bot]
a0e32c7baf
build(deps-dev): bump flow-bin from 0.158.0 to 0.160.0 in /token/js ( #2418 )
...
Bumps [flow-bin](https://github.com/flowtype/flow-bin ) from 0.158.0 to 0.160.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases )
- [Commits](https://github.com/flowtype/flow-bin/commits )
---
updated-dependencies:
- dependency-name: flow-bin
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-16 08:16:59 +00:00
Michael Vines
77bfbabac8
Update token/js/README.md
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-09-12 22:45:17 -07:00
Michael Vines
9b288f6e64
Update token/js/README.md
2021-09-12 22:45:17 -07:00