Commit Graph

357 Commits

Author SHA1 Message Date
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
Justin Starry ef75a1d523
Return signature from sendAndConfirmTransaction (#203) 2020-08-04 01:22:54 +08:00
dependabot[bot] 8174af718e
Bump eslint from 7.5.0 to 7.6.0 in /token/js (#199)
Bumps [eslint](https://github.com/eslint/eslint) from 7.5.0 to 7.6.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.5.0...v7.6.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-02 21:53:28 +00:00
dependabot[bot] 47efeda785
Bump num-derive from 0.2.5 to 0.3.0 in /token (#192)
Bumps [num-derive](https://github.com/rust-num/num-derive) from 0.2.5 to 0.3.0.
- [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.2.5...num-derive-0.3.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-02 21:18:40 +00:00
dependabot[bot] 9649f25c75
Bump @solana/web3.js from 0.63.2 to 0.64.0 in /token/js (#198)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.63.2 to 0.64.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.63.2...v0.64.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-02 19:06:25 +00:00
dependabot[bot] d0beed7d0e Bump flow-typed from 3.2.0 to 3.2.1 in /token/js
Bumps [flow-typed](https://github.com/flow-typed/flow-typed) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/flow-typed/flow-typed/releases)
- [Changelog](https://github.com/flow-typed/flow-typed/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flow-typed/flow-typed/compare/v3.2.0...v3.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-02 08:39:29 -07:00
Jack May 46f0b42873
Programs can be client dependencies (#181) 2020-07-31 16:35:49 -07:00
Tyera Eulberg a6278bd58d
Consistency nits (#187) 2020-07-31 18:01:33 +00:00
dependabot[bot] 599600d5a9
Bump @babel/plugin-transform-runtime from 7.10.5 to 7.11.0 in /token/js (#183)
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.10.5 to 7.11.0.
- [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.0/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-07-31 08:50:48 +00:00
dependabot[bot] be6328b16e
Bump @babel/core from 7.10.5 to 7.11.0 in /token/js (#182)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.5 to 7.11.0.
- [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.0/packages/babel-core)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 08:32:00 +00:00
Justin Starry 719deefc8c
Bump spl-token to v0.0.4 (#180) 2020-07-31 04:02:05 +00:00
Jack May 302855fa0a
Cleanup payer and remove use of instanceof (#176)
Co-authored-by: Justin Starry <justin@solana.com>
2020-07-31 11:37:33 +08:00
Justin Starry 662a733172
Bump @solana/web3.js and @solana/spl-token (#177) 2020-07-31 10:49:03 +08:00
dependabot[bot] c081e50af7
Bump @babel/runtime from 7.10.5 to 7.11.0 in /token/js (#174)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.10.5 to 7.11.0.
- [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.0/packages/babel-runtime)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 02:21:37 +00:00
dependabot[bot] 1782bcf24c
Bump @babel/preset-env from 7.10.4 to 7.11.0 in /token/js (#172)
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.10.4 to 7.11.0.
- [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.0/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-07-31 00:16:19 +00:00
dependabot[bot] d338274864 Bump flow-bin from 0.129.0 to 0.130.0 in /token/js
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.129.0 to 0.130.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>
2020-07-30 15:47:42 -07:00
dependabot[bot] 876034e02c Bump @solana/web3.js from 0.62.0 to 0.63.1 in /token/js
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.62.0 to 0.63.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.62.0...v0.63.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-30 15:47:25 -07:00
Michael Vines 0d885b9baa Bump version to 1.0.3 2020-07-30 15:32:22 -07:00
Michael Vines 06b4d18191 Export current solana-sdk types for downstream users 2020-07-30 15:28:45 -07:00
Jack May a59a79d179
Bump version (#168) 2020-07-30 13:52:51 -07:00
Justin Starry 17d129a32a
Setup rollup, fix prettier, and clean dependencies (#166)
* Setup rollup, fix prettier, and clean dependencies

* Setup rollup specific babel config

* Fix token-swap config
2020-07-31 01:01:57 +08:00
Marc-Antoine Ross c6fe796900
Fix typo (#167) 2020-07-30 09:18:55 -07:00
Jack May a07935371f
Prep token/js for publishing (#165) 2020-07-30 02:07:55 -07:00
Tyera Eulberg 87a0af07b3
TokenInstruction::Approve: source account must be writable (#164)
* Source account must be writable

* Comment fixups
2020-07-30 00:03:40 +00:00
Jack May 0f2226c190
Nits (#159)
* Nits

* nudge
2020-07-28 16:33:34 -07:00
Jack May 324a567b5e
Update README.md 2020-07-28 11:01:34 -07:00
Jack May 691a213524
Add token docs (#158) 2020-07-28 11:00:37 -07:00
Tyera Eulberg 019235c69c
Bump sdk version, and adjust accordingly (#155) 2020-07-24 20:39:15 +00:00
Tyera Eulberg 8580542729
Bump patch versions (#148) 2020-07-22 15:55:46 -06:00
Tyera Eulberg bd2ea9ed55
Bump solana-sdk version (#145)
* Bump solana-sdk version

* Include program feature to enable entrypoint

* Bump default testnet
2020-07-22 20:34:15 +00:00
dependabot[bot] 2c82a97909
Bump lodash from 4.17.14 to 4.17.19 in /token/js (#143)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.19)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-21 19:14:16 -06:00
Tyera Eulberg f779495689
Remove unused dependencies (#133) 2020-07-21 18:27:02 -06:00
Jack May 96366cb4ff
Improve CI coverage (#141)
* Improve CI coverage

* install fmt
2020-07-21 14:37:34 -07:00
Jack May c44a149b47
Remove builtin flowconfig suppress_comments (#140) 2020-07-21 10:28:03 -07:00
Jack May 7fa8706707
Fix C header to include state structures (#138) 2020-07-21 00:46:02 -07:00
Tyera Eulberg 11ca35d75b
Revert "Bump eslint from 6.8.0 to 7.4.0 in /token/js (#117)"
This reverts commit 374959acdc.
2020-07-17 15:15:19 -06:00
dependabot[bot] 374959acdc
Bump eslint from 6.8.0 to 7.4.0 in /token/js (#117)
Bumps [eslint](https://github.com/eslint/eslint) from 6.8.0 to 7.4.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/v6.8.0...v7.4.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 22:46:53 -06:00
dependabot[bot] 5d0bb6afae
Bump flow-typed from 3.1.0 to 3.2.0 in /token/js (#123)
Bumps [flow-typed](https://github.com/flow-typed/flow-typed) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/flow-typed/flow-typed/releases)
- [Changelog](https://github.com/flow-typed/flow-typed/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flow-typed/flow-typed/compare/v3.1.0...v3.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 11:45:22 -06:00
dependabot[bot] 3a4cbbcb66
Bump lodash from 4.17.14 to 4.17.19 in /token/js (#130)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.19)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 11:44:35 -06:00
Tyera Eulberg b24bfe7e32
Token: add Rust program id and bump version (#47)
* Token: add Rust program id and bump version

* Exclude js from package

* C header bump
2020-07-15 18:52:15 -06:00
Tyera Eulberg 4683535885
Fix CloseAccount js test (#128) 2020-07-15 21:47:31 +00:00
Tyera Eulberg 339100e96b
Disable CloseAccount for non-native token accounts (#127) 2020-07-15 13:01:45 -06:00
Aaron Hill 88d738f9d2
Bump solana-sdk to 1.2.10 (#124)
This allows https://github.com/solana-labs/solana/pull/11015 to build
2020-07-13 14:55:46 -06:00
Jack May 18ca475bd6
Document that delegates cannot CloseAccount (#121) 2020-07-10 15:34:12 -07:00
Jack May ab5ea5c1f9
Add support for native token (#112) 2020-07-09 17:11:00 -07:00
dependabot[bot] c60b4cc2a5
Bump webpack-cli from 3.3.11 to 3.3.12 in /token/js (#116)
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.11 to 3.3.12.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/v3.3.12/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.11...v3.3.12)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-09 10:11:14 -07:00
dependabot[bot] ab934c4794
Bump jayson from 3.2.0 to 3.3.3 in /token/js (#115)
Bumps [jayson](https://github.com/tedeh/jayson) from 3.2.0 to 3.3.3.
- [Release notes](https://github.com/tedeh/jayson/releases)
- [Commits](https://github.com/tedeh/jayson/compare/v3.2.0...v3.3.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-09 10:10:59 -07:00
dependabot[bot] b86930f2dc
Bump eslint-loader from 3.0.3 to 4.0.2 in /token/js (#114)
Bumps [eslint-loader](https://github.com/webpack-contrib/eslint-loader) from 3.0.3 to 4.0.2.
- [Release notes](https://github.com/webpack-contrib/eslint-loader/releases)
- [Changelog](https://github.com/webpack-contrib/eslint-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/eslint-loader/compare/v3.0.3...v4.0.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-09 10:10:42 -07:00
dependabot[bot] 36f4184628
Bump flow-bin from 0.128.0 to 0.129.0 in /token/js (#108)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.128.0 to 0.129.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-07-08 20:54:01 -07:00
dependabot[bot] 2ce0c9a269
Bump react-bootstrap from 1.0.0 to 1.1.1 in /token/js (#107)
Bumps [react-bootstrap](https://github.com/react-bootstrap/react-bootstrap) from 1.0.0 to 1.1.1.
- [Release notes](https://github.com/react-bootstrap/react-bootstrap/releases)
- [Changelog](https://github.com/react-bootstrap/react-bootstrap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/react-bootstrap/react-bootstrap/compare/v1.0.0...v1.1.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-08 20:53:51 -07:00
Jack May f08326006b
Version C header (#105) 2020-07-08 15:02:48 -07:00
Jack May 6c10d9170d
Fix docs (#111) 2020-07-08 14:59:01 -07:00
dependabot[bot] 6d356c1b5f
Bump webpack-dev-server from 3.10.3 to 3.11.0 in /token/js (#106)
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 3.10.3 to 3.11.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.10.3...v3.11.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-08 14:58:12 -07:00
Jack May 7a3fb516bc
Whittle down the token program across the board (#93)
* Whittle down the token program across the board

* nit

* nudge
2020-07-08 12:41:08 -07:00
dependabot[bot] 69e9023a8f
Bump css-loader from 3.4.2 to 3.6.0 in /token/js (#101)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.4.2 to 3.6.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.4.2...v3.6.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-08 20:50:09 +08:00
dependabot[bot] 03f95ab360
Bump eslint-plugin-react from 7.20.0 to 7.20.3 in /token/js (#100)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.0 to 7.20.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.0...v7.20.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-08 20:49:55 +08:00
dependabot[bot] 89f51b9518
Bump moment from 2.26.0 to 2.27.0 in /token/js (#99)
Bumps [moment](https://github.com/moment/moment) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.26.0...2.27.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-08 19:50:39 +08:00
dependabot[bot] 46adc5e1d9
Bump prettier from 2.0.2 to 2.0.5 in /token/js (#98)
Bumps [prettier](https://github.com/prettier/prettier) from 2.0.2 to 2.0.5.
- [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.2...2.0.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-08 18:12:25 +08:00
dependabot-preview[bot] 23d0ce8528
Bump eslint-plugin-import from 2.20.2 to 2.22.0 in /token/js (#64)
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.20.2 to 2.22.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.20.2...v2.22.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-07 23:32:33 -07:00
dependabot-preview[bot] 07d249b690
Bump flow-bin from 0.121.0 to 0.128.0 in /token/js (#65)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.121.0 to 0.128.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/commits)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-07 14:35:52 -07:00
dependabot-preview[bot] 8c84a64e16
Bump superstruct from 0.8.3 to 0.10.12 in /token/js (#51)
Bumps [superstruct](https://github.com/ianstormtaylor/superstruct) from 0.8.3 to 0.10.12.
- [Release notes](https://github.com/ianstormtaylor/superstruct/releases)
- [Changelog](https://github.com/ianstormtaylor/superstruct/blob/master/Changelog.md)
- [Commits](https://github.com/ianstormtaylor/superstruct/compare/v0.8.3...v0.10.12)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-07 14:35:38 -07:00
Jack May 56dd582c6f
Remove supply from Token (#82) 2020-07-07 14:34:23 -07:00
Jack May a831eddb8d
Use variant fields (#90) 2020-07-07 13:55:56 -07:00
Jack May db1da9bac1
Update docs (#89) 2020-07-07 11:53:23 -07:00
Jack May ad823a1340
Add revoke instruction (#85) 2020-07-07 11:23:23 -07:00
Jack May 767741c235
Fix automation (#81) 2020-07-07 02:09:19 -07:00
Jack May 5080b8a649
Fix clippy (#83) 2020-07-07 01:56:07 -07:00
Jack May 666b0b75e3
Remove initialize signers (#84)
* Remove initialize signers

* update js to do initialize atomically
2020-07-07 01:55:49 -07:00
Jack May 271073e67b
Consolidate .gitignore (#80) 2020-07-06 21:38:18 -07:00
Jack May e8704a1e30
Add multisig support 3 (#79) 2020-07-06 16:36:27 -07:00
Jack May 5ee2d1f993
Single delegate support (#77) 2020-07-06 07:49:20 -07:00
Tyera Eulberg 5e4dcbbcc1
Fix CI (#74)
* Fix ci

* Docs fix

* Dir name
2020-07-01 11:20:44 -06:00
Jack May fc7a808461
Token type renaming (#70) 2020-07-01 01:40:36 -07:00
Jack May b292d4cb3f
Fix token-swap (#72) 2020-07-01 00:56:00 -07:00
Jack May a1259e2deb
Prep token for impending token-swap merge (#69) 2020-06-30 16:37:55 -07:00
anatoly yakovenko 97094e61e5
Token swap (#50)
* initial

* wip

* withdraw

* wip

* wip

* updates

* fix imports

* compiles

* check delegates

* wip

* wip

* wip

* fixup

* instruction serializer

* unpack func

* done!

* update

* wip docs

* docs

* boilerplate

* docs

* fix docs

* Add token-swap test

* Add token-swap js bindings

Co-authored-by: Jack May <jack@solana.com>
2020-06-30 15:37:35 -07:00
Jack May f8f51c13fa
FFI compatible token interface (#48) 2020-06-26 15:20:03 -07:00
Jack May c448faca38
Remove unnecessary lifetimes and use rand during test (#60) 2020-06-25 21:42:40 -07:00
Jack May af8b4b17e6
Cleanup .js naming (#57) 2020-06-24 13:58:56 -07:00
Jack May fef20764e8
Fix SetOwner documentation (#55) 2020-06-24 10:16:21 -07:00
Jack May e181b975c6
Fix serialization (#54) 2020-06-23 16:35:29 -07:00
Jack May 87331fd926
Add instruction helpers (#52) 2020-06-23 09:16:58 -07:00
Jack May 437d2d1c8b
Bump to Solana v1.2.3 and Solana-web3.js v0.60.0 (#46) 2020-06-18 11:02:42 -07:00
Jack May 077a425b70
No account required is initial supply is zero (#44) 2020-06-18 11:02:06 -07:00
Tyera Eulberg 4a140464a2
Remove bpf-sdk handling from token package.json (#43) 2020-06-17 16:59:32 -06:00
Jack May 0d99dcb39c
Update contributors (#42) 2020-06-17 14:12:46 -07:00
Jack May 9214d08be6
Add rustdocs (#39) 2020-06-17 11:25:19 -07:00
Tyera Eulberg ff8b5ac158
Add utf8 memo program (#27)
* Initial memo commit

* Add program id

* Update CI

* Remove unneeded dependencies

* Try instead of map

* clippy --tests
2020-06-05 20:13:15 -06:00
dependabot-preview[bot] 3cf8c8bb39
Bump webpack from 4.42.1 to 4.43.0 in /token (#9)
Bumps [webpack](https://github.com/webpack/webpack) from 4.42.1 to 4.43.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.42.1...v4.43.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-05 16:12:01 -06:00
dependabot-preview[bot] 625b50a454
Bump moment from 2.24.0 to 2.26.0 in /token (#10)
Bumps [moment](https://github.com/moment/moment) from 2.24.0 to 2.26.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.24.0...2.26.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-05 16:11:38 -06:00
dependabot-preview[bot] 1fa0fb7fd7
Bump bn.js from 5.1.1 to 5.1.2 in /token (#12)
Bumps [bn.js](https://github.com/indutny/bn.js) from 5.1.1 to 5.1.2.
- [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.1...v5.1.2)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-05 16:11:13 -06:00
dependabot-preview[bot] 7854f2dbca
[Security] Bump websocket-extensions from 0.1.3 to 0.1.4 in /token (#23)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. **This update includes a security fix.**
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-05 15:28:31 -06:00
Tyera Eulberg dfbfc9367b
Reorganize repository in preparation for more programs (#20)
* Initial reorg

* Update READMEs

* Update CI

* Add CI build stages
2020-06-05 12:34:17 -06:00
Jack May 299025b479
Improve docs and naming (#22) 2020-06-05 10:15:14 -07:00
Jack May d04c034209
Add incinerator (#15) 2020-06-05 08:38:48 -07:00
Michael Vines 833845e0a2
Update error.rs 2020-06-04 22:51:51 -07:00
Jack May 19e40bfd18
Add MintTo instruction (#19) 2020-06-04 22:47:17 -07:00
Jack May 0c3842a078
Update to Solana-sdk 1.2.0 (#17) 2020-06-03 10:28:14 -07:00
Jack May c4d8902ce3
Update token module filename (#14) 2020-06-02 15:20:39 -07:00
dependabot-preview[bot] 3a5a7b7297
Bump semver from 7.1.3 to 7.3.2 in /token (#3)
Bumps [semver](https://github.com/npm/node-semver) from 7.1.3 to 7.3.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.1.3...v7.3.2)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-30 14:43:49 -06:00
Greg Fitzgerald 6744ab2187
npm audit fix (#6) 2020-05-30 14:43:35 -06:00
dependabot-preview[bot] 842fd45c86
Bump eslint-plugin-react from 7.19.0 to 7.20.0 in /token (#4)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.19.0 to 7.20.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.19.0...v7.20.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-30 10:17:15 -06:00
Jack May 8248ccb793
fix ci (#5)
* fix ci

* nudge
2020-05-29 16:03:59 -07:00
Jack May 539fdfca78
First cut of token program (#1) 2020-05-29 15:00:47 -07:00