typos, minor changes to increase readability

pull/1/head
djudjuu 5 years ago
parent 433aafac21
commit 33649b5fa7
  1. 8
      docs/compile.md
  2. 4
      docs/contract_metadata.md
  3. 3
      docs/create_deploy.md
  4. 6
      docs/import.md
  5. 2
      docs/remix_commands.md
  6. 36
      docs/run.md
  7. 3
      docs/udapp.md
  8. 4
      docs/unittesting.md

@ -5,7 +5,7 @@ Clicking the Solidity icon in the icon panel brings you to the Solidty Compiler.
Compiling is triggered when you click the compile button ( **D. in image below**). If you want the file to be compiled each time the file is saved or when another file is selected - check the auto compile checkbox ( **E. in image below**). Compiling is triggered when you click the compile button ( **D. in image below**). If you want the file to be compiled each time the file is saved or when another file is selected - check the auto compile checkbox ( **E. in image below**).
Since the Solidity version `0.5.7`, it is possible to compile `Yul` files. Please read the (([solidity documentation about Yul]https://solidity.readthedocs.io/en/latest/yul.html)) which contain some code examples. Since the Solidity version `0.5.7`, it is possible to compile `Yul` files. Please read the ([solidity documentation about Yul]https://solidity.readthedocs.io/en/latest/yul.html)) which contain some code examples.
You can use the language dropdown ( **B. in image below**) to switch the language. **This dropdown list is only available for versions greater than or equal to `0.5.7`.** You can use the language dropdown ( **B. in image below**) to switch the language. **This dropdown list is only available for versions greater than or equal to `0.5.7`.**
The fork selection dropdown list ( **C. in image below**) allows to compile code against a specific ethereum hard fork. The fork selection dropdown list ( **C. in image below**) allows to compile code against a specific ethereum hard fork.
@ -15,15 +15,15 @@ If the contract has a lot of dependencies it can take a while to compile - so yo
![](images/a-sol-compiler.png) ![](images/a-sol-compiler.png)
After each compilation, a list is updated with all the newly compiled After each compilation, a list is updated with all newly compiled
contracts. The contract compiled can be selected with the Contract pulldown menu ( **F. in image below**). Multiple contracts are compiled when one contract imports other contracts. Selecting a contract will show information about that one. contracts. The compiled contract can be selected with the Contract pulldown menu ( **F. in image below**). Multiple contracts are compiled when one contract imports other contracts. Selecting a contract will show information about that one.
When the "Compilation Details" button is clicked ( **G. in image below**), a modal opens displaying detailed information about the current selected contract. When the "Compilation Details" button is clicked ( **G. in image below**), a modal opens displaying detailed information about the current selected contract.
From this tab, you can also publish your contract to Swarm (only non From this tab, you can also publish your contract to Swarm (only non
abstract contracts can be published). abstract contracts can be published).
Published data notably contains the `abi` and solidity source code. Published data notably contains the `abi` and the solidity source code.
After a contract is published, you can find its metadata information After a contract is published, you can find its metadata information
using the bzz URL located in the details modal dialog `SWARM LOCATION`. using the bzz URL located in the details modal dialog `SWARM LOCATION`.

@ -1,13 +1,13 @@
Build Artifact Build Artifact
============== ==============
As compilation succeed Remix create a JSON file for each compiled contract. As compilation succeeds Remix creates a JSON file for each compiled contract.
These JSON files contains several metadata These JSON files contains several metadata
Library Deployment Library Deployment
------------------ ------------------
By default Remix automatically deploy needed libraries. By default Remix automatically deploys needed libraries.
`linkReferences` contains a map representing libraries which depend on the current contract. `linkReferences` contains a map representing libraries which depend on the current contract.
Values are addresses of libraries used for linking the contract. Values are addresses of libraries used for linking the contract.

@ -29,7 +29,6 @@ Sample contract
--------------- ---------------
``` ```
{.sourceCode .none}
pragma solidity ^0.5.1; pragma solidity ^0.5.1;
contract testContract { contract testContract {
@ -62,7 +61,7 @@ Deploying an instance
--------------------- ---------------------
The `Compile tab` displays information related to the current contract The `Compile tab` displays information related to the current contract
(note that there can be more than one) (see ../compile\_tab). (note that there can be more than one) ([(see compile](compile.html)).
Moving on, in the `Run tab` select, `JavaScript VM` to specify that you Moving on, in the `Run tab` select, `JavaScript VM` to specify that you
are going to deploy an instance of the contract in the `JavaScript VM` are going to deploy an instance of the contract in the `JavaScript VM`

@ -1,9 +1,9 @@
Importing Source Files in Solidity Importing Source Files in Solidity
================================== ==================================
It is essential to know all many techniques for importing files. It is essential to know many techniques for importing files.
For a tutorial about importing files see this [tutorial](https://github.com/ethereum/remix-workshops/tree/master/loading_via_npm_github_plugin). For a tutorial about importing files click [here](https://github.com/ethereum/remix-workshops/tree/master/loading_via_npm_github_plugin).
For a detailed explanation of the `import` keyword see the For a detailed explanation of the `import` keyword see the
[Solidity documentation](https://solidity.readthedocs.io/en/develop/layout-of-source-files.html?highlight=import#importing-other-source-files) [Solidity documentation](https://solidity.readthedocs.io/en/develop/layout-of-source-files.html?highlight=import#importing-other-source-files)
@ -13,7 +13,7 @@ Here are a some of the main methods of importing a file:
Importing a file from the browser's local storage Importing a file from the browser's local storage
------------------------------------------------- -------------------------------------------------
Files in Remix can be imported just by specifying their path. Please use ./ for relative paths to increase portability. Files in Remix can be imported just by specifying their path. Please use ```./``` for relative paths to increase portability.
![](images/a-old-tuto_basicimport.png) ![](images/a-old-tuto_basicimport.png)
Importing a file from your computer's filesystem Importing a file from your computer's filesystem

@ -1,7 +1,7 @@
Remix Commands Remix Commands
============== ==============
In the console, you can run the commands listed below. Once you start to type a command, there is *auto completion*. These commands are using the following programs: In the console, you can run the commands listed below. Once you start to type a command, there is *auto completion*. These commands are using the following libraries:
+ *ethers*: The [ethers.js](https://docs.ethers.io/ethers.js/html/getting-started.html) library is a compact and complete JavaScript library for Ethereum. + *ethers*: The [ethers.js](https://docs.ethers.io/ethers.js/html/getting-started.html) library is a compact and complete JavaScript library for Ethereum.

@ -61,10 +61,10 @@ This section contains the list of compiled contracts and 2 actions:
Pending Instances Pending Instances
----------------- -----------------
Validating a transaction take several seconds. During this time, the GUI Validating a transaction takes several seconds. During this time, the GUI
shows it in a pending mode. When transaction is mined the number of shows it in a pending mode. When the transaction is mined the number of
pending transactions is updated and the transaction is added to the log pending transactions is updated and the transaction is added to the log
(see ../terminal) ([see terminal](terminal.html)).
Using the ABI Using the ABI
------------ ------------
@ -89,15 +89,15 @@ Saving to JSON allows to easily check the transaction list, tweak input
parameters, change linked library, etc... parameters, change linked library, etc...
We can find many use cases for the recorder, for instance: We can find many use cases for the recorder, for instance:
: - After having coded and tested contracts in a constrained - After having coded and tested contracts in a constrained
environment (like the JavaScript VM), it could be interesting to environment (like the JavaScript VM), it could be interesting to
redeploy them easily in a more persisted environment (like a redeploy them easily in a more persisted environment (like a
Geth node) in order to check whether everything behaves normally Geth node) in order to check whether everything behaves normally
in a classic environment. in a classic environment.
- Deploying contract does often require more than creating one - Deploying contract does often require more than creating one
transaction. transaction.
- Working in a dev environment does often require to setup the - Working in a dev environment does often require to setup the
state in a first place. state in a first place.
![](images/a-runtab-recorder.png) ![](images/a-runtab-recorder.png)
@ -108,19 +108,19 @@ In that specific record, 3 transactions are executed:
The first corresponds to the deployment of the lib `testLib`. The first corresponds to the deployment of the lib `testLib`.
The second corresponds to the deployment of the contract `test`, the The second corresponds to the deployment of the contract `test` with the
first parameter of the constructor is set to 11. That contract depends first parameter of the constructor set to 11. That contract depends
on a library. The linkage is done using the property `linkReferences`. on a library. The linkage is done using the property `linkReferences`.
In that case we use the addres of the previously created library : In that case we use the address of the previously created library :
`created{1512830014773}`. the number is the id (timestamp) of the `created{1512830014773}`. the number is the id (timestamp) of the
transaction that leads to the creation of the library. transaction that led to the creation of the library.
The third parameter corresponds to the call to the function `set` of the The third record corresponds to the call to the function `set` of the
contract `test` (the property to is set to: `created{1512830015080}`) . contract `test` (the property to is set to: `created{1512830015080}`) .
Input parameters are `1` and Input parameters are `1` and
`0xca35b7d915458ef540ade6068dfe2f44e8fa733c` `0xca35b7d915458ef540ade6068dfe2f44e8fa733c`
all these transactions are created using the value of the accounts All these transactions are created using the value of the accounts
`account{0}`. `account{0}`.
``` ```

@ -17,8 +17,7 @@ You will see the functions in the contract. The functions buttons can have diff
- Functions that are `constant` or `pure` functions in Solidity have a blue buttons. Clicking one of this type does not create a new transaction. So clicking will not cause state changes - it will only return a value stored in the contract - so it won't cost you anything in gas fees. - Functions that are `constant` or `pure` functions in Solidity have a blue buttons. Clicking one of this type does not create a new transaction. So clicking will not cause state changes - it will only return a value stored in the contract - so it won't cost you anything in gas fees.
- Functions that changes the state of the contract are orange, clicking this type of function will cost gas and they do change the state of the contract and so they do create a new transaction. - Functions that change the state of the contract are orange. Clicking on them will create a transaction and thus cost gas. Yet it is not possible to send Ether along with it.
But this transaction does not accept Ether.
- Functions that have red buttons are `payable` functions in Solidity. Clicking one of these will create a new transaction and this transaction can accept a **value**. The **value** is put in in the Value field which is under the Gas Limit field. - Functions that have red buttons are `payable` functions in Solidity. Clicking one of these will create a new transaction and this transaction can accept a **value**. The **value** is put in in the Value field which is under the Gas Limit field.

@ -14,7 +14,9 @@ This file contains the minimun you need for running unit testing.
Run Tests Run Tests
--------- ---------
This execute tests. The execution is run in a separate environment and the result is displayed below. This executes all tests whose box has been checked below (by default all). The execution is run in a separate environment and the result is displayed below.
Here is a list of functions and their supported types that you can use to write your testcases:
| Available functions | Supported types | | Available functions | Supported types |

Loading…
Cancel
Save