Commit Graph

665 Commits

Author SHA1 Message Date
Liana Husikyan
ebb4d5e298 - added more tests to check constant specifier implementation
- deny use of const for local variables
- deny unitialized const variables
- only int, fixed strings, and enums can be declaired as const
2015-03-16 10:46:46 +01:00
Liana Husikyan
7d6357ae53 - added isPartOfExternalInterface to Declaration
- changed position for the constant specifier. now it goes after type: <type> <constant> <name> = <value>
- removed tests for constant functions, checkings for constant function doesn't belong to this story
2015-03-16 10:46:46 +01:00
Liana Husikyan
67cd3a7180 added parsing for constant variables 2015-03-16 10:46:46 +01:00
chriseth
a16677dcfb Fix gas for builtin.
Fixes #1300
2015-03-13 17:31:56 +01:00
Lefteris Karapetsas
039b133c18 Small FixedBytes type fixes
- Integer Constant is explicitly convertible to FixedBytes, so using
  that in the tests
2015-03-12 17:31:39 +01:00
Lefteris Karapetsas
a62d3fa240 Some fixes on Types.cpp for FixedBytesType 2015-03-12 13:39:12 +01:00
Lefteris Karapetsas
3b54583d38 Style fixes and some additional hash to bytes32 renaming 2015-03-12 12:53:01 +01:00
Lefteris Karapetsas
c81b498953 Style fixes in Types[cpp/h] 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
b8cede371d byte is now an alias for byte1 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
cd3e8c1756 Fixing byte array index access code generation 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
b2fadf6b93 Conversion changes after renaming Hash/String to Bytes.
- Almost all end to end tests pass. Still needs a little bit of work
2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
73ce24ae75 Most EndToEndTests are now compliant with the Bytes renaming 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
2bddebc3d5 Bytes Tokens properly named and NameAndTypeResolution tests work 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
3ca37caddd Fixes after rebasing on top of develop 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
7d7f37bd5e Replacing StaticStringType with FixedBytesType 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
bede2f2ad7 More changes towards getting rid of HashXX 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
36fe571576 start of cleanup 2015-03-12 12:53:00 +01:00
Gav Wood
51258f3002 Merge pull request #1268 from chriseth/sol_checkerFixes
Fixed some checker warnings.
2015-03-10 18:44:34 +00:00
chriseth
d41c51a810 Fixed some checker warnings. 2015-03-10 15:11:13 +01:00
Liana Husikyan
d5cbb2acd2 added brackets for printing in/out
cleaned up
2015-03-10 12:02:48 +01:00
Liana Husikyan
74a01826ee added information about jump type for jump instructions
Conflicts:
	libevmcore/Assembly.cpp
	libsolidity/Compiler.cpp
2015-03-10 12:02:48 +01:00
chriseth
9c82cbeddf Global variable "now" (alias for block.timestamp). 2015-03-09 19:22:43 +01:00
chriseth
cd8a0ab65d Style fixes. 2015-03-09 13:28:29 +01:00
chriseth
94c51caf89 Fixed: Some instructions did not have source locations. 2015-03-09 13:28:29 +01:00
Gav Wood
67ffc3db71 Solidity fixes. 2015-03-08 11:43:17 +01:00
chriseth
0e50ef1ee0 Fixed gas calculation for CALL. 2015-03-06 16:23:39 +01:00
chriseth
6fea41abd8 Merge pull request #1222 from chriseth/sol_copyFromCalldata
Copying between calldata and storage.
2015-03-06 15:42:49 +01:00
chriseth
8de5ff5c25 Update Types.h
Typo
2015-03-06 15:39:21 +01:00
chriseth
28e88903dc Fix type checks for storage variable initializer. 2015-03-06 13:47:32 +01:00
Gav Wood
75b1151952 Merge branch 'poc9trie' of github.com:ethereum/cpp-ethereum into poc9trie
Conflicts:
	libethcore/BlockInfo.cpp
	libethcore/Exceptions.cpp
	libethcore/Exceptions.h
2015-03-06 13:28:37 +01:00
chriseth
11e943fc6a Fix for arrays containing mappings. 2015-03-06 13:17:52 +01:00
chriseth
d8b156ecbb Copying between calldata and storage. 2015-03-06 13:17:52 +01:00
Gav Wood
1c9a048a47 Params & JSON file. 2015-03-06 12:46:23 +01:00
Gav Wood
9aea119e54 Add date/time language to solidity. 2015-03-06 12:46:23 +01:00
Gav Wood
5729ae0e8c Merge branch 'poc9trie' of github.com:ethereum/cpp-ethereum into poc9trie 2015-03-06 12:36:09 +01:00
Gav Wood
2668214f1a Params & JSON file. 2015-03-06 12:19:44 +01:00
Gav Wood
4822154f61 Add date/time language to solidity. 2015-03-06 12:19:44 +01:00
chriseth
34e8de749a Merge pull request #1212 from chriseth/sol_arrayIndexOnCalldata
Index access for calldata and byte arrays.
2015-03-05 23:44:08 +01:00
chriseth
280df42463 Styling 2015-03-05 15:41:39 +01:00
Christian
b84cf62d6b Index access for calldata arrays. 2015-03-05 13:19:59 +01:00
Liana Husikyan
e32bf97e87 to include source lines in output stream AssemblyItem's appropriate function is now receiving the map of fileNames to sourceCodes as argument. 2015-03-05 12:08:43 +01:00
Gav Wood
de2ed72e6b Params & JSON file. 2015-03-04 19:55:52 +01:00
Gav Wood
5aff9fbde2 Add date/time language to solidity. 2015-03-04 17:35:23 +01:00
jhuntley
a4d772315d Consolidating macro resolution to one header file as per project owner request. Added inline comments covering reasons for undef of macros. Resolves issues with problem #832:
Adding UndefWindowsMacros.h to handle V8 CPP conflicts in Windows #832
2015-03-04 11:17:46 -05:00
jhuntley
055f45f11b Update to resolve "#error : The macro "DELETE" from windows.h conflicts with this file." on windows vs build. 2015-03-04 11:17:46 -05:00
jhuntley
d2a5153722 Adding comments for #undef per project owner request. 2015-03-04 11:17:46 -05:00
jhuntley
f046be3cc1 Updates for mingw support. #undef conflicting defines on windows. 2015-03-04 11:17:45 -05:00
jhuntley
d82b8c2738 Mingw cmake updates. Make sure Boost_INCLUDE_DIRS is included for each library using boost. When installing libraries, don't forget to copy DLLs, add target 'RUNTIME DESTINATION bin'. 2015-03-04 11:17:45 -05:00
Gav Wood
60c8709d6e Merge branch 'poc9trie' of github.com:ethereum/cpp-ethereum into poc9trie
Conflicts:
	libethereum/Client.cpp
	test/state.cpp
2015-03-03 17:21:37 +01:00
Gav Wood
de671024b5 Merge pull request #1193 from chriseth/sol_fixABIArrays
Fixed arrays in ABI.
2015-03-03 16:12:10 +01:00