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
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
18a380cb50
Update token.h
2020-08-28 00:47:35 +00:00
Michael Vines
12f941d7fc
Adjust native mint
2020-08-28 00:47:35 +00:00
Michael Vines
b60eb8fbee
Add Transfer2/Approve2/MintTo2/Burn2 instructions for improved hardware wallet support
2020-08-28 00:47:35 +00:00
Tyera Eulberg
2e6162abbd
C headers doc
2020-08-27 16:17:38 -07:00
Tyera Eulberg
b2b20444e5
Require valid Mint for InitializeAccount
2020-08-27 16:17:38 -07:00
Tyera Eulberg
0b71752d45
Use checked math everywhere ( #346 )
2020-08-27 14:31:59 -06:00
Tyera Eulberg
49e6e4a589
Reinstate Mint supply ( #342 )
...
* Reinstate Mint supply, and adjust with Minto & Burn
* C headers
* Patch token-cli
* Patch token-swap
2020-08-27 13:06:23 -06:00
Tyera Eulberg
fec5717d2a
More C headers
2020-08-27 09:40:31 -07:00
Tyera Eulberg
8d0ba35407
Combine Account is_native and rent_exempt_reserve fields; wrapped SOL amount reflects only amoutn over rent_exempt_reserve
2020-08-27 09:40:31 -07:00
Tyera Eulberg
181cdfa170
C headers
2020-08-27 09:40:31 -07:00
Tyera Eulberg
2e5056f70d
Add Account.rent_exempt_reserve
2020-08-27 09:40:31 -07:00
Tyera Eulberg
a5c1bb470d
Pass rent_sysvar into init Instructions and check rent-exempt
2020-08-27 09:40:31 -07:00
Michael Vines
b58677f554
Bump some crate versions
2020-08-27 09:39:35 -07:00
dependabot[bot]
4893198a68
Bump solana-account-decoder from 1.3.2 to 1.3.4
...
Bumps [solana-account-decoder](https://github.com/solana-labs/solana ) from 1.3.2 to 1.3.4.
- [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.2...v1.3.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-08-27 09:38:45 -07:00
Michael Vines
81d18e590d
InitializeMint's mint authority is no longer optional
2020-08-26 23:43:45 -07:00
Michael Vines
b62c2721fa
Update token.h
2020-08-26 23:10:18 -07:00
Michael Vines
68db5f77a0
Port cli to token2
2020-08-26 23:10:18 -07:00
Michael Vines
2815165c14
Relocate program2 into program
2020-08-26 23:10:18 -07:00
Michael Vines
20b6ee04a3
Remove token 1.0
2020-08-26 23:10:18 -07:00
Tyera Eulberg
ea52428475
token: Simplify initialize_mint ( #327 )
...
* Simplify initialize_mint
* C headers
2020-08-27 00:27:44 +00:00
dependabot[bot]
025a605a59
Bump @babel/core from 7.11.1 to 7.11.4 in /token/js ( #317 )
...
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-26 08:33:10 +00:00
dependabot[bot]
b0cebcf4bb
Bump solana-clap-utils from 1.3.2 to 1.3.4 ( #318 )
...
Bumps [solana-clap-utils](https://github.com/solana-labs/solana ) from 1.3.2 to 1.3.4.
- [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.2...v1.3.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 08:33:05 +00:00
Tyera Eulberg
e91725a8b3
token: Add close_authority and re-enable CloseAccount for non-native Accounts ( #314 )
...
* Add close_authority and re-enable CloseAccount for non-native Accounts
* C headers
2020-08-25 21:36:35 -06:00
Tyera Eulberg
c00adbe3a7
Add capability to freeze token Accounts ( #297 )
...
* Add freeze elements to state structs
* Add can_freeze paramter to InitializeMint instruction, and plumb
* Add fixed_supply parameter to InitializeMint
* Convert to SetAuthority instruction
* Add frozen restrictions
* Add FreezeAccount instruction
* Make FreezeAccount into toggle
* Add parameter to make freezing explicit
* Pass mint owner, freeze_authority as parameters
* Rename ToggleFreeze
* Make AuthorityType more explicit
* Rename mint owner => mint_authority
* Add Account::is_frozen method
* C header updates
* s/is_initialized/state for Account
* Minting nit
* Add helpers to clean up AuthorityType packing
* Split FreezeAccount into 2 instructions
* Pass new_authority as parameter not account
* More C header updates
* Use new COption helpers
* Use boolean for toggle fn
2020-08-25 14:24:11 -06:00
dependabot[bot]
40b43f3ebe
Bump solana-cli-config from 1.3.2 to 1.3.4 ( #292 )
...
Bumps [solana-cli-config](https://github.com/solana-labs/solana ) from 1.3.2 to 1.3.4.
- [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.2...v1.3.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 16:37:47 +00:00
dependabot[bot]
9776d42329
Bump eslint from 7.6.0 to 7.7.0 in /token/js
...
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>
2020-08-25 09:05:55 -07:00
dependabot[bot]
036cca36b6
Bump solana-sdk from 1.3.2 to 1.3.4
...
Bumps [solana-sdk](https://github.com/solana-labs/solana ) from 1.3.2 to 1.3.4.
- [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.2...v1.3.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-08-25 09:05:29 -07:00
Jack May
9df7b22087
Fix overflow when amounts are u64::MAX ( #310 )
2020-08-25 08:48:26 -07:00
Tyera Eulberg
27d1e52a60
Add COption helpers ( #311 )
...
* Add COption conversion methods
* Add COption pack/unpack
2020-08-25 09:31:01 -06:00
dependabot[bot]
428d5dcf11
Bump bn.js from 5.1.2 to 5.1.3 in /token/js ( #312 )
...
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 08:31:29 +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]
b1bd204fbe
Bump rollup from 2.25.0 to 2.26.5 in /token/js ( #304 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.25.0 to 2.26.5.
- [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.25.0...v2.26.5 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-24 08:31:53 +00:00
Michael Vines
62cb0e2dd9
Remove duplicate
2020-08-20 17:47:49 -07:00
Michael Vines
c64f29e0d8
Update version
2020-08-20 13:41:27 -07:00
Michael Vines
b619da32ae
Bump version to 1.0.8
2020-08-14 18:08:46 -07:00
Michael Vines
db6f414589
Back out 'Add support for self transfers ( #210 )'
2020-08-14 22:50:18 +00:00
Michael Vines
e440466311
Add token program2
2020-08-14 22:50:18 +00:00
dependabot[bot]
c12b04aaaa
Bump @solana/web3.js from 0.68.0 to 0.71.1 in /token/js ( #279 )
...
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:33 +00:00
Michael Vines
480c88ceaf
Exclude DECIMALS
2020-08-14 17:57:46 +00:00