Jack May
05999a91ed
Update token docs ( #360 )
2020-08-29 00:16:55 +00:00
Michael Vines
0c8981731b
Bump version
2020-08-28 16:25:59 -07:00
Jack May
7b5eb2a2a5
Fix account size comparisons ( #359 )
2020-08-28 23:21:57 +00:00
Michael Vines
dc8dcc0222
Disable token-swap flow
2020-08-28 16:16:24 -07:00
Justin Starry
3691b14a01
Update token js bindings
2020-08-28 16:02:32 -07:00
Michael Vines
aa1489df2e
Disable C header generation in CI
2020-08-28 16:01:58 -07:00
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
Michael Vines
73e2455d60
Relocate test-client
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
142e8e2ea6
Temporarly disable C header checks
2020-08-28 00:47:35 +00: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
c63e1f0f97
Cargo.lock
2020-08-27 09:40:15 -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
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
Michael Vines
81d18e590d
InitializeMint's mint authority is no longer optional
2020-08-26 23:43:45 -07:00
Michael Vines
5fccbc5ac8
Disable token/js tests pending resolution of #332
2020-08-26 23:10:18 -07:00
Michael Vines
c671fdcd3a
Update token-swap for token2
2020-08-26 23:10:18 -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]
9b59d4e52e
Bump num-derive from 0.3.1 to 0.3.2 ( #321 )
...
Bumps [num-derive](https://github.com/rust-num/num-derive ) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/rust-num/num-derive/releases )
- [Changelog](https://github.com/rust-num/num-derive/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-derive/compare/num-derive-0.3.1...num-derive-0.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 08:37:14 +00: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]
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]
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