project screenshot 1
project screenshot 2
project screenshot 3

UniKits

UniKits are a series of hooks and tools to enhance the functionality of UniSwap v4 Hooks. It's aimed to empower Uniswap-v4 Hooks with Auth to Swap Hooks and Swap to Share Hooks. A subgraph is also built to index on-chain data to form business logic data.

UniKits

Created At

ETHGlobal New York

Winner of

🆕 The Graph — 🥈 Best New Subgraph/Substream

🏊‍♂️ Arbitrum — Pool Prize

Project Description

UniKits are a series of hooks and tools to enhance the functionality of UniSwap v4 Hooks. It's aimed to empower Uniswap-v4 Hooks with Auth to Swap Hooks and Swap to Share Hooks.

In UniKits, We have delivered:

  • A UniSwap v4 Hooks Scaffold
  • The first subgraph to index Uniswap v4 data (Graph Protocol)
  • Auth to Swap Hooks: Connecting to Identity Provider(ENS, Lens Profiles, Worldcoin)
  • Swap to Share Hooks: Connecting LensProfile to auto post

The Unikits Dashboard currently provides social and technical analytics via Airstack. One hook in testing is our Swap To Share Hook, which when a swap is completed, the trade details are shared and automatically sent to Lens. Then on our dashboard via Airstack, the user can see their most recent follower. The user can also see the swap after it has happen on the dashboard, including token, size, type, supply and chain. For influencers or for people who like sharing and recording trades, this is a great way to track and record this information.

While not currently deployed on our front end, Unikits have built a subgraph for Uniswap V4, tested using anvil and on a local Arbitrum testnet. Currently there are 6 entities for global statistics of Uniswap contract, logging of each transaction, and candlestick form data for analysis. In the future, this can be integrated into our application to provide the technical data that most traders are looking for.

How it's Made

This project was split into 4 separate repositories in order to compartmentalize workflows to achieve a result. These repos can be found under our organization page and are named:

uniswap-v4-unikits-hooks: including Auth to Swap and Swap to Share hooks. Lens Protocol integrated; uniswap-v4-subgraph: Subgraph for Uniswap V4; uniswap-v4-hooks-tester: A UniSwap v4 Hooks Scaffold devkits-frontend: a front end with Airstack data flow support and web3modal integrated

The other repos have been used for testing while in the hackathon. Details for each repo can be found in the README for each individually.

Web3 Technologies used included: Uniswap V4, Walletconnect, Airstack, The Graph, Lens Protocol, ENS and Arbitrum.

All partner technologies were of great use to our project, and couldn't have been completed without them.

For the frontend team, the most hacky thing we did was use a Airstack GraphQL query to retrieve ENS and Lens ID information once the user had signed into Walletconnect. Using WAGMI, we could retrieve the address, parse it into the GraphQL query and then send a request via the Airstack API to return that information. From this we could determine if the user could authenticate.

background image mobile

Join the mailing list

Get the latest news and updates