Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Group Currency Token and Factory for Circles UBI

Notifications You must be signed in to change notification settings

CirclesUBI/circles-group-currency-token

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Group Currency Token Smart Contract

A group currency would define a number of individual Circles tokens directly or transitively (all accounts trusted by account X) as members. All of those members Circles could be used to mint the group currency.

Note: The GroupCurrencyToken contract is WIP, non-tested, non-audited and not ready for Mainnet/production usage!

Call Flows for direct minting and delegate minting

Direct Minting (Token was trusted by addMember)

Delegate Minting (Token is trusted by delegateTrust)

Tech Walk-Through

There are two possibilities to explore the functionality of GCT:

  1. Examine the unit tests in test/GroupCurrencyTokenTest
  2. Examine the integration test in scripts/GroupCurrencyToken.s.sol

Prerequisites

  • Install Foundry

Setup

  • Clone Repo

Run (Tests)

  • forge test -vvvv

Gnosis Chain Integration Tests

  • forge script script/GroupCurrencyToken.s.sol -vvvv --fork-url= https://rpc.gnosischain.com

References

About

Group Currency Token and Factory for Circles UBI

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.9%
  • Other 0.1%