Releases: cakevm/huff-neo
Releases · cakevm/huff-neo
v1.0.8
- Support built-in function calls in code table (
#define table) body.- Supported are
__BYTES,__FUNC_SIG, and__RIGHTPAD.
- Supported are
v1.0.7
- Add built-in macros for converting a string to bytes and push it to the stack.
__BYTES("hello")->PUSH5 0x68656c6c6f- This can also be used here:
__RIGHTPAD(__BYTES("hello")).
v1.0.6
- Allow to use
--debugfor reverting contracts. - Refactored parsing for ABI and build-in argument.
- This is the first step to push more steps into the lexing phase.
- Extend parsing to allow
__FUNC_SIGinside of__RIGHTPAD.- Example:
__RIGHTPAD(__FUNC_SIG('transfer(address,uint256)')).
- Example:
v1.0.5
- Use foundry's debugger for
--debugflag.
v1.0.4
- Rewrite the Huff test module to use
anvilandforgefeatures fromfoundryto fork the mainnet.- This is experimental, and there will be some breaking changes.
- Allow printing logs with
-vvvand call traces for tests with-vvvv. - Add
forgeEVM feature flags for testing.- Known issues: The CLI reports more features than are actually available.
- Breaking: Remove the Huff cheat code for logging.
- The
foundryconsole.logshould now be used.
- The
- Breaking: Remove logs from the test JSON output for now.
- Fix error reporting for invalid literals during lexing in the test command.
- Add
Cancunas an EVM version and make it the default. - Breaking: The
-fflag for formatting the output is now replaced with the fork URL. Please use--formatinstead. - Tokio is now used for the test runner to be able to use the db backend from
foundry.
v1.0.3
- Remove huff-examples submodule
- Fix invalid error mapping for import with unmatched jump labels
- Print unmatched jump labels
v1.0.2
- Use latest stable Rust version 1.84
- Report error for invalid hex literals
0x0x - Improve lexer performance by 1-2% by removing unnecessary cloning
- Allow to use same name for test and macro or fn
v1.0.1
- Validate that a constant hex literal is not longer than 32 bytes
- New flatten source algo to determine spans
- Fix all errors related to invalid source code mapping
- Limit label duplicate check to containing macro and file
v1.0.0
Changelog
- First stable release of
huff-neo - Compiler binary is now
hncinstead ofhuffc - Update all dependencies to the latest version
- Restructure to a modern crate structure
- Replace
etherswithalloy - Remove spinner animation #4
- Fix relative position error for #6
- Currently, this still fails for nested imports
- Replace
tiny-keccakwith the alloy version - Add error for duplicate labels in the same macro #7
- Fix recursive error for empty import e.g.
#include "" - Fix error for nested imports with reoccurring imports