Skip to content

0xJonaseb11/wallet_graphql.3.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wallet_graphql.3.0

About

Get real world data related to events triggered relating wallet contract with graphql protocol

Getting started

Installation

# install client
yarn add -D @graphprotocol/client-cli
# or, with NPM:
npm install --save-dev @graphprotocol/client-cli

# install graph-ts
npm install --save @graphprotocol/graph-ts

Subgraph deployment

# aunthenticate first
graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>
# actual deployment
graph deploy --product hosted-service <GITHUB_USER>/<SUBGRAPH_NAME>

After setting the development structure correctly,

build protocol to generate ready to use js code for you

# Option one
graphclient build # Note that for linux users (with me too) this didn't work till i used this below

# option two
# Generate code # Worked for me unlike the above
graph codegen 

For client intentions,

# install @apollo-client to enable interactions
npm install @apollo/client graphql

@0xJonaseb11