Commit Graph

393 Commits

Author SHA1 Message Date
Lefteris Karapetsas
b95048768d Solidity EntryLabel now uses a generic declaration
- Instead of a FunctionDefinition
2015-01-28 21:46:16 +01:00
Lefteris Karapetsas
3f5eb96584 Various small fixes for Sol Automatic Accessors 2015-01-28 21:46:16 +01:00
Lefteris Karapetsas
468f26b1cc Modifications to Mix to adapt to FunctionDescription 2015-01-28 21:46:16 +01:00
Lefteris Karapetsas
5c7359aa09 State variable accessors code is now more organized
- FunctionDescription is the abstraction of what should describe a
  function. It can either be a VariableDeclaration of a
  FunctionDefinition.

- ParamDescription is what FunctionDescription uses to describe its
  parameters for outside use purposes with a pair of (name, type)
  strings

- Modified code around Solidity and especially interface handler to
  adapt to this change
2015-01-28 21:46:16 +01:00
Lefteris Karapetsas
3cc0492301 Work in progress for state variable accessors
- Changed the code so that a generic declaration with the combination of
  a function type can be used wherer a function definition was used
  before

- Since using an std::pair everywhere is really tiring with this commit
  I am in the process of abstracting it into a function
2015-01-28 21:46:16 +01:00
Lefteris Karapetsas
9759eec2da Fix in addStateVariableAccessor and adjustment of parser tests 2015-01-28 21:46:16 +01:00
Lefteris Karapetsas
97c31b3e7d Parsing accessor functions for public contract state variables
- During the contract parsing depending on whether or not a state
  variable is public an extra acessor FunctionDefinition is parsed for it
2015-01-28 21:46:16 +01:00
Christian
282d4b8add Fix stack size of typetypes. 2015-01-28 18:19:01 +01:00
Christian
2903799074 Find some reasonable contract if nothing is supplied. 2015-01-28 14:25:42 +01:00
Christian
95d8d7b1f0 Cleaner solution to provide standard sources. 2015-01-28 13:39:04 +01:00
Christian
34d07fc583 Some fixes in parser. 2015-01-28 11:28:22 +01:00
Gav Wood
5d3e21fd93 LogFilter supports new, better, filter mechanism.
Exposed to JS API.
2015-01-27 16:56:39 -08:00
chriseth
18fc2ed2d6 Merge pull request #857 from LianaHus/StringToHash
conversion for string to/from hash
2015-01-27 13:53:13 +01:00
liana
cad3d87482 - cosmetic changes 2015-01-27 13:21:20 +01:00
liana
6ba82b1427 -redesigned appendTypeConversion function 2015-01-27 12:55:40 +01:00
Gav Wood
8dbdaa79e3 Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop 2015-01-26 15:02:06 -08:00
Gav Wood
8d09d8deb7 Merge pull request #856 from chriseth/sol_modifiers
Function modifiers.
2015-01-26 15:01:25 -08:00
Gav Wood
6e33b8cce1 Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop 2015-01-26 15:00:48 -08:00
Gav Wood
32853fbc70 Fixed spurious whisper watches firing.
Additional standard APIs.
Refinement of standard.js.
2015-01-26 10:28:15 -08:00
liana
ef885d0212 - modifications according to PR review 2015-01-26 13:24:16 +01:00
Christian
f59cda76de Call modifiers on constructor. 2015-01-26 10:23:39 +01:00
Christian
fd5899d038 Modifier overrides and callgraph analysis. 2015-01-26 10:23:39 +01:00
Christian
7ded95c776 Compilation of function modifiers. 2015-01-26 10:23:39 +01:00
Christian
941c77c8fa Type resolution for function modifiers. 2015-01-26 10:23:39 +01:00
Christian
19793dab09 Function modifier parsing. 2015-01-26 10:23:39 +01:00
Christian
fe37aad4d5 Reverse order of inheritance in base list. 2015-01-26 10:20:46 +01:00
Gav Wood
570e49c03a Add coins reg to standard services.
Upgrade AZ display for new API.
Upgrade requires in Sol.
2015-01-25 17:01:34 -08:00
Gav Wood
3343d408e1 Minor fix. 2015-01-24 17:52:42 -08:00
Gav Wood
5b576e8691 Fixes to ethereum.js and standard.js. 2015-01-24 17:42:49 -08:00
liana
3075fc598d - corrected assert 2015-01-23 18:09:46 +01:00
liana
5de93e6acb - added conversion for string/hash of equal sizes
- added tests
2015-01-23 17:45:37 +01:00
Gav Wood
376c6182ad Claim ether makes wallet & trasfers.
"#require" in solidity.
2015-01-21 11:31:14 -08:00
Gav Wood
30b455e4d6 Merge pull request #830 from chriseth/sol_overridesInConstructorContext
Include virtual function overrides in constructor context.
2015-01-20 10:02:18 -08:00
Christian
96db6cf905 Style changes. 2015-01-20 17:41:09 +01:00
Christian
d854e56789 Include virtual function overrides in constructor context. 2015-01-20 15:58:04 +01:00
Lefteris Karapetsas
e0d1f79e06 Absence of tag in Natspec is now considered @notice 2015-01-20 13:15:43 +01:00
Christian
417f9c03d0 Implicit conversion from derived to base. 2015-01-19 23:35:04 +01:00
Christian
ddf5e20d10 Call constructors of base classes. 2015-01-19 23:35:04 +01:00
Christian
af92f98d86 Constructor arguments for base classes. 2015-01-19 23:35:04 +01:00
Christian
6e111d5d1d Explicit calls to base class function. 2015-01-19 23:35:04 +01:00
Christian
4d833bc86b Inheritance in compiler. 2015-01-19 23:35:04 +01:00
Christian
e6c0a9b922 Magic variables are only needed durinng name and type resolution, not during compilation. 2015-01-19 23:35:04 +01:00
Christian
6633fbb603 Check overrides and provide inherited public interface. 2015-01-19 23:35:04 +01:00
Christian
914fcedd0e Import inherited members into the contract's scope. 2015-01-19 23:35:04 +01:00
Christian
4631e54e08 Inheritance parser. 2015-01-19 23:35:04 +01:00
Lefteris Karapetsas
6612e4bd17 Some addition to Solidity Execution Framework 2015-01-19 15:34:15 +01:00
chriseth
325b052b16 Merge pull request #805 from LianaHus/deleteStruct
delete for structs

-added functionality to set values to 0 when deleting structure(not for ...
2015-01-19 11:32:11 +01:00
Gav Wood
930532165c Warnings fix. 2015-01-17 10:34:44 -05:00
Gav Wood
37e4919fcb Potential workaround for windows build. 2015-01-17 09:44:09 -05:00
Gav Wood
188b1df041 Merge pull request #813 from LefterisJP/sol_astJson
Exporting Solidity AST in a JSON format
2015-01-17 09:27:51 -05:00