Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gskril/farcaster-registration
Easily gift Farcaster accounts
https://github.com/gskril/farcaster-registration
farcaster
Last synced: 8 days ago
JSON representation
Easily gift Farcaster accounts
- Host: GitHub
- URL: https://github.com/gskril/farcaster-registration
- Owner: gskril
- Created: 2023-10-13T01:56:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-28T06:57:30.000Z (10 months ago)
- Last Synced: 2024-11-28T21:45:39.002Z (14 days ago)
- Topics: farcaster
- Language: TypeScript
- Homepage: https://gift.fcstr.xyz
- Size: 544 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-farcaster-dev - `farcaster-registration`
- awesome-farcaster-dev - `farcaster-registration`
README
# Gift a Farcaster Account
There are two relevant onchain components of a Farcaster account: FID (free) and storage ($7 in ETH). We want to provide an easy way for people to gift both of these to others.
The [IDRegistry](https://optimistic.etherscan.io/address/0x00000000fcaf86937e41ba038b4fa40baa4b780a) doesn't allow FIDs to be transferred freely - the sender is required to have the receivers signature. This app provides an easy way to faciliate that process.
Flow:
- Alice signs a message, effectively creating a request for someone to sponsor their registration fee
- This is stored in Vercel KV with Alice's address as the key and the stringified signature/deadline as the value
- Bob enters the URL `/sponsor/{address}` which pulls Alice's signature from KV storage and prepares a transaction on the [FcGifter.sol](./contracts/README.md) contract