Inspiration

You have probably already seen them on bridges all over the world, padlocks which significant others lock to a bridge to seal their love. The history of these love locks dates back over 100 years to Serbia but has quickly spread worldwide.

These little locks are a beautiful romantic gesture and the perfect gift for your anniversary, wedding or valentines day.

But they also have their caveats. There was the story of the famous Pont des Arts bridge in Paris which collapsed under the weight of 45 tons of love locks and some municipal authorities treat them as vandalism and remove them.

So the basic idea of this little website is to put that romantic love lock gesture on the blockchain which makes it really immutable, undestroyable and forever.

No waste, no pollution of the environment and no way to remove it. A bit nerdy but certainly a very special gift for your loved ones.

What it does

You can create your own customizable unique Love Lock on the Polygon Testnet Blockchain. The locks will be stored as SVG ERC721 NFTs.

Additionally we have a build in raffle for all the lock holders, and once a month a Chainlink automation will pick a random lock as a winner, who then can claim the price money generated by the lock fees.

How we built it

  • Visual Studio Code
  • Github
  • Solidity backend and React frontend
  • Python for testing and deployment (eth-brownie)
  • Polygon Testnet Mumbai

Challenges we ran into

  • It is a very steep learning curve for beginners because there are countless new technologies behind every corner.
  • Make everything as gas efficient and compact as possible
  • generate SVG on chain with unvalidated user input in a secure manner - we build a XSS filter here
  • testing everything
  • first time working together - coordination
  • making a 5 minute video with camera enabled

Accomplishments that we're proud of

Starting with zero knowledge before, we made a fully decentralised hosted Web3 dApp within that given timeframe which is useable. We got some good feedback for that idea and it will hopefully help to spread some love :)

We're very proud that we can give back to our local community here in Cyprus with sharing our development journey at a local conference.

Even doing the unit tests ;)

Even our non tech friends got that idea and liked it :D

What we learned

  • How to get offchain data on chain with Chainlink oracles like the USD price for the lock fee
  • How to get random numbers in a secure way and test it with mocks
  • How to automate processes on chain with Chainlink
  • How to build an ERC721 Token contract and all the openzeppelin libraries
  • A lot of details about the SVG format and how to create one within the smart contract
  • eth-brownie, ganache and how to set up a local testing environment and write unit tests
  • wagmi, Rainbow kit
  • How to host a fully decentralised App and connect that with a domain
  • What is IPFS and Filecoin and how to use it, we even set up our own nodes and tried various things here
  • How to work with Polygon Testnet / how fast and amazing Polygon is

What's next for Love Lock CC

  • offering more different lock designs and backgrounds
  • building a visual "metaverse" representation of a love lock bridge, maybe inspired by real bridges all over the world
  • improve the user interface
  • make the generated NFT more accesible by displaying it in various places
  • mainnet launch on Polygon including the raffle going live

Built With

Share this project:

Updates