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
Jon Cinque
c1ee6a58be
Update Solana crates to 1.10.29 ( #3303 )
2022-07-01 16:51:01 -04: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
Jon Cinque
c616db83c4
token-2022: Add compatibility test for instructions ( #3106 )
2022-04-22 23:55:18 +02:00
Jon Cinque
1d1c2b178b
Upgrade crates to 1.10.8 ( #3076 )
2022-04-11 22:25:27 +02:00
Tyera Eulberg
810c79ec32
token-2022: Allow anyone to burn/close an Account owned by the system program or the incinerator ( #2890 )
...
* Allow anyone to burn and close token Accounts owned by the system program and the incinerator
* Require rent from incinerator/system-owned token accounts be burnt when accounts closed
* Add support to OG program
2022-03-09 19:31:39 -07:00
Lijun Wang
76a92cda2d
Added checks if a token account is initialized when checking validity ( #2986 )
...
* Added checks if an account is initialized when checking validity
2022-03-09 16:53:48 -08:00
Tyera Eulberg
e17706c7be
Spell out destination ( #2977 )
2022-03-03 12:34:17 -07:00
Lijun Wang
bbbf250a67
Support unpacking token accounts fields partially ( #2970 )
...
* Support unpacking token accounts fields partially
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-03-02 11:34:55 -08:00
Tyera Eulberg
d505f2a739
Add comment ( #2954 )
2022-02-24 16:46:47 -07:00
Tyera Eulberg
f4c5fdcfcf
Bump solana to v1.9.9 ( #2902 )
2022-02-23 16:20:55 -07:00
Tyera Eulberg
3d92f8f4dc
Add token Amount/UiAmount conversion Instructions ( #2928 )
...
* Add Amount/UiAmount conversion Instructions to spl-token
* Use invalid-mint error in spl_token get_account_data_size
* Add Amount/UiAmount conversion Instructions to spl-token-2022
2022-02-17 16:25:57 -07:00
Tyera Eulberg
172e24e1f2
Initialize close_authority explicitly ( #2919 )
2022-02-15 17:27:28 -07:00
Jon Cinque
20864c0be7
token: Support both token programs in associated-token-account ( #2904 )
...
* token: Support both token programs in associated-token-account
* Rename spl-token -> spl-token-2022, spl-token-legacy -> spl-token
* Use spl-token by default
* Check mint in get_account_data_len
* Add checks for either token program
* Rebase fix
* Update version comments in tests
2022-02-15 14:20:14 +01:00
Tyera Eulberg
83c3ffad25
Bump solana crates to v1.9.5 ( #2780 )
...
* Bump solana crates to v1.9.5
* Update sol_set_return_data type signature and un-ignore test
2022-01-21 22:52:10 -07:00
Jon Cinque
81f50127f1
token: Bump version to 3.3.0 ( #2765 )
2022-01-21 01:47:02 +01:00
Jon Cinque
3eccf25ece
token: Zeroize data on account close ( #2763 )
2022-01-21 01:03:00 +01:00
Michał Piotrowski
fe7b848024
token tests p1 ( #2700 )
...
* token tests p1
* token tests - address review comments
* fix cs
2022-01-05 17:11:31 -05:00
Jon Cinque
6ee008d256
Update SDK to 1.9.2, fix warnings ( #2674 )
...
* Update SDK to 1.9.2, fix warnings
* Upgrade honggfuzz
* Use `get_latest_blockhash` correctly
2021-12-28 23:02:47 -05:00
Dmitri Makarov
28d0aa7759
Increase compute max units due to changes in handling of memory ops ( #2653 )
2021-12-20 15:29:36 -08:00
Michael Vines
1a0155e34b
Update to Rust 1.57.0
2021-12-09 23:56:47 -08:00
Victor Pontis
801b4e59f8
Update comment on state.rs regarding is_native
...
I was confused when reading this comment and had to read the code to realize that the comment isn't a typo.
(Btw, let me know if this kind of small changes are helpful or not 👍 .)
2021-11-28 20:39:45 -08:00
Jon Cinque
7764a9d5c7
token: Transition perf-monitor to solana-program-test ( #2586 )
...
* token: Transition perf-monitor to solana-program-test
* fmt
* Refactor for clarity
2021-11-16 23:15:45 +01:00
Michael Vines
9acb082dc3
Upgrade to Solana v1.8.1
2021-10-20 22:52:19 -07:00
Michael Vines
12732f8d5a
Upgrade to Solana 1.8.0
2021-10-12 09:40:06 -07:00
Michael Vines
4406265d4a
Upgrade to Solana 1.7.11
2021-08-30 12:41:08 -07:00
dependabot[bot]
6900c7815f
build(deps): bump num_enum from 0.5.3 to 0.5.4 ( #2293 )
...
Bumps [num_enum](https://github.com/illicitonion/num_enum ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/illicitonion/num_enum/releases )
- [Commits](https://github.com/illicitonion/num_enum/compare/0.5.3...0.5.4 )
---
updated-dependencies:
- dependency-name: num_enum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-17 11:15:31 +00:00
Michael Vines
5f4b735796
review feedback
2021-08-14 09:46:28 -07:00
Michael Vines
44ad2ff5b4
Add InitializeMint2/InitializeMultisig2/InitializeAccount3 instructions
2021-08-14 09:46:28 -07:00
dependabot[bot]
488af86a78
build(deps): bump num_enum from 0.5.2 to 0.5.3 ( #2207 )
...
Bumps [num_enum](https://github.com/illicitonion/num_enum ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/illicitonion/num_enum/releases )
- [Commits](https://github.com/illicitonion/num_enum/compare/0.5.2...0.5.3 )
---
updated-dependencies:
- dependency-name: num_enum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-03 11:16:44 +00:00
Tyera Eulberg
30fccebdc6
Bump solana crates ( #2139 )
2021-07-23 16:47:06 +00:00
dependabot[bot]
2556d163ae
build(deps): bump num_enum from 0.5.1 to 0.5.2 ( #2119 )
...
Bumps [num_enum](https://github.com/illicitonion/num_enum ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/illicitonion/num_enum/releases )
- [Commits](https://github.com/illicitonion/num_enum/compare/0.5.1...0.5.2 )
---
updated-dependencies:
- dependency-name: num_enum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-20 23:02:28 +00:00
Jon Cinque
ddc029e14d
token: Bump to 3.2.0 everywhere ( #2116 )
2021-07-20 23:40:32 +02:00
Jon Cinque
ea354ab358
token: Clear close authority for native accounts ( #2115 )
2021-07-20 19:51:46 +02:00
Tyera Eulberg
f247af1932
token: Bump C bindings ( #2109 )
...
* Update token C bindings
* Fix Readme typo
2021-07-19 23:57:26 +00:00
Jon Cinque
aef1e239b3
token: Add SyncNative instruction (program, CLI, JS) ( #2091 )
...
* Add SyncNative to program
* Add CLI support
* Add JS bindings
* Fix syncNative test to not run for existing token program
* Combine checks
2021-07-19 21:50:42 +02:00
Jon Cinque
86f9e395ea
token: Drop delegate on ownership transfer ( #2085 )
...
* token: Drop delegate on ownership transfer
* Unconditionalize the block
2021-07-15 11:56:15 +02:00
Tyera Eulberg
0acc8c8bad
Bump solana and borsh crates ( #2015 )
2021-07-02 16:53:41 +00:00
Jon Cinque
21f8af34e7
Update all solana dependencies to 1.7.3, fix issues ( #1958 )
...
* Update all dependencies to 1.7.3, fix issues
* Remove esm from mocha
* Fix missed token test
* Also update rust version
* token-swap: update tolerance on sim test
* Run `cargo clippy --fix` for needless_borrow errors
* Rerun cargo fmt
2021-06-25 00:39:08 +02:00
Tyera Eulberg
e28af24443
Bump solana version
2021-06-14 16:02:27 -06:00
Jonathan LEI
26560daae2
Fix #1739 : ThawAccount incorrectly logged as FreezeAccount in token program ( #1740 )
2021-05-18 18:32:12 +02:00
Michael Vines
b1629a18f6
Bump spl-token patch version
2021-05-17 20:26:25 -07:00
Elliott Benisty
58221fc9ae
Fix potential vulnerabilities in programs using spl-token CPIs by adding program id checks ( #1714 )
...
* Add spl-token program id check helper function. Add program id to instruction bindings.
* Run cargo fmt
* Fixup tests
* Skip ATA tests when custom token program-id
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-05-12 22:36:41 +00:00
Trent Nelson
1f36ca301b
Bump solana crates to v1.6.7
2021-05-05 04:39:49 +00:00
Michael Vines
1e47030549
Update SPL to Solana v1.6.6
2021-04-23 13:39:51 -07:00
Michael Vines
448be67cfa
Update to Solana 1.6.2
2021-03-30 09:38:04 -07:00
Michael Vines
662f38f939
Bump Solana version to 1.6.1
2021-03-18 04:07:16 +00:00
Michael Vines
58807c5f8b
Back out clippy::manual_map for now
2021-03-16 22:22:59 -07:00
Michael Vines
af5fdb3146
Bump Rust version to 1.50.0
2021-03-16 22:22:59 -07:00