{"id":35205436,"url":"https://github.com/bancorprotocol/airdrop","last_synced_at":"2026-05-17T21:33:33.351Z","repository":{"id":47379280,"uuid":"219807639","full_name":"bancorprotocol/airdrop","owner":"bancorprotocol","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-13T12:52:09.000Z","size":419,"stargazers_count":2,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-18T05:54:29.347Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bancorprotocol.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":"2019-11-05T17:50:13.000Z","updated_at":"2023-05-07T06:22:53.000Z","dependencies_parsed_at":"2023-02-02T13:00:41.865Z","dependency_job_id":null,"html_url":"https://github.com/bancorprotocol/airdrop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bancorprotocol/airdrop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancorprotocol%2Fairdrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancorprotocol%2Fairdrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancorprotocol%2Fairdrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancorprotocol%2Fairdrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bancorprotocol","download_url":"https://codeload.github.com/bancorprotocol/airdrop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bancorprotocol%2Fairdrop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33155672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-29T13:41:46.834Z","updated_at":"2026-05-17T21:33:33.339Z","avatar_url":"https://github.com/bancorprotocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# airdrop\n\n**Prerequisites:**\n- node 10.16.0\n- npm 6.9.0\n\n**NodeJS Infrastructure:**\n- Use `npm install` in order to install all required packages\n- Use `npm test` in order to run truffle-test or solidity-coverage\n- You can use `npm run build` in order to generate all artifacts (`abi` and `bin` files)\n- All required artifacts are already stored in this repository (under `/solidity/build`)\n\n**System Verification:**\n- Use `npm test 1` (quick testing)\n- Use `npm test 2` (full coverage)\n\n**Upgrade Execution:**\n```bash\n# initiate the upgrade process\nnode ./solidity/scripts/upgrade/run.js\n    Configuration file name\n    Ethereum node address\n    Deployer's private key\n    BNT wallet private key\n```\n\n**Snapshot Execution:**\n```bash\n# initiate the snapshot process\nnode ./solidity/scripts/snapshot/run.js\n    Output file name (e.g. airdrop.txt)\n    Token contract address (e.g. 0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C)\n    Vault contract address (e.g. 0xf1A5C3EDA198BD3eE097Ac4b8340E4d47C9D4679)\n    Etherscan developer key\n    Infura developer key\n    Last block number\n```\n\n**Airdrop Execution:**\n```bash\n# move the amount entitled by the airdrop contract to the foundation wallet\nnode ./solidity/scripts/airdrop/patch1.js\n    Input file name (e.g. airdrop.txt)\n    Output file name (e.g. airdrop_patch1.txt)\n    Airdrop contract address (e.g. 0xbE8EA1615Bcc7007F4Ac4cDa4e4E89B20d5c9499)\n    Foundation wallet address (e.g. 0x9b0D0ac3b597F77028b9Df4F90f6C228d6ba33CC)\n```\n\n```bash\n# replace the BancorX contrcat address and move it to the top of the list\nnode ./solidity/scripts/airdrop/patch2.js\n    Input file name (e.g. airdrop_patch1.txt)\n    Output file name (e.g. airdrop_patch2.txt)\n    Old BancorX contract address (e.g. 0xdA96eB2Fa67642C171650c428F93aBDfB8A63A2D)\n    New BancorX contract address (e.g. 0xEaf3ce7b745F27835Df80B53b86B5299986069C1)\n```\n\n```bash\n# divide each amount by 10 and remove all the zero amounts in the list\nnode ./solidity/scripts/airdrop/patch3.js\n    Input file name (e.g. airdrop_patch2.txt)\n    Output file name (e.g. airdrop_patch3.txt)\n```\n\n```bash\n# rearrange the list by alphabetical order of the addresses\nnode ./solidity/scripts/airdrop/patch4.js\n    Input file name (e.g. airdrop_patch3.txt)\n    Output file name (e.g. airdrop_patch4.txt)\n```\n\n```bash\n# initiate the airdrop process\nnode ./solidity/scripts/airdrop/run.js\n    Input file name (e.g. airdrop_patch4.txt)\n    Configuration file name\n    Ethereum node address\n    Executing agent's private key\n    Number of store operations per batch\n    Number of transfer operations per batch\n    Test mode (any non-empty string)\n```\n\n## Testing Mode:\n\nIn this mode you can execute each process separately and independently of the others, with the order of execution being insignificant.\n\n**Upgrade Configuration File Example:**\n```json\n{\n    \"relayTokenParams\": [\n        \"BNT/ETH Token\",\n        \"BET\",\n        18\n    ]\n}\n```\n\n**Airdrop Configuration File Example:**\n```json\n{\n}\n```\n\n## Operational Mode:\n\nIn this mode you should execute the `upgrade` process and the `snapshot` process before you execute the `airdrop` process, because\nthe input for the `airdrop` process partially derives from the output of the `upgrade` process and the output of the `snapshot` process.\n\n**Upgrade Configuration File Example:**\n```json\n{\n    \"relayTokenParams\": [\n        \"BNT/ETH Token\",\n        \"BET\",\n        18\n    ],\n    \"oldConverter\": {\n        \"addr\": \"0x9c248517b92Ae226B88a0a0C28dE02B9B7b039D3\"\n    }\n}\n```\n\n**Airdrop Configuration File Example:**\n```json\n{\n    \"airDropper\": {\n        \"addr\": \"0x69532f0B00157866933CDA7C1Bb8Bb0c373f20BF\"\n    },\n    \"relayToken\": {\n        \"addr\": \"0xb1CD6e4153B2a390Cf00A6556b0fC1458C4A5533\"\n    },\n    \"bancorX\": {\n        \"addr\": \"0xEaf3ce7b745F27835Df80B53b86B5299986069C1\"\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbancorprotocol%2Fairdrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbancorprotocol%2Fairdrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbancorprotocol%2Fairdrop/lists"}