lighthouse
lighthouse copied to clipboard
Jacob/evaluate cleanup
PR
-
Clean up evaluate macros, reducing their complexity, move log logic into
AssertionResult
implementation. -
Improve program owner checks for token (duplicate checks) and mint assertions.
-
Create
checked_get_slice
util function and replace pleaces where there are checked slice gets. -
Cleanup
BubblegumTreeConfigAssertion
,MintAccountAssertion
,TokenAccountAssertion
by usingtry_from_slice
andtry_from_slice_pubkey
utility functions and makingunpack_coption_u64
andunpack_coption_pubkey
take offsets. -
Add CU ceiling asserts to simple tests to ensure code changes don't increase CU use.