diff --git a/README.md b/README.md index 7298611c33c6e9f4e38428aaf83ac94376602ad0..9d7a5e1805d9216531a5a53e020029549350ba19 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 7298611c33c6e9f4e38428aaf83ac94376602ad0..9d7a5e1805d9216531a5a53e020029549350ba19 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