java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.LocalConfig
public record LocalConfig(Artifact<String,String> artifact, LocalConfig.LocalInfo info)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLocalConfig(Artifact<String, String> artifact, LocalConfig.LocalInfo info) Creates an instance of aLocalConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAbiPath(String name, String pathStr) voidaddKeypairPath(String name, String pathStr) voidaddTvcPath(String name, String pathStr) artifact()Returns the value of theartifactrecord component.compileTemplate(String filename, String contractName) compileTemplate(String sourcePath, String buildPath, String filename, String contractName) credentials(String name) static LocalConfigEMPTY(String serializationPath, String solcPath, String linkerPath, String stdLibPath, String sourcePath, String buildPath) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.static LocalConfigvoidsync()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalConfig
Creates an instance of aLocalConfigrecord class.- Parameters:
artifact- the value for theartifactrecord componentinfo- the value for theinforecord component
-
-
Method Details
-
EMPTY
public static LocalConfig EMPTY(String serializationPath, String solcPath, String linkerPath, String stdLibPath, String sourcePath, String buildPath) throws IOException - Throws:
IOException
-
LOAD
public static LocalConfig LOAD(String serializationPath) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
compileTemplate
public Template compileTemplate(String filename, String contractName) throws com.fasterxml.jackson.core.JsonProcessingException, tech.deplant.java4ever.binding.EverSdkException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptiontech.deplant.java4ever.binding.EverSdkException
-
compileTemplate
public Template compileTemplate(String sourcePath, String buildPath, String filename, String contractName) throws com.fasterxml.jackson.core.JsonProcessingException, tech.deplant.java4ever.binding.EverSdkException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptiontech.deplant.java4ever.binding.EverSdkException
-
abi
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
credentials
public Credentials credentials(String name) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
tvc
-
addAbiPath
- Throws:
IOException
-
addTvcPath
- Throws:
IOException
-
addKeypairPath
- Throws:
IOException
-
sync
- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
artifact
Returns the value of theartifactrecord component.- Returns:
- the value of the
artifactrecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-