Daniel Kirchner
|
a434896458
|
Restore `isConstructor ` in the legacy AST.
|
2018-09-11 14:47:25 +02:00 |
|
Daniel Kirchner
|
395ab9a872
|
Replace `isConstructor field in the JSON AST by a kind ` field.
|
2018-09-11 14:47:25 +02:00 |
|
Daniel Kirchner
|
87804b6419
|
Split IntegerType into IntegerType and AddressType.
|
2018-09-05 12:19:14 +02:00 |
|
Daniel Kirchner
|
82f512a7d4
|
Add return data to bare calls.
|
2018-09-04 13:31:10 +02:00 |
|
chriseth
|
2783905bab
|
Merge pull request #4837 from chase1745/default-to-unspecified
Rename `Location::Default` to `Location::Unspecified`
|
2018-09-03 18:44:41 +02:00 |
|
chriseth
|
758bc1614c
|
Merge pull request #4851 from anurag-git/anurag_issue_4824
Removed unused "FunctionType::Kind::CallCode"
|
2018-09-03 16:51:05 +02:00 |
|
Anurag Dashputre
|
94c327c1ae
|
Removed unused "FunctionType::Kind::CallCode" from Types.h and all its usage
|
2018-08-23 13:09:00 +05:30 |
|
Anurag Dashputre
|
8497dcd721
|
Merge branch 'develop' into anurag_issue_3667
|
2018-08-23 11:56:45 +05:30 |
|
Anurag Dashputre
|
55524788e2
|
Removed the default cases related to assertion to detect the problem at compile-time instead of run-time
|
2018-08-23 11:47:00 +05:30 |
|
Chase McDermott
|
551e0bf47c
|
Rename Location::Default to Location::Unspecified.
|
2018-08-17 18:15:22 -05:00 |
|
Anurag Dashputre
|
435cd95c54
|
Default case removed to detect errors at comoile time rather than run time
|
2018-08-17 18:37:35 +05:30 |
|
chriseth
|
c274af0770
|
Merge pull request #4825 from ethereum/expressionCompBareCall
More safeguards for (library) function types.
|
2018-08-16 14:38:44 +02:00 |
|
liangdzou
|
74c37935f0
|
fix a typo: declaratoion => declaration
|
2018-08-16 13:42:46 +08:00 |
|
chriseth
|
455345871d
|
More safeguards for (library) function types.
|
2018-08-15 17:11:43 +02:00 |
|
Daniel Kirchner
|
7ca0aaaf6f
|
Add `staticcall to address `.
|
2018-08-15 16:06:48 +02:00 |
|
chriseth
|
9328ea4c3c
|
Add abi.decode(bytes data, (...))
|
2018-08-15 10:45:16 +02:00 |
|
Chase McDermott
|
683bce1869
|
Refactor data location check.
|
2018-08-14 18:07:15 +02:00 |
|
chriseth
|
3f42118d19
|
Merge pull request #4765 from ethereum/fixes-issue-4673
[WIP] Fixes issue where computing storage size for a number would take too long (or even cause a crash).
|
2018-08-14 17:34:04 +02:00 |
|
Jesse Busman
|
c059119145
|
Add implicit convertibility to function pointer with higher state mutability
|
2018-08-14 17:13:10 +02:00 |
|
chriseth
|
ec7ccbdf86
|
Merge pull request #4782 from ethereum/encodePackedArrayOfStructs
Encode packed array of structs
|
2018-08-14 16:32:57 +02:00 |
|
Christian Parpart
|
43bda53410
|
Fixes issue where computing storage size for a number would take too long.
Fixes #4673.
|
2018-08-14 15:38:10 +02:00 |
|
Daniel Kirchner
|
7d7abeb149
|
Disallow ambiguous conversions between number literals and bytesXX types.
|
2018-08-13 14:27:01 +02:00 |
|
chriseth
|
0b65b2dff6
|
Disallow packed encoding of arrays of structs.
|
2018-08-09 21:16:51 +02:00 |
|
Alex Beregszaszi
|
ed52f422b7
|
Rename FunctionKind SHA3 to KECCAK256 (as the instruction was renamed in libevmasm)
|
2018-08-08 22:37:40 +01:00 |
|
chriseth
|
d634d20b5b
|
Merge pull request #4684 from ethereum/underscores_in_numeric_literals
[BREAKING] Underscores in numeric literals
|
2018-08-08 21:36:57 +02:00 |
|
Alex Beregszaszi
|
9062704054
|
Merge pull request #4753 from mattaereal/boost-to-string-patch
Replace boost:lexical_cast<std::string> for std::to_string.
|
2018-08-08 16:07:25 +01:00 |
|
Matías Aereal Aeón
|
e902ce1aa0
|
Removing std:: from std::to_string and include for boost/lexical_cast
|
2018-08-08 11:26:30 -03:00 |
|
Alex Beregszaszi
|
1bfb841771
|
Remove experimental 0.5.0 pragma
|
2018-08-08 14:05:36 +01:00 |
|
Christian Parpart
|
b9222808f6
|
Cleanup & polish numbers-with-underscores parsing, also improving tests.
|
2018-08-08 13:38:46 +02:00 |
|
chriseth
|
d0863f4994
|
Merge pull request #4748 from ethereum/validate-identifier
Assert that type identifier contains only valid characters
|
2018-08-08 12:50:45 +02:00 |
|
Balajiganapathi S
|
09a36cba02
|
Add stricter hex underscore rules
|
2018-08-08 12:05:51 +02:00 |
|
Alex Beregszaszi
|
3064bd17bc
|
Assert that type identifier contains only valid characters
|
2018-08-07 22:29:21 +01:00 |
|
Daniel Kirchner
|
b11e39e25e
|
Remove remaining instances of `fillRight ` left over from tuple wildcards assignments.
|
2018-08-07 18:51:53 +02:00 |
|
chriseth
|
a949cffd24
|
Merge pull request #4699 from ethereum/cleanup_VariableDeclaration
libsolidity: Remove dead code wrt. VariableDeclaration::canHaveAutoType
|
2018-08-07 16:14:41 +02:00 |
|
chriseth
|
c61cc98d0d
|
Merge pull request #4726 from ethereum/moveNothrow
Make MemberList nothrow move constructible.
|
2018-08-07 16:11:59 +02:00 |
|
Alex Beregszaszi
|
b0f9fc5af0
|
Fix type identifiers for RationalNumberType
|
2018-08-07 13:23:14 +01:00 |
|
chriseth
|
133fd3d302
|
Make MemberList nothrow move constructible.
|
2018-08-07 14:20:18 +02:00 |
|
Christian Parpart
|
4c90ddf64a
|
libsolidity: Remove dead code wrt. VariableDeclaration::canHaveAutoType()
Closes #4667
|
2018-08-07 11:34:13 +02:00 |
|
Alex Beregszaszi
|
bd75d4268b
|
Move fullyQualifiedName to ContractDefinition only
|
2018-08-06 18:58:27 +02:00 |
|
chriseth
|
276724dedc
|
Merge pull request #4663 from ethereum/dropConstantAST
[BREAKING] Drop constant field from JSON AST
|
2018-08-06 18:55:12 +02:00 |
|
Jesse Busman
|
3fcd62921e
|
Renamed FunctionType::hasEqualArgumentTypes to FunctionType::hasEqualParameterTypes
|
2018-08-06 13:05:06 +02:00 |
|
Daniel Kirchner
|
44374a5846
|
Remove "constant" from JSON AST.
|
2018-08-06 11:15:25 +02:00 |
|
chriseth
|
90a5928b88
|
Merge pull request #4522 from ethereum/fullEncodingType
Isolate determining the encoding type into its own function.
|
2018-08-02 15:01:38 +02:00 |
|
Christian Parpart
|
38f9667e09
|
Guard CycleDetector against recursion exhaustion.
fixes #3935.
|
2018-08-01 12:02:59 +01:00 |
|
chriseth
|
7a8a243eef
|
Isolate determining the encoding type into its own function.
|
2018-08-01 11:55:57 +01:00 |
|
chriseth
|
c8232d9759
|
Disallow conversion between unrelated contract types.
|
2018-08-01 11:04:35 +01:00 |
|
chriseth
|
e3c2f20f6e
|
Merge pull request #4439 from ethereum/address_members
[BREAKING] Enforce address members not accessible by contract instance
|
2018-07-19 09:24:27 +02:00 |
|
Erik Kundt
|
182a0a9551
|
Disallows old constructor syntax.
|
2018-07-18 14:29:01 +02:00 |
|
Leonardo Alt
|
0075f4239a
|
Address members not accessible by contract instance
|
2018-07-17 13:33:23 +01:00 |
|
Daniel Kirchner
|
fc370591f0
|
Disallow multi variable declarations with mismatching number of values.
|
2018-07-12 20:33:51 +02:00 |
|
Daniel Kirchner
|
e8e5e12ad2
|
Fix literals with exponents with mantissa of zero.
|
2018-07-11 15:34:17 +02:00 |
|
Cryptomental
|
140dbfdbd8
|
Code, Changelog, ReleaseChecklist: Fix typos.
Refs: #4442
|
2018-07-11 00:26:23 +02:00 |
|
chriseth
|
0e9415bc31
|
Merge pull request #4468 from ethereum/variableDeclarationClenaup
Remove mentions of ``var`` in VariableDeclarationStatement comment.
|
2018-07-10 17:50:02 +02:00 |
|
chriseth
|
187eef36ad
|
Remove mentions of `var ` in VariableDeclarationStatement comment.
|
2018-07-10 14:55:50 +02:00 |
|
Daniel Kirchner
|
ece9afef8f
|
Check for matching number of components in TupleType::isImplicitlyConvertibleTo instead of the TypeChecker.
|
2018-07-10 12:17:01 +02:00 |
|
chriseth
|
4a842ecc82
|
Merge pull request #4097 from ethereum/noPackedExceptForPacked
[BREAKING] call only takes a single argument and does not pad
|
2018-06-27 18:29:01 +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
|
033672cc48
|
Fix: Call functions do not take variable arguments.
|
2018-06-25 17:17:48 +02: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 |
|
Jason Cobb
|
3d88eca531
|
Disallow implicit conversion from rational (literal) to address
|
2018-06-25 16:17:50 +02:00 |
|
Khan M Rashedun-Naby
|
097a3fabf4
|
RationalNumberType::isImplicitlyConvertibleTo Refactor
|
2018-06-24 08:15:25 +06:00 |
|
Alex Beregszaszi
|
4cdb6c809a
|
Change comments
|
2018-06-14 09:31:28 +01:00 |
|
Daniel Kirchner
|
510f227bd7
|
Additional test and more explanation.
|
2018-06-12 15:53:15 +02:00 |
|
Daniel Kirchner
|
f33dc92cbd
|
Use proper SAR for signed right shifts and emulate on pre-constantinople.
|
2018-06-12 09:32:19 +01:00 |
|
Alex Beregszaszi
|
8d38d4d296
|
Use boost::multiprecision::pow explicitly
|
2018-06-11 19:31:26 +01:00 |
|
chriseth
|
7cf36331a6
|
Fix bug related to byte array pop.
|
2018-05-31 14:53:33 +02:00 |
|
chriseth
|
5a73044fa7
|
Merge pull request #3743 from ethereum/popStorageArray
pop() for storage arrays
|
2018-05-30 18:32:08 +02:00 |
|
Erik Kundt
|
34b5eca1f8
|
Improves assembly and adds more tests.
|
2018-05-30 17:40:33 +02:00 |
|
mingchuan
|
b7cafcbdf9
|
Allow using calldata keyword to specify data location
|
2018-05-30 18:05:55 +08:00 |
|
bitshift
|
e9dcfb0b62
|
Implements pop() for value type arrays.
|
2018-05-29 12:53:02 +02:00 |
|
chriseth
|
9d5064d04d
|
Merge pull request #4173 from sifmelcara/add/allow-storage-calldata-suffix
Allow data location suffix for internal elementary type parsing
|
2018-05-28 22:52:45 +02:00 |
|
chriseth
|
5ee2ce353e
|
Merge pull request #4067 from ethereum/050
[BREAKING] Version 0.5.0
|
2018-05-23 18:11:20 +02:00 |
|
mingchuan
|
9865012f7b
|
Allow data location suffix for internal elementary type parsing
|
2018-05-22 23:28:12 +08:00 |
|
mingchuan
|
3cd57866a9
|
Fix assert message about function visibility
|
2018-05-20 22:29:11 +08:00 |
|
Daniel Kirchner
|
5c59d56335
|
Disallow conversions between bytesX and uintY of different size.
|
2018-05-16 18:32:47 +02:00 |
|
Leonardo Alt
|
0b6eea0c55
|
Bool variables should not allow arithmetic comparison
|
2018-05-16 18:32:47 +02:00 |
|
chriseth
|
894122c508
|
Warn/enforce single bytes argument for certain builtins (hashing functions).
In 0.5.0 mode, only accept a single bytes argument for ``.call``,
``keccak256`` and others and do not pad when encoding.
|
2018-05-16 09:48:03 +02:00 |
|
chriseth
|
dac0029d16
|
ABI encoding functions are pure and should be usable in constants.
|
2018-05-15 14:45:54 +02:00 |
|
daniel
|
aa1542a9e1
|
Change bytes to unsigned in FixedBytesType
|
2018-05-03 23:11:34 +01:00 |
|
Alex Beregszaszi
|
b34428249a
|
Change numBits to unsigned IntegerType
|
2018-05-02 23:22:25 -07:00 |
|
Alex Beregszaszi
|
2c00ebbee1
|
Change totalBits and fractionalDigits to unsigned in FixedPointType
|
2018-05-02 23:22:25 -07:00 |
|
chriseth
|
8debded743
|
Revert "BREAKING: Bool variables should not allow arithmetic comparison"
|
2018-05-02 15:56:59 +02:00 |
|
chriseth
|
42289b642f
|
Merge pull request #4003 from ethereum/bool_vars_comparison
BREAKING: Bool variables should not allow arithmetic comparison
|
2018-05-02 15:56:06 +02:00 |
|
Alexander Arlt
|
f94b793472
|
Add virtual destructors on base classes.
|
2018-05-02 13:29:16 +02:00 |
|
chriseth
|
15024154ab
|
Merge pull request #4018 from ethereum/disable-bytes0
Disable FixedBytesType(0) aka bytes0
|
2018-04-30 18:19:07 +02:00 |
|
Alex Beregszaszi
|
548bf2ff28
|
Remove unused function smallestTypeForLiteral
|
2018-04-30 14:35:26 +01:00 |
|
Alex Beregszaszi
|
e0b178e1c5
|
Disable FixedBytesType(0) aka bytes0
|
2018-04-30 12:23:30 +01:00 |
|
Leonardo Alt
|
ab251c7e7d
|
Bool variables should not allow arithmetic comparison
|
2018-04-27 11:35:58 +02:00 |
|
Alex Beregszaszi
|
5423974e87
|
Remove category check in FixedPointType:binaryOperatorResult as commonType handles the same
|
2018-04-20 17:54:34 +01:00 |
|
Jason Cobb
|
57003c534a
|
Types changes for fixed points
|
2018-04-20 17:53:42 +01:00 |
|
Alex Beregszaszi
|
754d79edfa
|
Disallow explicit conversion of bytesXX to contract
|
2018-04-19 15:58:14 +02:00 |
|
Erik Kundt
|
33fbf88707
|
Limits rational numbers to 4096 bits.
|
2018-04-16 11:45:55 +02:00 |
|
Erik Kundt
|
8935c0dd2f
|
Uses short string representation of TypePointer
|
2018-04-12 21:14:50 +02:00 |
|
chriseth
|
7054defdd6
|
Merge pull request #3364 from ethereum/revertWithReason
Revert with reason
|
2018-04-12 21:01:08 +02:00 |
|
chriseth
|
44416d1ac6
|
Merge pull request #2980 from ethereum/abi-api
Add abi.encode and abi.encodePacked
|
2018-04-12 20:55:03 +02:00 |
|
chriseth
|
f00bb43593
|
Allow function overloads involving MagicVariableDeclarations.
|
2018-04-12 13:09:37 +02:00 |
|
chriseth
|
17fc0f54b5
|
Use FunctionTypePointer (adds `const `).
|
2018-04-12 13:09:37 +02:00 |
|
Alex Beregszaszi
|
d56acb68ab
|
Add abi.encode, abi.encodePacked, abi.encodeWithSelector and abi.encodeWithSignature.
|
2018-04-11 22:32:10 +02:00 |
|
Daniel Kirchner
|
daa69df447
|
Error on invalid arithmetic with constant expressions.
|
2018-04-11 21:17:10 +02:00 |
|