{"id":18953147,"url":"https://github.com/0xpolygon/zkevm-ethtx-manager","last_synced_at":"2025-04-16T02:31:59.074Z","repository":{"id":216651914,"uuid":"739173183","full_name":"0xPolygon/zkevm-ethtx-manager","owner":"0xPolygon","description":"zkevm-ethtx-manager","archived":false,"fork":false,"pushed_at":"2024-08-29T09:32:06.000Z","size":447,"stargazers_count":2,"open_issues_count":5,"forks_count":5,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-08-29T10:29:21.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xPolygon.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":"2024-01-05T00:07:15.000Z","updated_at":"2024-07-25T12:36:26.000Z","dependencies_parsed_at":"2024-08-29T10:29:28.939Z","dependency_job_id":"ca5eceb0-c2f1-4d58-bd01-15e237dfc420","html_url":"https://github.com/0xPolygon/zkevm-ethtx-manager","commit_stats":null,"previous_names":["0xpolygonhermez/zkevm-ethtx-manager","0xpolygon/zkevm-ethtx-manager"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fzkevm-ethtx-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fzkevm-ethtx-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fzkevm-ethtx-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Fzkevm-ethtx-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xPolygon","download_url":"https://codeload.github.com/0xPolygon/zkevm-ethtx-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223692697,"owners_count":17187064,"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":[],"created_at":"2024-11-08T13:36:44.630Z","updated_at":"2024-11-08T13:36:45.081Z","avatar_url":"https://github.com/0xPolygon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zkevm-ethtx-manager\nStateless manager to send transactions to L1.\n\n## Main Funtions\n### Add Transaction\n`func (c *Client) Add(ctx context.Context, to *common.Address, forcedNonce *uint64, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar) (common.Hash, error)`\n\nAdds a transaction to be sent to L1. The returned hash is calculated over the *to*, *nonce*, *value* and *data* fields.\n\nParameter forcedNonce is optional, if nil is passed the current nonce is obtained from the L1 node.\n\n### Remove Transaction \n`func (c *Client) Remove(ctx context.Context, id common.Hash) error `\n\nRemoves a transaction. Should be called when a finalized transactions is not relevant any more.\n\n### Get Transaction Status\n`func (c *Client) Result(ctx context.Context, id common.Hash) (MonitoredTxResult, error)`\n\nResult returns the current result of the transaction execution with all the details.\n\n### Get All Transactions Status\n`func (c *Client) ResultsByStatus(ctx context.Context, statuses []MonitoredTxStatus) ([]MonitoredTxResult, error)`\n\nResultsByStatus returns all the results for all the monitored txs matching the provided statuses.\nIf the statuses are empty, all the statuses are considered.\n\n### Transactions statuses\n\n- **Created**: the tx was just added to the volatile storage\n- **Sent**: transaction was sent to L1\n- **Failed**: the tx was already mined and failed with an error that can't be recovered automatically, ex: the data in the tx is invalid and the tx gets reverted\n- **Mined**: the tx was already mined and the receipt status is Successful.\n- **Safe**: The tx was mined and is considered safe.\n- **Finalized**: The tx was mined and is considered finalized.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpolygon%2Fzkevm-ethtx-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xpolygon%2Fzkevm-ethtx-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpolygon%2Fzkevm-ethtx-manager/lists"}