BlockchainCrazy95 / InteractionRegistry

Verida-Proof of Concept
0 stars 0 forks source link

Interactions Registry (Proof of Concept)

About

This project requires developing a simple smart contract that distributes tokens to multiple addresses as part of an “interaction” that occurs off-chain.

Installation

$ yarn install

Usage

Build

$ yarn compile
$ npx hardhat compile

Test

$ yarn test
$ npx hardhat Test

Deploying contracts to Testnet (Public)

Deploy CLI

$ yarn deploy [NETWORK_NAME]
$ npx hardhat run scripts/deploy.ts --network [NETWORK_NAME]

In this project, I deployed contract on BSC testnet.

Please check this url: https://testnet.bscscan.com/address/0x21F672dA9aef56b9B35f527a689960795bB6DDb3

Verify Contract

$ yarn verify [NETWORK_NAME] [CONTRACT_ADDRESS] [...CONSTRUCTOR_PARAMS]
$ npx hardhat verify --network [NETWORK_NAME] [CONTRACT_ADDRESS] [...CONSTRUCTOR_PARAMS]

Environment variable

Create a .env using .env.example file.