GithubHelp home page GithubHelp logo

crjameson / lovelockcc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.91 MB

This project shows how to build a dApp to generate custom on chain SVG NFTs on Polygon. It was a contribution to the Chainlink Hackathon 2022.

Home Page: https://lovelock.cc/

License: MIT License

Solidity 23.88% Python 20.20% HTML 1.00% JavaScript 49.84% SCSS 5.08%
cryptocurrency hackathon-project nft polygon python

lovelockcc's Introduction

lovelockcc

The Idea

Video demonstration: https://www.youtube.com/watch?v=j7Wts1P6F1g Testnet/Live site: https://lovelock.cc

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.

hint!!!!: this is actually a serious commitment! you life on the blockchain forever! no divorce possible :D

biiig thanks to https://www.oniichain.com/ ... amazing on chain nft art, and good inspiration :o

all brownie and nft basics from here https://www.youtube.com/watch?v=M576WGiDBdQ , best video ever


Backend

For the local Backend: Install and setup ganache-cli (nvm version 16.15.1)

Setup a python3 virtual environment:

python3 -m venv llvenv source llvenv/bin/activte pip install -r requirements.txt

For the local unit tests written in python / eth-brownie running with ganache-cli:

brownie test -k test_lockSVG4 -s

Local tests with mainnet fork: brownie test tests/test_ll.py::test_get_lock_fee -o log_cli=true --log-cli-level=DEBUG --network polygon-main-fork

To deploy on polygon testnet Mumbai: Hint: Make sure to have the polygon addon enabled in Infura! (needs CC)

Create and configure an account either in the .env file or in brownie:

brownie accounts generate deployment_account brownie accounts list

brownie run scripts/deploy.py --network polygon-test

Get the latest deployed contract in Brownie console:

brownie console --network polygon-test Brownie v1.19.2 - Python development framework for Ethereum

LovelockccProject is the active project. Brownie environment is ready.

Contract("0xeb3039Ac7dD83Bc6cf0e6b4EaCb4752AfE433993")

Frontend

Frontend runs on React:

nvm install nvm start

Testnet

lovelockcc's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.