{"id":23545549,"url":"https://github.com/bh2smith/scam-token-ico","last_synced_at":"2025-05-15T10:34:37.870Z","repository":{"id":93410199,"uuid":"139552983","full_name":"bh2smith/Scam-Token-ICO","owner":"bh2smith","description":"An exercise in Ethereum blockchain development stack. ","archived":false,"fork":false,"pushed_at":"2018-07-24T08:29:41.000Z","size":340,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T10:47:59.220Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bh2smith.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-03T08:33:07.000Z","updated_at":"2018-07-24T08:29:42.000Z","dependencies_parsed_at":"2023-03-18T23:19:57.021Z","dependency_job_id":null,"html_url":"https://github.com/bh2smith/Scam-Token-ICO","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/bh2smith%2FScam-Token-ICO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2FScam-Token-ICO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2FScam-Token-ICO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bh2smith%2FScam-Token-ICO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bh2smith","download_url":"https://codeload.github.com/bh2smith/Scam-Token-ICO/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254323183,"owners_count":22051739,"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-26T08:18:48.805Z","updated_at":"2025-05-15T10:34:37.857Z","avatar_url":"https://github.com/bh2smith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Gnosis; On-boarding Exercise\n\nThe following assignment is meant to introduce several concepts surrounding Ethereum blockchain development and is in no way intended to be deployed as a scam.\n\n## Scam-Token-ICO\n\n**GOAL**: Write an ICO contract to raise 1000 WETH (*Wrapped Ether*).\n\n- Anyone can participate in the sale by transferring WETH to the ICO contract.\n- The sale is over once 1000 WETH have been deposited (i.e. no more participation)\n- Investors may withdraw their SCM tokens 2 minutes after the sale has ended.\n- Scam Token's value is equivalent to 10 times their WETH investment.\n\n### Step 1. Write contracts in solidity.\n\n- ICO contract based on upper requirements.\n- Create SCM token. (Decimals: 18, Name: Scam, Symbol: SCM).\n- **Do not accept ETH** use the WETH token  at (https://github.com/gnosis/canonical-weth).\n\n### Step 2. Use *truffle*, *ganache* and *web3.js* and WETH as an external dependency.\n\n\n### Step 3. Write a simple react (or alternative) frontend. [Don't waste time on nice UI].\n\n- Interface should;\n    - Show users WETH balance.\n    - Show user's SCM balance.\n    - Show user's SCM balance to claim.\n    - Signal status of ICO.\n\n- Allow user to participate in the ICO by investing a user defined amount.\n    The required approve and participate transactions should be signed immediately after each other. That is, Don't wait for the first transaction to be mined.\n\n- Allow user to claim his SCM tokens.\n\n### Step 4. Gas costs, code testing and (test-net) deployment\n\n- Estimate gas costs for each transaction with (https://safe-relay.dev.gnosisdev.com/api/v1/gas-station/)\n- Test coverage and reach 100% with automated truffle tests (https://github.com/sc-forks/solidity-coverage)\n- Deploy contract on Rinkeby test-net using truffle deploy. Save artifacts in git repository.\n\n\n## Expectations:\n\n- Implementation time: 1-5 days.\n- Share git repository with mentor.\n\n## Questions\n\n1. What are *gas*, *gas limit* and *gas price*?\n\n2. What is a nonce?\n\n    nonce(address) = Total number of transactions (in and out)\n\n3. What is a transaction hash?\n\n    transaction hash is encrypted (unique) identifier of a transaction (contains a mix of addresses, signatures, ETC...). Is basically an encoded version of the transaction.\n\n4. How can you estimate gas costs and what is the issue with eth_estimateGas?\n\n5. What is the difference between a smart contract and a private key controlled account?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbh2smith%2Fscam-token-ico","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbh2smith%2Fscam-token-ico","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbh2smith%2Fscam-token-ico/lists"}