Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#26 implement groups entity #2

Merged
merged 5 commits into from
May 31, 2022

Conversation

LaimeJesus
Copy link

@LaimeJesus LaimeJesus commented May 27, 2022

closes #26

There is a GroupCurrencyTokenFactory contract deployed at: 0x7dAF5fE2B112A90cCf8b6FE8bbDFB5de1AbAE8c8 in the xDai network

Description

This PR adds the following changes:

  • adds the GroupCurrencyToken entity:
    • symbol
    • name
    • owner
    • hub
    • treasury
    • mintFeePerThousand
    • creator
    • suspended
    • onlyOwnerCanMint
    • onlyTrustedCanMint
  • adds GroupCurrencyToken and GroupCurrencyTokenFactory abis
  • adds GroupCurrencyTokenFactory as dataSource in subgraph.yml
  • adds group creation handler file to map the creation events from the factory

How to test

  • copy .env-xdai.example -> .env
  • need to modify: ACCESS_TOKEN, SUBGRAPH_NAME, SUBGRAPH_NETWORK, START_BLOCK variables
  • deploy subgraph: npm run deploy hosted-service-deploy
  • check deployed service

Example

Check deployed Subgraph in Hosted Service:

image

@LaimeJesus LaimeJesus requested a review from patitonar May 27, 2022 18:59
@LaimeJesus LaimeJesus merged commit 6435eb4 into main May 31, 2022
@LaimeJesus LaimeJesus deleted the feature/#26-implement-groups-entity branch June 3, 2022 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SG] Implement group Entity
2 participants