{"id":29129060,"url":"https://github.com/vectorized/gasback","last_synced_at":"2025-06-30T02:38:03.816Z","repository":{"id":292217209,"uuid":"980165269","full_name":"Vectorized/gasback","owner":"Vectorized","description":"RIP-7767","archived":false,"fork":false,"pushed_at":"2025-05-20T19:05:15.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T01:08:03.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/Vectorized.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,"zenodo":null}},"created_at":"2025-05-08T17:09:38.000Z","updated_at":"2025-05-20T19:05:18.000Z","dependencies_parsed_at":"2025-05-08T18:40:34.950Z","dependency_job_id":"033902f8-eda6-4eab-ad61-6770fb695308","html_url":"https://github.com/Vectorized/gasback","commit_stats":null,"previous_names":["vectorized/gasback"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vectorized/gasback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorized%2Fgasback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorized%2Fgasback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorized%2Fgasback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorized%2Fgasback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vectorized","download_url":"https://codeload.github.com/Vectorized/gasback/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorized%2Fgasback/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262700270,"owners_count":23350445,"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":"2025-06-30T02:38:03.218Z","updated_at":"2025-06-30T02:38:03.807Z","avatar_url":"https://github.com/Vectorized.png","language":"Solidity","readme":"# Gasback\n\nA barebones implementation of a gasback contract that implements [RIP-7767](https://github.com/ethereum/RIPs/blob/master/RIPS/rip-7767.md).\n\n## Suggested deployment for OP stack chains\n\n1. Deploy the `gasback` contract which will be used as an implementation via EIP-7702.\n\n2. Use EIP-7702 to make the EOA `RECIPIENT` of the `baseFeeVault` delegated to the `gasback` implementation.  \n   After delegating, use the EOA to call functions on itself to initialize the parameters:\n   \n   - `setGasbackRatioNumerator(uint256)`  \n     `900000000000000000`\n   - `setGasbackMaxBaseFee(uint256)`  \n     `115792089237316195423570985008687907853269984665640564039457584007913129639935`  \n   - `setBaseFeeVault(address)`  \n     `0x4200000000000000000000000000000000000019`\n\n4. Put or leave some ETH into the EOA `RECIPIENT`, which will be the actual `gasback` contract. \n   The ETH will act as a buffer that will be temporarily dished out to contracts calling the EOA `RECIPIENT` in the span of a single block.\n   The base fees collected in a block will only be accrued into the `baseFeeVault` at the end of a block.\n   Try not to empty ETH from the `RECIPIENT` when you are actually taking out ETH from it.\n\n5. For better discoverabiity (for the devX), deploy the `gasbackBeacon` and use the system address to set the EOA `RECIPIENT`.  \n   The exact CREATE2 instructions are in [`./deployments.md`](./deployments.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorized%2Fgasback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvectorized%2Fgasback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorized%2Fgasback/lists"}