Commit Graph

90 Commits

Author SHA1 Message Date
Christian
d85bfe1452 Stack height checks and fix. 2015-02-22 19:16:40 +01:00
Liana Husikyan
4144c63d9f Inline member initialisation
renamed VariableDefinition class to VariableDeclarationStatement
added tests
2015-02-20 22:50:34 +01:00
Christian
218ee29a05 Fixes for assigning and deleting structs containing byte arrays. 2015-02-18 00:15:32 +01:00
Christian
9d0bb3666e Calldata byte arrays stored on the stack. 2015-02-16 19:35:53 +01:00
Christian
8290b6305b No write access to parameters of external functions. 2015-02-16 19:25:24 +01:00
Christian
600b38224e Forced cleanup for conversion to enum. 2015-02-14 13:35:57 +01:00
Lefteris Karapetsas
9836d58df8 Removing ';' from the end of EnumDefinition 2015-02-13 23:48:50 +01:00
Lefteris Karapetsas
fe725fbb49 Enum type conversion and member value access.
- Added tests for the type conversion part.

- Enum member value access still needs some work
2015-02-13 23:16:14 +01:00
Lefteris Karapetsas
60e839954e Enums NameAndTypeResolution - WIP
- Also adding an EndToEnd enum test
2015-02-13 23:16:14 +01:00
Christian
5d2223b934 Copying calldata directly to memory. 2015-02-13 01:29:43 +01:00
Christian
48f6bda44b Copying structs. 2015-02-12 20:19:49 +01:00
Gav Wood
b04258b6f4 Merge pull request #1029 from chriseth/sol_bytesContinuation
length member for bytes
2015-02-12 19:30:08 +01:00
Gav Wood
1f6198a9ae Merge pull request #1019 from chriseth/sol_bytes
Basic implementation of byte arrays.
2015-02-12 16:33:15 +01:00
Christian
c90adbf593 length member for byte arrays. 2015-02-12 15:44:35 +01:00
Christian
2472e2b998 Test for bytes in mapping. 2015-02-12 15:18:50 +01:00
Christian
6bbba22690 Another try in fixing windows build. 2015-02-12 11:54:44 +01:00
Christian
d089703254 Moved copy code to CompilerUtils. 2015-02-12 11:33:10 +01:00
Christian
a5449d9b3e Dynamic copy to memory. 2015-02-12 11:33:10 +01:00
Christian
6e0ade681d Simple copy of bytes to storage. 2015-02-12 11:33:09 +01:00
Christian
8787413a86 Tests and some code for msg.data. 2015-02-12 11:33:09 +01:00
Christian
d37f6cfb9f Some windows fixes. 2015-02-11 20:20:37 +01:00
Lu Guanqun
466f0e0100 small fixes per chris's comments 2015-02-10 23:39:13 +08:00
Lu Guanqun
3ce223c6cb add exponent operator
https://www.pivotaltracker.com/n/projects/1189488/stories/83746404
2015-02-10 23:39:13 +08:00
Christian
7dc5e2a1a0 Arbitrary parameters for call() and all hash functions. 2015-02-10 10:59:23 +01:00
Liana Husikyan
12505a5b76 - implemented Empty parameter name story. Now the name of input/return parameters of function can be not specified.
- added appropriate tests

Conflicts:
	test/SolidityEndToEndTest.cpp
	test/SolidityNameAndTypeResolution.cpp
2015-02-09 02:06:30 +01:00
chriseth
5d7098eba7 Merge pull request #937 from LefterisJP/sol_MultiArgSHA3
Solidity multiple arg sha3
2015-02-09 00:14:13 +01:00
Christian
99ff791593 Accessors for structs. 2015-02-06 20:04:02 +01:00
Lefteris Karapetsas
895b5c13f0 Small fixes for proper multitype/multiarg SHA3 2015-02-06 17:25:29 +01:00
Lefteris Karapetsas
0037a7694a SHA3 of string literals now should work 2015-02-06 16:27:41 +01:00
Lefteris Karapetsas
4b43f1b564 appendArgumentsCopyToMemory() has more complicated logic now
- Plus other fixes.
2015-02-06 10:42:24 +01:00
Lefteris Karapetsas
1bf8660bdf Solidity SHA3 can now take multiple arguments 2015-02-06 09:38:04 +01:00
Lu Guanqun
9f5d8342a6 add a test case for disorder named args 2015-02-05 00:06:35 +08:00
Gav Wood
4c4c4866d5 Merge pull request #942 from LefterisJP/accesorsFix
Fixing accesors test after visibility merge
2015-02-03 16:30:59 -08:00
Gav Wood
350b99c1d1 Test for named args. 2015-02-03 16:29:31 -08:00
Lefteris Karapetsas
434e70472d Fixing accesors test after visibility merge 2015-02-04 01:17:15 +01:00
Gav Wood
d5b2f8a2ce Merge branch 'sol_visibility' of https://github.com/chriseth/cpp-ethereum into chriseth-sol_visibility
Conflicts:
	test/SolidityNameAndTypeResolution.cpp
2015-02-03 08:50:39 -08:00
Lefteris Karapetsas
3b0ca66cd2 Accessors for multiple mappings implemented 2015-02-02 17:52:50 +01:00
Christian
a38b8890bd Visibility specifiers. 2015-02-02 17:24:09 +01:00
Lefteris Karapetsas
33f86b8af3 Code generation for mapping state variable accessor
- Work in progress
2015-02-01 02:41:14 +01:00
Christian
b6de953430 Fix: No parameters for event. 2015-01-30 21:49:01 +01:00
Gav Wood
b1043c8651 Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop
Conflicts:
	test/SolidityEndToEndTest.cpp
	test/SolidityNameAndTypeResolution.cpp
	test/SolidityParser.cpp
2015-01-29 16:05:17 -08:00
Christian
a55a99a2b0 Fallback functions. 2015-01-29 22:50:20 +01:00
Christian
dbfd0c6019 Padding fixes. 2015-01-29 21:33:46 +01:00
Christian
99a8f58ee3 Code generation for events. 2015-01-29 21:33:46 +01:00
chriseth
d6e77f193a Merge pull request #889 from LefterisJP/sol_ExprCompilerEncapsulation
No longer exposing retrieveValueFromStorage() as a public function
2015-01-29 14:53:10 +01:00
Lefteris Karapetsas
bdb4462673 No longer exposing retrieveValueFromStorage() as a public function
- plus small fix in EndToEndTests
2015-01-29 13:34:07 +01:00
chriseth
8c27fccae9 Merge pull request #887 from chriseth/sol_excludeStd
Exclude standard contracts by default.
2015-01-29 10:41:04 +01:00
Christian
f054a4af7b Exclude standard contracts by default. 2015-01-29 01:29:43 +01:00
Christian
c3cc5b737a Super keyword. 2015-01-29 00:29:43 +01:00
Lefteris Karapetsas
59bf3e91e6 Multiple elementary state variable accessors test 2015-01-28 21:46:16 +01:00