From 34c011230517f9e40dc588a195a07fa6dd18cb57 Mon Sep 17 00:00:00 2001 From: rachid chami Date: Mon, 11 Jan 2021 14:13:01 +0100 Subject: [PATCH] adds comments to generated code --- src/main/resources/project/EmptyJava.template | 4 ++++ src/main/resources/project/EmptyKotlin.template | 4 ++++ src/main/resources/project/Java.template | 5 +++++ src/main/resources/project/Kotlin.template | 5 +++++ 4 files changed, 18 insertions(+) diff --git a/src/main/resources/project/EmptyJava.template b/src/main/resources/project/EmptyJava.template index 1c9f3dd..3e1162b 100644 --- a/src/main/resources/project/EmptyJava.template +++ b/src/main/resources/project/EmptyJava.template @@ -1,5 +1,9 @@ package ; +/** + *

This is the generated class for web3j import

+ *

For more information on how to run this project, please refer to our documentation

+ */ public class { public static void main(String[]args) { diff --git a/src/main/resources/project/EmptyKotlin.template b/src/main/resources/project/EmptyKotlin.template index 9534023..e1ef97c 100644 --- a/src/main/resources/project/EmptyKotlin.template +++ b/src/main/resources/project/EmptyKotlin.template @@ -1,5 +1,9 @@ package ; +/** + *

This is the generated class for web3j import

+ *

For more information on how to run this project, please refer to our documentation

+ */ class { companion object { diff --git a/src/main/resources/project/Java.template b/src/main/resources/project/Java.template index d8202d1..e7dd90b 100644 --- a/src/main/resources/project/Java.template +++ b/src/main/resources/project/Java.template @@ -7,6 +7,11 @@ import org.web3j.protocol.Web3j; import org.web3j.protocol.http.HttpService; import org.web3j.tx.gas.DefaultGasProvider; +/** + *

This is the generated class for web3j new helloworld

+ *

It deploys the Hello World contract in src/main/solidity/ and prints its address

+ *

For more information on how to run this project, please refer to our documentation

+ */ public class { private static final String nodeUrl = System.getenv().getOrDefault("WEB3J_NODE_URL", ""); diff --git a/src/main/resources/project/Kotlin.template b/src/main/resources/project/Kotlin.template index f7532c5..5996554 100644 --- a/src/main/resources/project/Kotlin.template +++ b/src/main/resources/project/Kotlin.template @@ -4,6 +4,11 @@ import org.web3j.crypto.WalletUtils import org.web3j.protocol.Web3j import org.web3j.tx.gas.DefaultGasProvider +/** + *

This is the generated class for web3j new helloworld --kotlin

+ *

It deploys the Hello World contract in src/main/solidity/ and prints its address

+ *

For more information on how to run this project, please refer to our documentation

+ */ class { private val nodeUrl = System.getenv().getOrDefault("WEB3J_NODE_URL", "")