Coder Social home page Coder Social logo

neolastics's Introduction

Neolastics

Liquid on-chain generative neoplastic art. Generative NFTs backed by a bonding curve economy.

https://neolastics.com.

Technicals

  • This repo is forked from https://github.com/austintgriffith/scaffold-eth & extensively modified.
  • hardhat + waffle + openzeppelin for testing + smart contract development.
  • ethers.js.
  • Custom deploy function.
  • Uses modified ERC721.
  • The Graph for reading chain state.
  • Blocknative for monitoring transactions.
  • web3modal for connecting to wallets.
  • The metadata API is hosted separately through Netlify Functions.

Development & Testing

Running Locally:

1. Start Node + Deploy Contracts

yarn install
yarn run node
It will use the default mnemonic in ./scripts/wallet-utils.js and start a local EVM.
If you need a custom mnemonic, just:
export MNEMONIC="<insert_your_own_mnemonic_here>
yarn run deploy_contracts_local
Save the curve address manually and copy-paste it to curveAddress in react-app/src/App.js.
yarn run publish_contracts
This copies the build files to the react-app.

2. Start a local Graph Node.

Follow these instructions to start a local Graph Node. Note: It's not necessary to the ganache steps as hardhat is the chosen EVM. Only, the parts about the Graph Node.
docker-compose up
When you cycle it (in between running the EVM or not), you might have to delete the data. NOT necessary for initial setup.
rm -rf data

3. Clone and Deploy Neolastics Subgraph

In a new folder, git clone neolastics-subgraph.
yarn run install
If the address differs, you must copy it from hardhat and put into the
yarn run codegen
yarn run create-local
yarn run deploy-local

4. Start Server

Back in this repo:
yarn run start

License

Code License: MIT

neolastics's People

Contributors

simondlr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

neolastics's Issues

Custom Search Engine

OpenSea is a great gallery, but would be interesting to have a custom search engine:

-> eg, "give me a piece with 1 green tile"
"show me all pieces with 4 red tiles"
etc

Fix mainnet reloading.

The Graph queries is supposed to reload after a transaction succeeds. It works on localhost/dev, but not mainnet for some reason due to the Notify/transactor.js library. Hard to test and it must be deployed on Rinkeby/Ropsten to properly test this (since hardhat/evm doesn't work the same with notify.js).

Not urgent, but will improve UX.

Graveyard?

It's possible to create a graveyard of burned pieces. Not sure if it will be useful to view this? Don't know.

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.