Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/googlercolin/pbm-frontend
https://github.com/googlercolin/pbm-frontend
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/googlercolin/pbm-frontend
- Owner: googlercolin
- Created: 2023-09-29T06:54:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-06T03:45:19.000Z (about 1 year ago)
- Last Synced: 2024-10-12T12:51:08.215Z (about 1 month ago)
- Language: TypeScript
- Size: 563 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install Packages
`yarn`# Start Local Server
1. `yarn start`
2. Run "http://locahost:3000" in browser with Metamask installed. Switch to Goerli Test Network.# Deploy PBM
1. Get Goerli ETH from faucet.
2. Deploy PBM from Deploy page.
3. Go to https://goerli.etherscan.io/address/0x85401183a7f5dd20ab354d18ac20f57da4c69208#readContract, and query `getAllPBMTokens()`, and check for the number of PBMs deployed so far.
4. Go to src/hooks/useGetPBMToken.tsx, and update line 12 to getPBMToken(n), where n = number of PBMs deployed so far - 1.# Create Token Type
1. Mint yourself some NUT token here https://goerli.etherscan.io/address/0x86378ffb1a704b9037a20a8066bec948deb1da04#writeContract. You can ignore this step if you used a different underlying token when deploying the PBM.
2. Create the token type in step 2 of the deploy page. Note only the account that deployed the PBM can run this step.
3. The number of tokens created also depends on your underlying balance.# Whitelist Address
1. Whitelist any address you want in step 3 of the deploy page. Note only the account that deployed the PBM can run this step.
# Mint Tokens
1. Mint PBMs to any address. Note only the account that deployed the PBM can run this step.
2. The maximum amount of tokens you can mint depends on the amount you created.# View Tokens
1. Switch to the account that received the tokens and go to the My Tokens page, and view the tokens that you just minted.
# Purchase Items
1. Go to the Shop page, and purchase anything you can afford!