Inflow-Music-Co / inflow-music-react

Inflow Music react front-end
inflow-music-react.vercel.app
MIT License
2 stars 0 forks source link

MintGate Integration #15

Closed jennifertrin closed 3 years ago

jennifertrin commented 3 years ago

On the Artist Management Page, under Private Link, we integrated MintGate's APIs to allow artists to create token gated links.

Overview of MintGate:

MintGate is a platform that allows creators and communities to create token gated links.

How it works: A user can input a web URL, set the token parameters, and then we will return a token gated MintGate link starting with https://mgate.io/go. If you navigate to the actual original link, the actual original link is not token gated. For example, you input https://babyshark.com, the MintGate link will be token gated but if you go to https://babyshark.com directly, it will not be token gated.

Assumption made:

In the function to call the MintGate POST API, you must pass in the network and token type. We assumed that all token types will ERC-20s and network will be Ethereum so we hard coded the values for these parameters.

{
"ttype": "20",
"network": 1,
}

Tests:

  1. Go to http://localhost:3000/artistmanage.
  2. Under Private Link, click on the Create Button.
  3. Input a link that you would like to token gate (link to a Youtube video), link title, select the ERC-20 token (currently hard coded as advised by Richard), amount of the token that the end user needs to own to access this link.
  4. Click Create Token Gated Link. The MintGate link starting with mgate.io will appear in the console. For example, https://mgate.io/go/pSWBpFTEbITt/.
  5. You can navigate to the link and see that you land on the MintGate UI. You will be asked to connect your wallet. If you do have enough tokens, you will sent to the original Youtube video. If you do not have enough tokens, you will be sent to a Not Enough MintGate page.
  6. If you want to test with an ERC-20 that you do own, you can hard code the social token address in the Modal to an address of a token that you do own, refresh the page, and then create a new link.
vercel[bot] commented 3 years ago

@jennifertrin is attempting to deploy a commit to the inflow music Team on Vercel.

To accomplish this, @jennifertrin needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

netlify[bot] commented 3 years ago

✔️ Deploy Preview for reverent-clarke-14b5b9 ready!

🔨 Explore the source changes: 3911919c2e2d42d831ed2c109ca0b5ac8632642a

🔍 Inspect the deploy log: https://app.netlify.com/sites/reverent-clarke-14b5b9/deploys/612ef9a5e0eb760008069fc4

😎 Browse the preview: https://deploy-preview-15--reverent-clarke-14b5b9.netlify.app/