Coder Social home page Coder Social logo

drop-contracts's Introduction

drop-contracts

This codebase contains the smart contracts that implement Ethereum's Fungible i.e. ERC20 and, Non Fungible token standards i.e. ERC721, ERC115. Webaverse main app uses these smart contracts for utilizing the features such as mint, drop, and redeem (see webaverse/app). All of the smart contracts follow the Ethereum EIP standards by using the interfaces for all the token standards.

Currently, all the smart contracts reside on the rinkeby testnet and webaverse sidechain.

Installation

# Clone the repo
$ git clone https://github.com/webaverse/redis-server.git

# Install the packages and dependencies
$ npm install

Configuration

  1. Create a new file .env with the given template
# Infura Project Id
INFURA_KEY = 9bbv673y23cn88cnm73hfqwwbf87zonf

# Private key
PRIVATE_KEY = 8407415743ab6f7214df9fce86e7ad87ce5e0cef82822d1e6622d4043623f473

# Test keys
SIGNER_PRIVATE_KEY = 27b02257623d1fe8ca9594dfef495ad51080e80b84230bd63eea18f33a2a8229
CLAIMER_PRIVATE_KEY = e536bff80ff5d9863cb983fc8cbbc117d53aa142f23c4e02250e93b90a6d751b
EXTERNAL_SIGNER_PRIVATE_KEY = c2d3541a6ac24c67f0312a33d15daf0c0409776fbc092d8f55eee2edbdd7b8bb

# Etherscan API key
ETHERSCAN_API_KEY = 1ERUWBNCIUW8464WBCXBEWEU39CY5L2BD0

Build

# Compile the smart contracts, artifacts will be stored in the `build/` directory

$ npx hardhat compile

Migrations

# Deploy the smart contracts on different networks defined in `hardhat.config.js`

$ npx hardhat run migrations/2_deploy_WebaverseERC721.js

Tests

# Run the tests for all the smart contracts

$ npx hardhat test

drop-contracts's People

Contributors

avaer avatar hamzatrq avatar mohsinanees avatar

Watchers

 avatar  avatar  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.