Commit Graph

10584 Commits

Author SHA1 Message Date
chriseth
b9d035264d Add some more emits. 2018-06-26 20:09:54 +02:00
Alex Beregszaszi
80b7d36187 Remove non-0.5.0 warning for emit keyword (make it mandatory) 2018-06-26 20:00:54 +02:00
chriseth
503eb8caa5
Merge pull request #4342 from rnaby/l/a/Types
RationalNumberType::isImplicitlyConvertibleTo Refactor
2018-06-26 17:54:09 +02:00
chriseth
4bb9fced1e
Merge pull request #4332 from ethereum/dockerfile-small-improvements
Dockerfile small improvements
2018-06-26 12:26:19 +02:00
chriseth
e6595d8806
Merge pull request #4318 from ethereum/yul-internal
Rename some internal constructs from Julia/Iulia to Yul
2018-06-26 12:24:07 +02:00
Christian Parpart
b9f2a7804c adds .dockerignore file 2018-06-26 12:21:04 +02:00
Christian Parpart
37b5669ec3 make build concurrency build-time customizable 2018-06-26 12:13:03 +02:00
chriseth
5939ef9922
Merge pull request #4353 from ethereum/compilerstack-api
Document the internal API of CompilerStack
2018-06-26 12:13:01 +02:00
Christian Parpart
7546100776 Dockerfile: improves docker image size and small others
This greatly improves size of the final docker image with the help of
multi-stage docker builds.

With that change, we can also make the build stage readable/maintainable
again by splitting up into multiple RUN statements as well as not
needing to clean-up temporary objects.

The dependencies have been put on top of the primary COPY statement
in order to not rebuild the dependencies each time one wants to rebuild
the docker image (for example due to code changes).

The solc compilation itself is now parallelized to the CPU core count
to speed up those builds that have more cores available on their docker
build system.

Future Notes:
-------------

We could further improve the Dockerfile by explicitely adding the
directories this docker build is interested in (such as solc source code
exclusively).

