{"id":18684761,"url":"https://github.com/superfluid-finance/graphinator","last_synced_at":"2025-04-12T04:32:30.825Z","repository":{"id":256280399,"uuid":"804400728","full_name":"superfluid-finance/graphinator","owner":"superfluid-finance","description":"superfluid graphinator - Lightweight Sentinel","archived":false,"fork":false,"pushed_at":"2025-04-07T11:36:42.000Z","size":238,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T12:32:29.718Z","etag":null,"topics":["bun","superfluid"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superfluid-finance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-22T14:12:01.000Z","updated_at":"2025-04-07T11:36:46.000Z","dependencies_parsed_at":"2025-04-07T12:37:08.279Z","dependency_job_id":null,"html_url":"https://github.com/superfluid-finance/graphinator","commit_stats":null,"previous_names":["superfluid-finance/graphinator"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfluid-finance%2Fgraphinator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfluid-finance%2Fgraphinator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfluid-finance%2Fgraphinator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfluid-finance%2Fgraphinator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superfluid-finance","download_url":"https://codeload.github.com/superfluid-finance/graphinator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248517312,"owners_count":21117427,"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":["bun","superfluid"],"created_at":"2024-11-07T10:19:18.652Z","updated_at":"2025-04-12T04:32:25.815Z","avatar_url":"https://github.com/superfluid-finance.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nThe **graphinator** is a lightweight alternative to the [superfluid-sentinel](https://github.com/superfluid-finance/superfluid-sentinel).\nIt looks for [critical or insolvent accounts](https://docs.superfluid.finance/docs/protocol/advanced-topics/solvency/liquidations-and-toga) and liquidates their outgoing flows (CFA and GDA).\nUnlike the sentinel, it is stateless and relies on the [Superfluid Subgraph](https://console.superfluid.finance/subgraph) as data source.\n\nBy default, the graphinator operates in a _one-shot_ mode, meaning: it checks and liquidates once, then exits.\nFor continued operation, it's recommended to set up a cronjob.\n\nOnce graphinator instance operates for a to-be-specified chain.\nBy default, it operates on all [listed Super Token](https://console.superfluid.finance/supertokens), but also allows to operate only on a single Super Token.\n\n## Prerequisites\n\nInstall Bun:\n```bash\ncurl -fsSL https://bun.sh/install | bash\n```\n\nSet up the repo and install dependencies:\n```bash\ngit clone https://github.com/superfluid-finance/graphinator\ncd graphinator\nbun install\n```\n\n## Run\n\n```\nPRIVATE_KEY=... ./grt.ts -n \u003cnetwork\u003e\n```\n\n_network_ needs to be the canonical name of a chain where Superfluid is deployed. See [metadata/networks.json](https://github.com/superfluid-finance/protocol-monorepo/blob/dev/packages/metadata/networks.json) (field _name_). For example `base-mainnet`.\n\nYou can also provide `PRIVATE_KEY` via an `.env` file.\n\nMake sure `grt.ts` is executable.\n\nSee `./grt.ts --help` for more config options.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfluid-finance%2Fgraphinator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperfluid-finance%2Fgraphinator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfluid-finance%2Fgraphinator/lists"}