|
|
@ -12,27 +12,32 @@ Run Setup |
|
|
|
The following settings allow you to directly influence the transaction |
|
|
|
The following settings allow you to directly influence the transaction |
|
|
|
execution: |
|
|
|
execution: |
|
|
|
|
|
|
|
|
|
|
|
> - Environment: |
|
|
|
Environment: |
|
|
|
> : - `JavaScript VM`: All the transactions will be executed in |
|
|
|
|
|
|
|
> a sandbox blockchain in the browser. This means nothing |
|
|
|
- `JavaScript VM`: All the transactions will be executed in |
|
|
|
> will be persisted and a page reload will restart a new |
|
|
|
a sandbox blockchain in the browser. This means nothing |
|
|
|
> blockchain from scratch, the old one will not be saved. |
|
|
|
will be persisted and a page reload will restart a new |
|
|
|
> - `Injected Provider`: Remix will connect to an injected |
|
|
|
blockchain from scratch, the old one will not be saved. |
|
|
|
> web3 provider. `Mist` and `Metamask` are example of |
|
|
|
|
|
|
|
> providers that inject web3, thus can be used with this |
|
|
|
- `Injected Provider`: Remix will connect to an injected |
|
|
|
> option. |
|
|
|
web3 provider. `Mist` and `Metamask` are example of |
|
|
|
> - `Web3 Provider`: Remix will connect to a remote node. You |
|
|
|
providers that inject web3, thus can be used with this |
|
|
|
> will need to provide the URL address to the selected |
|
|
|
option. |
|
|
|
> provider: geth, parity or any Ethereum client. |
|
|
|
|
|
|
|
> |
|
|
|
- `Web3 Provider`: Remix will connect to a remote node. You |
|
|
|
> - Account: the list of accounts associated with the current |
|
|
|
will need to provide the URL address to the selected |
|
|
|
> environment (and their associated balances). |
|
|
|
provider: geth, parity or any Ethereum client. |
|
|
|
> - Gas Limit: the maximum amount of gas that can be set for all the |
|
|
|
|
|
|
|
> transactions created in Remix. |
|
|
|
- Account: the list of accounts associated with the current |
|
|
|
> - Value: the amount of value for the next created transaction (this |
|
|
|
environment (and their associated balances). |
|
|
|
> value is always reset to 0 after each transaction execution). |
|
|
|
|
|
|
|
> |
|
|
|
- Gas Limit: the maximum amount of gas that can be set for all the |
|
|
|
> ![image](images/remix_runtab_example.png) |
|
|
|
transactions created in Remix. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Value: the amount of value for the next created transaction (this |
|
|
|
|
|
|
|
value is always reset to 0 after each transaction execution). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![image](images/remix_runtab_example.png) |
|
|
|
|
|
|
|
|
|
|
|
Initiate Instance |
|
|
|
Initiate Instance |
|
|
|
----------------- |
|
|
|
----------------- |
|
|
@ -44,6 +49,7 @@ This section contains the list of compiled contracts and 2 actions: |
|
|
|
deployed contract. There's no check at this point, so be careful |
|
|
|
deployed contract. There's no check at this point, so be careful |
|
|
|
when using this feature, and be sure you trust the contract at that |
|
|
|
when using this feature, and be sure you trust the contract at that |
|
|
|
address. |
|
|
|
address. |
|
|
|
|
|
|
|
|
|
|
|
- `Create` send a transaction that deploys the selected contract. When |
|
|
|
- `Create` send a transaction that deploys the selected contract. When |
|
|
|
the transaction is mined, the newly created instance will be added |
|
|
|
the transaction is mined, the newly created instance will be added |
|
|
|
(this might take several seconds). Note that if the `constructor` |
|
|
|
(this might take several seconds). Note that if the `constructor` |
|
|
@ -114,7 +120,8 @@ Input parameters are `1` and |
|
|
|
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}`. |
|
|
|
|
|
|
|
|
|
|
|
``` {.sourceCode .none} |
|
|
|
:: |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
"accounts": { |
|
|
|
"accounts": { |
|
|
|
"account{0}": "0xca35b7d915458ef540ade6068dfe2f44e8fa733c" |
|
|
|
"account{0}": "0xca35b7d915458ef540ade6068dfe2f44e8fa733c" |
|
|
@ -269,4 +276,3 @@ all these transactions are created using the value of the accounts |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|