1.0.3 • Published 2 years ago

@ideadesignmedia/subgraph v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Subgraph for Contract Events

Overview

This is setup to deploy a subgraph to thegraph.com for contract events.

Setup

Installation

yarn install

Development

Create handlers for the events you want to track by creating an entry ts file that exports the methods for creating/updating your entities in the src folder. Update the config file with the contract address, start block, name, src and abi for the contract you want to track. Update the subgraph.yaml.mustache file with the events and their handlers. Update schema.graphql with the entities you will create and add them to the subgraph.yaml.mustache file.

Test your subgraph will compile

yarn codegen

Deployment

Mainnet

yarn deploy:mainnet

Testnet - Goerli

yarn deploy:goerli

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago