Matías Aereal Aeón
|
7dae58cbcc
|
Replace boost:lexical_cast<std::string> for std::to_string.
|
2018-08-08 03:55:43 -03:00 |
|
chriseth
|
901550e473
|
Merge pull request #4692 from ethereum/devcore-path
Move absolutePath/sanitizePath helpers from CompilerStack to libdevcore
|
2018-08-07 16:15:49 +02:00 |
|
chriseth
|
71e26f6adb
|
Remove clone feature.
|
2018-08-07 11:10:50 +01:00 |
|
Alex Beregszaszi
|
3de0b8b7f0
|
Move absolutePath/sanitizePath helpers from CompilerStack to libdevcore
|
2018-08-06 12:54:22 +01:00 |
|
Alex Beregszaszi
|
f74cff622d
|
Properly explain all the analsys steps in CompilerStack
|
2018-07-31 00:39:18 +01:00 |
|
Alex Beregszaszi
|
a5a61a0b77
|
More consistent catch statements
Also take const& in all cases.
|
2018-07-25 01:18:09 +01:00 |
|
Matt Little
|
4efe3544f7
|
Fix NatSpec json output for "@notice" and "@dev" tags on contract definitions.
|
2018-07-12 14:39:13 +02:00 |
|
chriseth
|
238dbe1b99
|
Merge pull request #4388 from ethereum/noPackedLiterals
Disallow packed encoding of literals.
|
2018-07-11 14:28:20 +02:00 |
|
Cryptomental
|
140dbfdbd8
|
Code, Changelog, ReleaseChecklist: Fix typos.
Refs: #4442
|
2018-07-11 00:26:23 +02:00 |
|
chriseth
|
f7a9c4203e
|
Disallow packed encoding of literals.
|
2018-07-03 01:02:00 +02:00 |
|
Alex Beregszaszi
|
5aa8c7ed1a
|
Document the internal API of CompilerStack
|
2018-06-25 23:51:40 +02:00 |
|
Alex Beregszaszi
|
3fc7da11db
|
Pull out createCBORMetadata helper
|
2018-06-25 22:17:33 +02:00 |
|
Alex Beregszaszi
|
a392e0f046
|
Properly catch optimizer/assembly exception in CompilerStack
|
2018-06-20 23:19:06 +02:00 |
|
Alex Beregszaszi
|
0a632011be
|
CompilerStack absolutePath/sanitizePath can be made static
|
2018-06-20 17:04:22 +02:00 |
|
Alex Beregszaszi
|
dcee8e11ad
|
Reorder some of the flow in CompilerStack::compileContract for readability
|
2018-06-20 17:01:17 +02:00 |
|
Alex Beregszaszi
|
782bc41dbd
|
Rename JULIA/IULIA to Yul in assembly interface
|
2018-06-14 09:31:28 +01:00 |
|
Julius Huelsmann
|
9e26f5fa0a
|
Do not catch exceptions by value in StandardCompiler
|
2018-05-17 14:44:01 +02:00 |
|
Daniel Kirchner
|
16e966dea0
|
Add control flow analyzer and test for uninitialized storage returns.
|
2018-05-14 20:23:40 +02:00 |
|
Daniel Kirchner
|
995623f0fa
|
Add control flow graph.
|
2018-05-14 20:23:40 +02:00 |
|
Alex Beregszaszi
|
059e232e69
|
Support shifts in gas estimator
|
2018-04-30 21:22:59 +01:00 |
|
chriseth
|
928ce08845
|
Correctly ignore costs of fallback for other functions.
|
2018-04-11 19:42:34 +01:00 |
|
Alex Beregszaszi
|
43d2954de8
|
Do not abort excessive warnings, just ignore them.
|
2018-04-06 14:44:03 +02:00 |
|
Alex Beregszaszi
|
0812d1189a
|
Ignore warnings when limited errors to 256
|
2018-04-06 13:52:19 +02:00 |
|
Alex Beregszaszi
|
3730f68d4b
|
reindent
|
2018-04-06 13:52:19 +02:00 |
|
Alex Beregszaszi
|
e8be0e61b3
|
Catch FatalError in CompilerStack::analysis to cover all the analysis tests
|
2018-04-06 13:52:19 +02:00 |
|
Alex Beregszaszi
|
d5f40c141b
|
Limit the number of errors output in a single run to 256
|
2018-04-06 13:52:19 +02:00 |
|
Alex Beregszaszi
|
a59d6d2e53
|
Support constantinople in evm-version
|
2018-03-12 18:13:19 +01:00 |
|
chriseth
|
fd1662d1c4
|
Warn about using loose inline assembly features as experimental 0.5.0 feature.
|
2018-03-06 17:45:34 +01:00 |
|
chriseth
|
9d67e9b4fc
|
Merge pull request #3640 from AnthonyBroadCrawford/spanning-multiline-message-fix
moved spanning multi lines message to appear on some lane vs new line…
|
2018-03-05 22:51:53 +01:00 |
|
Anthony Broad-Crawford
|
174c46d5af
|
Improved messaging when an error spans multiple lines and updated change log file.
|
2018-03-05 14:14:14 -06:00 |
|
chriseth
|
6ec4517929
|
Use EVM version in gas meter and optimizer.
|
2018-03-05 11:36:33 +01:00 |
|
Alex Beregszaszi
|
5a54cd5c70
|
Only warn for shift instructions if not using constantinople
|
2018-03-01 17:19:35 +01:00 |
|
chriseth
|
4ce0e7775d
|
Add constantinople.
|
2018-03-01 17:19:35 +01:00 |
|
chriseth
|
982476f99d
|
Add TangerineWhistle.
|
2018-03-01 17:19:35 +01:00 |
|
chriseth
|
dc317a44e0
|
Provide EVM version to assembly analysis.
|
2018-03-01 17:19:35 +01:00 |
|
chriseth
|
a53d6b499d
|
Use EVM version in type checker.
|
2018-03-01 17:19:35 +01:00 |
|
chriseth
|
f75a411325
|
Provide target EVM version in CompilerContext.
|
2018-03-01 17:19:35 +01:00 |
|
chriseth
|
85785710e6
|
Store EVM version in settings.
|
2018-03-01 17:19:34 +01:00 |
|
chriseth
|
5ab4a1ae78
|
Add ability to set the target EVM version.
|
2018-03-01 17:19:34 +01:00 |
|
Alex Beregszaszi
|
b6dfd9ef54
|
Ensure that library addresses supplied are of correct length and hex prefixed in JSONIO
|
2018-03-01 12:03:56 +01:00 |
|
Alex Beregszaszi
|
7897301b71
|
Properly validate invalid hex characters in JSONIO libraries
|
2018-02-28 10:44:48 +01:00 |
|
Alex Beregszaszi
|
83fec0232d
|
Add more comprehensive tests and checks for libraries in JSONIO
|
2018-02-28 10:36:07 +01:00 |
|
chriseth
|
3076a434ba
|
Merge pull request #3554 from ethereum/reuseScannerOrNot
Expect end of string at end of top-level block for assembly parser.
|
2018-02-21 00:41:57 +01:00 |
|
chriseth
|
e2bf5de8a2
|
Expect end of string at end of top-level block for assembly parser.
|
2018-02-21 00:41:39 +01:00 |
|
Alexander Arlt
|
0f29ac4e56
|
Add new JSON API for better abstraction and for supporting strict JSON parsing
|
2018-02-20 21:58:26 +01:00 |
|
chriseth
|
abc23ac608
|
Merge pull request #3135 from federicobond/formatter-instance
Convert static SourceReferenceFormatter functions to member ones
|
2018-02-19 17:34:07 +01:00 |
|
chriseth
|
305d5f70c2
|
Fix scannerFromSourceName use-after-free.
|
2018-02-19 15:13:49 +01:00 |
|
Federico Bond
|
d7532f7b9c
|
Convert static SourceReferenceFormatter functions to member ones
|
2018-02-19 15:04:22 +01:00 |
|
Alexander Arlt
|
1d4547ab03
|
Minor improvement: check sources
- returns error, if "sources" is an array, an empty object or not defined
- Added new test-cases in test/libsolidity/StandardCompiler.cpp
|
2018-02-16 18:44:46 +01:00 |
|
chriseth
|
6807010dc7
|
Prevent libraries from being called.
|
2018-01-19 16:27:44 +01:00 |
|
Alex Beregszaszi
|
c269a12c5e
|
Support strict assembly mode in AssemblyStack
|
2018-01-06 01:23:38 +00:00 |
|
chriseth
|
124190336b
|
Split inline assembly into loose and strict flavours.
|
2018-01-06 01:23:38 +00:00 |
|
Alex Beregszaszi
|
9e7e312fdf
|
Properly support library file names containing a colon (such as URLs).
|
2018-01-05 13:24:07 +00:00 |
|
Alex Beregszaszi
|
ff9fdfac57
|
Properly handle colons in file names within jsonio
|
2018-01-03 15:44:03 +00:00 |
|
Alex Beregszaszi
|
add4cde68c
|
Populate the sourceLocation field properly in standard JSON on errors
|
2017-12-18 12:17:51 +00:00 |
|
chriseth
|
2d171c25e5
|
Limit number of secondary source locations.
|
2017-12-12 10:27:28 +01:00 |
|
Alex Beregszaszi
|
3576ccf5b3
|
Simplify target selection code
|
2017-11-29 20:10:18 +00:00 |
|
Alex Beregszaszi
|
b2023196a2
|
Rename target selection to use the word artifact
|
2017-11-29 20:10:18 +00:00 |
|
Alex Beregszaszi
|
bbcec95bac
|
Add workaround for bytecode/deployedBytecode selection
|
2017-11-29 20:10:18 +00:00 |
|
Alex Beregszaszi
|
8da245cca3
|
Limit output according to the selected targets in StandardCompiler
|
2017-11-29 20:10:18 +00:00 |
|
Alex Beregszaszi
|
d37e6ba1c7
|
Add target selection helpers to StandardCompiler
|
2017-11-29 20:10:04 +00:00 |
|
chriseth
|
dc6b1f02bc
|
Merge pull request #3092 from rivenhk/b_2885
added formatting when source snippets is too long
|
2017-10-23 10:54:52 +02:00 |
|
rivenhk
|
950f5ae7d7
|
updated formatting when source snippets is too long
|
2017-10-19 20:20:07 +08:00 |
|
Alex Beregszaszi
|
8d3cfa8cff
|
Simplify contract lookup in CompileStack
|
2017-10-18 23:54:32 +01:00 |
|
Alex Beregszaszi
|
2ce35b77be
|
Implement CompilerStack.lastContractName()
|
2017-10-18 23:54:32 +01:00 |
|
Alex Beregszaszi
|
039cc25b1f
|
Always require a contract/sourceName in CompilerStack
|
2017-10-18 23:32:33 +01:00 |
|
rivenhk
|
d53c44a066
|
updating formatting when source snippets is too long
|
2017-10-18 22:03:33 +08:00 |
|
rivenhk
|
b93a5980ed
|
added formatting when source snippets is too long
|
2017-10-18 01:59:15 +08:00 |
|
Alex Beregszaszi
|
a0394a1bfa
|
Restrict contracts compiled via outputSelection (but not the individual output details)
|
2017-10-04 20:30:14 +01:00 |
|
Alex Beregszaszi
|
f96e932243
|
Provide optional list of contract names to CompilerStack.compile
|
2017-10-04 20:30:14 +01:00 |
|
Alex Beregszaszi
|
a9847c9551
|
Use solAssert and not assert
|
2017-10-04 13:05:55 +01:00 |
|
Alex Beregszaszi
|
aad829948a
|
Ensure parameter names match between headers and implementation
|
2017-09-20 01:23:21 +01:00 |
|
chriseth
|
c5063d3155
|
Use "tuple" for struct types in ABI JSON.
Only use tuple as a type in the ABI (and remove all "anonymous struct" references too)
|
2017-09-16 12:31:12 +01:00 |
|
chriseth
|
6385641f6e
|
Fix tests.
|
2017-09-16 12:31:12 +01:00 |
|
chriseth
|
7e1b9c1652
|
Structure type json using "components".
|
2017-09-16 12:12:44 +01:00 |
|
chriseth
|
36a90289e6
|
Fix interface type conversion internal to structs.
|
2017-09-16 12:12:43 +01:00 |
|
chriseth
|
080be885f8
|
Function signatures containing structs.
|
2017-09-16 12:12:43 +01:00 |
|
chriseth
|
2e72bd163a
|
Allow structs as part of function interfaces.
|
2017-09-16 12:12:43 +01:00 |
|
chriseth
|
3f3bcc4f8a
|
Merge pull request #2848 from ethereum/checkViewPure
Enforce view and pure.
|
2017-09-13 18:29:13 +02:00 |
|
Alex Beregszaszi
|
bbfb16cf5c
|
Introduce assemblyString
|
2017-09-11 15:53:20 +01:00 |
|
Alex Beregszaszi
|
50570c6c79
|
Do not return the stream in asssemblyStream
|
2017-09-11 15:48:58 +01:00 |
|
Alex Beregszaszi
|
a535a8b06e
|
Split out the JSON functionality from assembly.stream()
|
2017-09-11 15:48:52 +01:00 |
|
chriseth
|
5470da4d9a
|
View-pure checker.
|
2017-09-06 13:50:49 +02:00 |
|
Alex Beregszaszi
|
ceba40c410
|
Reorder some methods in CompilerStack for readability
|
2017-08-28 15:14:19 +01:00 |
|
chriseth
|
5bd6254449
|
Merge pull request #2825 from ethereum/contract-unused-natspec
Removed unused natspec members of ContractDefinition
|
2017-08-28 13:06:30 +02:00 |
|
Alex Beregszaszi
|
2b3a49f702
|
Merge pull request #2821 from ethereum/errorreporter-copy
Add copy constructor to ErrorReporter (since it has assignment operator)
|
2017-08-25 20:40:27 +01:00 |
|
Alex Beregszaszi
|
8e5f9c5981
|
Removed unused natspec members of ContractDefinition
|
2017-08-25 20:29:43 +01:00 |
|
Alex Beregszaszi
|
774363eb74
|
Add copy constructor to ErrorReporter (since it has assignment operator)
|
2017-08-25 16:03:24 +01:00 |
|
Alex Beregszaszi
|
e6f55fb95e
|
Do not create a new TypeChecker instance for every contract
|
2017-08-25 15:43:26 +01:00 |
|
Alex Beregszaszi
|
670df8e874
|
Attach natspec before type checking
|
2017-08-25 15:39:20 +01:00 |
|
Alex Beregszaszi
|
d60d4b3031
|
Remove duplicate work from CompilerStack.analyze()
|
2017-08-25 15:37:10 +01:00 |
|
Alex Beregszaszi
|
e03dfd8476
|
Remove unused statements from the Natspec headers
|
2017-08-25 13:15:08 +01:00 |
|
Alex Beregszaszi
|
20e3b98d1f
|
Reorder ABI for readability
|
2017-08-25 10:39:53 +01:00 |
|
Alex Beregszaszi
|
deeac7e2e0
|
Rename statemutability to stateMutability in ABI/AST
|
2017-08-24 15:23:00 +01:00 |
|
Alex Beregszaszi
|
5668377c72
|
Introduce pure specifier on functions
|
2017-08-24 13:46:18 +01:00 |
|
chriseth
|
9ac2ac14c1
|
Rename read file callback.
|
2017-08-23 17:37:35 +02:00 |
|
chriseth
|
b3f8ed457a
|
Cleanup.
|
2017-08-23 14:24:30 +02:00 |
|
chriseth
|
1ece7bf443
|
z3 conditions
|
2017-08-23 14:24:04 +02:00 |
|
Alex Beregszaszi
|
efe4d68a7b
|
Introduce view (and keep constant as an alias)
|
2017-08-22 18:24:22 +01:00 |
|
Alex Beregszaszi
|
2a5772cff7
|
Mark appropriate constructors explicit
|
2017-08-22 10:51:46 +01:00 |
|
Alex Beregszaszi
|
e2cfc9ee92
|
Mark a lot of functions const (where possible)
|
2017-08-22 10:51:46 +01:00 |
|
Alex Beregszaszi
|
4219acaba9
|
Merge pull request #2771 from ethereum/unused-includes
Remove some unused includes
|
2017-08-21 16:26:44 +01:00 |
|
Alex Beregszaszi
|
b3986f1d07
|
Remove some unused includes
|
2017-08-21 14:08:58 +01:00 |
|
Alex Beregszaszi
|
7222fac456
|
Remove DocumentationType from natspec
|
2017-08-15 19:56:38 +01:00 |
|
Alex Beregszaszi
|
12f3257e7d
|
Add statemutability field to the ABI
|
2017-08-15 11:35:50 +01:00 |
|
Federico Bond
|
d4997dd9a3
|
Use a secondary location for function override errors
|
2017-08-11 22:45:25 +01:00 |
|
Alex Beregszaszi
|
2d1bab0de8
|
Output experimental flag in metadata only for risky features
|
2017-08-11 16:38:43 +01:00 |
|
Alex Beregszaszi
|
4d82d4f57a
|
Store experimental flag in metadata CBOR
|
2017-08-11 16:38:43 +01:00 |
|
Alex Beregszaszi
|
494dea262e
|
Show unimplemented function if trying to instantiate an abstract class
|
2017-08-04 14:03:37 +01:00 |
|
Alex Beregszaszi
|
c835bcec62
|
Replace isFullyImplemented with unimplementedFunctions in ASTAnnotations
|
2017-08-04 14:03:37 +01:00 |
|
Alex Beregszaszi
|
934a5dbf53
|
Consistent format for secondary location in sourceformatter
|
2017-08-02 11:31:55 +01:00 |
|
Alex Beregszaszi
|
7553beb6a6
|
Consistent new line in sourceformatter
|
2017-08-02 11:31:17 +01:00 |
|
Alex Beregszaszi
|
9fc6eccc26
|
Add isFallback() helper
|
2017-07-27 21:52:57 +01:00 |
|
Alex Beregszaszi
|
89fadd6935
|
Merge pull request #2645 from ethereum/asserts
Use solAssert where possible
|
2017-07-27 11:12:30 +01:00 |
|
Yoichi Hirai
|
85b338a019
|
Merge pull request #2643 from ethereum/compilerstack
Reorder CompilerStack to be in logical order
|
2017-07-27 11:28:08 +02:00 |
|
Yoichi Hirai
|
772de8c4d9
|
Merge pull request #2646 from ethereum/standardcompiler
Clean up error catching in StandardCompiler
|
2017-07-27 11:20:17 +02:00 |
|
chriseth
|
1298a8df14
|
Merge pull request #2566 from ethereum/metadata-only-relevant
Metadata: only include relevant files in the source list
|
2017-07-27 11:07:15 +02:00 |
|
Alex Beregszaszi
|
f4b6bdad38
|
DocstringParsingError is not thrown anymore in StandardCompiler
|
2017-07-26 23:25:49 +01:00 |
|
Alex Beregszaszi
|
fb7eec8dd5
|
Catch FatalError in StandardCompiler
|
2017-07-26 23:25:43 +01:00 |
|
Alex Beregszaszi
|
8098030986
|
Use solAssert instead of boost throw where possible
|
2017-07-26 22:23:21 +01:00 |
|
Alex Beregszaszi
|
9982e73dce
|
Reorder CompilerStack to be in logical order
|
2017-07-26 22:16:02 +01:00 |
|
chriseth
|
925569bfa3
|
Merge pull request #1637 from ethereum/warn-shadowing-globals
Warn if shadowing built-ins
|
2017-07-26 17:30:27 +02:00 |
|
Alex Beregszaszi
|
30012db396
|
Add CompilerStack::setOptimiserSettings
|
2017-07-26 15:17:07 +01:00 |
|
Alex Beregszaszi
|
6848199b66
|
Add CompilerStack::setLibraries
|
2017-07-26 15:05:16 +01:00 |
|
Alex Beregszaszi
|
fa5a7efb45
|
Remove unused interfaces from CompilerStack
|
2017-07-26 15:05:16 +01:00 |
|
Alex Beregszaszi
|
e0dc74b895
|
Warn about shadowing variables.
|
2017-07-25 16:32:37 +02:00 |
|
Alex Beregszaszi
|
c617336587
|
Only include files usde in metadata
|
2017-07-19 14:56:40 +01:00 |
|
Yoichi Hirai
|
2a46e1b0e2
|
Merge pull request #2589 from ethereum/rename-onchainmetadata
Rename onChainMetadata to metadata
|
2017-07-19 11:43:19 +02:00 |
|
Alex Beregszaszi
|
5bb4bfb08b
|
Remove unneccesary interface from Natspec
|
2017-07-18 21:05:34 +01:00 |
|
Alex Beregszaszi
|
6d8929a71a
|
Rename onChainMetadata to metadata
|
2017-07-18 20:54:28 +01:00 |
|
Alex Beregszaszi
|
c40cbed9fb
|
Mark const variables
|
2017-07-18 14:44:53 +01:00 |
|
Alex Beregszaszi
|
33ac1f29b5
|
Reorder code for readability
|
2017-07-18 14:44:19 +01:00 |
|
chriseth
|
09e821619e
|
Refactor exceptions and provide comment function.
|
2017-07-13 11:34:03 +02:00 |
|
chriseth
|
2dd9070a4f
|
Merge pull request #2527 from ethereum/onlyASTIfAnalysisSuccessful
Only output AST if the analysis was successful.
|
2017-07-05 20:40:25 +02:00 |
|
chriseth
|
75f7f7e1e6
|
Do not omit error type.
|
2017-07-05 18:28:14 +02:00 |
|
chriseth
|
da48bcc51e
|
Only output AST if the analysis was successful.
|
2017-07-05 18:27:32 +02:00 |
|
chriseth
|
2b233e7388
|
Merge pull request #2507 from ethereum/jsonio-safe
Handle parsing errors in StandardCompiler
|
2017-07-03 13:23:28 +02:00 |
|
Alex Beregszaszi
|
75c193e959
|
Use more refined states in StandardCompiler
|
2017-07-03 12:06:41 +01:00 |
|
Alex Beregszaszi
|
08069bf4a4
|
Export CompilerStack state
|
2017-07-03 12:06:41 +01:00 |
|
Alex Beregszaszi
|
7798a27112
|
Add Julia mode as an option to EVMCodeTransform
|
2017-07-03 10:13:36 +01:00 |
|
Alex Beregszaszi
|
a33a5e3c08
|
Run analyzer in Julia mode if requested in AssemblyStack
|
2017-07-02 00:44:21 +01:00 |
|
Alex Beregszaszi
|
c5947ae6e3
|
Remove Why3 error class
|
2017-06-30 22:30:43 +01:00 |
|
Alex Beregszaszi
|
555dc4f46f
|
Remove Why3 generator
|
2017-06-25 12:26:16 +01:00 |
|
Alex Beregszaszi
|
f823952d9f
|
Merge pull request #2404 from ethereum/methodidentifiers
Clean up method identifiers handling in CLI/CompilerStack
|
2017-06-22 13:00:19 +01:00 |
|
Alex Beregszaszi
|
d5f8ce90c7
|
Merge interface/Exceptions and interface/Utils
|
2017-06-22 11:25:07 +01:00 |
|
Alex Beregszaszi
|
ba7d698ee6
|
Make compiler.contractDefinition private
|
2017-06-22 11:13:06 +01:00 |
|
Alex Beregszaszi
|
b99e4bc68b
|
Rework functionHashes into methodIdentifiers
|
2017-06-22 11:13:06 +01:00 |
|
Alex Beregszaszi
|
63395b31af
|
Use compilerStack.functionHashes in StandardCompiler
|
2017-06-22 11:13:06 +01:00 |
|
chriseth
|
868b5ad3aa
|
Split block code generation into main and finalize.
|
2017-06-16 10:56:21 +01:00 |
|
chriseth
|
9084d48750
|
Merge pull request #2382 from ruchevits/combined-json-hashes
Allow including hashes of method signatures in --combined-json output
|
2017-06-15 10:10:18 +02:00 |
|