Commit Graph

16 Commits

Author SHA1 Message Date
Jack May a7b121074d Remove skip-no-mangle entirely 2020-10-07 09:13:59 -07:00
Jack May c574597d71 solana sdk does not need skip-no-mangle 2020-10-06 11:03:14 -07:00
Jon Cinque 2b07fc1064
token-swap: Assess swap fee on input token (#562)
* token-swap: Assess swap fee on input token

* Update token-swap/program/src/curve.rs

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* Update token-swap/program/src/curve.rs

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* Fix new var name everywhere

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-10-02 22:47:39 +02:00
Jack May 08fe8307f0
Bump solana-sdk to v1.3.12 (#484) 2020-09-21 08:38:29 -07:00
Jack May 80ea6ff536
Fix multisign check (#479) 2020-09-18 15:53:26 -07:00
Michael Vines b89b0c81d2 Nit: add current 2020-09-16 08:55:03 -07:00
dependabot[bot] 9d9545c98d
Bump solana-sdk from 1.3.9 to 1.3.11 (#454)
Bumps [solana-sdk](https://github.com/solana-labs/solana) from 1.3.9 to 1.3.11.
- [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.9...v1.3.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 09:22:53 +00:00
Jack May 157936c6c5
Remove pack's dependency on TokenError (#448)
* Remove pack's dependency on TokenError

* nudge
2020-09-16 00:59:37 +00:00
Tyera Eulberg e7a876f280
Remove Pack mutable unpack methods (#443)
* Remove Pack::unpack_mut

* Remove Pack::unpack_unchecked_mut
2020-09-14 15:08:14 -06:00
Tyera Eulberg 7515187d17
Allow source account to be its own owner in Approve, Approve2, and Revoke (#434)
* Add failing test

* No need to hold source RefMut in process_approve

* Add revoke cases

* No need to hold source RefMut in process_revoke
2020-09-11 20:53:23 -06:00
Tyera Eulberg 4c0e4606c2
Allow Account or Mint to be its own authority in SetAuthority (#435)
* Add failing test

* No need to hold account or mint RefMut in process_set_authority
2020-09-11 20:53:07 -06:00
Tyera Eulberg 288b438868
Allow destination or mint to be mint_authority in MintTo and MintTo2 (#436)
* Add failing test

* No need to hold dest or mint RefMut in process_mint_to
2020-09-11 20:52:53 -06:00
Tyera Eulberg 179be4a590
Allow source or mint to be account owner or delegate in Burn and Burn2 (#437)
* Add failing test

* No need to hold source or mint RefMut in process_burn
2020-09-11 20:52:39 -06:00
Tyera Eulberg 6c9e8ac1ce
Allow source to be owner/close_authority in CloseAccount (#438)
* Add failing tests

* No need to hold source RefMut in process_close_account and process_toggle_freeze_account
2020-09-11 20:52:09 -06:00
Tyera Eulberg 1fcc84beb3
Allow source account to be its own owner in Transfer and Transfer2 (#433)
* Add failing test

* Add Transfer2 to failing test

* Add source-delegate to failing test

* No need to hold source RefMut in process_transfer

* Fixup comments

* Add destination-owner test case

* Add source-multisig test case
2020-09-11 18:56:42 +00:00
Tyera Eulberg a8df113101
Add token/program2 for next changeset (#412)
* Add token/program2 for next changeset

* Use version number instead of index
2020-09-10 16:04:50 -06:00