Commit Graph

495 Commits

Author SHA1 Message Date
dependabot[bot] d2cac80ef2
build(deps-dev): bump eslint from 7.32.0 to 8.31.0 in /token-swap/js (#3950)
Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.31.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v8.31.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 01:00:59 +01:00
dependabot[bot] 1d6902db34
build(deps): bump bn.js from 5.2.0 to 5.2.1 in /token-swap/js (#3197)
Bumps [bn.js](https://github.com/indutny/bn.js) from 5.2.0 to 5.2.1.
- [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.2.0...v5.2.1)

---
updated-dependencies:
- dependency-name: bn.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 20:42:43 +01:00
Jon Cinque ae994afa3e
Update repo to `edition = "2021"` (#3900) 2022-12-13 23:46:26 +01:00
Jon Cinque 5d16d5b926 token-swap: Update withdraw-one fee calculation 2022-12-09 00:51:55 +01:00
samkim-crypto bb404a6af5
update solana to 1.14.10 (#3872) 2022-12-06 12:59:00 +09:00
hanako mumei 3c4267be06 token-2022: bump version to 0.5 2022-11-21 09:29:18 -08:00
Jon Cinque 8d0a2e1000
token-2022: Add PermanentDelegate extension (#3725)
* token-2022: Add PermanentDelegate extension

* Address feedback

* Refactor getting permanent delegate

* Rename function

* More cleanup

* Fix ATA
2022-11-15 14:10:59 +01:00
samkim-crypto 0c8fb24d47
upgrade solana-program to 1.14.6 (#3765) 2022-10-27 07:59:25 +09:00
hanako mumei 3a87c8fc0a update solana to 1.14.4 2022-10-12 10:48:23 -07:00
Jon Cinque f97a3dc7cf
clippy: Deny integer arithmetic, add allows where needed (#3606) 2022-09-15 13:16:53 +02:00
Jon Cinque 8a3a6ebf60 Step 2: Add processor check to prevent a mint close authority 2022-09-07 01:56:17 +02:00
Jon Cinque 482656bb66 Step 1: Add a failing test with mint close authority 2022-09-07 01:56:17 +02:00
Jon Cinque bb468d2ce7 Step 2: Calculate the expected transfer fee 2022-09-07 01:56:17 +02:00
Jon Cinque 9abaf9c90d Step 1: Add a failing test using transfer fees 2022-09-07 01:56:17 +02:00
Jon Cinque 3419482741 Update fuzz and JS clients for new interface 2022-09-01 20:12:12 +02:00
Jon Cinque deeb02deff Step 3: Change `transfer` to `transfer_checked` 2022-09-01 20:12:12 +02:00
Jon Cinque 1d27ca5ced Step 2: Add mints to instructions that use `transfer` 2022-09-01 20:12:12 +02:00
Jon Cinque 1b6173cb4e Step 1: Add transfer fee extension to Token-2022 tests 2022-09-01 20:12:12 +02:00
Jon Cinque 07d14e948a
fuzz: Update honggfuzz and rust version required (#3563) 2022-09-01 19:36:47 +02:00
Jon Cinque 685e957ba9
token-swap: Remove stable swap (#3556) 2022-08-31 15:18:10 +02:00
Jon Cinque 180d80be7d
token-swap: Remove stable-swap simulation tests (#3555) 2022-08-31 14:34:25 +02:00
Jon Cinque b4edc074a3
token-swap-js: Bump version for new release (#3552) 2022-08-30 21:23:56 +02:00
hana 65769ce23d
Update rust to 1.60, solana to 1.11.6 (#3492)
also change bpf to sbf throughout the codebase

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-08-18 12:16:02 -07:00
Justin Malčić e8bafb4b3f
Handle invalid fee account in `token-swap` (#3484)
* Add pool fee account checking

* Add checks for closed account

* Fix clippy warning

* Fix clippy warnings (again)

* Remove assertions
2022-08-17 15:56:43 +02:00
Tyera Eulberg 3c54aecfe9
Bump solana to v1.10.35 (#3485) 2022-08-16 12:33:24 -06:00
Jon Cinque da27180b31 Fixup client bindings and otherwise 2022-08-15 23:53:26 +02:00
Jon Cinque 25556ce680 Step 4: Use appropriate token program 2022-08-15 23:53:26 +02:00
Jon Cinque e77efb3927 Step 3: Write tests using multiple token programs at once 2022-08-15 23:53:26 +02:00
Jon Cinque b13a7cab89 Step 2: Update instruction processors 2022-08-15 23:53:26 +02:00
Jon Cinque 16b441edb8 Step 1: Update all instruction interfaces 2022-08-15 23:53:26 +02:00
Jon Cinque fdf7786be0 Step 6: Use `StateWithExtensions` instead of `Mint` and `Account` 2022-08-05 20:42:41 +02:00
Jon Cinque b3c432a0f3 Step 5: Add extensions to tests 2022-08-05 20:42:41 +02:00
Jon Cinque 4b4214e1aa Step 4: Replace spl_token::id() with a parameter 2022-08-05 20:42:41 +02:00
Jon Cinque 3955c3f994 Step 3: Update instruction creators to use spl_token_2022 2022-08-05 20:42:41 +02:00
Jon Cinque a07ec0a615 Step 2: Update all tests to test cases for token and token-2022 2022-08-05 20:42:41 +02:00
Jon Cinque 5539bad023 Step 1: Update dependencies for tests 2022-08-05 20:42:41 +02:00
Tyera Eulberg 7c6235d9e7
Bump token to v3.5.0 and ata to v1.1.1 (#3430) 2022-08-04 01:09:38 -06:00
Jon Cinque f5ce86d43d
token/ata: Bump versions to 3.4.0 and 1.1.0, respectively (#3427) 2022-08-04 01:03:04 +02:00
Tyera Eulberg c00194d225
Bump solana crates to v1.10.33 (#3385) 2022-07-27 11:28:14 -06:00
Justin Malčić d4bd86e162
Improve token error messages in token-swap (#3357)
* Move PrintProgramError impls

* Add wrapper function

* Add PrintProgramError to use declaration
2022-07-26 13:59:37 +02:00
xweb3 fdc1df5e14
fix: change .mjs to .js (#3364) 2022-07-21 13:48:17 +02:00
Jon Cinque 042da2b687
token-swap: Allow for huge swaps that almost entirely drain one side (#3334) 2022-07-19 19:08:12 +02:00
Jon Cinque c1ee6a58be
Update Solana crates to 1.10.29 (#3303) 2022-07-01 16:51:01 -04:00
Jon Cinque 79d2c606b8
CI: Add `--max-warnings 0` to eslint to abort on errors (#3254)
* CI: Add `--max-warnings 0` to eslint to abort on errors

* Fix lint issue
2022-06-16 09:39:55 -04:00
Jon Cinque 5b1b87ed48
token-swap: Prepare v3.0.0 release for testnet and devnet (#3227) 2022-06-07 16:31:18 +02:00
Jon Cinque 93e2d1b7bf
token-swap-js: Bump package version for release (#3185) 2022-05-19 22:54:19 +02:00
Jon Cinque c4fdb29ff2
token-swap-js: Bump buffer-layout and web3.js (#3182) 2022-05-19 20:04:54 +02:00
Dmitri Makarov f1c1d440e9
Bump solana to v1.10.15 (#3176) 2022-05-17 11:27:30 -07:00
Tyera Eulberg b3fe5b6d5d
Bump token-2022 (#3113)
* Bump token-2022

* Bump solana dependencies
2022-04-26 12:15:26 -06:00
Anurag Gupta fe20132b07
Updated index.ts and tests (#3094) 2022-04-21 01:00:43 +02:00