Skip to content

hackdays-io/toban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toban

Test Contracts

Build Frontend(Vite + Remix)

Deploy document to GitHub Pages

About This Project

Toban is a simplest way to record contribution and distribute rewards.

Projects that involve a diverse people, such as open source development, collaborative works by multiple creators, and volunteer activities, and in which the people involved change one after another, can be very exciting, but they also have their own unique difficulties.

For example

  • Annoying to Track Works:
    • It's very tedious to report what you've accomplished for each task
    • Nobody are running a community to measure contributions by weighting each task.
    • We always forget anyway lol
  • Rewards are required for Long term Contribution
    • There is no long-term contribution, just a volunteer spirit
    • There is no money to give out of the blue, and no one starts because of money.
    • Someone needs to do the housework and chores
  • Ladder for Onboarding to the Community
    • Few people can participate on their own
    • It is difficult to understand the community enough to actually be able to do something
    • It's important to have a starting point that makes it easy to contribute something

Therefore, we created Role Based Rewards Distribution system to track contributions and distribute rewards by role.

Core features are

  1. Manage responsibilities and rights on rolls
  2. Track little contributions with P2P token transfer
  3. Determine the rewards rate based on roll and engaged period
  4. Distribute rewards quickly to a large number of people

These solutions were combined with ideas from Hats Protocol, Splits, and Protocol Guild.

Live

toban.onrender.com

Document

GitHub Pages Toban

Slide

Canva - Toban

Demo Video

here - Youtube

Related Contract Addresses

Sepolia

ContractAddress Name Memo
0x3E70d10aCdcC14B6C31DA26DcC195a6EDf1C2c16 BigBang
0x54889278bf4F16ACAa3CC1402C987A6C42a5308B FractionToken
0x2b44c1F5B0D2a6a39F83effbF48aA09C833EBe12 SplitsCreatorFactory
0x09b853E0945d1c86af10b5665472501bD5F6627c SplitsCreatorIMPL
0x808996331ADD2715854e31e3dd4f9a736DE23604 HatsTimeFrameModuleIMPL
0xbE24C4270B65f68E22CD2e58eD7A61eAF36240a0 HatsHatCreatorModuleIMPL
0x3bc1A0Ad72417f2d411118085256fC53CBdDd137 Hats
0x0a3f85fa597B6a967271286aA0724811acDF5CD9 HatsModuleFactory
0x80f1B766817D04870f115fEBbcCADF8DBF75E017 PullSplitsFactory

How to work

  • setUp

    • frontend

      You must set some ENVs

      1. create pkgs/frontend/.env.local

      2. set below values

         VITE_CHAIN_ID=11155111
         VITE_PRIVY_APP_ID=
         VITE_BIGBANG_ADDRESS=
         VITE_HATS_ADDRESS=
         VITE_FRACTION_TOKEN_ADDRESS=
         VITE_SPLITS_CREATOR_ADDRESS=
         VITE_PIMLICO_API_KEY=
         VITE_NAMESTONE_API_KEY=
    • smartconract

      You must set some ENVs

      1. create pkgs/contact/.env

      2. set below values

         PRIVATE_KEY=""
         ETHERSCAN_API_KEY=""
         ALCHEMY_API_KEY=""
         GAS_REPORT=
         COINMARKETCAP_API_KEY=""
         HATS_ADDRESS=""
         HATS_MODULE_FACTORY_ADDRESS=""
         PULL_SPLITS_FACTORY_ADDRESS=""
    • install

      yarn
  • whitepaper(Docusaurus)

    • build

      yarn document build
    • start

      yarn document start
  • subgraph

    • goldsky login

      goldsky login
    • deploy subgraph to sepolia

      yarn subgraph prepare:sepolia
      yarn subgraph codegen
      yarn subgraph build
      yarn subgraph deploy:sepolia
  • frontend

    • build frontend

      yarn frontend build
    • start frontend

      yarn frontend dev
  • contract

    • compile

      yarn contract compile
    • test

      yarn contract test
    • coverage

      yarn contract coverage
    • clean

      yarn contract clean
    • get Balance of address

      yarn contract getBalance --network sepolia
    • get chaininfo

      yarn contract getChainInfo --network sepolia
    • deploy Sample Contract

      yarn contract deploy:Lock --network sepolia
    • verify deployed contract

      yarn contract deploy:Lock --verify --network sepolia
    • deploy all contract

      yarn contract deploy:all --network sepolia
    • upgrade BigBang contract

      yarn contract upgrade:BigBang --network sepolia
    • upgrade FractionToken Contract

      yarn contract upgrade:FractionToken --network sepolia
    • get deployed contract address

      yarn contract getContractAddress --contract Lock --network sepolia
    • resiger new subdomain to toban.eth

      yarn contract registerSubdomain --label <your label> --network sepolia
    • call bigbang task

      Please set params when you execute.

      yarn contract bigbang --owner 0x51908F598A5e0d8F1A3bAbFa6DF76F9704daD072 --tophatdetails "tophatDetails" --tophatimageuri "tophatURI" --hatterhatdetails "hatterhatURI" --hatterhatimageuri "tophatDetails" --forwarder 0x51908F598A5e0d8F1A3bAbFa6DF76F9704daD072 --network sepolia
    • call getWoreTime task

      yarn contract getWoreTime --wearer 0x51908F598A5e0d8F1A3bAbFa6DF76F9704daD072 --network sepolia
    • call mintHat task

      yarn contract mintHat --hatid 17011726346972053710434886519909386955065038130623101235576378067255296 --wearer 0x1295BDc0C102EB105dC0198fdC193588fe66A1e4 --network sepolia