{"id":15065198,"url":"https://github.com/hamzayasin1/learn-solidity-with-basic-contracts","last_synced_at":"2025-03-16T00:17:35.846Z","repository":{"id":164068424,"uuid":"103382716","full_name":"HamzaYasin1/Learn-solidity-with-basic-contracts","owner":"HamzaYasin1","description":"I just wrote some basic contracts in solidity for learning purpose, it includes four contracts, OddNumber, EvenNumber, PayableContract, SalelsContract.","archived":false,"fork":false,"pushed_at":"2017-09-13T11:42:28.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T00:17:31.693Z","etag":null,"topics":["solidity","solidity-codes","solidity-contracts","solidity-language"],"latest_commit_sha":null,"homepage":null,"language":null,"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/HamzaYasin1.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-13T09:50:36.000Z","updated_at":"2023-05-30T11:46:30.000Z","dependencies_parsed_at":"2023-09-01T03:02:16.811Z","dependency_job_id":null,"html_url":"https://github.com/HamzaYasin1/Learn-solidity-with-basic-contracts","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/HamzaYasin1%2FLearn-solidity-with-basic-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamzaYasin1%2FLearn-solidity-with-basic-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamzaYasin1%2FLearn-solidity-with-basic-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamzaYasin1%2FLearn-solidity-with-basic-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HamzaYasin1","download_url":"https://codeload.github.com/HamzaYasin1/Learn-solidity-with-basic-contracts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806114,"owners_count":20350783,"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":["solidity","solidity-codes","solidity-contracts","solidity-language"],"created_at":"2024-09-25T00:35:01.785Z","updated_at":"2025-03-16T00:17:35.817Z","avatar_url":"https://github.com/HamzaYasin1.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learn-solidity-with-basic-contracts\nI just wrote some basic contracts in solidity for learning purpose, it includes four contracts, OddNumber, EvenNumber, PayableContract, SalelsContract.\n## OddNumber.sol\nIn this contract there are two methods the one who sets the limits and second who returns the value of odd numbers.\n\n      function setLimit(uint _limit)\n      function getTotalOddNumbers()constant returns (uint)\n## EvenNumber.sol\nIn this contract there are two methods the one who sets the limits and second who returns the value of even numbers.\n     \n      function setLimit(uint _limit)\n      function getTotalOddNumbers()constant returns (uint)\n## Sales.sol\nSales contract have some basic tax related functions or you can say this is a tax calculator. It has five various functions.\n   \n    function setAmount(uint _amount)\n    function getTotalStateTax() constant returns (uint)\n    function getCountyTax() constant returns (uint)\n    function geTotalSalesTax() constant returns (uint)\n    function geTotalSalesAmount() constant returns (uint)\n\n## PayableContract.sol\nPayable contract works as a online funds transfer machine. Its deposit funds and withdraw it using some major modifier. It has three functions a modifier and an event.\n\n     event UserStatus(string FirstMsg, uint funds, string SecondMsg, address user);\n     modifier isClient()\n     function depositFunds() payable\n     function withdrawFunds(uint amount) isClient\n     function getFunds () isClient constant returns (uint)\n     \n# Support Developer\nDonate Some Ether to the Developer. \n    \n    Ethereum Address : 0x39886D0BFccc74D8CCb21c44534a41eC626620b3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamzayasin1%2Flearn-solidity-with-basic-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamzayasin1%2Flearn-solidity-with-basic-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamzayasin1%2Flearn-solidity-with-basic-contracts/lists"}