https://github.com/aidear3/moon_dogs_smart-contract
https://github.com/aidear3/moon_dogs_smart-contract
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aidear3/moon_dogs_smart-contract
- Owner: aidear3
- Created: 2023-04-21T18:54:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T18:54:52.000Z (about 2 years ago)
- Last Synced: 2025-01-12T20:45:34.535Z (4 months ago)
- Language: TypeScript
- Size: 319 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)