Jon Cinque
f6fc53c311
token-swap: Fix withdraw instruction ( #405 )
...
* Include pool mint in instruction, required for burning
* Add simple Rust test
* Fix js withdraw test
2020-09-09 18:00:03 +02: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]
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
b15eb09cfb
Bump solana crates to 1.3.8
2020-09-04 01:18:44 -06: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
Michael Vines
9e23bc94cb
Update to Solana 1.3.6
2020-08-29 22:12:00 +00:00
dependabot[bot]
d42eda8d68
Bump @babel/core from 7.11.1 to 7.11.4 in /token-swap/js ( #337 )
...
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-27 23:55:23 +08:00
dependabot[bot]
19152cfcb7
Bump prettier from 2.1.0 to 2.1.1 in /token-swap/js ( #319 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.1.0 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.1.0...2.1.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 08:34:28 +00:00
dependabot[bot]
c2da3dbd48
Bump eslint from 7.6.0 to 7.7.0 in /token-swap/js ( #287 )
...
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 16:40:30 +00:00
dependabot[bot]
6f70d642e6
Bump bn.js from 5.1.2 to 5.1.3 in /token-swap/js
...
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>
2020-08-25 09:06:43 -07:00
dependabot[bot]
b9265b450c
Bump prettier from 2.0.5 to 2.1.0 in /token-swap/js ( #313 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.0.5 to 2.1.0.
- [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.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 08:29:56 +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]
d4a526a90b
Bump @solana/web3.js from 0.68.0 to 0.71.1 in /token-swap/js ( #278 )
...
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:27 +00:00
Michael Vines
d87d056e61
Bump testnetDefaultChannel
2020-08-14 01:22:11 +00:00
dependabot[bot]
0cb64c8c67
Bump @solana/web3.js from 0.66.3 to 0.68.0 in /token-swap/js ( #266 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.66.3 to 0.68.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.66.3...v0.68.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-12 09:28:34 +00:00
dependabot[bot]
bbbc9044e1
Bump @solana/web3.js from 0.64.0 to 0.66.3 in /token-swap/js ( #256 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.64.0 to 0.66.3.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.64.0...v0.66.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-10 08:42:43 +00: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
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
dependabot[bot]
4afde65d44
Bump flow-bin from 0.130.0 to 0.131.0 in /token-swap/js ( #233 )
...
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:27:29 +00:00
dependabot[bot]
171a32a263
Bump @babel/runtime from 7.11.1 to 7.11.2 in /token-swap/js ( #226 )
...
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 11:37:55 +00:00
dependabot[bot]
c64e06948d
Bump @babel/runtime from 7.11.0 to 7.11.1 in /token-swap/js ( #216 )
...
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 09:47:49 +00:00
dependabot[bot]
eaeaad8178
Bump @babel/core from 7.11.0 to 7.11.1 in /token-swap/js ( #214 )
...
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 09:03:39 +00:00
Jack May
569185359e
to bytes on client side
2020-08-04 16:10:05 -07:00
Michael Vines
902a9fb081
Bump testnetDefaultChannel
2020-08-04 16:10:05 -07:00
Justin Starry
ef75a1d523
Return signature from sendAndConfirmTransaction ( #203 )
2020-08-04 01:22:54 +08:00
dependabot[bot]
d79c7601f5
Bump eslint from 7.5.0 to 7.6.0 in /token-swap/js ( #197 )
...
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 18:34:40 +00:00
dependabot[bot]
f499077fe2
Bump @babel/plugin-transform-runtime in /token-swap/js ( #186 )
...
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 10:34:32 +00:00
dependabot[bot]
cec939e4a1
Bump @babel/core from 7.10.5 to 7.11.0 in /token-swap/js ( #184 )
...
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 09:34:34 +00:00
dependabot[bot]
bf5f640a3c
Bump @solana/web3.js from 0.63.2 to 0.64.0 in /token-swap/js ( #185 )
...
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-07-31 09:14:01 +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
dependabot[bot]
729ff05574
Bump @babel/preset-env from 7.10.4 to 7.11.0 in /token-swap/js ( #173 )
...
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 01:48:27 +00:00
dependabot[bot]
c6110fbf8f
Bump @babel/runtime from 7.10.5 to 7.11.0 in /token-swap/js ( #175 )
...
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 01:09:01 +00:00
dependabot[bot]
d2d746323d
Bump @solana/web3.js from 0.62.0 to 0.63.2 in /token-swap/js ( #171 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.62.0 to 0.63.2.
- [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.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-30 23:36:35 +00:00
dependabot[bot]
fb7fa0dd13
Bump flow-bin from 0.129.0 to 0.130.0 in /token-swap/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:35 -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
Jack May
a07935371f
Prep token/js for publishing ( #165 )
2020-07-30 02:07:55 -07: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
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
dependabot[bot]
cad4d1c577
Bump flow-bin from 0.128.0 to 0.129.0 in /token-swap/js ( #118 )
...
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-17 13:04:33 -06:00
dependabot[bot]
370150c771
Bump eslint from 6.8.0 to 7.4.0 in /token-swap/js ( #109 )
...
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-08 20:54:22 -07:00
dependabot-preview[bot]
bf49233e0f
Bump eslint-loader from 3.0.4 to 4.0.2 in /token-swap/js ( #96 )
...
Bumps [eslint-loader](https://github.com/webpack-contrib/eslint-loader ) from 3.0.4 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.4...v4.0.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-07-08 18:12:15 +08:00
dependabot-preview[bot]
cbba5e7b77
Bump superstruct from 0.8.4 to 0.10.12 in /token-swap/js ( #95 )
...
Bumps [superstruct](https://github.com/ianstormtaylor/superstruct ) from 0.8.4 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.4...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-08 17:16:27 +08:00