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.
Begin by cloning the repository and installing the necessary dependencies:
git clone https://github.com/VAIOT/contractmanager.git
cd contractmanager
npm install
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
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.
Deploy the smart contract either locally or on the Mumbai testnet using the Hardhat tool.
npx hardhat deploy
npx hardhat deploy --network sepolia
Run the unit tests to ensure code reliability:
npx hardhat test
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.