{"id":22111129,"url":"https://github.com/volumefi/somm_airdrop_contract","last_synced_at":"2025-03-24T04:28:40.295Z","repository":{"id":44717885,"uuid":"437126685","full_name":"VolumeFi/somm_airdrop_contract","owner":"VolumeFi","description":"Sommelier Airdrop Vyper contracts for claiming SOMM tokens on Ethereum Blockchain","archived":false,"fork":false,"pushed_at":"2022-01-28T20:02:19.000Z","size":951,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T10:29:37.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/VolumeFi.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}},"created_at":"2021-12-10T22:08:25.000Z","updated_at":"2021-12-17T20:37:03.000Z","dependencies_parsed_at":"2022-09-04T07:51:25.138Z","dependency_job_id":null,"html_url":"https://github.com/VolumeFi/somm_airdrop_contract","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/VolumeFi%2Fsomm_airdrop_contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fsomm_airdrop_contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fsomm_airdrop_contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fsomm_airdrop_contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolumeFi","download_url":"https://codeload.github.com/VolumeFi/somm_airdrop_contract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245209164,"owners_count":20577994,"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-12-01T10:34:20.529Z","updated_at":"2025-03-24T04:28:40.272Z","avatar_url":"https://github.com/VolumeFi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Somm Airdrop Contract\n\n## Testing and Development on testnet\n\n### Dependencies\n\n* [nodejs](https://nodejs.org/en/download/) - \u003e=v8, tested with version v16.13.1\n* [python3](https://www.python.org/downloads/release/python-368/) from version 3.6 to 3.9, python3-dev\n* [brownie](https://github.com/iamdefinitelyahuman/brownie) - tested with version [1.17.2](https://github.com/eth-brownie/brownie/releases/tag/v1.17.2)\n* [ganache-cli](https://github.com/trufflesuite/ganache-cli) - tested with version [6.12.2](https://github.com/trufflesuite/ganache-cli/releases/tag/v6.12.2)\n\n\n\n###  Deploy on testnet\n\n```bash\nbrownie run scripts/deploy_tesnet.py --network rinkeby\n```\n\n\n\n###  Deploy on mainnet\n\nReplace `SOMM` token address and `Gravity Bridge` Address in `scripts/deploy_mainnet.py`\n\n```bash\nbrownie run scripts/deploy_mainnet.py --network mainnet\n```\nTransfer `SOMM` token to the airdrop address.\n\n\n\n### Running the Tests\n\n```bash\nbrownie test -s\n```\n\n\n\n### Contracts\n\n- Airdrop - Main contract to airdrop using Merkle tree\n- ERC20 - Test ERC20 contract\n\n\n\n## External functions\n\n| Function Name  | Parameters                                                 | Note | Description                                              |\n| -------------- | ---------------------------------------------------------- | ---- | -------------------------------------------------------- |\n| claim          | address receiver, uint256 amount, Bytes32[15] merkle_proof |      | claim function to airdrop. verify merkle proof with root |\n| return_tokens  |                                                            |      | return all remaining tokens to `Gravity` after deadline  |\n| somm_token     |                                                            | view | SOMM_TOKEN address                                       |\n| received       | address receiver                                           | view | returns `true` if received once                          |\n| deadline       |                                                            | view | airdrop deadline                                         |\n| gravity_bridge |                                                            | view | Gravity Bridge address                                   |\n| merkle_root    |                                                            | view | root of merkle tree                                      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fsomm_airdrop_contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolumefi%2Fsomm_airdrop_contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fsomm_airdrop_contract/lists"}