Or one may want to also use the build step for automated testing (CI)
by enforcing soltest and cmdlineTests.sh right before finalizing the image.
2018-06-26 12:12:35 +02:00
chriseth
d1acd6ba15
Merge pull request #4355 from ethereum/docs-alloc
Clarify that using msize without updating the free-memory-pointer is a bad idea
2018-06-26 12:12:01 +02:00
chriseth
24f124f849
Merge pull request #4331 from ethereum/v050-var-keyword-preparations-soltests
Adapt soltest suite to use explicit types over "var" keyword
2018-06-26 12:07:19 +02:00
Christian Parpart
e38139c800 test: Adapted to the change of the var-keyword elimination. 2018-06-26 10:40:26 +02:00
Christian Parpart
a083ccd457 test: drop obsoleted syntaxTest(s) 2018-06-26 10:40:25 +02:00
Leonardo Alt
7763d21cc6 Revert if calldata is too short or points out of bounds 2018-06-26 10:27:48 +02:00
Alex Beregszaszi
44f2cfb5ca Clarify that using msize without updating the free-memory-pointer is a bad idea 2018-06-26 02:23:02 +02:00
Alex Beregszaszi
952f14b011 Rename IuliaException to YulException 2018-06-26 00:52:46 +02:00
Alex Beregszaszi
e05a31b82b Rename Julia to Yul in variables 2018-06-26 00:52:36 +02:00
Alex Beregszaszi
8fa8b2d08e Rename Julia to Yul in comments 2018-06-26 00:52:27 +02:00
Alex Beregszaszi
4be9dc4304
Merge pull request #4350 from ethereum/constructorWorkaroundExternal
New constructor syntax for external compilation tests
2018-06-26 00:45:55 +02:00
Alex Beregszaszi
91db46b128 Rename test suites from J/Iulia* to Yul* 2018-06-26 00:07:28 +02:00
João Vítor
7ffdad4ae3
add explanation about the splitSignature function 2018-06-25 19:06:44 -03:00
Erik Kundt
95c3488a26 Updates external contracts to new constructor syntax. 2018-06-26 00:00:32 +02:00
Alex Beregszaszi
5aa8c7ed1a Document the internal API of CompilerStack 2018-06-25 23:51:40 +02:00
Alex Beregszaszi
3b1741909c
Merge pull request #4337 from ethereum/compilerstack-cleanup
Pull out createCBORMetadata helper
2018-06-25 23:44:47 +02:00
Alex Beregszaszi
3fc7da11db Pull out createCBORMetadata helper 2018-06-25 22:17:33 +02:00
chriseth
4154e1480b Update tests and add new tests. 2018-06-25 17:17:48 +02:00
chriseth
033672cc48 Fix: Call functions do not take variable arguments. 2018-06-25 17:17:48 +02:00
chriseth
5cf6fa84ac Provide better suggestions in error messages with respect to call and hash functions. 2018-06-25 17:17:48 +02:00
chriseth
e299a0031f Update compilation tests. 2018-06-25 17:17:48 +02:00
chriseth
17493e64ed Documentation. 2018-06-25 17:17:18 +02:00
chriseth
237788c0bc Changelog entry. 2018-06-25 17:17:18 +02:00
chriseth
a55e8c93ce Save double encode call for sha3. 2018-06-25 17:17:18 +02:00
chriseth
86a720b96a Adjust tests. 2018-06-25 17:17:18 +02:00
D-Nice
b2f0d1db43 Fixes storage ref var typo error from 'prefix' to 'suffix' 2018-06-25 11:14:19 -04:00
chriseth
23c4142005 Bare functions take single bytes argument. 2018-06-25 17:01:45 +02:00
chriseth
0e66a1ddde Single bytes argument.
In 0.5.0 mode, only accept a single bytes argument for ``.call``,
``keccak256`` and others and do not pad when encoding.
2018-06-25 17:01:45 +02:00
chriseth
312f422e10 Forwarding length check. 2018-06-25 17:01:45 +02:00
Alex Beregszaszi
0ac4609097
Merge pull request #3534 from meowingtwurtle/strictAddresses
[BREAKING] Strict checking of address literals
2018-06-25 16:54:50 +02:00
Alex Beregszaszi
6d9a091a8e Keep the 'if it not used as an address' helper message for all cases of address related warnings 2018-06-25 16:25:21 +02:00
Alex Beregszaszi
c7f842d4cc Do not change SMT tests 2018-06-25 16:17:50 +02:00
Alex Beregszaszi
d44743c87f Replace old Truffle artifacts in external Zeppelin/Gnosis tests 2018-06-25 16:17:50 +02:00
Alex Beregszaszi
b7ad97610f Update documentation for strict address literals 2018-06-25 16:17:50 +02:00
Alex Beregszaszi
3ee3018bf6 Update external contracts in compilationTests (to support strict address literals) 2018-06-25 16:17:50 +02:00
Jason Cobb
98c9ca2575 Update tests for strict address literals 2018-06-25 16:17:50 +02:00
Alex Beregszaszi
48b003d4d4 Better wording for invalid address literal error 2018-06-25 16:17:50 +02:00
Jason Cobb
51567c0513 Change invalid (not exactly 160 bits long) address literal to error 2018-06-25 16:17:50 +02:00
Jason Cobb
3d88eca531 Disallow implicit conversion from rational (literal) to address 2018-06-25 16:17:50 +02:00
chriseth
b7003505c4
Merge pull request #4347 from ethereum/fix-end2endtest-against-latest-cpp-client
Fixes soltest run against "recent" cpp-ethereum builds.
2018-06-25 15:01:12 +02:00
Christian Parpart
f44561aeeb Fixes soltest against "recent" cpp-ethereum builds.
For me, it looks like the following Git commit has introduced this behaviour:
	42b927d7aa

This commit adds dummy values for `mixHash` and `nonce` (inspired by values were cpp-ethereum's own tests),
and now, soltest runs fine again.
2018-06-25 13:55:23 +02:00
Khan M Rashedun-Naby
097a3fabf4 RationalNumberType::isImplicitlyConvertibleTo Refactor 2018-06-24 08:15:25 +06:00