Commit Graph

35 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 e78e26597e Rename x2 instructions to xChecked 2020-09-22 02:51:27 -07:00
Tyera Eulberg 90b5ce6d65
Standardize failure case ordering (#509)
* Standardize processor failure-case ordering

* Fix token-swap test
2020-09-21 20:28:24 -06:00
Jack May 15aa02760a retain v2 error values 2020-09-21 17:08:37 -07:00
Jack May 08841b801e cargo fmt 2020-09-21 17:08:37 -07:00
Jack May aaa5adb0a6 backport #484 to v2 2020-09-21 17:08:37 -07:00
Jack May f68ff75ba0 backport #479 to v2 2020-09-21 17:08:37 -07:00
Jack May 51dc1ae267 backport #448 to v2 2020-09-21 17:08:37 -07:00
Jack May 4f5e70684a backport #443 to v2 2020-09-21 17:08:37 -07:00
Jack May 6f887baaed backport #434 to v2 2020-09-21 17:08:37 -07:00
Jack May 45cebaf754 backport #435 to v2 2020-09-21 17:08:37 -07:00
Jack May 2b1b9de4e7 backport #436 to v2 2020-09-21 17:08:37 -07:00
Jack May 308e027f49 backport #437 to v2 2020-09-21 17:08:37 -07:00
Jack May 36ec1b2689 backport #438 to v2 2020-09-21 17:08:37 -07:00
Jack May 449d74ba90 backport #433 to v2 2020-09-21 17:08:37 -07:00
Jack May 80ea6ff536
Fix multisign check (#479) 2020-09-18 15:53:26 -07:00
Jack May 7b5eb2a2a5
Fix account size comparisons (#359) 2020-08-28 23:21:57 +00:00
Jack May 815cca3cb8
Don't repack if not needed (#355) 2020-08-28 12:03:10 -07:00
Tyera Eulberg b4a3674437
s/AccountHolder/AccountOwner (#356) 2020-08-28 12:11:57 -06: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
Michael Vines b60eb8fbee Add Transfer2/Approve2/MintTo2/Burn2 instructions for improved hardware wallet support 2020-08-28 00:47:35 +00: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 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 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 81d18e590d InitializeMint's mint authority is no longer optional 2020-08-26 23:43:45 -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
Jack May 9df7b22087
Fix overflow when amounts are u64::MAX (#310) 2020-08-25 08:48:26 -07:00
Michael Vines db6f414589 Back out 'Add support for self transfers (#210)' 2020-08-14 22:50:18 +00:00
Michael Vines 26ab9bb26a Reorganize crates based on program 2020-08-08 15:25:47 -07:00