raid-guild / gitcoinco-web

Grow Open Source
https://gitcoin.co
Other
0 stars 2 forks source link

[Contracts] - Personal Token Factory #9

Closed proofoftom closed 4 years ago

proofoftom commented 4 years ago

User Story

As a backend developer I need a factory contract to deploy unique Personal Token contracts (see #10).

Why Is this Needed

Summary: To deploy personal tokens we need a factory contract to be the deployer.

Description

Type: Feature

Definition of Done

A factory contract deployed to mainnet for launching Personal Tokens

Additional Information

See #10 for the Personal Token contract See #1 for UI that'll use this factory to deploy PT contracts

proofoftom commented 4 years ago

Am thinking that alternative to deploying a Factory contract, we may be able to use the ethers.ContractFactory to deploy the PTokens, the main drawback being that there's no mapping of owner.address => PToken.address.

My thoughts for a workaround are that a TheGraph subgraph would work better at indexing token owners and their respective token, would be easy to query, and would be usable by UIs outside of Gitcoin. Am going to pursue this route for now.