Commit Graph

353 Commits

Author SHA1 Message Date
dependabot[bot] 95f737a897
Bump @rollup/plugin-babel from 5.2.0 to 5.2.1 in /token/js (#473)
Bumps [@rollup/plugin-babel](https://github.com/rollup/plugins) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/babel-v5.2.0...babel-v5.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 08:43:23 +00:00
dependabot[bot] 4bacef3e19
Bump solana-client from 1.3.9 to 1.3.11 (#472)
Bumps [solana-client](https://github.com/solana-labs/solana) from 1.3.9 to 1.3.11.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.9...v1.3.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 08:42:12 +00:00
Daniel Kelleher 23a393801f
Token-swap ts, flow bindings and build using rollup. (#463)
* Added token-swap ts and flow bindings and build pure JS versions using rollup, to match the token program

* Added references to the built files in token-swap package.json

* Added missing Account import

* Fix flow module syntax errors
2020-09-18 09:31:16 +02:00
Michael Vines 096d3d4da5 SPL Token supports NFTs too 2020-09-17 17:05:35 +00:00
dependabot[bot] ef31275709
Bump solana-clap-utils from 1.3.9 to 1.3.11 (#460)
Bumps [solana-clap-utils](https://github.com/solana-labs/solana) from 1.3.9 to 1.3.11.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.9...v1.3.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-17 09:27:13 +00:00
dependabot[bot] 5f838ee392
Bump prettier from 2.1.1 to 2.1.2 in /token/js (#459)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-17 08:40:51 +00:00
dependabot[bot] 6716e0f09f
Bump solana-account-decoder from 1.3.9 to 1.3.11 (#461)
Bumps [solana-account-decoder](https://github.com/solana-labs/solana) from 1.3.9 to 1.3.11.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.9...v1.3.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-17 08:40:45 +00:00
dependabot[bot] fc86af0165
Bump rollup from 2.26.11 to 2.27.1 in /token/js (#458)
Bumps [rollup](https://github.com/rollup/rollup) from 2.26.11 to 2.27.1.
- [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.26.11...v2.27.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-17 08:39:12 +00:00
Michael Vines b89b0c81d2 Nit: add current 2020-09-16 08:55:03 -07:00
dependabot[bot] 9d9545c98d
Bump solana-sdk from 1.3.9 to 1.3.11 (#454)
Bumps [solana-sdk](https://github.com/solana-labs/solana) from 1.3.9 to 1.3.11.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.9...v1.3.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 09:22:53 +00:00
dependabot[bot] 75145e1ada
Bump solana-logger from 1.3.9 to 1.3.11 (#453)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.3.9 to 1.3.11.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.9...v1.3.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 08:42:08 +00:00
dependabot[bot] f229456e15
Bump solana-cli-config from 1.3.9 to 1.3.11 (#451)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.9 to 1.3.11.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.9...v1.3.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 08:41:57 +00:00
dependabot[bot] 8aa6767355
Bump @babel/plugin-transform-runtime from 7.11.0 to 7.11.5 in /token/js (#452)
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.11.0 to 7.11.5.
- [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.11.5/packages/babel-plugin-transform-runtime)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 08:39:50 +00:00
dependabot[bot] 7f5388a94d
Bump eslint from 7.8.1 to 7.9.0 in /token/js (#450)
Bumps [eslint](https://github.com/eslint/eslint) from 7.8.1 to 7.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.8.1...v7.9.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 08:38:09 +00:00
Jack May 157936c6c5
Remove pack's dependency on TokenError (#448)
* Remove pack's dependency on TokenError

* nudge
2020-09-16 00:59:37 +00:00
Tyera Eulberg 6cd83ce1da
Bump npm spl-token version 2020-09-15 18:17:22 -06:00
dependabot[bot] 59676cb8d1
Bump @solana/web3.js from 0.75.0 to 0.75.2 in /token/js (#447)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.75.0 to 0.75.2.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.75.0...v0.75.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-15 08:41:02 +00:00
dependabot[bot] e1ea855f36
Bump @babel/core from 7.11.4 to 7.11.6 in /token/js (#446)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.11.4 to 7.11.6.
- [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.11.6/packages/babel-core)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-15 08:40:29 +00:00
Tyera Eulberg e7a876f280
Remove Pack mutable unpack methods (#443)
* Remove Pack::unpack_mut

* Remove Pack::unpack_unchecked_mut
2020-09-14 15:08:14 -06:00
Michael Vines cf50a55586 create-token/create-account now accept an optional keypair 2020-09-14 19:11:05 +00:00
dependabot[bot] 3899b8ee7b
Bump @babel/preset-env from 7.11.0 to 7.11.5 in /token/js (#440)
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.11.0 to 7.11.5.
- [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.11.5/packages/babel-preset-env)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 08:50:33 +00:00
Tyera Eulberg 7515187d17
Allow source account to be its own owner in Approve, Approve2, and Revoke (#434)
* Add failing test

* No need to hold source RefMut in process_approve

* Add revoke cases

* No need to hold source RefMut in process_revoke
2020-09-11 20:53:23 -06:00
Tyera Eulberg 4c0e4606c2
Allow Account or Mint to be its own authority in SetAuthority (#435)
* Add failing test

* No need to hold account or mint RefMut in process_set_authority
2020-09-11 20:53:07 -06:00
Tyera Eulberg 288b438868
Allow destination or mint to be mint_authority in MintTo and MintTo2 (#436)
* Add failing test

* No need to hold dest or mint RefMut in process_mint_to
2020-09-11 20:52:53 -06:00
Tyera Eulberg 179be4a590
Allow source or mint to be account owner or delegate in Burn and Burn2 (#437)
* Add failing test

* No need to hold source or mint RefMut in process_burn
2020-09-11 20:52:39 -06:00
Tyera Eulberg 6c9e8ac1ce
Allow source to be owner/close_authority in CloseAccount (#438)
* Add failing tests

* No need to hold source RefMut in process_close_account and process_toggle_freeze_account
2020-09-11 20:52:09 -06:00
Tyera Eulberg 1fcc84beb3
Allow source account to be its own owner in Transfer and Transfer2 (#433)
* Add failing test

* Add Transfer2 to failing test

* Add source-delegate to failing test

* No need to hold source RefMut in process_transfer

* Fixup comments

* Add destination-owner test case

* Add source-multisig test case
2020-09-11 18:56:42 +00:00
Jack May 72c59056e5
Fix spelling (#430) 2020-09-11 09:32:49 -07:00
dependabot[bot] 330bf3f98f
Bump eslint from 7.7.0 to 7.8.1 in /token/js (#425)
Bumps [eslint](https://github.com/eslint/eslint) from 7.7.0 to 7.8.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.7.0...v7.8.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-11 08:40:12 +00:00
dependabot[bot] b967728073
Bump rollup from 2.26.5 to 2.26.11 in /token/js (#424)
Bumps [rollup](https://github.com/rollup/rollup) from 2.26.5 to 2.26.11.
- [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.26.5...v2.26.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-11 08:40:05 +00:00
dependabot[bot] 793930c835
Bump prettier from 2.0.5 to 2.1.1 in /token/js (#322)
Bumps [prettier](https://github.com/prettier/prettier) from 2.0.5 to 2.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.0.5...2.1.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-10 23:18:33 +00:00
Tyera Eulberg a8df113101
Add token/program2 for next changeset (#412)
* Add token/program2 for next changeset

* Use version number instead of index
2020-09-10 16:04:50 -06:00
Tyera Eulberg 20d8685249
Rebase on solana-web3 bump (#421)
* Rebase on solana-web3 v0.75.0

* Doc cleanup
2020-09-10 21:20:23 +00:00
Daniel Kelleher ac3004b3c7
Wrapped SOL support (#416)
* Add support for wrapped native token account generation in the Token JS client.

* Some small changes to the token test script as per review comments
2020-09-10 13:16:24 -06:00
dependabot[bot] 55c8ae85e0
Bump node-fetch from 2.6.0 to 2.6.1 in /token/js (#418)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-10 18:54:01 +00:00
Jon Cinque f5e0d793a9
token-swap: Swap instruction fix and update libs for CI (#408)
* token-swap: Fix swap instruction

* Update SDK libs and fix outstanding issues

* Run lint in token/js

* Disable CI token-swap js tests

* Update code for web3.js 0.75.0

* Update output -> destination verbiage for clarity / consistency
2020-09-10 20:16:50 +02:00
Tyera Eulberg 7141298b2f
Flesh out @solana/spl-token with token2 instructions (#410)
* Fix token-js docs

* Add Freeze/Thaw instructions

* Add v2 instructions

* Add new instructions to js test

* Bump @solana/spl-token to v0.0.8

* Fix didThrow and remove invalidApprove
2020-09-10 17:17:45 +00:00
Justin Starry 708bb430ab
Bump dependencies from 1.3.8 to 1.3.9 (#415) 2020-09-10 17:25:43 +08:00
Greg Fitzgerald 0ca4a61e4d
Javascript -> JavaScript (#409) 2020-09-09 17:57:30 -06:00
Trent Nelson 72fc795f90 Bump SPL Token CLI version to 2.0.1 2020-09-09 17:14:13 +00:00
Daniel Kelleher b8066f2e08
Fix for token ts declarations - import the correct Account object (#400) 2020-09-09 09:35:38 -06:00
dependabot[bot] f842f276e5
Bump solana-cli-config from 1.3.8 to 1.3.9 (#402)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.8 to 1.3.9.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.8...v1.3.9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-09 08:45:25 +00:00
dependabot[bot] 5bb0a04960
Bump solana-logger from 1.3.8 to 1.3.9 (#403)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.3.8 to 1.3.9.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.8...v1.3.9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-09 08:45:19 +00:00
Trent Nelson 9eb10d9144 Unrelated clippy... 2020-09-04 01:18:44 -06:00
Trent Nelson e00a6f1add Bump Token version to 2.0.4 2020-09-04 01:18:44 -06:00
Trent Nelson b15eb09cfb Bump solana crates to 1.3.8 2020-09-04 01:18:44 -06:00
Jack May 0637e358bc
Add back token perf monitor (#380) 2020-09-01 17:27:11 -07:00
Trent Nelson 5f425e5a3e
Token CLI: Use Token2 instructions (#375) 2020-09-01 14:29:12 -06:00
Trent Nelson b011698251 Token CLI: Support arbitrary signers
eg. Ledger
2020-09-01 17:47:55 +00:00
Justin Starry 8e1bff0a72
Fix token-js CI tests (#371) 2020-08-30 14:31:58 +08:00
Michael Vines 1247e539a7 Fix up doc quotes 2020-08-29 21:59:35 -07:00
Michael Vines 9e23bc94cb Update to Solana 1.3.6 2020-08-29 22:12:00 +00:00
Michael Vines 858dd64f6b Update to solana 1.3.6 2020-08-29 14:37:10 -07:00
Michael Vines eb1f41c4b6 Adapt to LEN 2020-08-29 14:37:10 -07:00
Michael Vines 51b3465b17 Bump spl-token-cli version 2020-08-29 08:41:25 -07:00
Justin Starry f9c3dd1f67 Bump @solana/spl-token to v0.0.7 2020-08-29 17:04:59 +08:00
Justin Starry 05cc84ea64
Remove extra account padding (#363) 2020-08-29 17:03:24 +08:00
Justin Starry cbba9b3d6c
Fix isInitialized when account is frozen (#362) 2020-08-29 16:44:57 +08:00
Tyera Eulberg 510d34198b
Bump token program id, version (#361) 2020-08-29 02:44:03 -06:00
Michael Vines 0c8981731b Bump version 2020-08-28 16:25:59 -07:00
Jack May 7b5eb2a2a5
Fix account size comparisons (#359) 2020-08-28 23:21:57 +00:00
Justin Starry 3691b14a01 Update token js bindings 2020-08-28 16:02:32 -07:00
Tyera Eulberg d11dbba955
Bump version (#357) 2020-08-28 19:34:29 +00:00
Jack May 815cca3cb8
Don't repack if not needed (#355) 2020-08-28 12:03:10 -07:00
Jack May 64a9e151e0
Remove last unsafes (#354) 2020-08-28 12:12:12 -06:00
Tyera Eulberg b4a3674437
s/AccountHolder/AccountOwner (#356) 2020-08-28 12:11:57 -06:00
Greg Fitzgerald 6761f440ab
Token nits (#353) 2020-08-28 10:12:05 -06:00
Michael Vines 81ac32e3be Update token.h 2020-08-27 23:32:07 -07:00
Michael Vines 0a47a3127c Move c header generation out of build.rs 2020-08-27 23:32:07 -07:00
Tyera Eulberg 13a279c0b4
Bump spl-token to v2 (#352) 2020-08-28 00:29:55 -06:00
Michael Vines 68660c8011 Fix various quotes in documentation 2020-08-27 22:41:34 -07:00
Jack May 2a5acff2d8
Safer pack/unpack (#349)
* Safer pack/unpack

* fix cli

* clippy

* fix swap

* nit

* clippy

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-08-27 21:19:15 -07:00
Tyera Eulberg 74bf8a1f58
New spl-token v1.1 program id (#348) 2020-08-27 19:41:14 -06:00
Michael Vines 18a380cb50 Update token.h 2020-08-28 00:47:35 +00:00
Michael Vines 12f941d7fc Adjust native mint 2020-08-28 00:47:35 +00:00
Michael Vines b60eb8fbee Add Transfer2/Approve2/MintTo2/Burn2 instructions for improved hardware wallet support 2020-08-28 00:47:35 +00:00
Tyera Eulberg 2e6162abbd C headers doc 2020-08-27 16:17:38 -07:00
Tyera Eulberg b2b20444e5 Require valid Mint for InitializeAccount 2020-08-27 16:17:38 -07:00
Tyera Eulberg 0b71752d45
Use checked math everywhere (#346) 2020-08-27 14:31:59 -06:00
Tyera Eulberg 49e6e4a589
Reinstate Mint supply (#342)
* Reinstate Mint supply, and adjust with Minto & Burn

* C headers

* Patch token-cli

* Patch token-swap
2020-08-27 13:06:23 -06:00
Tyera Eulberg fec5717d2a More C headers 2020-08-27 09:40:31 -07:00
Tyera Eulberg 8d0ba35407 Combine Account is_native and rent_exempt_reserve fields; wrapped SOL amount reflects only amoutn over rent_exempt_reserve 2020-08-27 09:40:31 -07:00
Tyera Eulberg 181cdfa170 C headers 2020-08-27 09:40:31 -07:00
Tyera Eulberg 2e5056f70d Add Account.rent_exempt_reserve 2020-08-27 09:40:31 -07:00
Tyera Eulberg a5c1bb470d Pass rent_sysvar into init Instructions and check rent-exempt 2020-08-27 09:40:31 -07:00
Michael Vines b58677f554 Bump some crate versions 2020-08-27 09:39:35 -07:00
dependabot[bot] 4893198a68 Bump solana-account-decoder from 1.3.2 to 1.3.4
Bumps [solana-account-decoder](https://github.com/solana-labs/solana) from 1.3.2 to 1.3.4.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.2...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-27 09:38:45 -07:00
Michael Vines 81d18e590d InitializeMint's mint authority is no longer optional 2020-08-26 23:43:45 -07:00
Michael Vines b62c2721fa Update token.h 2020-08-26 23:10:18 -07:00
Michael Vines 68db5f77a0 Port cli to token2 2020-08-26 23:10:18 -07:00
Michael Vines 2815165c14 Relocate program2 into program 2020-08-26 23:10:18 -07:00
Michael Vines 20b6ee04a3 Remove token 1.0 2020-08-26 23:10:18 -07:00
Tyera Eulberg ea52428475
token: Simplify initialize_mint (#327)
* Simplify initialize_mint

* C headers
2020-08-27 00:27:44 +00:00
dependabot[bot] 025a605a59
Bump @babel/core from 7.11.1 to 7.11.4 in /token/js (#317)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.11.1 to 7.11.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.11.4/packages/babel-core)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 08:33:10 +00:00
dependabot[bot] b0cebcf4bb
Bump solana-clap-utils from 1.3.2 to 1.3.4 (#318)
Bumps [solana-clap-utils](https://github.com/solana-labs/solana) from 1.3.2 to 1.3.4.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.2...v1.3.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 08:33:05 +00:00
Tyera Eulberg e91725a8b3
token: Add close_authority and re-enable CloseAccount for non-native Accounts (#314)
* Add close_authority and re-enable CloseAccount for non-native Accounts

* C headers
2020-08-25 21:36:35 -06:00
Tyera Eulberg c00adbe3a7
Add capability to freeze token Accounts (#297)
* Add freeze elements to state structs

* Add can_freeze paramter to InitializeMint instruction, and plumb

* Add fixed_supply parameter to InitializeMint

* Convert to SetAuthority instruction

* Add frozen restrictions

* Add FreezeAccount instruction

* Make FreezeAccount into toggle

* Add parameter to make freezing explicit

* Pass mint owner, freeze_authority as parameters

* Rename ToggleFreeze

* Make AuthorityType more explicit

* Rename mint owner => mint_authority

* Add Account::is_frozen method

* C header updates

* s/is_initialized/state for Account

* Minting nit

* Add helpers to clean up AuthorityType packing

* Split FreezeAccount into 2 instructions

* Pass new_authority as parameter not account

* More C header updates

* Use new COption helpers

* Use boolean for toggle fn
2020-08-25 14:24:11 -06:00
dependabot[bot] 40b43f3ebe
Bump solana-cli-config from 1.3.2 to 1.3.4 (#292)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.2 to 1.3.4.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.2...v1.3.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 16:37:47 +00:00
dependabot[bot] 9776d42329 Bump eslint from 7.6.0 to 7.7.0 in /token/js
Bumps [eslint](https://github.com/eslint/eslint) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.6.0...v7.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-25 09:05:55 -07:00
dependabot[bot] 036cca36b6 Bump solana-sdk from 1.3.2 to 1.3.4
Bumps [solana-sdk](https://github.com/solana-labs/solana) from 1.3.2 to 1.3.4.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.2...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-25 09:05:29 -07:00
Jack May 9df7b22087
Fix overflow when amounts are u64::MAX (#310) 2020-08-25 08:48:26 -07:00
Tyera Eulberg 27d1e52a60
Add COption helpers (#311)
* Add COption conversion methods

* Add COption pack/unpack
2020-08-25 09:31:01 -06:00
dependabot[bot] 428d5dcf11
Bump bn.js from 5.1.2 to 5.1.3 in /token/js (#312)
Bumps [bn.js](https://github.com/indutny/bn.js) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/indutny/bn.js/releases)
- [Changelog](https://github.com/indutny/bn.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/indutny/bn.js/compare/v5.1.2...v5.1.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 08:31:29 +00:00
Jack May 65aeff5b0b
Use deprecated bpf loader (#307)
* Use deprecated bpf loader

* bump web3.js to pick up fixed flow defs
2020-08-24 14:19:46 -07:00
dependabot[bot] b1bd204fbe
Bump rollup from 2.25.0 to 2.26.5 in /token/js (#304)
Bumps [rollup](https://github.com/rollup/rollup) from 2.25.0 to 2.26.5.
- [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.25.0...v2.26.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-24 08:31:53 +00:00
Michael Vines 62cb0e2dd9 Remove duplicate 2020-08-20 17:47:49 -07:00
Michael Vines c64f29e0d8 Update version 2020-08-20 13:41:27 -07:00
Michael Vines b619da32ae Bump version to 1.0.8 2020-08-14 18:08:46 -07:00
Michael Vines db6f414589 Back out 'Add support for self transfers (#210)' 2020-08-14 22:50:18 +00:00
Michael Vines e440466311 Add token program2 2020-08-14 22:50:18 +00:00
dependabot[bot] c12b04aaaa
Bump @solana/web3.js from 0.68.0 to 0.71.1 in /token/js (#279)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.68.0 to 0.71.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.68.0...v0.71.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-14 22:28:33 +00:00
Michael Vines 480c88ceaf Exclude DECIMALS 2020-08-14 17:57:46 +00:00
Michael Vines e345b1cb17 Remove extra whitespace 2020-08-14 17:57:46 +00:00
Michael Vines e2ac634c3e Bump token version 2020-08-14 08:48:12 -07:00
Michael Vines 69ec1d7ca7 clippy 2020-08-14 08:48:12 -07:00
dependabot[bot] c3e80d401f
Bump clap from 2.33.2 to 2.33.3 (#274)
Bumps [clap](https://github.com/clap-rs/clap) from 2.33.2 to 2.33.3.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-14 08:44:28 +00:00
dependabot[bot] 44c8dd7284
Bump rollup from 2.23.1 to 2.25.0 in /token/js (#273)
Bumps [rollup](https://github.com/rollup/rollup) from 2.23.1 to 2.25.0.
- [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.23.1...v2.25.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-14 08:40:46 +00:00
dependabot[bot] 98e322a27c
Bump @rollup/plugin-babel from 5.1.0 to 5.2.0 in /token/js (#272)
Bumps [@rollup/plugin-babel](https://github.com/rollup/plugins) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/babel-v5.1.0...babel-v5.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-14 08:40:41 +00:00
Michael Vines bf1b3259b9 Bump version to v1.0.7 2020-08-14 01:22:11 +00:00
Michael Vines 77e43016f1 clippy 2020-08-14 01:22:11 +00:00
Michael Vines d87d056e61 Bump testnetDefaultChannel 2020-08-14 01:22:11 +00:00
Michael Vines 65b49c41fb Bump @solana/web3.js from 0.64.0 to 0.68.0 in /token/js 2020-08-14 01:22:11 +00:00
Michael Vines 96f9b0cdc6 Adapt spl-token cli to Solana 1.3.2 2020-08-14 01:22:11 +00:00
dependabot[bot] 5bf7742620
Bump solana-cli-config from 1.3.1 to 1.3.2 (#263)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.1...v1.3.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-12 08:44:29 +00:00
dependabot[bot] 0c5f3979c3
Bump solana-logger from 1.3.1 to 1.3.2 (#264)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.1...v1.3.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-12 08:43:30 +00:00
Jack May 706e619bdd
cbindgen does not produce deterministic header files (#261) 2020-08-11 16:09:36 -07:00
Trent Nelson d279eb48e5
Truncate SPL Token instruction data field (#260) 2020-08-11 16:41:56 -06:00
Michael Vines fa67d0e7d1 Add spl-token documentation 2020-08-10 12:49:28 -07:00
Michael Vines d37626e360 Move program READMEs back 2020-08-08 23:04:16 +00:00
Michael Vines 7225f8d35c Update token.h 2020-08-08 15:25:47 -07:00
Michael Vines a22908bbd9 Relocate js 2020-08-08 15:25:47 -07:00
Michael Vines 26ab9bb26a Reorganize crates based on program 2020-08-08 15:25:47 -07:00
Michael Vines 68b1d43596 Update token.h 2020-08-08 08:05:00 -07:00
Michael Vines 48b11fc01c Move up to v1.3.1 2020-08-08 08:05:00 -07:00
Michael Vines a8c995bc79 Fix up target/ location 2020-08-08 08:05:00 -07:00
Michael Vines c6042f68f7 Add top-level workspace 2020-08-08 08:05:00 -07:00
dependabot[bot] 4170c1b3c9
Bump rollup from 2.23.0 to 2.23.1 in /token/js (#251)
Bumps [rollup](https://github.com/rollup/rollup) from 2.23.0 to 2.23.1.
- [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.23.0...v2.23.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-08 05:54:22 +00:00
Michael Vines 735eafb7e0 Avoid generating header files when they already exist 2020-08-07 18:44:00 -07:00
dependabot[bot] 4ca6902f3c
Bump flow-bin from 0.130.0 to 0.131.0 in /token/js (#232)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.130.0 to 0.131.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-07 09:04:59 +00:00
Justin Starry 2c59c86fbf
Bump version to v0.0.5 (#227) 2020-08-06 17:40:47 +08:00
dependabot[bot] a54aa9d4d5
Bump @babel/runtime from 7.11.1 to 7.11.2 in /token/js (#220)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.11.1 to 7.11.2.
- [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.11.2/packages/babel-runtime)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-06 09:11:48 +00:00
dependabot[bot] d5c4748762
Bump @babel/runtime from 7.11.0 to 7.11.1 in /token/js (#217)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.11.0 to 7.11.1.
- [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.11.1/packages/babel-runtime)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 11:27:04 +00:00
dependabot[bot] 000a816a32
Bump @babel/core from 7.11.0 to 7.11.1 in /token/js (#215)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.11.0 to 7.11.1.
- [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.11.1/packages/babel-core)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 10:48:09 +00:00
dependabot[bot] 71fde3bb82
Bump num-derive from 0.3.0 to 0.3.1 in /token (#213)
Bumps [num-derive](https://github.com/rust-num/num-derive) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/rust-num/num-derive/releases)
- [Changelog](https://github.com/rust-num/num-derive/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-derive/compare/num-derive-0.3.0...num-derive-0.3.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 08:45:51 +00:00
Michael Vines 4c8b28b387 Add ui amount conversion helpers 2020-08-05 05:18:54 +00:00
Jack May 3f8a716ddb
Add support for self transfers (#210) 2020-08-04 18:17:51 -07:00
Michael Vines 72608ab2e3 Add native_mint::DECIMALS 2020-08-05 00:15:25 +00:00
Michael Vines 902a9fb081 Bump testnetDefaultChannel 2020-08-04 16:10:05 -07:00
Michael Vines 4ca71a378e Relax solana-sdk version requirement 2020-08-04 16:10:05 -07:00
Jack May bd5f1f82a3
Add tag to C enum variants (#206) 2020-08-03 21:23:33 -07:00