Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/h00p30/8bitArray
8bitArray is an implementation of an array in huff.
https://github.com/h00p30/8bitArray
Last synced: about 2 months ago
JSON representation
8bitArray is an implementation of an array in huff.
- Host: GitHub
- URL: https://github.com/h00p30/8bitArray
- Owner: h00p30
- Created: 2022-06-07T14:39:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T15:34:32.000Z (over 2 years ago)
- Last Synced: 2024-08-03T16:09:22.556Z (5 months ago)
- Language: Solidity
- Size: 4.88 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-huff - 8-bit-array - bit values in a single storage slot. (Huff projects you can learn from and contribute to)
README
# 8bitArray
8bitArray is an implementation of an array in huff, it can store up to 32 8-bit values in a single storage slot. 8bitArray does all the bitwise operations so you don't have to.**DISCLAMER: contracts are not audited nor optimized**
## Prerequisities
Make sure you have the following programs installed:
- [huffc](https://github.com/huff-language/huffc)
- [foundry](https://github.com/foundry-rs/foundry)## Tests
To run tests:
```shell
forge install
```
```shell
forge test
```
NB: foundry template is from this [article](https://medium.com/@jtriley15/huff-vs-yul-for-evm-smart-contracts-620d1d618197).## Bytecode
You can generate the bytecode for the testing interface yourself with this:
```shell
huffc src/8bitArray_testingInterface.huff --bytecode
```