Evgeny Medvedev
2f6f81640b
Add another contract with call to demonstrate re-entrancy vulnerability.
...
Add another contract with call to demonstrate re-entrancy vulnerability as send explicitly sets gas to 2300 by default according to this commit 9ca7472
which makes it impossible to "get multiple refunds" because a non-zero CALL costs at least 9700 gas. This issue is discussed on Ethereum StackExchange https://ethereum.stackexchange.com/questions/30371/send-ether-reentrancy-attack-in-reality-how-could-fallback-function-make-a-mes/30616#30616
2017-12-12 03:31:00 +00:00
Zhen Zhang
d50e8abefb
Document JSON I/O error classes
2017-12-12 03:02:30 +00:00
chriseth
eebeb52aed
Merge pull request #3228 from ethereum/docs-tests-struct
...
Enable struct abi example with experimental pragma
2017-12-11 14:26:15 +01:00
chriseth
27f38fb5b3
Merge pull request #3281 from GNSPS/develop
...
Removed manual adjustment of stack of the docs
2017-12-11 12:00:47 +01:00
Kamuela Franco
ef57961711
Update style-guide.rst to include enum style
2017-12-09 14:53:40 +00:00
Gonçalo Sá
ca16099ad0
Removed manual adjustment of stack of the docs
...
Removed the section fo the docs regarding manual adjustment of the stack given the `unbalanced stack` check prevents its use
2017-12-05 03:20:35 +00:00
Ezra Epstein
29b30a95e9
link to wiki for additional info on napspec
2017-12-01 14:00:44 -05:00
Alex Beregszaszi
134cc73e8e
Enable struct abi example with experimental pragma
2017-12-01 16:20:23 +00:00
chriseth
f7538daaf4
Preparation for 0.4.19 release.
2017-11-30 01:23:22 +01:00
Alex Beregszaszi
59bed63dbc
Update standard json documentation
2017-11-29 20:10:18 +00:00
wbt
2ebc9953e4
Minor update in contracts
...
Fix typos and prevent example code from needing horizontal scroll bar
2017-11-29 14:21:21 -05:00
chriseth
a1f59cbb17
Merge pull request #3220 from ethereum/IuliaIf
...
If statement for Iulia / Inline Assembly
2017-11-27 09:02:46 -05:00
chriseth
1d91b65b72
Force condition to be bool in iulia mode.
2017-11-23 18:52:04 +01:00
chriseth
d0be67f6b0
Bugfix in blind auction
2017-11-23 18:43:19 +01:00
Alex Beregszaszi
dcd55c5005
Add exponential notation to numbers in SolidityLexer
2017-11-23 12:13:00 +00:00
Alex Beregszaszi
2c3c5ad7c9
Move reserved keywords from SolidityLexer
2017-11-23 12:12:34 +00:00
chriseth
e15918d8b6
Add if statement to Julia specification.
2017-11-22 16:25:24 +01:00
chriseth
6dbc34e16e
If statement for Iulia / inline assembly.
2017-11-22 16:25:24 +01:00
Alex Beregszaszi
ff229ab05a
Merge pull request #3195 from ethereum/chriseth-patch-1
...
Tone down similarity to JavaScript.
2017-11-22 13:25:04 +00:00
chriseth
88e1b68aaf
More explanation about the packed encoding.
2017-11-22 12:29:16 +00:00
Ezra Epstein
744dea60a4
had "names" when "parameters" was meant
2017-11-22 04:08:35 +00:00
Alex Beregszaszi
23379e1061
Ensure each code snippet in the docs can be extracted for tests
2017-11-22 04:08:35 +00:00
Sami Mäkelä
a4310fec55
avoid reassigning variables
2017-11-22 03:33:08 +00:00
Sami Mäkelä
16f8187166
added Switch specification
2017-11-22 03:33:07 +00:00
chriseth
d4452d8c1f
Small fixes
...
suggested by @mrsmkl
2017-11-22 03:33:07 +00:00
chriseth
c2f2b25064
Some clarifications.
2017-11-22 03:33:07 +00:00
chriseth
5eaef9e87e
Typos and clarifications.
2017-11-22 03:33:07 +00:00
chriseth
a67bd2fb6a
Include JULIA section in the TOC.
2017-11-22 03:33:07 +00:00
Alex Beregszaszi
72f9e45b1a
Add true/false literals
2017-11-22 03:33:07 +00:00
Alex Beregszaszi
980ba42faf
Remove from examples
2017-11-22 03:33:06 +00:00
Alex Beregszaszi
0e0de7b7fd
Switch cases do not require colon
2017-11-22 03:33:06 +00:00
chriseth
d9abe7b712
Require at least one case in switch
2017-11-22 03:33:06 +00:00
Alex Beregszaszi
e9b08e029e
Restriction of switch
2017-11-22 03:33:06 +00:00
Alex Beregszaszi
15ca987048
Include section for Julia objects
2017-11-22 03:33:06 +00:00
Alex Beregszaszi
29502f9d44
Include type names in grammar
2017-11-22 03:33:06 +00:00
Alex Beregszaszi
b2f2b36b7c
Remove subassembly
2017-11-22 03:33:05 +00:00
Alex Beregszaszi
be470f107e
Support types in grammar
2017-11-22 03:33:05 +00:00
Alex Beregszaszi
0493828916
Clarify literals
2017-11-22 03:33:05 +00:00
Alex Beregszaszi
29da069bf0
Do not require parentheses on function return values
2017-11-22 03:33:05 +00:00
chriseth
ad5cd21571
More specification.
2017-11-22 03:33:05 +00:00
chriseth
f17bdaabda
Improve semantics description.
2017-11-22 03:33:04 +00:00
Alex Beregszaszi
e33a9b43ad
Include split/combine256
2017-11-22 03:33:04 +00:00
Alex Beregszaszi
aa6f33db2c
Use signed/unsigned types in low-level functions
2017-11-22 03:33:04 +00:00
Alex Beregszaszi
0e4d236558
Include implicit type conversions
2017-11-22 03:07:54 +00:00
Alex Beregszaszi
183f70262a
Document backends
2017-11-22 03:07:54 +00:00
Alex Beregszaszi
0339cc1bb1
Case is missing from switch statements
2017-11-22 03:07:54 +00:00
Alex Beregszaszi
3d99e82795
Add types to the examples
2017-11-22 03:07:54 +00:00
Alex Beregszaszi
173bdb0df6
Define types in Julia
2017-11-22 03:07:54 +00:00
Alex Beregszaszi
c3a6db7256
Describe built-in Julia functions
2017-11-22 03:07:54 +00:00
Alex Beregszaszi
2a91eb9538
Move Julia documentation to its own file
2017-11-22 03:07:49 +00:00
chriseth
f73660423a
First take in formal specification.
2017-11-22 02:45:07 +00:00
chriseth
243002e5f3
Describe Julia.
2017-11-22 02:45:07 +00:00
Alex Beregszaszi
f22ac8fc96
Merge pull request #3204 from frangio/grammar-incomplete-tuples
...
Make tuple components optional in documented grammar
2017-11-22 02:22:38 +00:00
chriseth
5c9e273d02
Link to translations. ( #3212 )
2017-11-21 12:03:47 +00:00
Chua Chee Wee
15427dc8d3
Change phrase in type deduction
...
updated phrase in type deduction from "any value of this type" to "the highest value of this type"
2017-11-16 23:18:06 +08:00
chriseth
03b3faa8ef
Tone down similarity to JavaScript.
2017-11-16 13:18:43 +01:00
Alex Beregszaszi
58e452d14d
Merge pull request #3173 from federicobond/improve-number-grammar
...
Improve rule for decimal numbers in grammar.txt
2017-11-16 09:43:47 +00:00
Federico Bond
58a0f09f8e
Improve rule for decimal numbers in grammar.txt
2017-11-15 17:11:45 -03:00
chriseth
3121608d7c
Remove obsolote statement about msg.sender and library calls.
2017-11-15 17:08:42 +01:00
Liana Husikyan
9d328d308d
Update index.rst
...
Some minor text editing.
2017-11-15 03:18:30 +01:00
Francisco Giordano
0b3ef5bbc7
Make tuple components optional in documented grammar
2017-11-14 16:35:50 -03:00
janat08
dfac04d139
Update introduction-to-smart-contracts.rst
2017-11-09 05:17:28 +06:00
Chua Chee Wee
d4db1624b5
Changed limitation to feature
...
Changed the word "limitation" to "feature" for the note where transfer is described.
2017-10-30 15:40:28 +08:00
walter-weinmann
fcf66721da
abi-spec: example code doesn't fit grammar.txt.
2017-10-29 11:58:00 +01:00
Christian Pamidov
f9b240096f
Fixed typos ( #3139 )
2017-10-28 12:48:57 +01:00
Svetlin Nakov
58778be567
Fixed typos
2017-10-25 22:58:18 +03:00
Svetlin Nakov
f39cf7be41
Improved the "Naming" section
...
Improved the "Naming" section. Added naming examples. Improved consistency.
2017-10-25 10:33:26 +03:00
chriseth
4f30582db4
Merge pull request #3053 from wjmelements/nit-examples
...
Replace biddingTime with auctionEnd in auction example
2017-10-20 18:06:45 +02:00
Boris Kostenko
36bf0a8a86
Accent on ext.deps in install docs (issue #3048 )
2017-10-19 08:25:27 +03:00
Boris Kostenko
55a7828848
Accent on ext.deps in install docs (issue #3048 )
2017-10-19 01:10:12 +03:00
chriseth
c3a7422399
Update changelog for 0.4.18 release.
2017-10-18 12:48:15 +02:00
chriseth
7849b920cf
Bug list entry.
2017-10-18 00:19:36 +02:00
chriseth
c67b559ead
Merge pull request #2994 from idrabenia/develop
...
Add solhint to list of tools.
2017-10-17 18:56:30 +02:00
chriseth
3bcaa24c5e
Project moved.
2017-10-17 18:55:55 +02:00
Giovanni Casinelli
550653300b
Update abi-spec.rst
2017-10-16 19:48:04 +08:00
Alex Beregszaszi
dbc8655b36
Merge pull request #3083 from davidau/patch-1
...
Update miscellaneous.rst
2017-10-16 10:21:42 +01:00
David Au
4047ed23fc
Update miscellaneous.rst
...
Fix small typo
2017-10-15 11:04:00 -04:00
walter-weinmann
afef6faeb6
grammar.txt: spelling error uixed.
2017-10-14 15:48:14 +02:00
Alex Beregszaszi
81f9f86ce5
Add reference to EIP-55 in address literals ( #3062 )
2017-10-10 17:54:29 +02:00
William Morriss
d05b24162f
also rm biddingTime
2017-10-08 13:40:18 -07:00
William Morriss
c3ec0beba5
remove auctionStart
2017-10-08 13:24:27 -07:00
Alex Beregszaszi
09276cb9d3
Do not add members of address to contracts in experimental 0.5.0
2017-10-05 11:42:34 +01:00
chriseth
f6fb7d96d3
Merge pull request #2990 from ethereum/someMoreSMTStuff
...
Basic SMT tests.
2017-10-04 14:56:24 +02:00
Dave Hoover
6de9fc710e
Minor edits
2017-10-04 07:35:05 -05:00
Ilya Drabenia
5cded77821
Add solhint to list of tools.
...
Hello!
I develop linter that provide both security, style guide and best practices validations for Solidity users.
I will be glad if it will be useful for this community!
2017-09-29 18:03:40 +03:00
chriseth
a1f3046647
Add SMT tests.
2017-09-29 12:44:39 +02:00
Zetherz
c6c3163c2a
Fixed code example ( #2955 )
2017-09-28 13:21:02 +01:00
Martín Triay
ab4f97a80b
Update contracts.rst
...
Fixed web3 URL
2017-09-27 13:59:26 -03:00
Alex Beregszaszi
a7592fa801
Document packed ABI
2017-09-26 22:48:49 +01:00
chriseth
a23f7f38b9
Merge pull request #2909 from bernardpeh/mydev
...
faq typo
2017-09-25 12:01:20 +02:00
chriseth
d45629d909
Update frequently-asked-questions.rst
2017-09-25 12:01:09 +02:00
bernard peh
5ffd119990
minor tuning to sentence to be more accurate
2017-09-25 19:29:10 +10:00
chriseth
3dc7c3807b
Update bug list.
2017-09-21 15:26:30 +02:00
Lefteris Karapetsas
7f88d43937
docs: Specify gas fallback function from call
...
Specify that also 21k gas is needed for fallback functions originating from
external function calls.
2017-09-21 14:15:13 +02:00
Matthieu Caneill
7b7cf8faea
fix typo: missing word in documentation
2017-09-21 01:14:38 +02:00
Alex Beregszaszi
a061e8db34
Clarify shorthand notation in ABI
2017-09-19 11:02:14 +01:00
chriseth
32965807a7
Fix ABI spec regarding arrays.
2017-09-19 11:01:41 +01:00
bernard peh
5234408ff5
possible typo fix
2017-09-16 23:13:50 +10:00
Alex Beregszaszi
923373b41e
Clarify ABI & Solidity types
2017-09-16 12:31:12 +01:00
chriseth
c5063d3155
Use "tuple" for struct types in ABI JSON.
...
Only use tuple as a type in the ABI (and remove all "anonymous struct" references too)
2017-09-16 12:31:12 +01:00
chriseth
e4bb767dcd
Document structs in ABI
2017-09-16 12:12:44 +01:00
Alex Beregszaszi
e1f90f0ad6
Fix nested lists in the ABI documentation
2017-09-13 17:39:48 +01:00
Alex Beregszaszi
5c9dbd5083
Merge pull request #2473 from ethereum/functiontype-sig
...
Add .selector member on function types
2017-09-13 17:35:48 +01:00
Alex Beregszaszi
c70ebfd241
Document function selectors
2017-09-13 11:40:57 +01:00
Alex Beregszaszi
135c55c4d0
Overhaul contract creation section in the documentation (add reference to remix and web3.js)
2017-09-13 09:53:56 +01:00
chriseth
aaf73071db
Merge pull request #2880 from ethereum/docs-metadata
...
Promote metadata to its own chapter (split from miscellaneous)
2017-09-12 13:27:42 +02:00
chriseth
fabf4accd3
Merge pull request #2870 from aarongoa/develop
...
Add payable constructor for `C` - #2869
2017-09-12 11:32:46 +02:00
Aaron Colaço
2b88eeb370
Make createAndEndowD
payable in contract creation example
2017-09-12 10:07:54 +01:00
Alex Beregszaszi
b1a7281ee9
Promote metadata to its own chapter (split from miscellaneous)
2017-09-11 15:05:46 +01:00
Alex Beregszaszi
fb1db58def
Merge pull request #2842 from ethereum/chriseth-patch-1
...
Explain how to run the tests in more detail.
2017-09-05 22:33:50 +01:00
chriseth
818a371929
Explain how to run the tests in more detail.
2017-09-05 22:02:43 +01:00
Alex Beregszaszi
bdafce3e4f
Convert ABI spec from Markdwon to RST
2017-09-05 14:50:27 +01:00
chriseth
152a0e69c4
Merge pull request #2871 from ethereum/fixedpointdocs
...
Explain fixed point types in docs
2017-09-04 19:04:12 +02:00
Alex Beregszaszi
435eeec5e1
Explain the difference between floating and fixed point
2017-09-04 15:57:05 +01:00
Alex Beregszaszi
76bd8c5769
Explain fixed point types
2017-09-04 15:57:05 +01:00
Alex Beregszaszi
c975bf87db
Move fixed after int in docs
2017-09-04 15:19:39 +01:00
Alex Beregszaszi
ac5fd64c23
Mention that different Unicode codepoint can look the same
2017-09-01 19:18:46 +01:00
Alex Beregszaszi
88bce877c4
Clarify some subtleties of the fallback function
2017-09-01 19:16:52 +01:00
Alex Beregszaszi
cbd729957b
Document character set
2017-09-01 19:13:26 +01:00
Alex Beregszaszi
f3230a41ce
Document caveats about timestamp and blockhash
2017-09-01 19:13:26 +01:00
Alex Beregszaszi
8e1aae2e1a
Document gas/value modifiers with overloading
2017-09-01 19:09:36 +01:00
Alex Beregszaszi
f787ecae5a
Document byte[] vs bytes
2017-09-01 19:09:36 +01:00
Alex Beregszaszi
8743b2cead
Document call/gas modifiers properly
2017-09-01 19:09:07 +01:00
Alex Beregszaszi
b3c251c154
Merge pull request #2831 from ethereum/docs
...
Various doc updates
2017-08-28 12:47:44 +01:00
Alex Beregszaszi
550d646b97
Explain safe purchase (even number)
2017-08-28 12:14:41 +01:00
Alex Beregszaszi
5a5d21d0c8
Add note about throw being deprecated
2017-08-28 12:04:56 +01:00
Alex Beregszaszi
2b26d6b9d7
Require 0.4.12 for the VectorSum example (for loop)
2017-08-28 11:59:36 +01:00
Alex Beregszaszi
e649ce71bd
Refer to internal ABI documentation
2017-08-28 11:59:35 +01:00
Alex Beregszaszi
412cc6bc58
Highlight opcodes in docs
2017-08-28 11:59:35 +01:00
Alex Beregszaszi
dd2cc899bb
Fix lists and links
2017-08-28 11:59:35 +01:00
Robert Edström
5e73ea7fbc
Correct package name for installing solc on Arch
2017-08-27 14:36:41 +03:00
Alex Beregszaszi
2af949baaa
Explain the limitations of view and pure
2017-08-25 12:49:53 +01:00
Alex Beregszaszi
f791ca3957
Clarify ABI regarding constant
2017-08-25 12:37:23 +01:00
Alex Beregszaszi
bb493bf52d
Require 0.4.16 for view/pure in docs examples
2017-08-25 12:37:23 +01:00
chriseth
0878eaad46
Prepare 0.4.16 release.
2017-08-24 18:31:37 +02:00
chriseth
71294b2872
Merge pull request #2798 from ethereum/statemutability
...
Rename statemutability to stateMutability in ABI/AST
2017-08-24 18:27:08 +02:00
Chim Kan
efe9d55ab2
Update on the example for BlindAction
...
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.
2017-08-24 12:03:27 -04:00
Alex Beregszaszi
deeac7e2e0
Rename statemutability to stateMutability in ABI/AST
2017-08-24 15:23:00 +01:00
Alex Beregszaszi
23c791e4df
Add pure to grammar
2017-08-24 13:46:18 +01:00
Alex Beregszaszi
504e6285f3
Add pure to ABI spec
2017-08-24 13:46:18 +01:00
Alex Beregszaszi
93e6e83093
Document pure functions
2017-08-24 13:46:18 +01:00
Nick Savers
f67f798887
Fix link to Russian version on wiki
2017-08-24 12:15:26 +02:00
Chim Kan
b5d2a4ecd7
Adding storage into the pointer for Voter delegate
...
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.
2017-08-23 20:25:12 -04:00
Alex Beregszaszi
3b07c4d38e
Merge pull request #2757 from ethereum/cmake
...
Static linking
2017-08-23 12:36:24 +01:00
Paweł Bylica
09628dee8c
docs: Add a note about CMake options
2017-08-22 22:50:25 +02:00
Alex Beregszaszi
b1cdf81506
Document view functions
2017-08-22 18:25:46 +01:00
Alex Beregszaszi
9e8d2a561f
Update grammar with view
2017-08-22 18:24:22 +01:00
Alex Beregszaszi
efe4d68a7b
Introduce view (and keep constant as an alias)
2017-08-22 18:24:22 +01:00
Alex Beregszaszi
8025ac180f
Add missing keywords to documentation lexer
2017-08-16 21:24:20 +01:00
Alex Beregszaszi
d5f01460f9
Allow constant modifier on state variables in grammar
2017-08-16 21:22:59 +01:00