Solidity
Last updated
Was this helpful?
Last updated
Was this helpful?
This command creates a hello-world Solidity contract with comments that you can observe and compile.
This command compiles and links a selected Solidity contract. After successful compilation you get .abi.json and .tvc files that you can later .
To save generated assembler code use -c
option (default is false)
Assembler code will be saved in path/to/output/file with the extension code
You can specify the output files location with the -o
option:
To make an additional source directory available to the default import callback use -i
option:
Use this option if you want to import contracts, whose location is not fixed in relation to your main source tree, e.g. third-party libraries.
Separate different paths with a comma, no space allowed.
The default value is node_modules
folder.
This command parses a ton-solidity file and creates an abstract syntax tree (AST) to the output directory.
To specify the ast format type, use -f
or --format
option:
To point the location of the output folder, use the -o
or --output-dir
option:
You can make an additional source directory available to the default import callback with -i
option:
This command shows the currently installed Solidity compiler version.
This command updates the compiler and linker to the latest version.
Attention! Use --force option to force update of components that do not update their version.
This command sets the compiler and linker versions and downloads them if needed.
Attention! Use --force option to force update of components that do not update their version.