Commit Graph

119 Commits

Author SHA1 Message Date
chriseth
e26f2dcaae Merge pull request #1325 from LefterisJP/sol_MsgSig
Adding msg.sig Solidity Magic type
2015-03-16 17:30:18 +01:00
Lefteris Karapetsas
67a9ec3bdb Additional test for msg.sig 2015-03-16 16:42:56 +01:00
Lefteris Karapetsas
55fed7d1c4 Adding msg.sig Solidity Magic type
msg.sig will return a bytes4 with the function signature located in CALLDATALOAD
2015-03-16 12:59:56 +01:00
Liana Husikyan
1d2e579eff - 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
8e6b2c10c3 - 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
2ca23b2247 added parsing for constant variables 2015-03-16 10:46:46 +01:00
chriseth
a6f328a613 Fix gas for builtin.
Fixes #1300
2015-03-13 17:31:56 +01:00
Lefteris Karapetsas
1bb7f3cbc3 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
3d0f4b0f22 Style fixes and some additional hash to bytes32 renaming 2015-03-12 12:53:01 +01:00
Lefteris Karapetsas
0b411d98e9 Removing uncecessary intermediate int conversion in log tests 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
6e9d0d7345 Fixing byte array index access code generation 2015-03-12 12:53:00 +01:00
Lefteris Karapetsas
125a1bb670 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
5abf18c27f Most EndToEndTests are now compliant with the Bytes renaming 2015-03-12 12:53:00 +01:00
chriseth
0fcd2212d4 Global variable "now" (alias for block.timestamp). 2015-03-09 19:22:43 +01:00
chriseth
2650703ece Typo 2015-03-06 15:40:02 +01:00
chriseth
e6c778e740 Fix for arrays containing mappings. 2015-03-06 13:17:52 +01:00
chriseth
7639bfe7e5 Copying between calldata and storage. 2015-03-06 13:17:52 +01:00
Christian
2f91e1f9b5 Index access for calldata arrays. 2015-03-05 13:19:59 +01:00
Gav Wood
102c8a5301 Merge pull request #1193 from chriseth/sol_fixABIArrays
Fixed arrays in ABI.
2015-03-03 16:12:10 +01:00
Christian
99263f0e3e Fixed arrays in ABI. 2015-03-03 12:58:48 +01:00
Christian
66d2ec1d15 Fix test after change in call failure semantics. 2015-03-03 11:36:54 +01:00
Liana Husikyan
88ecc27c2b Implemented passing arguments to the base constructor. 2015-03-02 14:28:08 +01:00
Christian
e7c4d73cc6 Array copy storage to storage. 2015-02-27 22:52:19 +01:00
Christian
dca1303397 Shortening of dynamic arrays. 2015-02-27 22:52:19 +01:00
chriseth
a24e0b5b15 Merge pull request #1119 from chriseth/sol_arraysIndexAccess
Index access for arrays.
2015-02-24 12:22:00 +01:00
arkpar
aa20eb64ec fixed test buid 2015-02-24 00:11:29 +01:00
Christian
ed08c68664 Out-of-bounds checking. 2015-02-23 18:28:33 +01:00
Christian
a5eb2a3990 Index and length access for dynamic arrays. 2015-02-23 18:28:30 +01:00
Christian
ae9013f367 Implementation of index access. 2015-02-23 18:25:49 +01:00
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