Commit Graph

392 Commits

Author SHA1 Message Date
Daniel Kelleher b8066f2e08
Fix for token ts declarations - import the correct Account object (#400) 2020-09-09 09:35:38 -06:00
Jon Cinque db729af089
Fix deposit instruction (#399)
* Fix deposit instruction

* Refactor tests for easier composibility
* Add deposit instruction and test
* Deposit JS test works again

* Fix js lint
2020-09-09 10:59:27 +02:00
dependabot[bot] 85b28cbe82
Bump @solana/web3.js from 0.71.11 to 0.73.0 in /token-swap/js (#404)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.71.11 to 0.73.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.71.11...v0.73.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-09 08:59:12 +00: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
R. M. Shea b5cbedc51c
Update logos (#389)
Co-authored-by: Ryan Shea <rmshea@users.noreply.github.com>
2020-09-08 09:59:15 -06:00
dependabot[bot] cb2370f332
Bump @babel/core from 7.11.4 to 7.11.6 in /token-swap/js (#396)
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-08 08:34:08 +00:00
dependabot[bot] cd774fc3e7
Bump @babel/plugin-transform-runtime in /token-swap/js (#394)
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-07 08:36:15 +00:00
dependabot[bot] 11b1e3eefd
Bump @solana/web3.js from 0.71.10 to 0.71.11 in /token-swap/js (#392)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.71.10 to 0.71.11.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.71.10...v0.71.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-05 22:46:30 +00:00
Jon Cinque ac73bd2e73
Fix token-swap tests (#388)
* Fix local token-swap tests

* Change generation of program address to use a nonce
* Accept nonce properly in initialization
* Include nonce in TokenSwap structure
* Fixup serialization with new parameter (padding used for now)
* Update dependencies

Update toml / lock files

Fix token swap initialization end-to-end

Cleanup unit test to use `find_program_address`

Add / refactor tests

Most importantly, added a special test to make sure that
token_program_id is provided at the end of CPI instructions, since
unit testing did not pick up that problem, and it was tough to debug
during end-to-end testing

* Revert some testing changes for PR

* Update token-swap/program/src/processor.rs

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* Integrate review comments

* Fmt and clippy

* Refactor for clippy

* Fmt again

* Fix npm lint error

* Clarify signers line as requested

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-09-06 00:09:05 +02: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
Trent Nelson ddc47a6d86 Fix TokenSwap initialization test 2020-09-04 01:18:44 -06:00
Tyera Eulberg 07dcf3a1ec
Fix up spl-token docs (#379)
* Fixup spl-token docs

* Apply suggestions from code review

Co-authored-by: Michael Vines <mvines@gmail.com>

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-09-02 01:41:05 +00: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
dependabot[bot] a808c86df4
Bump @babel/cli from 7.10.5 to 7.11.5 in /token-swap/js (#378)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.10.5 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-cli)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-01 08:28:44 +00:00
dependabot[bot] 92457f774c
Bump cbindgen from 0.14.2 to 0.14.4 (#372)
Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.2 to 0.14.4.
- [Release notes](https://github.com/eqrion/cbindgen/releases)
- [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES)
- [Commits](https://github.com/eqrion/cbindgen/compare/v0.14.2...v0.14.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 08:26:09 +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
Jack May 05999a91ed
Update token docs (#360) 2020-08-29 00:16:55 +00: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
Michael Vines dc8dcc0222 Disable token-swap flow 2020-08-28 16:16:24 -07:00
Justin Starry 3691b14a01 Update token js bindings 2020-08-28 16:02:32 -07:00
Michael Vines aa1489df2e Disable C header generation in CI 2020-08-28 16:01:58 -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
Michael Vines 73e2455d60 Relocate test-client 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 142e8e2ea6 Temporarly disable C header checks 2020-08-28 00:47:35 +00:00
Michael Vines 18a380cb50 Update token.h 2020-08-28 00:47:35 +00:00