Commit Graph

14 Commits

Author SHA1 Message Date
Michael Vines 9f4e6d8beb Update to solana v1.4.4 2020-11-01 20:48:15 -08:00
Michael Vines 80e29ef6b9 Port SPL to solana-program and `cargo build-bpf` 2020-10-24 19:21:38 -07:00
Michael Vines 38c2f22734 Add additional transfer test coverage 2020-10-20 08:25:36 +00: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
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