All Projects → hop-protocol → subgraph

hop-protocol / subgraph

Licence: MIT license
🇬 The Hop Protocol Subgraph for The Graph

Programming Languages

typescript
32286 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to subgraph

CryptoPunks
Subgraph for the Cryptopunks marketplace
Stars: ✭ 37 (+117.65%)
Mutual labels:  subgraph, thegraphprotocol
Graph-Academy-Hub
The Graph Hub is a free, open-source and community-driven knowledge base and documentation initiative on The Graph Protocol. The vision of The Graph Academy is to establish a single go-to-resource for essential information about The Graph Protocol.
Stars: ✭ 62 (+264.71%)
Mutual labels:  thegraph
thegraph-react
⚛️ React bindings for helping build decentralized applications quickly on Ethereum and IPFS using GraphQL.
Stars: ✭ 31 (+82.35%)
Mutual labels:  thegraph
subgraph-toolkit
A collection of utilities and helpers to support the development of subgraphs
Stars: ✭ 44 (+158.82%)
Mutual labels:  thegraphprotocol
creaton
Decentralized content sharing platform.
Stars: ✭ 38 (+123.53%)
Mutual labels:  subgraph
fnd-docs
Foundation developer docs
Stars: ✭ 33 (+94.12%)
Mutual labels:  subgraph
synthetix-data
A utility to query for data on Synthetix usage
Stars: ✭ 22 (+29.41%)
Mutual labels:  thegraphprotocol
CBioInfCpp-0-
The lib CBioInfCpp.h contains 3 groups of functions for C++: "Input-Output", "Working with strings", "Working with graphs". Data structures "Adjacency vector" and "Adjacency map" are implemented in the last one (i.e. in "Working with graphs"). See About_CBioInfCpp for details.
Stars: ✭ 12 (-29.41%)
Mutual labels:  subgraph
sablier-subgraph
Subgraph for the Sablier money streaming protocol
Stars: ✭ 21 (+23.53%)
Mutual labels:  subgraph
your-first-web3-dapp
Step-by-step guide to setting up and launching a TypeScript/React web app querying Ethereum blockchain data in standard querying language (GraphQL)
Stars: ✭ 29 (+70.59%)
Mutual labels:  thegraph
enzyme-subgraph
The official subgraph the Enzyme protocol.
Stars: ✭ 20 (+17.65%)
Mutual labels:  thegraph

Hop Subgraph

The Hop Protocol Subgraph for The Graph.

Subgraphs

Development

Authenticate:

npx graph auth https://api.thegraph.com/deploy/ <access-token>

The access token is found on the hosted-service dashboard.

Build and deploy:

npm run build-deploy:mainnet
npm run build-deploy:polygon
npm run build-deploy:xdai
npm run build-deploy:optimism
npm run build-deploy:arbitrum

By default, it will deploy under hop-protocol github org.

Set GITHUB_ORG to deploy another a different account.

Example:

GITHUB_ORG=<github-username> npm run build-deploy:mainnet

The following subgraphs will need to be created on the dashboard:

  • hop-mainnet
  • hop-polygon
  • hop-xdai
  • hop-optimism
  • hop-arbitrum

Clean build files:

npm run clean

Deploying locally:

Update networks in docker-compose.yml

ethereum: 'optimism:https://mainnet.optimism.io'

Start containers:

docker-compose up

Create local subgraph:

npx graph create hop-protocol/hop-optimism --node http://127.0.0.1:8020

Deploy subgraph after building:

npx graph deploy --debug --ipfs http://localhost:5001 --node http://localhost:8020 hop-protocol/hop-optimism

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].