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 |
|