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 aLocalConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAbiPath
(String name, String pathStr) void
addKeypairPath
(String name, String pathStr) void
addTvcPath
(String name, String pathStr) artifact()
Returns the value of theartifact
record component.compileTemplate
(String filename, String contractName) compileTemplate
(String sourcePath, String buildPath, String filename, String contractName) credentials
(String name) static LocalConfig
EMPTY
(String serializationPath, String solcPath, String linkerPath, String stdLibPath, String sourcePath, String buildPath) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.info()
Returns the value of theinfo
record component.static LocalConfig
void
sync()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LocalConfig
Creates an instance of aLocalConfig
record class.- Parameters:
artifact
- the value for theartifact
record componentinfo
- the value for theinfo
record 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.JsonProcessingException
tech.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.JsonProcessingException
tech.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 theartifact
record component.- Returns:
- the value of the
artifact
record component
-
info
Returns the value of theinfo
record component.- Returns:
- the value of the
info
record component
-