Inspiration
A community member of my DAO is getting married this month, so we decided to contribute towards a wedding present. Generally in fiat, one person would act as the liaison to collect funds, and then manage the distribution. Since we're all crypto-native, we didnt want to send gift (NFTs/funds) individually to their wallet address, on different chains. So we needed something that would act as the liaison, manage the funds in one place and handle the transfer. Hence, Wrappd.
What it does
Wrappd uses the NFT Tokenbound account standard ERC-6551 to generate a gift card NFT. We use Dall-E to generate the card image and with the tokenbound address, anyone can send funds to that account. The funds can be sent from any chain since we bridge them over to one chain for the receiver to use them all in one place.
How we built it
We used the term Wrapp for the gift bundle which is essentially an NFT with a tokenbound account (ERC-6551). Users can send funds to this account on any chain, the Chainlink CCIP bridges the funds. For demo purposes we show the bridging from Avalanche Fuji to Sepolia. Then we use a Chainlink keeper to trigger the transfer of the Wrapp to the recipient's wallet as per the user's setting.
Challenges we ran into
We wanted to register an ENS for the tokenbound account but it is currently not supported. Also, we wanted to generate dynamic images using Dall-e at the moment of the transfer by calling it inside a Chainlink function but it was not possible at the time due to user secret.
Accomplishments that we're proud of
We like our idea of the project and see that as we solve more technical difficulties, it might fit someone's use case.
What we learned.
Chainlink SDKs are quite robust, we've used them in the past at EthPorto, EthGlobal Lisbon and Paris. This was the first time trying Chainlink functions though and can see many use cases for them.
ERC-6551 is still in development, smart accounts dont play well with XMTP and ENS, both of which we wanted to integrate with.
What's next for Wrappd
We've applied for Buildspace Season 5 with Wrappd and will continue polishing and eventually turning it into a product that we can market. We are also thinking of adding products that can be purchased with the funds in the Wrapp, for example Sports collectables from Chiliz (add some commerce experience on top).
Built With
- ethers
- hardhat
- solidity
Log in or sign up for Devpost to join the conversation.