{"id":25420205,"url":"https://github.com/dl-solarity/graph-lib","last_synced_at":"2025-05-13T15:13:55.778Z","repository":{"id":158238248,"uuid":"632980769","full_name":"dl-solarity/graph-lib","owner":"dl-solarity","description":"Useful modules for subgraphs for The Graph protocol","archived":false,"fork":false,"pushed_at":"2024-03-07T19:18:07.000Z","size":408,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T21:53:26.011Z","etag":null,"topics":["solarity","subgraph","the-graph"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@solarity/graph-lib","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dl-solarity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-26T14:21:29.000Z","updated_at":"2023-10-07T08:36:17.000Z","dependencies_parsed_at":"2025-02-16T19:36:38.054Z","dependency_job_id":"c247d9cc-31e7-4329-8e42-c2fec51332c0","html_url":"https://github.com/dl-solarity/graph-lib","commit_stats":null,"previous_names":["dl-solarity/graph-lib","dl-solidity-library/graph-modules"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fgraph-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fgraph-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fgraph-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fgraph-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dl-solarity","download_url":"https://codeload.github.com/dl-solarity/graph-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969269,"owners_count":21992265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["solarity","subgraph","the-graph"],"created_at":"2025-02-16T19:36:25.927Z","updated_at":"2025-05-13T15:13:50.767Z","avatar_url":"https://github.com/dl-solarity.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/@solarity/graph-lib.svg)](https://www.npmjs.com/package/@solarity/graph-lib)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n# Graph Modules by Distributed Lab\n\nThis repository contains utility modules for implementing subgraphs for [The Graph protocol](https://thegraph.com/en/). The modules can be imported and used to help develop extended subgraphs logic for numerous tasks.\n\n_The project is in the early stage of development and many new modules will be added soon. Here is what is available right now:_\n\n- array-helper module to ease work with arrays\n- hash-table module to bound two arrays (like key-value struct) efficiently\n- history-searcher module to search previous history entity with id pattern `idBase + blockNumber`\n- type-utils module to easily determine if a given value is an instance of `ByteArray`, `Bytes`, or `Address`\n\n## Overview\n\n### Installation\n\n```console\n$ npm install @solarity/graph-lib\n```\n\nThe latest stable version is always in the `master` branch.\n\n### Usage\n\n```typescript\nimport { pushUnique } from '@solarity/graph-lib'\n\nexport function handleDelegated(event: Delegated): void {\n    . . .\n\n    user.delegateNfts = pushUnique\u003cBigInt\u003e(user.delegateNfts, event.params.nfts);\n\n    . . .\n}\n```\n\nYou will find the helper modules in the `/lib` directory.\n\n\n## License\n\nThe library is released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdl-solarity%2Fgraph-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdl-solarity%2Fgraph-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdl-solarity%2Fgraph-lib/lists"}