Commit Graph

605 Commits

Author SHA1 Message Date
dependabot[bot] 06f30cc829
Bump @solana/web3.js from 0.78.1 to 0.78.2 in /token-swap/js (#550)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.78.1 to 0.78.2.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.78.1...v0.78.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-30 08:40:25 +00:00
dependabot[bot] 061554c29b
Bump @solana/web3.js from 0.78.1 to 0.78.2 in /token/js (#551)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.78.1 to 0.78.2.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.78.1...v0.78.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-30 08:40:13 +00:00
dependabot[bot] 449c4b95d6
Bump solana-cli-config from 1.3.13 to 1.3.14 (#552)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.13 to 1.3.14.
- [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.13...v1.3.14)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-30 08:38:55 +00:00
dependabot[bot] 663390b727
Bump eslint-plugin-import from 2.22.0 to 2.22.1 in /token-swap/js (#547)
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.22.0 to 2.22.1.
- [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.22.0...v2.22.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-28 09:18:51 +00:00
dependabot[bot] 431299016b
Bump eslint from 7.9.0 to 7.10.0 in /token-swap/js (#545)
Bumps [eslint](https://github.com/eslint/eslint) from 7.9.0 to 7.10.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.9.0...v7.10.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-28 08:40:15 +00:00
dependabot[bot] 756dcaa0dd
Bump eslint-plugin-import from 2.22.0 to 2.22.1 in /token/js (#544)
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.22.0 to 2.22.1.
- [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.22.0...v2.22.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-28 08:39:58 +00:00
dependabot[bot] 15d909cc84
Bump eslint from 7.9.0 to 7.10.0 in /token/js (#546)
Bumps [eslint](https://github.com/eslint/eslint) from 7.9.0 to 7.10.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.9.0...v7.10.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-28 08:39:53 +00:00
Tyera Eulberg be9b88d546
Add close subcommand (#542) 2020-09-26 00:48:08 +00:00
Tyera Eulberg 1bcc5c01f8
Reduce airdrop to fit in current testnet/devnet limits (#541) 2020-09-25 18:44:16 -06:00
Tyera Eulberg 94861a39e8
Add approve, revoke subcommands (#540)
* Add approve, revoke subcommands

* Use get_token_account api to reduce rpc calls
2020-09-25 21:51:47 +00:00
dependabot[bot] c24e8245ea
Bump @solana/web3.js from 0.78.0 to 0.78.1 in /token-swap/js (#539)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.78.0 to 0.78.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.78.0...v0.78.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-25 19:33:10 +00:00
dependabot[bot] 98af0e8ff9
Bump @solana/web3.js from 0.78.0 to 0.78.1 in /token/js (#538)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.78.0 to 0.78.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.78.0...v0.78.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-25 19:32:58 +00:00
Jon Cinque 0a059706c0
Upgrade web3 to 0.78.0 and sdk to 1.3.13 (#537)
* Update `sendAndConfirmTransaction` to use `preflightCommitment` of
  `recent`. For the token tests, on my machine, it took roughly 18.5
  seconds, and with `skipPreflight: true` it was about 21.5 seconds.
2020-09-25 20:49:05 +02:00
Tyera Eulberg 72ec14a190
Flesh out SetAuthority capabilities (#531) 2020-09-25 12:27:45 -06:00
dependabot[bot] e825b9d4fe
Bump rollup from 2.28.1 to 2.28.2 in /token/js (#536)
Bumps [rollup](https://github.com/rollup/rollup) from 2.28.1 to 2.28.2.
- [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.28.1...v2.28.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-25 09:19:59 +00:00
dependabot[bot] 254d36affe
Bump rollup from 2.28.1 to 2.28.2 in /token-swap/js (#533)
Bumps [rollup](https://github.com/rollup/rollup) from 2.28.1 to 2.28.2.
- [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.28.1...v2.28.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-25 08:39:00 +00:00
Trent Nelson ec9961cd7f spl-token-cli: Add 'account-info' subcommand 2020-09-24 20:38:28 -06:00
Tyera Eulberg 7903e62a08
Owner doesn't need to sign init transactions (#530) 2020-09-24 21:18:36 +00:00
Tyera Eulberg 5bf19b62f7
Clean up freeze/thaw querying for mint (#529) 2020-09-24 21:06:34 +00:00
dependabot[bot] 3f25180b25
Bump @solana/web3.js from 0.76.0 to 0.77.0 in /token/js (#524)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.76.0 to 0.77.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.76.0...v0.77.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-24 09:58:21 +00:00
dependabot[bot] 1a3f93f9bc
Bump @solana/web3.js from 0.76.0 to 0.77.0 in /token-swap/js (#525)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.76.0 to 0.77.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.76.0...v0.77.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-24 09:19:39 +00:00
Tyera Eulberg 9a7d5949c6
Bump spl-token-cli, and solana versions (#523)
* Bump spl-token-cli, incl solana versions

* Pin exact solana versions
2020-09-24 08:35:58 +00:00
Jon Cinque 13de66817d
token-swap: Improve pool token supply on initialization, deposit, and withdrawal (#508)
* token-swap: Add token supply in invariant calculation

* Refactor state classes into curve components for future use
* Align pool initialization with Uniswap using geometric mean of token
  amounts
* Fix deposit and withdraw instruction to work as a proportion of pool
  tokens
* Add math utilities to calculate the geometric mean with u64

* Improve variable names

* Use a fixed starting pool size

* Run cargo fmt

* Update js tests with new pool numbers

* Run linting

* Remove math

* Fix BN type issues found by flow
2020-09-23 23:08:44 +02:00
Jon Cinque 51c4dc6951
Fix lint check in CI (#519)
* Fix lint check in CI

* `npm run lint` now checks that code is properly formatted, instead of
  running the formatter
* Add extra commands to run the linting, include ts definitions file
* Update flow-bin, fix type errors that come up

* Clarify lint vs lint:fix as requested
2020-09-23 18:20:37 +02:00
dependabot[bot] e8bb772dba
Bump console from 0.11.3 to 0.12.0 (#518)
Bumps [console](https://github.com/mitsuhiko/console) from 0.11.3 to 0.12.0.
- [Release notes](https://github.com/mitsuhiko/console/releases)
- [Commits](https://github.com/mitsuhiko/console/compare/v0.11.3...v0.12.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-23 13:05:51 +00:00
Daniel Kelleher af98c77839
Expose Layouts and instruction creation functions to allow more flexible use of the Token and TokenSwap clients. (#517) 2020-09-23 14:22:56 +02:00
Tyera Eulberg 4c93e07ec9
Add freeze and thaw functionality to spl-token cli (#511)
* Add arg to enable token mint to freeze

* Add freeze/thaw subcommands

* Add frozen marker to spl-token accounts

* Add todos to simplify args
2020-09-22 10:54:51 -06:00
Jack May e78e26597e Rename x2 instructions to xChecked 2020-09-22 02:51:27 -07:00
Jack May bb9f0223a2
Add doc info about generating keypair (#516) 2020-09-22 09:03:25 +00:00
dependabot[bot] 1fc9d017e8
Bump @rollup/plugin-commonjs from 15.0.0 to 15.1.0 in /token-swap/js (#514)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v15.0.0...commonjs-v15.1.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-22 08:53:09 +00:00
dependabot[bot] fcb1130573
Bump cbindgen from 0.14.5 to 0.14.6 (#515)
Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.5 to 0.14.6.
- [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.5...v0.14.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-22 08:40:59 +00:00
Tyera Eulberg bc91372f6f
Enable spl-token-cli args (#510) 2020-09-22 03:11:24 +00:00
Tyera Eulberg 90b5ce6d65
Standardize failure case ordering (#509)
* Standardize processor failure-case ordering

* Fix token-swap test
2020-09-21 20:28:24 -06:00
Jack May 759fe1487e Switch to solana_sdk Pack and COption 2020-09-21 17:08:37 -07:00
Jack May 15aa02760a retain v2 error values 2020-09-21 17:08:37 -07:00
Jack May 08841b801e cargo fmt 2020-09-21 17:08:37 -07:00
Jack May aaa5adb0a6 backport #484 to v2 2020-09-21 17:08:37 -07:00
Jack May f68ff75ba0 backport #479 to v2 2020-09-21 17:08:37 -07:00
Jack May 51dc1ae267 backport #448 to v2 2020-09-21 17:08:37 -07:00
Jack May 4f5e70684a backport #443 to v2 2020-09-21 17:08:37 -07:00
Jack May 6f887baaed backport #434 to v2 2020-09-21 17:08:37 -07:00
Jack May 45cebaf754 backport #435 to v2 2020-09-21 17:08:37 -07:00
Jack May 2b1b9de4e7 backport #436 to v2 2020-09-21 17:08:37 -07:00
Jack May 308e027f49 backport #437 to v2 2020-09-21 17:08:37 -07:00
Jack May 36ec1b2689 backport #438 to v2 2020-09-21 17:08:37 -07:00
Jack May 449d74ba90 backport #433 to v2 2020-09-21 17:08:37 -07:00
Jack May 08fe8307f0
Bump solana-sdk to v1.3.12 (#484) 2020-09-21 08:38:29 -07:00
dependabot[bot] dd5447a75c
Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0 in /token/js (#491)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 14.0.0 to 15.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v14.0.0...commonjs-v15.1.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-21 08:48:52 +00:00
dependabot[bot] 981be23a58
Bump @solana/web3.js from 0.75.2 to 0.76.0 in /token/js (#490)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.75.2 to 0.76.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.75.2...v0.76.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-21 08:45:36 +00:00
dependabot[bot] d03aad8464
Bump cbindgen from 0.14.4 to 0.14.5 (#489)
Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.4 to 0.14.5.
- [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.4...v0.14.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-21 08:43:37 +00:00