1.3.1 • Published 3 years ago
@plushstudio/plush-studio-contracts v1.3.1
Description
This repository contains the Plush Studio contracts.
Overview
Installation
npm install @plushstudio/plush-studio-contractsProject structure
arguments directory with source code of arguments for deploying contracts
contracts directory with source code of contracts
scripts/deploy directory with scripts for deploying contracts
hardhat.config.ts hardhat configuration
Installation
First you need to make sure that the Node.js platform is installed.
Link to download: download Node.js
Next, you need to install the yarn package manager: npm install --global yarn
Before starting the project, you need to install all project dependencies: yarn install
Configuration
Create .env from example file.
Support networks:
1. Goerli (goerli)
2. Mumbai (mumbai)
3. Mainnet ETH (mainnet)
4. Polygon mainnet (polygon)
5. Local (local) # for Ganache
Using
- Get api keys on Etherscan and Polygonscan websites
- It is necessary to set a working network in
.envfile in the variableNETWORK - Change the values in the contract call arguments
- To deploy contract use:
npx hardhat run scripts/deploy/{ScriptName}