-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ generated/ | |
|
||
#tests | ||
tests/.latest.json | ||
tests/.bin/ | ||
|
||
#subgrahp | ||
#subgraph | ||
subgraph.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,43 @@ | ||
# roles-subgraph | ||
# Orium NFT Roles Subgraph | ||
|
||
A set of subgraphs (one for each network) for Orium Network dapps | ||
[![Discord](https://img.shields.io/discord/1009147970832322632?label=discord&logo=discord&logoColor=white)](https://discord.gg/NaNTgPK5rx) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/oriumnetwork?label=Follow&style=social)](https://twitter.com/OriumNetwork) | ||
|
||
Orium NFT Roles Subgraph is a subgraph for the Orium Roles Register Contracts. | ||
|
||
## Get Started | ||
|
||
```shell | ||
npm ci | ||
npm run test-goerli | ||
``` | ||
|
||
## Generate Schema (goerli) | ||
|
||
To generate schema for a subgraph in a different network, **goerli** just change the network parameter to the preference. | ||
|
||
**goerli** | ||
|
||
```shell | ||
cp subgraph-goerli.yaml subgraph.yaml && graph codegen subgraph.yaml | ||
``` | ||
|
||
## Build (mumbai/polygon) | ||
|
||
To build a subgraph in a different network, **goerli**, just change the network parameter to the preference. | ||
|
||
**goerli** | ||
|
||
```shell | ||
cp graph build subgraph.yaml | ||
``` | ||
|
||
## Deploy subgraph (mumbai/polygon) | ||
|
||
To deploy contract in a different network, **goerli** or **goerli**, just change the network parameter to the preference. | ||
|
||
**goerli** | ||
|
||
```shell | ||
graph deploy --node https://api.thegraph.com/deploy/ orium-network/nft-roles-goerli | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters