From 5914bc92a3115e33254e6728a0993a25b1f1af62 Mon Sep 17 00:00:00 2001 From: MI96 <mi3u17@soton.ac.uk> Date: Mon, 6 Aug 2018 19:23:15 +0100 Subject: [PATCH] new read me file outside the project folder --- README.md | 26 ++++++++++++++------------ sample-project-gradle-master/README.md | 26 ++++++++++++++------------ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 7298611..9d7a5e1 100644 --- a/README.md +++ b/README.md @@ -76,20 +76,22 @@ In this prototype java dapp we deploy our contract on the Ropsten Test Network ### Solidity compiler and Java wrappers -* A) Compiling Solidity source code - _ 1) npm install -g solc - _ 2) solc or solcjs <contract>.sol --bin --abi --optimize -o <output-dir>/ +A. Compiling Solidity source code + 1. npm install -g solc + 2. solc or solcjs <contract>.sol --bin --abi --optimize -o <output-dir>/ + - Links: - _ https://web3j.readthedocs.io/en/latest/smart_contracts.html - _ https://www.npmjs.com/package/solc - _ http://solidity.readthedocs.io/en/develop/installing-solidity.html - -* B) Auto generated Java wrapper for solidity smart contract -Need first to save your solidity code into a Notepad++ file with extention <yourcontract>.sol -Solidity smart contract wrappers - _ 3) web3j solidity generate [--javaTypes|--solidityTypes] /path/to/<smart-contract>.bin /path/to/<smart-contract>.abi -o /path/to/src/main/java -p com.your.organisation.name + - https://web3j.readthedocs.io/en/latest/smart_contracts.html + - https://www.npmjs.com/package/solc + - http://solidity.readthedocs.io/en/develop/installing-solidity.html + +B. Auto generated Java wrapper for solidity smart contract + - Need first to save your solidity code into a Notepad++ file with extention <yourcontract>.sol +C. Solidity smart contract wrappers + 3. web3j solidity generate [--javaTypes|--solidityTypes] /path/to/<smart-contract>.bin /path/to/<smart-contract>.abi -o /path/to/src/main/java -p com.your.organisation.name + - Link: - _ https://docs.web3j.io/smart_contracts.html#smart-contract-wrappers + - https://docs.web3j.io/smart_contracts.html#smart-contract-wrappers ### Viewing logs on blockchain diff --git a/sample-project-gradle-master/README.md b/sample-project-gradle-master/README.md index 7298611..9d7a5e1 100644 --- a/sample-project-gradle-master/README.md +++ b/sample-project-gradle-master/README.md @@ -76,20 +76,22 @@ In this prototype java dapp we deploy our contract on the Ropsten Test Network ### Solidity compiler and Java wrappers -* A) Compiling Solidity source code - _ 1) npm install -g solc - _ 2) solc or solcjs <contract>.sol --bin --abi --optimize -o <output-dir>/ +A. Compiling Solidity source code + 1. npm install -g solc + 2. solc or solcjs <contract>.sol --bin --abi --optimize -o <output-dir>/ + - Links: - _ https://web3j.readthedocs.io/en/latest/smart_contracts.html - _ https://www.npmjs.com/package/solc - _ http://solidity.readthedocs.io/en/develop/installing-solidity.html - -* B) Auto generated Java wrapper for solidity smart contract -Need first to save your solidity code into a Notepad++ file with extention <yourcontract>.sol -Solidity smart contract wrappers - _ 3) web3j solidity generate [--javaTypes|--solidityTypes] /path/to/<smart-contract>.bin /path/to/<smart-contract>.abi -o /path/to/src/main/java -p com.your.organisation.name + - https://web3j.readthedocs.io/en/latest/smart_contracts.html + - https://www.npmjs.com/package/solc + - http://solidity.readthedocs.io/en/develop/installing-solidity.html + +B. Auto generated Java wrapper for solidity smart contract + - Need first to save your solidity code into a Notepad++ file with extention <yourcontract>.sol +C. Solidity smart contract wrappers + 3. web3j solidity generate [--javaTypes|--solidityTypes] /path/to/<smart-contract>.bin /path/to/<smart-contract>.abi -o /path/to/src/main/java -p com.your.organisation.name + - Link: - _ https://docs.web3j.io/smart_contracts.html#smart-contract-wrappers + - https://docs.web3j.io/smart_contracts.html#smart-contract-wrappers ### Viewing logs on blockchain -- GitLab