Giter VIP home page Giter VIP logo

subgraph's Introduction

Subgraph

Test

In order to test, you need matchstick. You can use docker or the binary

With docker

Follow https://github.com/LimeChain/matchstick#quick-start-

The first time you need to build the docker image (with $ docker build -t matchstick .). From that onwards, it's only necessary if you change dependencies versions.

$ docker run -it --rm --mount type=bind,source=<absolute/path/to/project>,target=/matchstick matchstick

Deploy

$ yarn prepare:alfajores # or mainnet
$ yarn codegen
$ yarn build
$ yarn deploy:alfajores # or mainnet

Generate types and pre-package

$ yarn types
$ yarn package

subgraph's People

Contributors

dependabot[bot] avatar obernardovieira avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

subgraph's Issues

index donations in other currencies

An easy way would be to have a Map<K,V>, but since this is not possible, having an array of an abject is also doable.

Something like contributions: [AssetContributions!] @derivedFrom(field: "entity") on a given entity, and

type AssetContributions @entity {
  id: ID!
  asset: Bytes!
  amount: BigDecimal!
  entity: dont-know-yet!
}

see impactMarket/smart-contracts-dao#91 for reference

index donations/claims/transfers on any currency

An easy way would be to have a Map<K,V>, but since this is not possible, having an array of an abject is also doable.

Something like contributions: [AssetContributions!] @derivedFrom(field: "entity") on a given entity, and

type AssetContributions @entity {
  id: ID!
  asset: Bytes!
  amount: BigDecimal!
  entity: dont-know-yet!
}

see impactMarket/smart-contracts-dao#91 for reference

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.