Skip to content

simondlr/Hope-Runners-of-Gridlock-Excerpts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hope Runners of Gridlock Excerpts

About

Excerpts of Gridlock is a digital art project that allows readers to own excertps from the novel, Hope Runners of Gridlock.

Tech

Uses ERC721. Using hardhat and openzeppelin for smart contracts development. Fairly standard deployment.

Development & Testing

Running Locally:

In root folder:

  • Install modules:
    yarn install

  • If you have a separate mnemonic, add to it to env.
    export MNEMONIC="<insert_your_own_mnemonic_here>
    yarn run node

  • In a separate window, init openzeppelin & deploy contracts. Initialization is simple. Choose a name + project version.
    yarn run init_contracts

  • Add contracts to the OpenZeppelin configuration. This is necessary to get a proper networks object in the build file (due to a temp bug).
    yarn run add_contracts yarn run deploy_contracts

  • Deploy ERC721. It will mint 15 excerpts. yarn run publish_contracts

  • Run the server.
    yarn run start

  • To deploy to a testnet or mainnet, just add or use the existing network in the openzeppelin networks.js. It uses Infura to deploy and thus you also need to export your own Infura ID (like your mnemonic for deployment).
    export REACT_APP_INFURA_ID="<INFURA_ID_HERE>"

License

Code License: MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published