{"id":21280928,"url":"https://github.com/consensysmesh/ethermax","last_synced_at":"2025-07-11T10:33:13.406Z","repository":{"id":36599789,"uuid":"40905938","full_name":"ConsenSysMesh/etherMAX","owner":"ConsenSysMesh","description":"On-blockchain contest for solving knapsack problems","archived":false,"fork":false,"pushed_at":"2015-08-17T15:40:38.000Z","size":244,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":20,"default_branch":"master","last_synced_at":"2023-02-27T00:41:24.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ConsenSysMesh.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":"2015-08-17T15:28:09.000Z","updated_at":"2020-09-03T21:37:37.000Z","dependencies_parsed_at":"2022-09-02T20:41:09.399Z","dependency_job_id":null,"html_url":"https://github.com/ConsenSysMesh/etherMAX","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2FetherMAX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2FetherMAX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2FetherMAX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2FetherMAX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConsenSysMesh","download_url":"https://codeload.github.com/ConsenSysMesh/etherMAX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225715945,"owners_count":17512908,"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-21T10:42:51.108Z","updated_at":"2024-11-21T10:42:51.723Z","avatar_url":"https://github.com/ConsenSysMesh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## etherMAX\n\netherMAX is a contest built on Ethereum to incentivize solving an optimization problem. The app was built for a ConenSys Dapp-athon\n\nOn etherMAX, anyone can create their own token sale by describing 1) the max number of tokens available, 2) a minimum price per token, 3) length of sale 4) bond required for each matcher, 5) amount of time allotted to find optimal matches, and 6) a % reward to the best matcher\n\n\t\n\nContests are created with this method: \n`newContest(uint32 entryPeriod, uint minPrice, uint maxItems, uint32 solvePeriod, uint solverBond, uint32 reward)`\n\n\n\n#### This creates a 4 phase contest:\n\n`function enter(uint contestId, uint itemCount, uint itemPrice)`\n\n- Entry phase: anyone can commit to purchase a number of tokens at any price. These pledges are non-revocable but funds can be claimed if they are not awarded the tokens\n\n`function proposeSolve(uint contestId, uint maxEth)`\n\n- Matching phase: anyone who has put down the bond required by the sale can submit an ETH value that is achievable via combination of the entries. Only the value is required\n\n`function claimSolve(uint[] winners, uint contestId, uint solutionId, bool last)`\n\n- Solution claiming phase: the highest value submitter has a period of time to 'prove' their solution by providing the indices of the entries that add up to that sum\n\n`function claimItems(uint contestId, uint winnerId)`\n\n- Token claiming phase: anyone who was matched in the previous phase will have access to a new token contract where they can send themselves the purchased amount\n\n\nYou can run a simple interface for creating contests \u0026 entries by running `cd frontend \u0026\u0026 npm start`\n\nA very naiive knapsack solver can be run with `cd solver \u0026\u0026 npm install \u0026\u0026 node server \u003ccontractAddress\u003e \u003ccontestId\u003e`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsensysmesh%2Fethermax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconsensysmesh%2Fethermax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsensysmesh%2Fethermax/lists"}