Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
final tidying and readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Oct 2, 2023
1 parent c7d861c commit 0d3e2a0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 583 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,24 @@ Returns the string `"FFD1"`.
## Testing
Simply do:
You can use the following commands for testing.
```sh
forge test
# run all tests
forge test -vvv
# run a specific test
forge test -vvv --mc PolynomialTest
forge test -vvv --mc Huffd1Test
```
It shall test both the polynomial utilities and the `huffd1` contract.
I use `-vvv` to see reverts in detail.
## Remarks
- This project was done for the [Huff hackathon](https://huff.sh/hackathon)!
## Further Works
- This is a very inefficient contract both in contract size and gas usage, and was done mostly for the nerd-snipability factors of using polynomials instead of mappings.
- We can implement approvals with another polynomial too, but time did not permit. Also, there are many optimizations to do in many different places within the code.
Expand Down
2 changes: 2 additions & 0 deletions src/Huffd1.huff
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/// @title Huffd1
/// @notice SPDX-License-Identifier: MIT
/// @author erhant <https://github.com/erhant>
/// @notice An NFT where instead of mappings we use polynomials
/// over a finite field with a large prime order.

///////////////////////////////////////////////////////////////////////////////
//// INCLUDES ////
Expand Down
Loading

0 comments on commit 0d3e2a0

Please sign in to comment.