{"repo":"protofire/subgraph-toolkit","free":true,"listed":false,"github":"https://github.com/protofire/subgraph-toolkit","clone":"git clone https://github.com/protofire/subgraph-toolkit.git","description":"A collection of utilities and helpers to support the development of subgraphs","language":"TypeScript","stars":52,"topics":["ethereum","thegraphprotocol","subgraphs"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"Subgraph Toolkit A Swiss Army knife for building subgraphs on The Graph Protocol --- Content Features Install Usage Documentation Examples Contributing Features ✨ This library complements and extends the official library @graphprotocol/graph-ts with the following functionality: - [x] Helper functions to convert between different types not available in the standard library - [x] Convert Bytes to Address - [x] Convert Bytes to signed and unsigned integer - [x] Convert BigDecimal to BigInt with a given precision - [x] Convert BigInt to Bytes - [x] Convert BigInt to BigDecimal with a given precision - [x] Useful constants ready to use in the subgraph mappings (including numeric constants, addresses, hashes and more) - [x] Calculate maximum and minimum of BigInt and BigDecimal values - [x] Hex Strings helpers - [x] Counters - [x] Accumulators - [ ] Helper functions to handle aggregated data [WIP] - [ ] Utilities to manipulate tokens (ERC20/ERC721/ERC1115) Install 🐙 NOTE It's recommended installing a specific version of this library since the API in early versions is subject to change without previous notice. Usage 💡 Counters and accumulators To use metrics module you need to append the content of schema.graphql to the subgraph schema. Prettier configuration This package also provides an opinionated Prettier configuration file. To apply this configuration: To override and/or extend the configuration: Documentation 📄 Constants ADDRESS ZERO The address zero, which is 20 bytes (40 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/protofire","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/protofire/subgraph-toolkit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}