Commit Graph
2324 Commits
Author SHA1 Message Date
chriseth 38486f47a7 Example ERC20 contract in Yul. 2020-05-04 19:13:50 +02:00
Kamil Śliwak 457cc754d0 docs: Info about optimizerSteps field in Standard JSON input and metadata listings 2020-05-04 15:59:44 +02:00
Kamil Śliwak d037f7a3c5 docs: Info about --yul-optimizations and optimizer steps in Yul section 2020-05-04 15:59:44 +02:00
chriseth ea7e751750 Documentation. 2020-05-04 15:05:14 +02:00
chriseth d7180c0522 Prepare 0.6.7. 2020-05-04 12:57:27 +02:00
chriseth b627f3ab85 Merge pull request #8808 from ethereum/documentation-abstract
Note on abstract contract about overriding implemented functions
2020-05-01 13:33:55 +02:00
KaiYu Feng 15748e871e fix(docs/mapping-types): fix wrong demo code.
get index before push, so the access of this index won't beyond the boundery.
2020-05-01 00:14:45 +08:00
hrkrshnn d1fd6782bc Note on abstract contract about overriding implemented functions 2020-04-30 19:41:31 +05:30
chriseth 3828adbbbd Merge pull request #8761 from ethereum/conditonalStrings
Conditional strings for Whiskers.
2020-04-27 14:07:30 +02:00
Alex Beregszaszi 025daaada5 Merge pull request #8765 from ethereum/interfaceId-doc-miscellaneous-fix
docs/cheatsheet.rst: Add ``type(I).interfaceId`` description.
2020-04-27 12:26:53 +01:00
chriseth aa8107f45a Conditional strings for Whiskers. 2020-04-27 11:07:56 +02:00
Noel Maersk a481ea719f docs: use Yul lexer to highlight Yul code segments.
Many commits squashed; turns out that with the combination of:

* Python v2.7,
* Sphinx v1.8.5, and
* Pygments v2.3.1

versions (old!) used in the CI, the only viable approach is:

* to use `code-block` directives with explicit language specification,
* to provide no file-local default using `highlight`, and
* to set language as `none` for grammar specifications.

Underlying are the following issues (again, for the old versions
listed above):

* Generic RST `code` doesn't work when language is `none`:

    Warning, treated as error:
    /root/project/docs/yul.rst:430:Cannot analyze code. No Pygments lexer found for "none".

  Additionally, it might be trying to fall back to the default
  (Solidity) if left unspecified.

* If a file-local default is specified using `highlight`, then
  `code-block` _must_ also provide a language:

    Warning, treated as error:
    /root/project/docs/yul.rst:185:Error in "code-block" directive:
    1 argument(s) required, 0 supplied.

* Sphinx seems to try the file-local default "yul" (specified with
  `highlight`) on `code` marked having language `json`:

    Warning, treated as error:
    /root/project/docs/yul.rst:130:Could not lex literal_block as "yul". Highlighting skipped.

* The only well-lexed highlighter for two of the three grammar
  specifications is `peg`, but it was added in Pygments v2.6.
  One of the grammars - in the "Formal Specification" section,
  the one after "We will use a destructuring notation for the
  AST nodes." - _must_ be left unhighlighted, with language set
  to `none`: all lexers do really poorly.

... And one should never, ever start treating warnings as mere
warnings, without having exhausted all other options.

