huffmate icon indicating copy to clipboard operation
huffmate copied to clipboard

A library of modern, hyper-optimized, and extensible Huff contracts with extensive testing and documentation built by Huff maintainers.

Results 32 huffmate issues
Sort by recently updated
recently updated
newest added

## Overview Adds helper macros to `Errors.huff` for asserting equality / inequality of stack items, words in memory, and words in storage slots. Also merges `main` into `dev`

Fixes #37, by assuming that the fuzzed address `caller` is different than `0x00a329c0648769A73afAc7F9381E08FB43dBEA72` which is the default `tx.origin` of forge, instead of `address(this)`. Side note: All fuzzing tests has been...

https://github.com/pentagonxyz/huffmate/blob/6798bcc97026e69ff0c4bb3e0c914d2bbcb8ba7c/test/auth/OnlyContract.t.sol ```solidity /// @notice Tests that ONLY_CONTRACT macro reverts when tx.origin == msg.sender function testOnlyContract(address caller) public { vm.assume(caller != address(this)); // Should revert when tx.origin == msg.sender // vm.startPrank(address,address)...

# Overview A complete ERC1155 implementation. **Tasks:** Functions: - [x] mint - [x] batchMint - [x] safeTransferFrom - [x] safeBatchTransferFrom - [x] burn - [x] batchBurn - [x] setApprovalForAll -...

Trying to familiarize myself with the EVM, I may need some help though. The `fallback` function in `Dummy` contract is indeed called, but reverts for some reason and I don't...

## Overview Introduces an ERC20 equivalent to solmate's ERC20. TODO: - [ ] use new Error Utils lib - [ ] add require strings - [ ] refactor - [...

# Overview Merges the `dev` branch into `main`. ## PRs * #32 by @clabby * #33 by @clabby

## Overview Implement the `Bytes.huff` contract located in `src/data-structures/Bytes.huff`. The `Bytes.huff` contract should contain helpers for working with Bytes in Huff, similar to `Arrays.huff` in `src/data-structures/Arrays.huff`.

data-structures
V2