Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byterocket/TSOwnable-Huff
A Two-Step Transfer Ownable contract implemented in Huff.
https://github.com/byterocket/TSOwnable-Huff
Last synced: about 2 months ago
JSON representation
A Two-Step Transfer Ownable contract implemented in Huff.
- Host: GitHub
- URL: https://github.com/byterocket/TSOwnable-Huff
- Owner: byterocket
- License: gpl-3.0
- Created: 2022-06-08T08:42:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T08:28:52.000Z (over 2 years ago)
- Last Synced: 2024-05-18T18:02:49.432Z (8 months ago)
- Language: Solidity
- Homepage:
- Size: 20.5 KB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-huff - TSOwnable-huff - Step Transfer Pattern written by [@merkleplant_eth](https://twitter.com/merkleplant_eth). (Huff projects you can learn from and contribute to)
README
TSOwnable in Huff`TSOwnable` is a Two-Step Transfer Ownable contract implemented in [Huff](https://github.com/huff-language),
a low-level EVM programming language.For more information about how to enter the Huff ecosystem, read our accompanying
[article](https://merkleplant.xyz/posts/entering-the-huff-ecosystem).## Installation
1. Install Huff's [huff-rs](https://github.com/huff-language/huff-rs) compiler and the [foundry](https://github.com/foundry-rs/foundry) toolchain
2. Clone and `cd` into the repository
3. Run `forge install`## Compilation
This project uses Huff's [HuffDeployer](https://github.com/huff-language/foundry-huff) library to
easily compile and test Huff contracts.## Tests
Run tests with `forge test --ffi`.
> **Warning**
>
> The `HuffDeployer` library uses Huff's `huff-rs` compiler to compile and deploy Huff contracts.
>
> In order to call the `huff-rs` compiler, foundry's FFI cheatcode needs to be activated.
>
> **ONLY USE THE FFI FLAG IF YOU ARE CERTAIN THAT THE CODE IS NOT MALICIOUS!**## Disclaimer
This is experimental software and is provided on an "as is" and "as available"
basis.We do not give any warranties and will not be liable for any loss incurred
through any use of this codebase.