Skip to content

Latest commit

 

History

History
78 lines (53 loc) · 2.11 KB

README.md

File metadata and controls

78 lines (53 loc) · 2.11 KB
VAIOT Logo


VAIOT Contract Manager

Welcome to the official repository for VAIOT's Contract Manager. This repository is dedicated to the development and maintenance of the contract manager using the Hardhat development environment, tailored for the Ethereum ecosystem.

Installation

Begin by cloning the repository and installing the necessary dependencies:

git clone https://github.com/VAIOT/contractmanager.git
cd contractmanager
npm install

Configuration

To properly configure the project, create a .env file in the root directory and include the following required variables:

MUMBAI_RPC_URL= # RPC URL for the Mumbai testnet
GOERLI_RPC_URL= # RPC URL for the Goerli testnet
PRIVATE_KEY= # Private key for contract deployment
COINMARKETCAP_API_KEY= # CoinMarketCap API key
POLYGONSCAN_API_KEY= # PolygonScan API key
REPORT_GAS= # true or false
ETHERSCAN_API_KEY= # Etherscan API key
POLYGONEDGE_RPC_URL= # RPC URL for PolygonEdge
KALEIDO_AUTHORIZATION= # Kaleido Authorization Key

Smart Contract Overview

The ContractManager allows users to save, update and delete contracts following a specified format.

  • Users can create their own contracts, that follow specific criteria.
  • Existing contracts can be later on updated, or deleted.
  • The ownership of the smart contract can be transferred to a third-party.
  • There are a number of getter functions in place for easy user experience.

Refer to the source code for detailed information on each function.

Deployment

Deploy the smart contract either locally or on the Mumbai testnet using the Hardhat tool.

Local Deployment

npx hardhat deploy

Sepolia Testnet Deployment

npx hardhat deploy --network sepolia

Testing

Run the unit tests to ensure code reliability:

npx hardhat test

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.