Commit Graph

364 Commits

Author SHA1 Message Date
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
liana
c3d36d1fe1 - corrected delete in case we have more than one locals
- added a test
2015-01-16 16:26:57 +01:00
liana
a0ec9c6680 removed spaces 2015-01-16 13:07:16 +01:00
liana
1142b99a64 Corrected "delete" for local variables i.e. set them to 0
Added test case
2015-01-16 12:55:49 +01:00
Lefteris Karapetsas
839f7778b5 Style fixes and refactoring in ASTJsonConverter 2015-01-16 12:35:59 +01:00
Gav Wood
c77f1c4030 Missing comma. 2015-01-15 14:25:12 -05:00
Gav Wood
a9ed77c22a Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop
Conflicts:
	libsolidity/Types.h
2015-01-15 14:03:35 -05:00
Gav Wood
911916beb7 Add blockhash to Solidity.
Autopadding fix.
2015-01-15 13:59:35 -05:00
Lefteris Karapetsas
9c8ce49969 Solidity AST Json Exporter
- A first version of the exporter is ready with this commit
- Further refinement will follow once it gets used
2015-01-15 16:56:40 +01:00
Lefteris Karapetsas
2eaf9ff865 ASTJSonconverter stack takes objects and not pointers 2015-01-15 16:56:40 +01:00
Lefteris Karapetsas
bcf49095a2 More work on the AST export. Work in progress 2015-01-15 16:56:40 +01:00
Lefteris Karapetsas
d5b1b4d624 Preparing the ground for AST outputing to JSON 2015-01-15 16:56:40 +01:00
Gav Wood
c6a47a4dc2 Merge pull request #811 from LefterisJP/az_mainWinStyle
Style fixes in MainWin of AZ.
2015-01-15 10:36:40 -05:00
Lefteris Karapetsas
95fc27cba9 also add compiler error if include order could cause a problem in windows 2015-01-15 15:00:28 +01:00
Lefteris Karapetsas
93e3bca420 Update ExpressionCompiler.cpp 2015-01-15 13:33:58 +01:00
liana
00b0b0933d - added functionality to set values to 0 when deleting structure(not for mapping)
- added unit test

Made some changes after Christian`s review on pull request
- remove/edit comments
- BoolType and ContractType return VoidType after delete

- fixed constructor_arguments test

- fixed set to 0 when deleting variable from stack
- changed test case to test that
2015-01-15 11:59:58 +01:00
Lefteris Karapetsas
224cd9be36 Fixing an unused parameter warning in ExpressionCompiler 2015-01-15 11:22:58 +01:00
Lefteris Karapetsas
1515f140b3 Merge pull request #798 from LefterisJP/natspec_OnContractCreation
Natspec Popup Authentication on transaction
2015-01-15 01:37:52 +01:00
chriseth
1a4280de35 Merge pull request #799 from chriseth/sol_gasAndValue
Specify gas and value for function calls and contract creation calls.
2015-01-14 18:22:16 +01:00
Lefteris Karapetsas
895a2852f4 Minor style fixes 2015-01-14 17:14:46 +01:00
Lefteris Karapetsas
a78794e872 Fixes and additional checks for Natspec Popup authentication 2015-01-14 16:49:09 +01:00
Christian
abe6055ab7 Style. 2015-01-14 12:00:28 +01:00
Christian
1ba38c9c02 More flexible access to stack during external function call. 2015-01-14 11:57:22 +01:00
Christian
d1e05ac416 Remove redundancy in FunctionType::getSizeOnStack. 2015-01-14 11:01:42 +01:00
Christian
22f0a4fde1 Use min gas for send(). 2015-01-14 10:46:44 +01:00
Christian
6e16107870 Check for hash collisions already before compiling. 2015-01-14 10:16:58 +01:00
Christian
b440d7e321 Specify value for contract creation. 2015-01-13 18:12:30 +01:00
Christian
ec022783c4 Modify gas and value for external function call. 2015-01-13 18:12:30 +01:00
Lefteris Karapetsas
ac8ad058cf Natspec method key is now the Canonical Signature 2015-01-13 16:15:32 +01:00
Lefteris Karapetsas
12e000e0d3 A first version of Natspec warning popup
- Runtime Contract code hash can now be retrieved from the Compiler

- Using the hash the Natspec handler stores and later retrieves Natspec
  JSON for a given contract.
2015-01-13 15:59:42 +01:00