From e54da5d406215c5952d7a50cc14679e55adb285c Mon Sep 17 00:00:00 2001 From: Abdulla Al-Kamil Date: Fri, 6 Sep 2024 21:15:13 +0100 Subject: [PATCH] feat: add readme --- README.md | 67 +++++++++++++++++-------------------------------------- 1 file changed, 21 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 17ed35a..4395e2e 100644 --- a/README.md +++ b/README.md @@ -1,57 +1,32 @@ -

- - - OnchainKit logo vibes - -

+# Tickit -# Onchain App Template +# Frontend -An Onchain App Template build with [OnchainKit](https://onchainkit.xyz), and ready to be deployed to Vercel. +Built with onchain kit +Points to base sepolia where contracts are deployed. +Can be run with `bun run dev` -Play with it live on https://onchain-app-template.vercel.app +## Smart Contract -Have fun! ⛵️ +Can run tests with `forge test` -
+Sample script simulating 1M ticket requests can be run with +`forge script RunBigEvent --block-gas-limit 60000000000` -## Setup +## Interactions -To ensure all components work seamlessly, set the following environment variables in your `.env` file using `.local.env.example` as a reference. +Event Promoters can register their events on the `EventRegistry` contract. +Users are able to request tickets for events. +Each event has a ticketing window where tickets can be purchased. +Users are also able to pre-request tickets before the ticketing window opens. +If an event is oversubscribed in the pre-request window, then the tickets will be randomly allocated to users. +When users register, they can provide a list of friends. The smart contracts will ensure that all the friends will receive tickets if the original user receives a ticket. +Tickets are issued as unique NFTs, with the capability to show further on-chain data. -You can find the API key on the [Coinbase Developer Portal's OnchainKit page](https://portal.cdp.coinbase.com/products/onchainkit). If you don't have an account, you will need to create one. +## Notes -You can find your Wallet Connector project ID at [Wallet Connect](https://cloud.walletconnect.com). +Tickets are allocated via PRNG - it is possible that more tickets are allocated than intended. -```sh -# See https://portal.cdp.coinbase.com/products/onchainkit -NEXT_PUBLIC_CDP_API_KEY="GET_FROM_COINBASE_DEVELOPER_PLATFORM" +### Known issues -# See https://cloud.walletconnect.com -NEXT_PUBLIC_WC_PROJECT_ID="GET_FROM_WALLET_CONNECT" -``` -
- -## Locally run - -```sh -# Install bun in case you don't have it -bun curl -fsSL | bash - -# Install packages -bun i - -# Run Next app -bun run dev -``` -
- -## Resources - -- [OnchainKit documentation](https://onchainkit.xyz) - -
- -## License - -This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details \ No newline at end of file +- Ticket allocation can be sybil attacked.