{"id":21820148,"url":"https://github.com/5afe/safe-relay-bounded-refund-module","last_synced_at":"2026-05-17T22:32:12.236Z","repository":{"id":38096069,"uuid":"496221174","full_name":"5afe/safe-relay-bounded-refund-module","owner":"5afe","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-16T10:49:07.000Z","size":307,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-01-26T07:23:43.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5afe.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}},"created_at":"2022-05-25T12:28:14.000Z","updated_at":"2022-06-18T06:52:24.000Z","dependencies_parsed_at":"2022-09-18T00:21:35.717Z","dependency_job_id":null,"html_url":"https://github.com/5afe/safe-relay-bounded-refund-module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-relay-bounded-refund-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-relay-bounded-refund-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-relay-bounded-refund-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-relay-bounded-refund-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5afe","download_url":"https://codeload.github.com/5afe/safe-relay-bounded-refund-module/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244782486,"owners_count":20509824,"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-27T16:28:52.040Z","updated_at":"2026-05-17T22:32:07.217Z","avatar_url":"https://github.com/5afe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gnosis Safe Module with bounded refund mechanism\n\n\u003e :warning: \\*\\*This repo contains unaudited code that is not ready for the production use.\n\n## Description\n\nSafeRelayBoundedRefund is a module for the Gnosis Safe that relays execTransaction call, a method for executing a transaction in the Gnosis Safe Core contract, and sends gas refund using the chain's native token. Read more in [docs](/docs/refund-module.md).\n\n## Usage\n\n### Install requirements with yarn:\n\n```bash\nyarn\n```\n\n### Run all tests:\n\n```bash\nyarn build\nyarn test\n```\n\n### Deploy\n\nThis will deploy the contracts deterministically and verify the contracts on etherscan using [Solidity 0.8.14](https://github.com/ethereum/solidity/releases/tag/v0.8.14) by default. Read more in [docs](/docs/deployment.md).\n\nPreparation:\n\n- Set `MNEMONIC` in `.env`\n- Set `INFURA_KEY` in `.env`\n\n```bash\nyarn deploy-all \u003cnetwork\u003e\n```\n\nThis will perform the following steps\n\n```bash\nyarn build\nyarn hardhat --network \u003cnetwork\u003e deploy\nyarn hardhat --network \u003cnetwork\u003e etherscan-verify\nyarn hardhat --network \u003cnetwork\u003e local-verify\n```\n\n#### Custom Networks\n\nIt is possible to use the `NODE_URL` env var to connect to any EVM based network via an RPC endpoint. This connection then can be used with the `custom` network.\n\nE.g. to deploy the Safe contract suite on that network you would run `yarn deploy-all custom`.\n\nThe resulting addresses should be on all networks the same.\n\nNote: Address will vary if contract code is changed or a different Solidity version is used.\n\n### Verify contract\n\nThis command will use the deployment artifacts to compile the contracts and compare them to the onchain code\n\n```bash\nyarn hardhat --network \u003cnetwork\u003e local-verify\n```\n\nThis command will upload the contract source to Etherescan\n\n```bash\nyarn hardhat --network \u003cnetwork\u003e etherscan-verify\n```\n\n## Security and Liability\n\nAll contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n## License\n\nAll smart contracts are released under LGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5afe%2Fsafe-relay-bounded-refund-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5afe%2Fsafe-relay-bounded-refund-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5afe%2Fsafe-relay-bounded-refund-module/lists"}