bit-magic-huff-speedrun
bit-magic-huff-speedrun copied to clipboard
Speedrun this in Huff https://saxenism.com/web3/solidity/language-tricks/bit-magic/intermediate/2022/09/06/Bit-Magic-Solidity.html
bit-magic-huff-speedrun
Speedrun of @saxenism's Solidity - Bit Magic using Huff.
Getting Started
Requirements
The following will need to be installed. Please follow the links and instructions.
- Foundry / Foundryup
- This will install
forge,cast, andanvil - You can test you've installed them right by running
forge --versionand get an output like:forge 0.2.0 (92f8951 2022-08-06T00:09:32.96582Z) - To get the latest of each, just run
foundryup
- This will install
- Huff Compiler
- You'll know you've done it right if you can run
huffc --versionand get an output like:huffc 0.3.0
- You'll know you've done it right if you can run
Quickstart
- Clone this repo or use template
git clone [email protected]:devtooligan/bit-magic-huff-speedrun.git
cd bit-magic-huff-speedrun
- Install dependencies
Once you've cloned and entered into your repository, you need to install the necessary dependencies. In order to do so, simply run:
forge install
- Build & Test
To build and test your contracts, you can run:
forge build
forge test
For more information on how to use Foundry, check out the Foundry Github Repository and the foundry-huff library repository.