GithubHelp home page GithubHelp logo

starkmerv / contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from graphprotocol/contracts

0.0 0.0 0.0 20.55 MB

Contracts repository for The Graph protocol

Home Page: https://thegraph.com

License: GNU General Public License v2.0

Shell 1.15% JavaScript 0.04% TypeScript 63.37% Solidity 35.44%

contracts's Introduction

The Graph

The Graph Protocol

A decentralized network for querying and indexing blockchain data.

Build CI E2E

PackagesDevelopmentDocsContributingSecurityLicense


The Graph is an indexing protocol for querying networks like Ethereum, IPFS, Polygon, and other blockchains. Anyone can build and Publish open APIs, called subgraphs, making data easily accessible.

Packages

This repository is a Yarn workspaces monorepo containing the following packages:

Package Latest version Description
contracts npm version Contracts enabling the open and permissionless decentralized network known as The Graph protocol.
sdk npm version TypeScript based SDK to interact with the protocol contracts

Development

Setup

To set up this project you'll need git and yarn installed. Note that Yarn v4 is required to install the dependencies and build the project.

From your command line:

# Enable Yarn v4
corepack enable
yarn set version stable

# Clone this repository
$ git clone https://github.com/graphprotocol/contracts

# Go into the repository
$ cd contracts

# Install dependencies
$ yarn

# Build projects
$ yarn build

Versioning a package

To version a package, run the following command from the root of the repository:

# Change directory to the package you want to version
$ cd packages/<package-name>

# Bump the version
$ yarn version <major|minor|patch>

Note on cross referenced packages: Bumping the version of a package that is cross referenced by another package will automatically bump the dependency version in the other package. For example, if you bump the version of sdk from 0.0.1 to 0.0.2, the required version of sdk in the contracts package will automatically be bumped to 0.0.2. Depending on the nature of the change you might need to bump (and publish) a new version of the contracts package as well.

Publishing a package

Packages are published and distributed via NPM. To publish a package, run the following command from the root of the repository:

# Publish the package
$ yarn npm publish --access public --tag <tag>

Alternatively, there is a GitHub action that can be manually triggered to publish a package.

Documentation

Coming soon

For now, each package has its own README with more specific documentation you can check out.

Contributing

Contributions are welcomed and encouraged! You can do so by:

  • Creating an issue
  • Opening a PR

If you are opening a PR, it is a good idea to first go to The Graph Discord or The Graph Forum and discuss your idea! Discussions on the forum or Discord are another great way to contribute.

Security

If you find a bug or security issue please go through the official channel, The Graph Security Bounties on Immunefi. Responsible disclosure procedures must be followed to receive bounties.

License

Copyright © 2021 The Graph Foundation

Licensed under GPL license.

contracts's People

Contributors

abarmat avatar pcarranzav avatar davekaj avatar fubuloubu avatar tmigone avatar retzion avatar jannis avatar maikol avatar dependabot[bot] avatar shkfnly avatar mercuricchloride avatar glmaljkovich avatar theodus avatar fordn avatar spalladino avatar nenadjaja avatar arjunbhuptani avatar snario avatar kyriediculous avatar geoknee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.