Skip to content

brandon-julio-t/decentralized-event-membership-management

Repository files navigation

Sample Hardhat Project

Tasks

  • Member/any wallet bisa register(), ada member tier, Regular, Gold, VIP dengan beda nominal Eth untuk register. Register langsung bayar registrationFee.
  • Membership active kalau sudah di approveRegistration() by admin, kalau di reject, Eth di refund.
  • Manager manage siapa aja yang merupakan membership admin dan event admin
  • Membership fee per tier bisa diubah oleh Manager dengan setFee() dan membership akan berlaku selama 1 bulan
  • Tambahin function isMember() buat cek status membership
  • Event admin bisa createEvent() dan cancelEvent() dengan kuota attendee.
  • Hanya member yang bisa registerEvent() dan hanya bisa selama ada kuota.
  • Mau lebih susah? 50% kuota untuk early access VIP (ada earlyAccessDuration di struct eventDetails). Kalau ada sisa dari 50% itu, bisa dibagi ke Regular dan Gold.

Description

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a Hardhat Ignition module that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts

About

Solidity + Hardhat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published