-
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.
Refactor to updated ERC
- Loading branch information
Showing
31 changed files
with
1,291 additions
and
1,102 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
const config = require('@oriumnetwork/orium-commons/lint/eslint-config') | ||
config.rules['@typescript-eslint/ban-types'] = ['warn', { types: { BigInt: false }, extendDefaults: true }] | ||
module.exports = config |
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 was deleted.
Oops, something went wrong.
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
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,4 +1,5 @@ | ||
node_modules | ||
.idea | ||
|
||
#build | ||
build/ | ||
|
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,44 +1,28 @@ | ||
# Orium NFT Roles Subgraph | ||
|
||
[![License: CC0 v1](https://img.shields.io/badge/License-CC0v1-blue.svg)](https://creativecommons.org/publicdomain/zero/1.0/legalcode) | ||
![Github Badge](https://github.com/OriumNetwork/roles-subgraph/actions/workflows/master.yaml/badge.svg) | ||
[![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. | ||
The Roles Subgraph is a subgraph for tracking the state of [ERC-7432](https://eips.ethereum.org/EIPS/eip-7432) roles. | ||
|
||
## Get Started | ||
|
||
Get started by installing dependencies, building the project and running the tests. | ||
|
||
```shell | ||
npm ci | ||
npm run test-goerli | ||
npm run build:goerli | ||
npm test | ||
``` | ||
|
||
## Generate Schema (goerli) | ||
## Build Project | ||
|
||
To generate schema for a subgraph in a different network, **goerli** just change the network parameter to the preference. | ||
|
||
**goerli** | ||
Building subgraphs consist in generating the code and building the project against a manifest file. This repository | ||
provides a subgraph manifest for each network supported. You can build the project for **Goerli** with the following | ||
command: | ||
|
||
```shell | ||
cp subgraph-goerli.yaml subgraph.yaml && graph codegen subgraph.yaml | ||
``` | ||
|
||
## Build (goerli) | ||
|
||
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 (goerli) | ||
|
||
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 | ||
``` |
Oops, something went wrong.