Skip to content

thomasWos/ethmelbourne-huff-hack-night

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethmelbourne Huff Hack Night

Hack Night Ethereum Melbourne with Huff!

Steps

  1. Install Forge
curl -L https://foundry.paradigm.xyz | bash
foundryup
  1. Install Huff
curl -L get.huff.sh | bash
huffup
  1. Run the tests (need FFI support to work in Huff)
forge test --ffi

Special bounty prize

Add in support to store arrays and mappings into SimpleStorage.huff to win a 0.05 ETH bounty! (Limited to 1 person)

interface ISimpleStorage {
    function setString(string memory) external;
    function getString(string memory) external;

    function setArray(uint256[] memory) external;
    function getArray() external returns (uint256[] memory);

    function setMap(bytes32 key, bytes32 value) external;
    function getMap(bytes32 key) external returns (bytes32);
}

Notes

Test the runtime bytecode in evm.codes

To get the runtime bytecode:

huffc src/myHuffCode.huff -b

About

Hack Night Ethereum Melbourne with Huff!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%