██████╗ ██████╗ ███████╗████████╗███████╗██████╗
██╔══██╗██╔═══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗
██████╔╝██║ ██║███████╗ ██║ █████╗ ██████╔╝
██╔═══╝ ██║ ██║╚════██║ ██║ ██╔══╝ ██╔══██╗
██║ ╚██████╔╝███████║ ██║ ███████╗██║ ██║
╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
___
/ | ____ ____
/ /| | / __ \/ __ \
/ ___ |/ /_/ / /_/ /
/_/ |_/ .___/ .___/
/_/ /_/
An app for showcasing ERC-3722 – Poster. This is a monorepo fetching all components as git submodules
, which can be found in our organization.
Poster
- An EVM-compatible append-only general purpose smart contract.Subgraph
- An indexer and content parser for Poster powered by TheGraph.App
- A sample UI to showcase ERC-3722 usage as a protocol for social apps.
The easiest way to setup Poster App
is by running it via Gitpod.io. It will automatically spin a cloud instance with all the required commands and dependencies ready to go.
Please wait until all services have started. Afterwards, you will be able to connect to the application via MetaMask in the next step.
- Make sure you have downloaded MetaMask browser extension.
- Create a new wallet1 and import the following private key:
ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
- Add the
hardhat
in your MetaMask “Networks” section:
Network Name: Gitpod Hardhat
New RPC URL: <at the bottom of the website, should be something like https://8545-onposter-...3cs.ws-eu27.gitpod.io
Chain Id: 31337
Your balance should be around 9999.95 ETH or so. If you restart the project, you might need to reset your MetaMask account so the transactions come from the first block again, which you can do by going to "Advanced > Reset Account”. IMPORTANT: Only do this on a wallet that has the Hardhat test mnemonic imported, as this will affect ALL your accounts and not the only one the imported one.
git clone git@github.com:onPoster/app-monorepo.git --recurse-submodules
yarn
yarn run:local:node
- (In new terminal)
yarn deploy:local:contracts
yarn run:local:subgraph
- (In new terminal)
yarn config:local:subgraph
yarn build:local:subgraph
yarn deploy:local:subgraph
yarn run:local:app
- Follow the first
2
steps inConnect to Gitpod’s hardhat node with MetaMask
section - Add the
hardhat
in your MetaMask “Networks” section instead of Gitpod's Hardhat:
Network Name: Hardhat
New RPC URL: http://localhost:8545
Chain Id: 31337
With the application up and running, go to localhost:3000
or browse the automatic preview pane opened by Gitpod, and connect your wallet with the “Connect wallet” option. This will allow you to submit transactions to your local hardhat node.
Write anything in the text field, and submit the transaction. You will be able to see how the posts are loaded and shortly after your post will show.
Footnotes
-
You can always simply import Hardhat's demo mnemonic
test test test test test test test test test test test junk
. Make sure to not send any real digital assets to any of these accounts, as all their private keys are publicly known. ↩