aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
Commit message (Collapse)AuthorAgeFilesLines
* Split micropayments example into seperate fileChris Ward2019-01-151-429/+1
|
* Merge pull request #5785 from ethereum/docs-split-safe-remotechriseth2019-01-151-107/+1
|\ | | | | [DOCS] Split safe remote example into new file
| * Split safe remote example into new fileChris Ward2019-01-141-107/+1
| |
* | Split blind auction example into seperate docChris Ward2019-01-141-341/+1
|/
* Split voting example into seperate fileChris Ward2019-01-141-191/+1
|
* Doc: Fix typo "a messy" -> "a mess"Mathias Baumann2018-12-191-1/+1
|
* Fix indentation in documentationAlex Beregszaszi2018-11-151-3/+1
|
* Begin review of micropayments exampleChris Ward2018-11-151-124/+65
| | | | | | | | | | | | | | Language tidy, add correct method and package namespaces and make more consistent with each project docs First changes from review Further fixes after review Fix line breaks Revert code changes Update
* Fixes typoLeanne2018-11-041-1/+1
|
* Add check for whether voter has right to voteBerk Erol2018-10-261-0/+1
|
* Fix version pragma in documentation.chriseth2018-10-091-1/+1
|
* Fix typos.chriseth2018-10-041-1/+1
|
* Update version pragma in all documentation examplesAlex Beregszaszi2018-09-261-5/+5
|
* Updates to examples.chriseth2018-09-141-4/+5
|
* Add payable and non-payable state mutability to AddressType.Daniel Kirchner2018-09-131-9/+9
|
* Fix typo in documentation.Crypto Jerônimo2018-08-151-1/+1
|
* Update documentation.chriseth2018-08-151-23/+23
|
* Update documentation examples.chriseth2018-08-141-5/+5
|
* Update documentation.Daniel Kirchner2018-08-011-4/+4
|
* Merge pull request #4512 from ↵chriseth2018-07-161-4/+4
|\ | | | | | | | | chase1745/use-explicit-data-locations-external-tests Added default data locations to docs and other external tests.
| * Added default data locations to docs and other external tests.Chase McDermott2018-07-151-4/+4
| |
* | Fix typo in the function nameMichał Załęcki2018-07-151-1/+1
|/
* docs: Fix typos.Cryptomental2018-07-111-2/+2
| | | | | | Used codespell and manual fixes. Refs: #4442
* Merge pull request #4212 from jvmaia/patch-3chriseth2018-07-101-1/+486
|\ | | | | micropayment channel example with two chapters
| * Some copy-editing.chriseth2018-07-101-130/+106
| |
| * add explanation about the splitSignature functionJoão Vítor2018-06-261-1/+5
| |
| * update code versionJoão Vítor2018-06-121-8/+7
| |
| * update micropayment channel exampleJoão Vítor2018-06-081-69/+80
| |
| * fix recoverSigner functionJoão Vítor2018-06-041-3/+3
| |
| * fix returnsJoão Vítor2018-06-041-1/+1
| |
| * fix clainTimeout() functionJoão Vítor2018-06-041-1/+1
| |
| * fix a wordJoão Vítor2018-06-041-1/+1
| |
| * write the full contractsJoão Vítor2018-06-031-176/+240
| |
| * fix code syntaxJoão Vítor2018-05-311-13/+2
| |
| * split long linesJoão Vítor2018-05-311-26/+130
| |
| * micropayment channel example with two chaptersJoão Vítor2018-05-311-1/+339
| |
* | Documentation.chriseth2018-06-251-3/+3
| |
* | Update documentation for strict address literalsAlex Beregszaszi2018-06-251-1/+1
|/
* Update documentation for multi variable declaration statement.chriseth2018-05-161-3/+3
|
* Update some examples to remove warnings.chriseth2018-04-301-6/+6
|
* Docs: Update solidity version for revert with reasonLefteris Karapetsas2018-04-161-4/+4
|
* Update documentation.chriseth2018-04-121-22/+44
|
* Update solidity-by-example.rstNetX2018-04-091-5/+4
|
* Use 0.4.21 pragma for documentation that uses "emit".chriseth2018-03-021-3/+3
|
* Fix name shadowing in ballot example contract.chriseth2018-02-271-9/+14
|
* Documentation about emitting events.chriseth2018-02-221-9/+9
|
* Update solidity-by-example.rstmirgj2018-02-221-1/+1
| | | | | | highestBidder is the address. it's highestBid that should be != 0 to be considered as pending return. It's that right?
* Fixes for failing testsJim McDonald2017-12-131-4/+4
|
* Fix Solidity warningsJim McDonald2017-12-131-18/+24
|
* Bugfix in blind auctionchriseth2017-11-241-4/+3
|
* also rm biddingTimeWilliam Morriss2017-10-091-3/+1
|
* remove auctionStartWilliam Morriss2017-10-091-6/+4
|
* Explain safe purchase (even number)Alex Beregszaszi2017-08-281-0/+3
|
* Update on the example for BlindActionChim Kan2017-08-251-1/+1
| | | In the Mist app, the Blind Action contract cannot compile because it cannot accept implicit conversion of integer to byte32. I just added the conversion method byte32 in line 470 for bid.blindedBid.
* Adding storage into the pointer for Voter delegateChim Kan2017-08-241-1/+1
| | | | | | | | | | | | | | | Hi, The example from https://github.com/ethereum/solidity/blob/develop/docs/solidity-by-example.rst is not working. It keeps giving this error in the Mist program: Could not compile source code. Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning. Voter delegate = voters[to]; ^------------^ The solution is just to add the keyword "storage" and then the example works again.
* Removes reference to stack depth attackAdrián Calvo2017-08-041-3/+3
| | | Changed the old stack depth attack reference to a generic execution of an untrusted contract to keep the suggestion of the withdrawal pattern.
* Avoid using .send in the examplesAlex Beregszaszi2017-07-271-7/+2
|
* Use the storage keyword in examplesAlex Beregszaszi2017-07-271-2/+2
|
* Avoid using var if not requiredAlex Beregszaszi2017-07-271-2/+2
|
* Update solidity-by-example.rst. Fixes accepted bidsLuke Schoen2017-07-171-2/+2
| | | Only accept bid values higher than highest bid. Since returns early from `placeBid` function if `value <= highestBid`
* Add weight == 0 condition to giveRightToVote functionDillon Arevalo2017-06-211-4/+4
| | | | This will make it so votes can't be deleted accidentally by giving someone with weight > 1 the right to vote again
* Merge pull request #2315 from pjstadig/patch-1Yoichi Hirai2017-05-261-1/+1
|\ | | | | Fix typo
| * Fix typoPaul Stadig2017-05-261-1/+1
| |
* | Rename events in purchase exampleAlexey Alexeyeff2017-05-261-6/+6
|/ | | Rename events in purchase example according to style guide
* Fix typo.chriseth2017-05-171-1/+1
| | | Fixes #2273
* Parentheses.chriseth2017-05-031-3/+3
|
* Corrections and some style.chriseth2017-05-031-10/+10
|
* Cleanup to make the docs more consistent.chriseth2017-05-031-13/+15
|
* Update common-patterns.rstMatt Wisniewski2017-05-031-60/+44
|
* minor: fix formatting and grammarAbraham Sangha2017-04-151-3/+2
|
* Fix delegation loop in Ballot example contractRemo Fürst2017-03-091-8/+8
| | | | fixes #1753
* Update solidity-by-example.rstvarunagarwal3152016-11-041-3/+3
| | | added the space. Sorry, just slipped my mind.
* Update solidity-by-example.rstvarunagarwal3152016-11-031-11/+4
| | | | | made changes suggested to simplify code. Hope this is enough Thanks
* Update solidity-by-example.rstvarunagarwal3152016-11-031-0/+16
| | | Might be trivial, but makes more sense to be able to directly return the name of the winner for the election. If the position of the winner on the proposal[] array is returned, then people still don't know the name of the person who won.
* Rename sha3 to keccak256 in the documentationAlex Beregszaszi2016-10-061-2/+2
|
* Update documentation to version 0.4.0.chriseth2016-09-071-25/+11
|
* Merge pull request #1003 from winsvega/docschriseth2016-09-061-0/+8
|\ | | | | add "pragma solidity ^0.4.0;" to code examples
| * add "pragma solidity ^0.4.0;" to code examplesDimitry2016-09-051-0/+8
| |
* | Require ";" after "_"chriseth2016-09-051-2/+2
|/
* Use new style for the docsDenton Liu2016-08-271-2/+1
|
* Merge pull request #913 from chriseth/auctionchriseth2016-08-251-15/+29
|\ | | | | Updated the function withdraw() in the SimpleAuction and BlindAuction…
| * Updated the function withdraw() in the SimpleAuction and BlindAuction ↵Alex Darby2016-08-191-15/+29
| | | | | | | | contracts to not use a 'throw' if a address send() fails.
* | Remove trailing whitespaceDenton Liu2016-08-101-1/+1
| |
* | Add section about withdrawal patternDenton Liu2016-08-101-0/+2
|/
* Security Considerationschriseth2016-07-041-3/+21
|
* Typo.chriseth2016-06-091-1/+1
|
* stylechriseth2016-06-021-3/+5
|
* Removed some problems in documentation examples.chriseth2016-05-311-20/+58
|
* Changed inline code syntaxDenton Liu2016-05-301-1/+1
| | | | Changed from :code:`<inline>` to ``<inline>``
* Corrected solidity-by-example.rstDenton Liu2016-05-301-1/+1
| | | | Fixed inline code syntax
* Typo correction in solidity-by-example.rstMathieu Van der Haegen2016-05-261-1/+1
| | | Just correcting a simple typo in the comments of the code
* Changed whitespace formattingDenton Liu2016-05-181-1/+1
|
* Removed trailing whitespaceDenton Liu2016-05-181-2/+2
|
* Moved the location of the "||"Denton Liu2016-05-061-3/+3
|
* Fixed up formattingDenton Liu2016-05-061-62/+94
|
* Typo fixDave Hoover2016-04-121-1/+1
|
* Refund actual deposit, and not bid value.chriseth2016-01-121-1/+1
| | | | Thanks to @jonasnick for finding this. Fixes #349
* Imported documentation.chriseth2015-12-081-0/+530