viefam / metabio-smart-contracts

Public Smart Contracts for MetaBio
1 stars 0 forks source link

Smart Contracts for MetaBio

Welcome to MetaBio

a Web3 application to connect gardeners, farmers to crypto world. We aim to be the leading Web3 application for gardening/farming communities, inspire gardeners/farmers, and connect them and their data to enterprise and biology experts eventually

Contracts

Addresses

Kovan Network

Client Demo

Development

Install

Install dependencies

npm install

Config env

MNEMONIC=<Metamask mnemonic>

Run

Compile contracts

npx hardhat compile

Test contracts

npx hardhat test

Run network node

npx hardhat node

Deploy MetaBioMarketPlace contract to the local running node.

npx hardhat run scripts/deploy-marketplace-script.js --network localhost

NFPlant smart contract cannot deploy to localhost network. Please deploy it to kovan instead of.

npx hardhat run scripts/deploy-nfplant-script.js --network kovan

Verify contract on testnet

npx hardhat verify --network testnet <contract address>
Others commands
npx hardhat accounts
npx hardhat clean
npx hardhat help