Otherwise, it's a slippery slope, - and look where that brought
Gandhi: to being a strawman in every lousy argument to be had!..
2020-04-26 20:48:07 +03:00
Alexander Arlt 55eda85a30 docs/cheatsheet.rst: Add `type(I).interfaceId` description. 2020-04-24 08:09:45 -05:00
chriseth d429d20b0b Restructure documentation and improve TOC. 2020-04-23 19:05:42 +02:00
hrkrshnn 48ff9fd4d6 Tests, Changelog and updated grammar 2020-04-23 17:27:37 +05:30
chriseth a371910674 Merge pull request #8642 from ethereum/interfaceid
Add support for interfaceId.
2020-04-23 12:24:49 +02:00
chriseth 393f922081 Merge pull request #8747 from ethereum/smt_chc_docs_internal_calls
Add internal function calls to CHC docs
2020-04-23 12:14:54 +02:00
chriseth 2ea2267179 Merge pull request #8735 from ethereum/bugs-url
Add missing blog URLs to bugs.json
2020-04-23 12:06:41 +02:00
chriseth 615668bfb4 Explain nonpayable
Fixes https://github.com/ethereum/solidity/issues/8736
2020-04-23 01:35:21 +02:00
Leonardo Alt 1cb68b1be7 Add internal function calls to CHC docs 2020-04-22 20:15:01 +02:00
Alex Beregszaszi fe383fbd7a Add missing blog URLs to bugs.json 2020-04-22 12:03:10 +01:00
chriseth 8c60b2c847 Merge pull request #8714 from iamdefinitelyahuman/develop
Add dark mode to documentation
2020-04-20 21:36:17 +02:00
iamdefinitelyahuman d59706e5f5 docs: fix formatting errors and style inconsistencies 2020-04-20 20:24:31 +04:00
iamdefinitelyahuman c59854c4bb docs: add dark mode to documentation 2020-04-20 20:23:45 +04:00
chriseth 6900544f0d Merge pull request #8651 from a3d4/modify-evmone-version
Update evmone version to v0.4 in docs and scripts
2020-04-20 16:49:10 +02:00
Alexander Arlt 3754a86ab2 Add support for interfaceID. 2020-04-16 12:17:40 -05:00
a3d4 760ae7f584 Update evmone version to v0.4 in docs and scripts 2020-04-14 14:34:47 +02:00
Evan Saulpaugh 1a67b86f24 clarify description of padding for int<M> types 2020-04-10 02:23:13 -05:00
Evan Saulpaugh 1ef24562a9 change positive to non-negative 2020-04-10 02:17:57 -05:00
Chris ChinchillaandBhargava Shastry eaff5c58a9 Update contributing doc to clarify tests
Fix line endings

Update docs/contributing.rst

Co-Authored-By: Bhargava Shastry <bhargava.shastry@ethereum.org>

Remove duplication

Add back URL to correct evmone version

Add Istanbul
2020-04-09 15:28:38 +02:00
chriseth 474b72e3f4 Prepare 0.6.6 2020-04-09 11:55:21 +02:00
Black3HDF c7e0983cef fix link 2020-04-08 22:46:59 +08:00
a3d4 aba0b2957c Fix tuple assignments with multi-slot components. 2020-04-07 18:39:25 +02:00
chriseth 3f52ee43a8 Merge pull request #8581 from ethereum/immutableDebug
Debug information for immutable references.
2020-04-06 14:22:31 +02:00
chriseth 30c9705c14 Update buglist. 2020-04-06 13:17:01 +02:00
Daniel Kirchner 4a23ce087c Document immutable references output. 2020-04-06 11:22:07 +02:00
Kamil Śliwak 303345b12c reference-types.rst: Fix incorrectly wrapped line in the array slice section 2020-04-06 10:15:42 +02:00
Kamil Śliwak 1847536d6d reference-types.rst: Minor text correction, itself -> themselves 2020-04-06 10:15:13 +02:00
Daniel Kirchner 06d184712c Add buglist entry. 2020-04-01 19:01:32 +02:00
chriseth 9c4a02db0f Documentation for immutables. 2020-04-01 11:37:11 +02:00
chriseth 3f26f7fb7e Merge pull request #8548 from mijovic/testDocsPragma
Enabling pragma with > in minimum version check
2020-04-01 00:31:15 +02:00
Djordje Mijovic 64ae889dd7 Enabling pragma with > in minimum version check 2020-03-31 23:50:24 +02:00
Christian Parpart 9cc967eb3a Removing grammar.txt in favor of Solidity.g4 (ANTLR based grammar) 2020-03-30 11:35:34 +02:00
Christian Parpart 0e66e07e5c Add antlr-based grammar and test it. 2020-03-24 11:07:51 +01:00
Erik Kundt 50c22f0800 Adds script which compiles docs example with minimum compiler version. 2020-03-18 19:27:38 +01:00
chriseth 1587486334 Merge tag 'v0.5.17' into develop 2020-03-17 19:50:09 +01:00
Mathias Baumann e2db9d7ef3 Disallow private functions from being overridden 2020-03-17 16:15:59 +01:00
chriseth 435c9dae71 Merge pull request #8290 from gitpusha/docs-update-staticcall-gascounting
added note about gas counting and its effect on staticall.gas(gasLimi…
2020-03-17 10:47:30 +01:00
gitpusha 1b63b8822e Added note recommending to avoid relying on hardcoded gas values 2020-03-16 18:22:32 +01:00
Mathias Baumann 4d99a54d05 Fix broken yul-object link in docs 2020-03-16 17:34:18 +01:00