Get all version numbers after solidity v0.4.22

    As of 2020.11.03, the latest version of Solidity is 0.7.2. You can use the following command to view the current solidity version supported by truffle:

truffle compile --list --all

    It should be pointed out that truffle v5.1.45 currently supports soljson versions from v0.1.1 to v0.7.1, and it does not support solidity v0.7.2. If you want to support the v0.7.2 version, please upgrade the truffle version as well.

    1. Copy the solidity compilation list of https://github.com/ethereum/solc-bin/tree/gh-pages/bin to solVersion.txt

    2. Remove the line where the keyword is specified in solVersion.txt
    2.1) Open solVersoin.txt with notepad++, press Ctrl+F, switch to the [tab] page, enter the keyword: soljson- --> mark all
    2.2) Click the notepad++ tool [Search] on the bar –> Bookmarks-->Delete unmarked bookmarks

    2.3) Delete the line where nightly is located to
    find the target:

.*nightly.*\r\n

    Replace:
    Check "Regular Expression" for empty
    --> Click [Replace All]

    2.4) Delete the "+commit" keyword to the end of the line (including "+commit" will also be deleted)
    Find the target:

\+commit.*$

    Replace:
    Check "Regular Expression" for empty
    --> Click [Replace All]

    2.5) Delete all strings before "-v" to the beginning of the line (including "-v" will also be deleted)
    Find the target:

^.*(-v)

    Replace:
    Check "Regular Expression" for empty
    --> Click [Replace All]

    2.6) Remove duplicate lines to
    find the target:

^(.*?)$\s+?^(?=.*^\1$)

    Replace:
    Check "Regular expression" for blank , check "Match new line"
    --> Click [Replace all]

    2.7) Manually delete the version between 0.4.3 ~ 0.4.9;

    As shown below:
    //Version number after solidity v0.4.22

0.4.22
0.4.23
0.4.24
0.4.25
0.4.26
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.2
0.5.3
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.7.0
0.7.1
0.7.2

    3. Add the version field keyword version: "" to it
    3.1) Add version: "at the beginning of the line to
    find the target: ^

^

    Replace: version:"
    Check "Regular Expression"
    --> Click [Replace All]

    3.2) Add "(double quotation mark) at the beginning of the line to
    find the target:

$

    Replace: "
    Check "Regular Expression"
    --> Click [Replace All]

    The effect is as follows:

version:"0.4.22"
version:"0.4.23"
version:"0.4.24"
version:"0.4.25"
version:"0.4.26"
version:"0.5.0"
version:"0.5.1"
version:"0.5.10"
version:"0.5.11"
version:"0.5.12"
version:"0.5.13"
version:"0.5.14"
version:"0.5.15"
version:"0.5.16"
version:"0.5.17"
version:"0.5.2"
version:"0.5.3"
version:"0.5.4"
version:"0.5.5"
version:"0.5.6"
version:"0.5.7"
version:"0.5.8"
version:"0.5.9"
version:"0.6.0"
version:"0.6.1"
version:"0.6.10"
version:"0.6.11"
version:"0.6.12"
version:"0.6.2"
version:"0.6.3"
version:"0.6.4"
version:"0.6.5"
version:"0.6.6"
version:"0.6.7"
version:"0.6.8"
version:"0.6.9"
version:"0.7.0"
version:"0.7.1"
version:"0.7.2"

Guess you like

Origin blog.csdn.net/sanqima/article/details/109461379