{"id":25697903,"url":"https://github.com/deltartificial/gas-puzzles-optimized","last_synced_at":"2025-02-25T02:33:48.329Z","repository":{"id":198235627,"uuid":"553883469","full_name":"deltartificial/gas-puzzles-optimized","owner":"deltartificial","description":"Optimized Gas Puzzles from RareSkills","archived":false,"fork":false,"pushed_at":"2022-10-19T09:18:31.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-10-05T00:24:34.190Z","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/deltartificial.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}},"created_at":"2022-10-18T23:28:52.000Z","updated_at":"2023-10-05T00:24:50.351Z","dependencies_parsed_at":"2023-10-05T00:24:50.258Z","dependency_job_id":null,"html_url":"https://github.com/deltartificial/gas-puzzles-optimized","commit_stats":null,"previous_names":["deltartificial/gas-puzzles-optimized"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fgas-puzzles-optimized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fgas-puzzles-optimized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fgas-puzzles-optimized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deltartificial%2Fgas-puzzles-optimized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deltartificial","download_url":"https://codeload.github.com/deltartificial/gas-puzzles-optimized/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240589867,"owners_count":19825449,"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-02-25T02:33:21.366Z","updated_at":"2025-02-25T02:33:48.314Z","avatar_url":"https://github.com/deltartificial.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RareSkills Gas Puzzles - Optimized\n\n## Non-Optimized Contract Gas\n- Require (43 392 gas)\n- ArraySum (23 399 gas)\n- Distribute (71 953 gas)\n\n## Optimized Contract Gas (All Attempts)\n- Require 1 (26 292 gas)\n- Require 2 (26 282 gas)\n- Require 3 (26 226 gas)\n- ArraySum 1 ( gas)\n- Distribute 1 ( gas)\n\n\nRules\n- you may not change the optimizer level\n- you may not change the solidity version\n- you may refactor functionality as long as you don't break the business logic\n- you may make reasonable assumptions about what variable sizes are necessary to get things done\n- you may remove unnecessary or redunant logic (some have been intentionally added)\n- because making functions `payable` is a controversial optimization, you do not need to make functions `payable` to reach the gas target unless the function needs to be payable to fulfill its business logic\n\nOfficial Repo Link :\nhttps://github.com/RareSkills/gas-puzzles\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltartificial%2Fgas-puzzles-optimized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeltartificial%2Fgas-puzzles-optimized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltartificial%2Fgas-puzzles-optimized/lists"}