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

Latest commit

 

History

History
43 lines (23 loc) · 1.13 KB

README.md

File metadata and controls

43 lines (23 loc) · 1.13 KB

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