An open API service indexing awesome lists of open source software.

https://github.com/aidear3/moon_dogs_smart-contract


https://github.com/aidear3/moon_dogs_smart-contract

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

## Version

## Setting up local development

### Pre-requisites

- [Node.js](https://nodejs.org/en/) version 14.0+ and [yarn](https://yarnpkg.com/) for Javascript environment.

1. Clone this repository

```bash
git clone ...
```

2. Install dependencies

```bash
yarn
```

3. Set environment variables on the .env file according to .env.example

```bash
cp .env.example .env
vim .env
```

4. Compile Solidity programs

```bash
yarn compile
```

### Development

- To run hardhat tests

```bash
yarn test:hh
```

- To start local blockchain

```bash
yarn localnode
```

- To run scripts on Rinkeby test

```bash
yarn script:rinkeby ./scripts/....
```

- To run deploy contracts on Rinkeby testnet (uses Hardhat deploy)

```bash
yarn deploy:rinkeby --tags ....
```

- To verify contracts on etherscan

```bash
yarn verify:rinkeby MyTokenContract,MyNFTContract
```

... see more useful commands in package.json file

## Main Dependencies

Contracts are developed using well-known open-source software for utility libraries and developement tools. You can read more about each of them.

[OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts)

[Solmate](https://github.com/Rari-Capital/solmate)

[Hardhat](https://github.com/nomiclabs/hardhat)

[hardhat-deploy](https://github.com/wighawag/hardhat-deploy)

[ethers.js](https://github.com/ethers-io/ethers.js/)

[TypeChain](https://github.com/dethcrypto/TypeChain)