Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Maddiaa0/huff-vrgda
Huff Implementation of VRGDAs
https://github.com/Maddiaa0/huff-vrgda
ethereum huff solidity
Last synced: 3 months ago
JSON representation
Huff Implementation of VRGDAs
- Host: GitHub
- URL: https://github.com/Maddiaa0/huff-vrgda
- Owner: Maddiaa0
- License: mit
- Created: 2022-08-25T19:26:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T16:50:56.000Z (about 2 years ago)
- Last Synced: 2024-05-18T18:02:54.752Z (6 months ago)
- Topics: ethereum, huff, solidity
- Language: Solidity
- Homepage:
- Size: 69.3 KB
- Stars: 41
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-huff - huff-vrgda
README
# huff-VRGDA • [![ci](https://github.com/huff-language/huff-project-template/actions/workflows/ci.yaml/badge.svg)](https://github.com/huff-language/huff-project-template/actions/workflows/ci.yaml) ![license](https://img.shields.io/github/license/huff-language/huff-project-template.svg) ![solidity](https://img.shields.io/badge/solidity-^0.8.15-lightgrey)
Note this codebase is experimental and is not ready to be used in production, it is meant as a learning resource.
Generated with:
Versatile Huff Project Template using Foundry.## Getting Started
### Requirements
The following will need to be installed in order to use this template. Please follow the links and instructions.
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- You'll know you've done it right if you can run `git --version`
- [Foundry / Foundryup](https://github.com/gakonst/foundry)
- This will install `forge`, `cast`, and `anvil`
- You can test you've installed them right by running `forge --version` and get an output like: `forge 0.2.0 (f016135 2022-07-04T00:15:02.930499Z)`
- To get the latest of each, just run `foundryup`
- [Huff Compiler](https://docs.huff.sh/get-started/installing/)
- You'll know you've done it right if you can run `huffc --version` and get an output like: `huffc 0.2.0`### Quickstart
1. Clone this repo or use template
Click "Use this template" on [GitHub](https://github.com/huff-language/huff-project-template) to create a new repository with this repo as the initial state.
Or run:
```
git clone https://github.com/huff-language/huff-project-template
cd huff-project-template
```2. 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:
```shell
forge install
```3. Build & Test
To build and test your contracts, you can run:
```shell
forge build
forge test
```For more information on how to use Foundry, check out the [Foundry Github Repository](https://github.com/foundry-rs/foundry/tree/master/forge) and the [foundry-huff library repository](https://github.com/huff-language/foundry-huff).
## Blueprint
```ml
lib
├─ forge-std — https://github.com/foundry-rs/forge-std
├─ foundry-huff — https://github.com/huff-language/foundry-huff
├─ solmate - https://github.com/transmissions11/solmate
src
├─ utils
| ├─ signedWadMath.huff - An extension of https://github.com/pentagonxyz/huffmate/blob/main/src/math/FixedPointMath.huff
| ├─ testHelpers.huff - A collection of helpers for writing huff tests
| ├─ testWadMath.t.huff - Huff tests for signedWadMath huff methods
| └─ returnUtils.huff - Utils for wrapper contracts
├─ wrappers
| ├─ LinearVRGDAWrapper.huff - A testing wrapper for linear VRGDAs
| └─ LogisticVRGDAWrapper.huff - A testing wrapper for linear VRGDAs
├─ LinearVRGDA.huff - A linear VRGDA implementation
├─ LogisticVRGDA.huff - A logistic VRGDA implementation
└─ VRGDA.huff - A VRGDA implementation```
## License
[The Unlicense](https://github.com/huff-language/huff-project-template/blob/master/LICENSE)
## Acknowledgements
- [forge-template](https://github.com/foundry-rs/forge-template)
- [femplate](https://github.com/abigger87/femplate)
- [huffmate](https://github.com/pentagonxyz/huffmate)
- [VRGDAs](https://github.com/transmissions11/VRGDAs)
- [huff-rs](https://github.com/huff-language/huff-rs)## Disclaimer
_These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk._