Commit Graph

132 Commits

Author SHA1 Message Date
chriseth
ff06ea3aaf Merge pull request #1341 from chriseth/sol_packedStorage
Packed storage for arrays.
2015-03-20 12:54:36 +01:00
Lefteris Karapetsas
b278b62fb4 Reorganizing conversion EndToEndTests
- Adding/Renaming tests so that we have one for each of the following:
    * FixedBytes to Uint all sizes
    * FixedBytes to FixedBytes all sizes
    * Uint to FixedBytes all sizes

- Grouped them together location-wise to make more sense
2015-03-18 21:14:45 +01:00
Lefteris Karapetsas
cd9785d2ff Explicit conversion between bytes and int of any size
- Allowing aforementioned conversion and adding tests for it
2015-03-18 10:57:24 +01:00
chriseth
0816a59b7e Disallowed special case of bytes0 arrays. 2015-03-17 18:34:57 +01:00
chriseth
a05b307f4e Packing for arrays. 2015-03-17 18:13:28 +01:00
Liana Husikyan
8e61b06b2a added test to check anonymous events with user specified topics
added initial value for m_anonymous of EventDefinition
2015-03-17 14:25:23 +01:00
Liana Husikyan
26b2b4d9a6 changed the position of 'anonymous' keyword: event <name>() anonymous.
- style changes
2015-03-17 14:25:13 +01:00
Liana Husikyan
5dc9a8df92 Added anonymous flag to event.
added test
2015-03-17 10:51:03 +01:00
Liana Husikyan
eccf7867fa added test for anonymous event 2015-03-17 10:51:03 +01:00
Gav Wood
323f466343 Merge pull request #1333 from arkpar/eth_buildc
Support for building with clang and GNU gold linker on linux
2015-03-17 09:24:33 +01:00
arkpar
b16533c0f0 supported building with clang and GNU gold linker on linux 2015-03-16 22:31:31 +01:00
chriseth
1d44a8999e Fetch and store packed values. 2015-03-16 18:07:14 +01:00
chriseth
10be65f269 Enlarge storage references to two stack slots. 2015-03-16 18:07:14 +01:00
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