{"id":16741876,"url":"https://github.com/sakulstra/forge-bug-repro","last_synced_at":"2025-03-15T23:42:19.598Z","repository":{"id":185024579,"uuid":"613411014","full_name":"sakulstra/forge-bug-repro","owner":"sakulstra","description":"repo for forge issue reproductions","archived":false,"fork":false,"pushed_at":"2023-03-26T11:31:09.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T12:28:03.218Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sakulstra.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}},"created_at":"2023-03-13T14:17:00.000Z","updated_at":"2023-03-13T14:17:07.000Z","dependencies_parsed_at":"2023-07-31T12:15:05.795Z","dependency_job_id":null,"html_url":"https://github.com/sakulstra/forge-bug-repro","commit_stats":null,"previous_names":["sakulstra/forge-bug-repro"],"tags_count":0,"template":false,"template_full_name":"bgd-labs/bgd-forge-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakulstra%2Fforge-bug-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakulstra%2Fforge-bug-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakulstra%2Fforge-bug-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakulstra%2Fforge-bug-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sakulstra","download_url":"https://codeload.github.com/sakulstra/forge-bug-repro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806032,"owners_count":20350773,"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-10-13T01:06:02.363Z","updated_at":"2025-03-15T23:42:19.573Z","avatar_url":"https://github.com/sakulstra.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BGD forge template\n\nBasic template with prettier and rest configuration\n\nTo create a new project using this template run\n\n```shell\n$ forge init --template bgd-labs/bgd-forge-template my_new_project\n```\n\n## Recommended modules\n\n[bgd-labs/solidity-utils](https://github.com/bgd-labs/solidity-utils) - common contracts we use everywhere, ie transparent proxy and around\n\n[bgd-labs/aave-address-book](https://github.com/bgd-labs/aave-address-book) - the best and only source about all deployed Aave ecosystem related contracts across all the chains\n\n[bgd-labs/aave-helpers](https://github.com/bgd-labs/aave-helpers) - useful utils for integration, and not only testing related to Aave ecosystem contracts\n\n[Rari-Capital/solmate](https://github.com/Rari-Capital/solmate) - one of the best sources of base contracts for ERC20, ERC21, which will work with transparent proxy pattern out of the box\n\n[OpenZeppelin/openzeppelin-contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) - another very reputable and well organized source of base contracts for tokens, access control and many others\n\n## Development\n\nThis project uses [Foundry](https://getfoundry.sh). See the [book](https://book.getfoundry.sh/getting-started/installation.html) for detailed instructions on how to install and use Foundry.\nThe template ships with sensible default so you can use default `foundry` commands without resorting to `MakeFile`.\n\n### Setup\n\n```sh\ncp .env.example .env\nforge install\n```\n\n### Test\n\n```sh\nforge test\n```\n\n## Advanced features\n\n### Diffing\n\nFor contracts upgrading implementations it's quite important to diff the implementation code to spot potential issues and ensure only the intended changes are included.\nTherefore the `Makefile` includes some commands to streamline the diffing process.\n\n#### Download\n\nYou can `download` the current contract code of a deployed contract via `make download chain=polygon address=0x00`. This will download the contract source for specified address to `src/etherscan/chain_address`. This command works for all chains with a etherscan compatible block explorer.\n\n#### Git diff\n\nYou can `git-diff` a downloaded contract against your src via `make git-diff before=./etherscan/chain_address after=./src out=filename`. This command will diff the two folders via git patience algorithm and write the output to `diffs/filename.md`.\n\n**Caveat**: If the onchain implementation was verified using flatten, for generating the diff you need to flatten the new contract via `forge flatten` and supply the flattened file instead fo the whole `./src` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakulstra%2Fforge-bug-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakulstra%2Fforge-bug-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakulstra%2Fforge-bug-repro/lists"}