https://github.com/clemlak/fe-hackathon
https://github.com/clemlak/fe-hackathon
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/clemlak/fe-hackathon
- Owner: clemlak
- Created: 2023-11-16T16:21:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-19T08:57:41.000Z (over 2 years ago)
- Last Synced: 2025-01-21T18:15:49.385Z (over 1 year ago)
- Language: Solidity
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Fecret Santa
A Secret Santa with a twist! Send a collectible to the last Santa and you'll be the next to receive a gift 🎅
## Overview
Fecret Santa is fun project made for the [Fe hackathon](https://taikai.network/felang/hackathons/ist2023), and obviously the smart-contract is written in [Fe](https://fe-lang.org)!
This version of Secret Santa is a bit different from the original one, here the concept is based on a chain (see what I did there?) of Santas, where anyone can join by sending a gift to the last Santa in the chain, and then they'll be the next to receive a gift!
Santas can gift each other ERC721 and ERC1155 tokens, however the collectibles must be whitelisted beforehand (to keep the Grinch from ruining the fun!).
## Instructions
This repository is a Fe project that comes with Foundry installed. This allowed me to create more complex tests (Fe tests are kind of limited at this time) and deploy ERC721 and ERC1155 mock contracts.
If you want to test or build the project, be sure to:
1. Install [Fe](https://fe-lang.org)
2. Install [Foundry](https://getfoundry.sh)
Once that's done, you can:
Run the Fe tests:
```shell
$ fe test
```
Or build the Fe project:
```shell
$ fe build
```
You can also run the Forge tests:
```shell
$ forge test
```
Have fun!