Skip to content

Commit

Permalink
Merge pull request #1 from hemaaanth/patch-1
Browse files Browse the repository at this point in the history
Adding Goldsky context to PGN documentation
  • Loading branch information
hemaaanth authored Jul 25, 2023
2 parents b5b4abc + 6355359 commit 108acb3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions pages/building-with-pgn.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [Network and Contract details](/network-and-contract-details)
* [Deploying on PGN](/building-with-pgn/deploying-on-pgn)
* [Ethereum vs PGN](/building-with-pgn/fees)
* [Subgraphs](/building-with-pgn/subgraphs)
* [Fees](/building-with-pgn/ethereum-vs-pgn)


Expand Down
1 change: 1 addition & 0 deletions pages/building-with-pgn/_meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"deploying-to-pgn": "Deploying to PGN",
"ethereum-vs-pgn": "Ethereum vs PGN",
"subgraphs": "Subgraphs",
"fees": "Fees"
}
15 changes: 15 additions & 0 deletions pages/building-with-pgn/subgraphs.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Subgraphs

## Overview

Subgraphs are custom APIs built on top of blockchain data that can be queried using GraphQL. Developers can build and deploy subgraphs to transform raw blockchain data into more useful formats to power their applications.

PGN subgraphs can be deployed on Goldsky; for more information on getting started, visit [Goldsky's documentation](https://docs.goldsky.com/).

## How to deploy subgraphs

PGN subgraphs on Goldsky can be deployed in 2 ways:
* Via CLI from a local subgraph configuration file. If you are familiar with developing subgraphs already, you'll be familiar with this approach; after defining a subgraph lcoally (with a subgraph.yaml file, a schema.graphql file, and the necessary mappings to translate raw event data into the entities defined in the schema), you can deploy subgraphs to Goldsky (once the Goldsky CLI is installed) using `goldsky subgraph deploy <name>/<version> --path`.
* Via [instant subgraphs](https://docs.goldsky.com/indexing/instant-subgraphs), where you can pass through a contract address and the ABI for that contract. This is a quick-start option that automatically generates the underlying subgraph configuration files on your behalf, making it easy to extract blockchain event data and serve it as an API endpoint without complex setup. Use the `--from-ipfs-hash` flag in the command above instead of `--path`.

Both PGN mainnet and testnet are available at the chain slugs `publicgoods` and `publigoods-testnet` respectively.
3 changes: 2 additions & 1 deletion pages/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ As of July 25th, 2023, we have had several partners either fully deploy or deplo
* [Beamer](https://app.beamerbridge.com/#/)
* [Safe](https://safe.global/)
* [The Graph](https://thegraph.com/)
* [Goldsky](https://goldsky.com/)

## Deploying contracts

Expand Down Expand Up @@ -216,7 +217,7 @@ Graph nodes:
* Mainnet: [graph-gitcoin-mainnet.hirenodes.io](https://graph-gitcoin-mainnet.hirenodes.io)
* Testnet: [graph-gitcoin-testnet.hirenodes.io](https://graph-gitcoin-testnet.hirenodes.io)


Subgraphs can also be deployed on [Goldsky](https://goldsky.com/), a high-performance hosted subgraph service.

## Blockscout

Expand Down

0 comments on commit 108acb3

Please sign in to comment.