{"id":21470578,"url":"https://github.com/manifoldfinance/libsushi","last_synced_at":"2026-05-21T05:05:02.479Z","repository":{"id":37794211,"uuid":"473942127","full_name":"manifoldfinance/libsushi","owner":"manifoldfinance","description":"libsushi - sushiswap sushi guard library ","archived":false,"fork":false,"pushed_at":"2022-09-14T04:30:26.000Z","size":867,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T01:11:41.013Z","etag":null,"topics":["ethereum","ethers","flashbots","openmev","sushiswap","web3","web3-provider"],"latest_commit_sha":null,"homepage":"https://manifoldfinance.github.io/libsushi/","language":"JavaScript","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/manifoldfinance.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}},"created_at":"2022-03-25T09:15:42.000Z","updated_at":"2022-06-02T09:41:25.000Z","dependencies_parsed_at":"2023-01-17T17:01:31.388Z","dependency_job_id":null,"html_url":"https://github.com/manifoldfinance/libsushi","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Flibsushi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Flibsushi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Flibsushi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Flibsushi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manifoldfinance","download_url":"https://codeload.github.com/manifoldfinance/libsushi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243988956,"owners_count":20379649,"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":["ethereum","ethers","flashbots","openmev","sushiswap","web3","web3-provider"],"created_at":"2024-11-23T09:28:24.415Z","updated_at":"2026-05-21T05:04:57.459Z","avatar_url":"https://github.com/manifoldfinance.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [libsushi](#)\n\n![npm](https://img.shields.io/npm/v/libsushi?label=libsushi)\n[![typedoc - v0.1.0](https://img.shields.io/badge/typedoc-v0.1.0-blue)](https://manifoldfinance.github.io/libsushi/)\n\n\u003e OpenMEV Library for SushiSwap's SushiGuard\n\n## Potential statuses\n\n- `PENDING` - The transaction was received and is currently being submitted to miners\n- `INCLUDED` - The transaction was included on-chain\n- `FAILED` - The transaction was submitted for 25 blocks and failed to be included on-chain\n- `CANCELLED` - The transaction was cancelled by the user and not included on-chain\n- `UNKNOWN` - The transaction was not received\n\n## Typescript Library\n\n```typescript\n// @see {@link https://github.com/manifoldfinance/libsushi/blob/master/src/SushiGuard/index.ts}\n/**\n * @package OpenMevTxState\n * @version 2022.04\n * @see {@link docs.openmev.org}\n * @notice This is a flashbots-api compatible interface ( ~v0.6 )\n *\n * - UNCHECKED -\u003e Tx status has not been checked and there's no information about it.\n * - PROCESSING -\u003e Tx checks are in place until a resolution happens: OK, INDETERMINATE, ERROR.\n * - OK -\u003e Relay received the Tx \u0026\u0026 all downstream miners accepted without complains \u0026\u0026 tx mined successfully\n * - INDETERMINATE -\u003e Relay received correctly the Tx \u0026\u0026 at least one miner accepted the TX \u0026\u0026 TX potentially mineable\n * - ERROR -\u003e Relay hasn't received the TX || none of the miners accepted the Tx || Tx was not mined successfully\n *\n */\n\nexport enum PrivateTxState {\n  UNCHECKED = 'UNCHECKED',\n  PROCESSING = 'PROCESSING',\n  OK = 'OK',\n  INDETERMINATE = 'INDETERMINATE',\n  ERROR = 'ERROR',\n}\n\nexport type RelayResponses = Record\u003cstring, RelayResponse\u003e;\n\nexport interface RelayResponse {\n  response: JsonRpcResponse\u003cany\u003e;\n  error?: string;\n}\n\nexport interface PrivateTxStatus {\n  transactionHash: string;\n  receivedAt: string;\n  relayedAt?: string;\n  minedAt?: string;\n  relayFailure?: boolean;\n  relayResponses?: RelayResponses;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfinance%2Flibsushi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanifoldfinance%2Flibsushi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfinance%2Flibsushi/lists"}