Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hamzayasin1/learn-solidity-with-basic-contracts
I just wrote some basic contracts in solidity for learning purpose, it includes four contracts, OddNumber, EvenNumber, PayableContract, SalelsContract.
https://github.com/hamzayasin1/learn-solidity-with-basic-contracts
solidity solidity-codes solidity-contracts solidity-language
Last synced: about 1 month ago
JSON representation
I just wrote some basic contracts in solidity for learning purpose, it includes four contracts, OddNumber, EvenNumber, PayableContract, SalelsContract.
- Host: GitHub
- URL: https://github.com/hamzayasin1/learn-solidity-with-basic-contracts
- Owner: HamzaYasin1
- License: mit
- Created: 2017-09-13T09:50:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T11:42:28.000Z (over 7 years ago)
- Last Synced: 2024-10-14T01:20:49.309Z (3 months ago)
- Topics: solidity, solidity-codes, solidity-contracts, solidity-language
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Learn-solidity-with-basic-contracts
I just wrote some basic contracts in solidity for learning purpose, it includes four contracts, OddNumber, EvenNumber, PayableContract, SalelsContract.
## OddNumber.sol
In this contract there are two methods the one who sets the limits and second who returns the value of odd numbers.function setLimit(uint _limit)
function getTotalOddNumbers()constant returns (uint)
## EvenNumber.sol
In this contract there are two methods the one who sets the limits and second who returns the value of even numbers.
function setLimit(uint _limit)
function getTotalOddNumbers()constant returns (uint)
## Sales.sol
Sales contract have some basic tax related functions or you can say this is a tax calculator. It has five various functions.
function setAmount(uint _amount)
function getTotalStateTax() constant returns (uint)
function getCountyTax() constant returns (uint)
function geTotalSalesTax() constant returns (uint)
function geTotalSalesAmount() constant returns (uint)## PayableContract.sol
Payable 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.event UserStatus(string FirstMsg, uint funds, string SecondMsg, address user);
modifier isClient()
function depositFunds() payable
function withdrawFunds(uint amount) isClient
function getFunds () isClient constant returns (uint)
# Support Developer
Donate Some Ether to the Developer.
Ethereum Address : 0x39886D0BFccc74D8CCb21c44534a41eC626620b3