blockchain
This is an old revision of the document!
Table of Contents
Blockchain
Tool Set Install
- Metamask Chrome extension.
- (Visual Studio Code)
- NodeJS
- [Admin PowerShell]
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned - Chocolately
- [Admin PowerShell]
choco install git -params "/GetAndUnixToolsOnPath" - [Admin PowerShell]
git config --system http.sslverify false - [Admin PowerShell]
npm install -g node-gyp - [Admin PowerShell]
npm install --global --production windows-build-tools - [Admin PowerShell]
npm install -g ethereumjs-testrpc - [Admin PowerShell]
npm install -g truffle
Commands
truffle init | Set up project. |
testrpc | Start RPC. |
truffle.cmd comp | Compile everything. |
truffle.cmd migrate | Deploy everything. |
truffle.cmd console | Console mode (to interact with contract). |
[Truffle Console] var hw | Create a variable to reference our contract. |
[Truffle Console] HelloWorld.deployed().then(function(deployed){hw=deployed;}); | Get the reference (note that it is async). |
[Truffle Console] hw.SayHello.call() | Call a read-only method on the contract. |
[Truffle Console] hw.sendCoin('0x8...', 100) | Call a modifying method on the contract. |
[Truffle Console] .exit | Exit console mode. |
Implementations of Ethereum blockchange
| Implementation | Language | Pruning | Notes |
|---|---|---|---|
| Geth | Go | Yes | |
| Parity | Rust | Yes | |
| EthereumJ | Java | Yes | |
| Eth | C++ | No | Reference implementation is meant for developers only. |
| PyEthApp | Python | No |
Glossary
| ABI | Application Binary Interface. Is basically how you call functions in a contract and get data back. Like a WSDL or .h file in C. |
VS Code
Use the Solidity extension.
- F5 - Compilation of the current contract
- Ctrl + F5 - Compilation of all the contracts
blockchain.1508399330.txt.gz · Last modified: 2017/10/20 08:48 (external edit)
