Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 930 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 930 Bytes

Decentralized Statistics

This is a platform that enables the transparent statistics and surveys, allowing the contributors to get the rewards for participating in surveys. It's obviously contrast to a centralized statistics office.

This platform is inspired by a talk from Ethcon Korea 2024, The best way: correct number of the statistics

Prerequisite

node >= v.22

Initialization

$> npm install

Contract Deploy

start local hardhat node

$> npx hardhat node

contract deploy to local network

$> cd contract
$> npx hardhat compile
$> npx hardhat deploy --network localhost

create .env file in root directory

SURVEY_FACTORY_V1_CONTRACT_ADDRESS=[factory address]
NEXT_PUBLIC_SURVEY_FACTORY_V1_CONTRACT_ADDRESS=[factory address]
NODE_URL=http://localhost:8545

Start application

$> npm run dev # in the root directory