Commit Graph

517 Commits

Author SHA1 Message Date
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
Gabriel 5d03597f21 update token/js/readme 2021-09-12 22:45:17 -07:00
Alexander CherryTea edc6be2ae5
Fix example codestyle (#2362)
Use const instead of let / var without any readon
2021-09-08 17:41:03 +02:00
dependabot[bot] 6461dd687d
build(deps-dev): bump eslint-plugin-flowtype in /token/js (#2365)
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 5.9.1 to 5.9.2.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases)
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v5.9.1...v5.9.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-flowtype
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01 08:14:04 +00:00
dependabot[bot] 61b4e39a7d
build(deps-dev): bump @typescript-eslint/eslint-plugin in /token/js (#2354)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.29.3 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  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-08-31 08:32:31 +00:00
dependabot[bot] fd6571c23f
build(deps-dev): bump @typescript-eslint/parser in /token/js (#2353)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.3 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  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-08-31 08:15:46 +00:00
dependabot[bot] 6ee101fd3d
build(deps-dev): bump eslint-plugin-flowtype in /token/js (#2347)
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 5.9.0 to 5.9.1.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases)
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v5.9.0...v5.9.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-flowtype
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 08:30:25 +00:00
dependabot[bot] ea8c75de9e
build(deps-dev): bump mocha from 9.1.0 to 9.1.1 in /token/js (#2346)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.0 to 9.1.1.
- [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.1.0...v9.1.1)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 08:15:12 +00:00
dependabot[bot] 7761bcd1ec
build(deps-dev): bump flow-bin from 0.157.0 to 0.158.0 in /token/js (#2341)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.157.0 to 0.158.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-08-27 11:11:40 +00:00
dependabot[bot] 329cf58bd5
build(deps): bump @babel/runtime from 7.14.8 to 7.15.3 in /token/js (#2340)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.14.8 to 7.15.3.
- [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.3/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-type: direct:production
  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-08-27 11:00:39 +00:00
dependabot[bot] f3b1be9115
build(deps-dev): bump rollup from 2.56.0 to 2.56.3 in /token/js (#2339)
Bumps [rollup](https://github.com/rollup/rollup) from 2.56.0 to 2.56.3.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.56.0...v2.56.3)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-27 10:46:24 +00:00
dependabot[bot] b14d61bc2d
build(deps-dev): bump @babel/register from 7.14.5 to 7.15.3 in /token/js (#2338)
Bumps [@babel/register](https://github.com/babel/babel/tree/HEAD/packages/babel-register) from 7.14.5 to 7.15.3.
- [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.3/packages/babel-register)

---
updated-dependencies:
- dependency-name: "@babel/register"
  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-08-27 10:31:51 +00:00
dependabot[bot] 1ce492317f
build(deps-dev): bump http-server from 0.12.3 to 13.0.1 in /token/js (#2336)
Bumps [http-server](https://github.com/http-party/http-server) from 0.12.3 to 13.0.1.
- [Release notes](https://github.com/http-party/http-server/releases)
- [Commits](https://github.com/http-party/http-server/compare/v0.12.3...v13.0.1)

---
updated-dependencies:
- dependency-name: http-server
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-27 10:10:41 +00:00
dependabot[bot] 06af7c69aa
build(deps-dev): bump @typescript-eslint/parser in /token/js (#2335)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.0 to 4.29.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.3/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-27 09:35:28 +00:00
dependabot[bot] eaee540fa9
build(deps): bump @solana/web3.js from 1.22.0 to 1.24.1 in /token/js (#2334)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 1.22.0 to 1.24.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Changelog](https://github.com/solana-labs/solana-web3.js/blob/master/.releaserc.json)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v1.22.0...v1.24.1)

---
updated-dependencies:
- dependency-name: "@solana/web3.js"
  dependency-type: direct:production
  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-08-27 09:21:50 +00:00
dependabot[bot] ce62fc2e3f
build(deps-dev): bump flow-remove-types in /token/js (#2333)
Bumps [flow-remove-types](https://github.com/facebook/flow) from 2.157.0 to 2.158.0.
- [Release notes](https://github.com/facebook/flow/releases)
- [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md)
- [Commits](https://github.com/facebook/flow/commits)

---
updated-dependencies:
- dependency-name: flow-remove-types
  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-08-27 09:08:32 +00:00
dependabot[bot] 0b431e0438
build(deps-dev): bump @typescript-eslint/eslint-plugin in /token/js (#2332)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.29.0 to 4.29.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.3/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-27 08:56:56 +00:00
dependabot[bot] 3e8c070cc1
build(deps-dev): bump mocha from 9.0.3 to 9.1.0 in /token/js (#2331)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.0.3 to 9.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.0.3...v9.1.0)

---
updated-dependencies:
- dependency-name: mocha
  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-08-27 08:39:49 +00:00
dependabot[bot] b97954360f
build(deps-dev): bump typescript from 4.3.4 to 4.4.2 in /token/js (#2330)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.4 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.4...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  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-08-27 08:26:10 +00:00
Daniel Marin 4b43db6d9c
chore(token): add createTransferCheckedInstruction to flow-typed (#2289) 2021-08-16 19:44:20 +00:00
Michael Vines 50f165ba03 Bump version to 0.1.8 2021-08-16 12:06:57 -07:00
Michael Vines ce570f2caa Bump version to 0.1.7 2021-08-16 10:53:17 -07:00
Daniel Marin 7fdda2d4d6 chore(token): expose transfer checked instruction 2021-08-16 09:13:03 -07:00