Commit Graph
100 Commits
Author SHA1 Message Date
Alex Beregszaszi ed32a57b86 Run tests in docker only on Travis 2017-04-25 16:47:43 +02:00
Alex Beregszaszi 5e7a643051 Catch jsoncpp exceptions 2017-04-24 22:49:50 +01:00
Alex Beregszaszi 2f66c69bd1 Do not crash on invalid JSON input 2017-04-24 22:38:03 +01:00
Alex Beregszaszi 4eae971b31 Export compileStandard on emscripten 2017-04-24 16:36:37 +01:00
Alex Beregszaszi 4a9ba5b952 Verify supplied hash in JSON I/O 2017-04-24 14:34:29 +01:00
Alex Beregszaszi 388486bb9d Merge pull request #2162 from ethereum/chriseth-patch-1
Add missing space.
2017-04-24 14:26:24 +01:00
Alex Beregszaszi 43eb839871 Do not fail if parsing failed in StandardCompiler 2017-04-24 11:44:33 +01:00
Alex Beregszaszi 3cd02ca148 Change error type names to not include spaces 2017-04-24 11:34:02 +01:00
Alex Beregszaszi 4a3fb96381 Enable standard json in the docs 2017-04-24 11:34:02 +01:00
Alex Beregszaszi e24c35bce0 Be a bit more verbose and capture Boost exceptions in StandardCompiler 2017-04-24 11:34:02 +01:00
Alex Beregszaszi c82a203206 Document that the ReadFileCallback should not emit exceptions 2017-04-22 14:08:28 +01:00
Alex Beregszaszi b7951be44a Add exception guard to ReadFileCallback in CLI 2017-04-22 14:08:28 +01:00
Alex Beregszaszi aa441668db Merge pull request #2144 from ethereum/jsonio-url-sources
Support URL sources in JSON I/O
2017-04-22 14:06:26 +01:00
Alex Beregszaszi 8de02c7778 Support URL sources in StandardCompiler 2017-04-21 16:44:15 +01:00
Alex Beregszaszi 4566b4b336 Pass readFileCallback to StandardCompiler in CLI 2017-04-20 23:22:23 +01:00
Alex Beregszaszi ed64c849f5 Merge pull request #2145 from ethereum/cli-readfile-permissions
Check for path permissions before opening file in the CLI file reader
2017-04-20 20:31:27 +01:00
Alex Beregszaszi 2ccbc088f2 Merge pull request #1639 from ethereum/json-interface-api
Support "standardised" JSON compiler input/output
2017-04-20 20:11:40 +01:00
Alex Beregszaszi b30fad4a49 Check for path permissions before opening file in the CLI file reader 2017-04-20 20:01:17 +01:00
Alex Beregszaszi 74373ecc7a Add test for legacyAST 2017-04-20 19:38:00 +01:00
Alex Beregszaszi c29da75f96 Add test for bytecode 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 5732ffdb74 Update changelog 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 6ae7a87b78 Rename ast to legacyAST in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi a24ac2f285 Add compilation test and verify output 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 137ef78e9a Trigger cases by the JSON (and not string) interface 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 10ec334f74 Add basic tests for StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi f71b465eb7 Ensure the language field is present in the JSON 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 6d13260232 Pull out collectEVMObject 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 413c146edd Enclose local functions in a namespace 2017-04-20 19:38:00 +01:00
Alex Beregszaszi aa0776d5e8 Support Why3 in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi b513db74a0 Support gas estimates in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 77d5148f0d Reject import URLs for now 2017-04-20 19:38:00 +01:00
Alex Beregszaszi df7e703925 Support the metadata.useLiteralContent setting 2017-04-20 19:38:00 +01:00
Alex Beregszaszi ef559de84f Properly split contract filename and name 2017-04-20 19:38:00 +01:00
Alex Beregszaszi ad1fe86508 Support linkReferences 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 2df52edfbd Support new assembly output 2017-04-20 19:38:00 +01:00
Alex Beregszaszi a87dd17d0f Move opcodes inside the bytecode section 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 63b6d0099f Support methodIdentifiers 2017-04-20 19:38:00 +01:00
Alex Beregszaszi f25efceaf8 Support proper error reporting in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi b3c6b1e936 Refactor formatError 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 2c15e2b541 Fail if no sources are given 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 5aec120da3 Support the AST output 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 50bb24af5e Include source mapping identifier 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 115458c50e Output legacyAssembly in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 4eaee772b3 Capture error messages from the JSON parser 2017-04-20 19:38:00 +01:00
Alex Beregszaszi f8cb0766d4 Add formatFatalError() to StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi ce87984cc1 Parse remappings in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 81775b2df6 Parse libraries in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 13fa440d37 Parse optimizer settings in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 418759ece0 Catch exceptions of StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 4f3c76364c Export StandardCompiler as compileStandard in soljson 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 985db17e1e Initial implementation of StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 5754b13b47 Add StandardCompiler skeleton 2017-04-20 19:38:00 +01:00
Alex Beregszaszi 8c9e57fadf Add --standard-json to solc 2017-04-20 19:38:00 +01:00
Alex Beregszaszi bf074f3f41 Fix source index allocation in CompilerStack. Depending on compiler(optimisations) this could be off-by-one. 2017-04-20 19:20:14 +01:00
Alex Beregszaszi 8bf842050e Support --allow-paths in the CLI 2017-04-20 15:39:30 +01:00
Alex Beregszaszi 138c952a1a Merge pull request #2114 from ethereum/compilerstack-gasestimate
Move gasEstimate into CompilerStack
2017-04-13 02:37:18 +01:00
Alex Beregszaszi 54dcb0e11b Keep gas values as a string in CompilerStack::gasEstimate 2017-04-13 02:18:29 +01:00
Alex Beregszaszi fe4fccaaf2 The gasEstimates objects must always be present in the jsonCompiler even if empty (backwards compat) 2017-04-13 02:17:40 +01:00
Alex Beregszaszi 3fbb48bd46 Exclude fallback function from the internal functions in estimateGas 2017-04-13 02:17:40 +01:00
Alex Beregszaszi 328f2b0a8e Use new gasEstimate in CLI 2017-04-13 02:17:40 +01:00
Alex Beregszaszi d90fd439e2 Use new gasEstimate in jsonCompiler 2017-04-13 02:17:40 +01:00
Alex Beregszaszi e6221108b6 Move gasEstimate into CompilerStack 2017-04-13 02:17:37 +01:00
Alex Beregszaszi bd48f181b5 Merge pull request #2098 from ethereum/sourceformatter
Introduce formatExceptionInformation
2017-04-10 14:46:59 +01:00
Alex Beregszaszi a182dfe266 Remove empty wrapper formatError from jsonCompiler 2017-04-10 14:07:37 +01:00
Alex Beregszaszi b1db6eac8b Introduce formatExceptionInformation 2017-04-10 14:07:36 +01:00
Alex Beregszaszi 623b8eb107 Pull out ReadFile from CompilerStack 2017-04-10 12:49:47 +01:00
Alex Beregszaszi 92fd66e4b4 Document formattedMessage 2017-04-07 15:37:11 +01:00
Alex Beregszaszi c22ba03417 Support selecting group of outputs 2017-04-07 15:34:38 +01:00
Alex Beregszaszi fea26bc4ba Rename legacyAssemblyJSON to legacyAssembly 2017-04-07 15:33:13 +01:00
Alex Beregszaszi b62a6949b5 Move the IR out of the EVM block in JSON IO 2017-04-07 15:32:59 +01:00
Alex Beregszaszi 594f207606 The metadata output is serialised 2017-04-07 15:32:58 +01:00
Alex Beregszaszi b7368ce067 Fix input selector for evm 2017-04-07 15:32:55 +01:00
Alex Beregszaszi ded7258b01 Swap key/value of methodIdentifiers 2017-03-30 11:12:14 +01:00
Alex Beregszaszi f6828fc7c3 Reorder for readiability 2017-03-29 22:23:35 +01:00
Alex Beregszaszi 917175eedc Move opcodes into bytecode/deployedBytecode 2017-03-29 22:21:33 +01:00
Alex Beregszaszi fefb3fad6f Merge pull request #1780 from ethereum/storebytecode
Push bytecode of all test contracts to remote repository.
2017-03-29 14:04:22 +01:00
Alex Beregszaszi 2cde2f9203 Merge pull request #1796 from ethereum/publishalpinestatic
Publish soljson and alpine static build on github release page.
2017-03-20 13:24:55 +00:00
Alex Beregszaszi 57bc763e83 Merge pull request #1808 from ethereum/chriseth-patch-1
Fixes spacing around condition.
2017-03-20 12:00:17 +00:00
Alex Beregszaszi 96c09fcbcd Simplify interface checks for FunctionDefinition 2017-03-17 17:07:20 +00:00
Alex Beregszaszi 2067a00f22 Disallow private or internal functions in interfaces 2017-03-17 17:07:18 +00:00
Alex Beregszaszi 5a71e4f1a7 Add more complex tests for interfaces 2017-03-17 17:06:53 +00:00
Alex Beregszaszi d5102c1db7 Disallow constructor in interfaces 2017-03-17 17:06:52 +00:00
Alex Beregszaszi 2c4bce2d62 Disallow enums in interfaces 2017-03-17 17:06:52 +00:00
Alex Beregszaszi 16a91ef90a Use declared instead of defined 2017-03-17 17:06:52 +00:00
Alex Beregszaszi f8da9a8fd5 Factor out tokenToContractKind 2017-03-17 17:06:52 +00:00
Alex Beregszaszi 3f1468142b Document interfaces 2017-03-17 17:06:51 +00:00
Alex Beregszaszi cfab70fd89 Add tests for interfaces 2017-03-17 17:06:49 +00:00
Alex Beregszaszi 4540daaf47 Changelog 2017-03-17 16:27:04 +00:00
Alex Beregszaszi 4693aed177 Reject invalid definitions for interface contracts 2017-03-17 16:27:04 +00:00
Alex Beregszaszi 54230d2d5d Support interface (contract) keyword in the parser 2017-03-17 16:27:04 +00:00
Alex Beregszaszi 6d4628ace4 Add ContractKind to ContractDefinition 2017-03-17 16:27:04 +00:00
Alex Beregszaszi e0ff70778a Rename ErrorMesage to ErrorMessage 2017-03-16 23:59:36 +00:00
Alex Beregszaszi 6d4cb24842 Merge pull request #1779 from ethereum/moretests
Correctly find contracts with other delimiters.
2017-03-16 13:44:06 +00:00
Alex Beregszaszi 3ae88377d6 Change references to FunctionType::Location 2017-03-16 12:49:52 +00:00
Alex Beregszaszi 7123f25210 Rename FunctionType::Location to FunctionType::Kind 2017-03-16 12:49:17 +00:00
Alex Beregszaszi e7e22c703c Merge pull request #1785 from ethereum/docs-address
Document all address methods in the global variables section
2017-03-16 12:46:26 +00:00
Alex Beregszaszi 17443f458a Explain that .value() is only available if contract function is marked payable 2017-03-16 12:37:18 +00:00
Alex Beregszaszi 6ece0d6c2f Document the .value() and .gas() modifiers 2017-03-16 12:37:18 +00:00
Alex Beregszaszi e34a9600f2 Merge pull request #1791 from ethereum/docs-fixes
Mostly typo fixes in the documentation
2017-03-16 12:22:10 +00:00
Alex Beregszaszi b053b6164e Fix typo (recieve to receive) 2017-03-16 11:20:39 +00:00