java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.EnvironmentConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabis()
Returns the value of theabis
record component.void
addAbiPath
(String name, String pathStr) void
addKeypairPath
(String name, String pathStr) void
addTvcPath
(String name, String pathStr) Returns the value of thebuildPath
record component.compiler()
Returns the value of thecompiler
record component.compileTemplate
(String filename, String contractName) compileTemplate
(String sourcePath, String buildPath, String filename, String contractName) credentials
(String name) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.keys()
Returns the value of thekeys
record component.linker()
Returns the value of thelinker
record component.static EnvironmentConfig
static EnvironmentConfig
ofPaths
(String serializationPath, String solcPath, String linkerPath, String stdLibPath, String sourcePath, String buildPath) Returns the value of theserializationPath
record component.Returns the value of thesourcePath
record component.void
sync()
final String
toString()
Returns a string representation of this record class.tvcs()
Returns the value of thetvcs
record component.
-
Constructor Details
-
EnvironmentConfig
public EnvironmentConfig(String serializationPath, Solc compiler, TvmLinker linker, String sourcePath, String buildPath, Map<String, String> abis, Map<String, String> tvcs, Map<String, String> keys) Creates an instance of aEnvironmentConfig
record class.- Parameters:
serializationPath
- the value for theserializationPath
record componentcompiler
- the value for thecompiler
record componentlinker
- the value for thelinker
record componentsourcePath
- the value for thesourcePath
record componentbuildPath
- the value for thebuildPath
record componentabis
- the value for theabis
record componenttvcs
- the value for thetvcs
record componentkeys
- the value for thekeys
record component
-
-
Method Details
-
ofPaths
public static EnvironmentConfig ofPaths(String serializationPath, String solcPath, String linkerPath, String stdLibPath, String sourcePath, String buildPath) throws IOException - Throws:
IOException
-
LOAD
public static EnvironmentConfig LOAD(String serializationPath) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
compileTemplate
public ContractTemplate 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 ContractTemplate 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)
. -
serializationPath
Returns the value of theserializationPath
record component.- Returns:
- the value of the
serializationPath
record component
-
compiler
Returns the value of thecompiler
record component.- Returns:
- the value of the
compiler
record component
-
linker
Returns the value of thelinker
record component.- Returns:
- the value of the
linker
record component
-
sourcePath
Returns the value of thesourcePath
record component.- Returns:
- the value of the
sourcePath
record component
-
buildPath
Returns the value of thebuildPath
record component.- Returns:
- the value of the
buildPath
record component
-
abis
Returns the value of theabis
record component.- Returns:
- the value of the
abis
record component
-
tvcs
Returns the value of thetvcs
record component.- Returns:
- the value of the
tvcs
record component
-
keys
Returns the value of thekeys
record component.- Returns:
- the value of the
keys
record component
-