Commit Graph

581 Commits

Author SHA1 Message Date
dependabot[bot] c7563ba31d
build(deps-dev): bump @types/node from 18.11.18 to 20.1.1 in /token/js (#4213)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-09 11:03:55 +00:00
dependabot[bot] d404916d70
build(deps-dev): bump prettier from 2.7.1 to 2.8.8 in /token/js (#4212)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-09 11:03:14 +00:00
dependabot[bot] 5a1c6461cf
build(deps-dev): bump typescript from 4.7.4 to 5.0.4 in /token/js (#4211)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-09 11:00:37 +00:00
dependabot[bot] 8f7ef32189
build(deps-dev): bump eslint-plugin-require-extensions from 0.1.1 to 0.1.3 in /token/js (#4193)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Cinque <joncinque@pm.me>
2023-05-08 17:57:19 +00:00
dependabot[bot] 986291e04d
build(deps-dev): bump typedoc from 0.23.10 to 0.24.7 in /token/js (#4194)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 15:48:38 +00:00
dependabot[bot] 0aa9e5c5d5
build(deps-dev): bump gh-pages from 3.2.3 to 5.0.0 in /token/js (#3992)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 15:21:05 +00:00
dependabot[bot] 79821ac9cc
build(deps-dev): bump @typescript-eslint/parser from 5.34.0 to 5.59.2 in /token/js (#4177)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 20:50:17 +00:00
dependabot[bot] 50464f637a
build(deps): bump @solana/buffer-layout from 4.0.0 to 4.0.1 in /token/js (#4166)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 09:52:05 +00:00
dependabot[bot] 14ce4840e0
build(deps-dev): bump @types/chai from 4.3.4 to 4.3.5 in /token/js (#4158)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 11:30:56 +00:00
dependabot[bot] 2eae061493
build(deps): bump decode-uri-component from 0.2.0 to 0.2.2 in /token/js (#3873)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-03 11:21:38 +00:00
Syed Aabis Akhtar 957263073e
Fix: Link (#4152) 2023-05-03 10:15:28 +00:00
Mateusz Burzyński ff8710e4db
js: move `types` condition to the front (#4149) 2023-05-01 22:20:02 +00:00
Jon Cinque 7af3a700ff
docs: Add permanent delegate extension and example (#4134) 2023-04-24 16:13:04 +00:00
dependabot[bot] 2458812065
build(deps-dev): bump start-server-and-test from 1.14.0 to 2.0.0 in /token/js (#4069)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-18 10:55:45 +00:00
fedorerd 4e2fd75597
[token-js] Switch to associated token address sync. (#4114) 2023-04-12 11:30:06 +00:00
dependabot[bot] 34017aa84b
build(deps): bump @sideway/formula from 3.0.0 to 3.0.1 in /token/js (#4043)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-14 13:02:21 +00:00
dependabot[bot] f17995c06e
build(deps-dev): bump chai from 4.3.6 to 4.3.7 in /token/js (#4036)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 12:38:37 +01:00
dependabot[bot] a25b2a9956
build(deps-dev): bump tslib from 2.4.0 to 2.5.0 in /token/js (#4031)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-07 12:56:42 +01:00
dependabot[bot] cd330aefe2
build(deps-dev): bump eslint-config-prettier from 8.5.0 to 8.6.0 in /token/js (#4024)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 23:14:37 +01:00
Jon Cinque 49c7e7df53
token-2022: Fix non-transferable extension for unchecked transfers (#4005) 2023-02-03 00:42:21 +01:00
dependabot[bot] f948579954
build(deps-dev): bump @types/node from 18.7.10 to 18.11.18 in /token/js (#3947)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-02 16:13:36 +01:00
joeaba 891b4bdad8
chore: update maintainer references (#4008) 2023-01-31 08:06:36 -05:00
Jon Cinque 9fd9805345
token-js: Bump version for release (#3968) 2023-01-10 22:38:34 +01:00
mPaella befea2c0a8
token-js: Allow (Signer | PublicKey)[] instead of Signer[] when possible (#3967)
* Allow PublicKey[] | Signer[] instead of Signer[] when possible

* Change Signer[] | PublicKey[] to (Signer | PublicKey)[]
2023-01-10 20:59:44 +01:00
hana 56b1a95230
token-js: sanity check header space in tlv data (#3936) 2023-01-05 17:00:53 -08:00
dependabot[bot] e0548c1e06
build(deps): bump json5 from 2.2.1 to 2.2.3 in /token/js (#3953)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 18:22:47 +01:00
hanako mumei 9a0ecb3814 token-js: rename ExtensionType.InterestBearingMint
change name to InterestBearingConfig, in line with Token-2022
2022-12-16 16:40:47 -08:00
hanako mumei 72a41d4a22 token-js: minor memo transfer fixes 2022-12-15 17:27:46 -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
dependabot[bot] ac96df0745
build(deps-dev): bump mocha and @types/mocha in /token/js (#3717)
Bumps [mocha](https://github.com/mochajs/mocha) and [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha). These dependencies needed to be updated together.

Updates `mocha` from 9.2.2 to 10.1.0
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.1.0)

Updates `@types/mocha` from 9.1.1 to 10.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: "@types/mocha"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 20:26:22 +01:00
Athar Mohammad 3dd744d450
js support for permanent delegate authority (#3833) 2022-11-23 16:29:09 +01:00
Jon Cinque 9610bed534
token-js: Bump version to 0.3.6 for release (#3778) 2022-10-28 18:24:00 -04:00
Athar Mohammad 94f78b2dcf
[token-js]: new overload of confirm tx in examples (#3685) 2022-10-25 19:52:33 -04: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
Jordan Sexton d0277e65dd organize imports, lint 2022-09-12 18:39:51 -05:00
Jordan Sexton 48c0ede285 token js: patch version bump 2022-09-12 18:38:49 -05: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
Jordan Sexton a578fc8159
add eslint-plugin-require-extensions (#3543) 2022-08-28 20:38:11 -05:00
Jordan Sexton d2b15ddc91 update spl-memo dependency 2022-08-24 19:04:27 -05:00
Jordan Sexton 65f5b102e8
spl-token: fix CJS imports (#3529)
* token-js: patch version bump

* add CJS package.json; fixes #3522

* alpha version bump

* remove alpha version

* add same postbuild step to memo js

* fix lockfiles
2022-08-24 19:01:19 -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
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