java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.EnvironmentConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabis()Returns the value of theabisrecord component.voidaddAbiPath(String name, String pathStr) voidaddKeypairPath(String name, String pathStr) voidaddTvcPath(String name, String pathStr) Returns the value of thebuildPathrecord component.compiler()Returns the value of thecompilerrecord component.compileTemplate(String filename, String contractName) compileTemplate(String sourcePath, String buildPath, String filename, String contractName) credentials(String name) static EnvironmentConfigEMPTY(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.keys()Returns the value of thekeysrecord component.linker()Returns the value of thelinkerrecord component.static EnvironmentConfigReturns the value of theserializationPathrecord component.Returns the value of thesourcePathrecord component.voidsync()final StringtoString()Returns a string representation of this record class.tvcs()Returns the value of thetvcsrecord 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 aEnvironmentConfigrecord class.- Parameters:
serializationPath- the value for theserializationPathrecord componentcompiler- the value for thecompilerrecord componentlinker- the value for thelinkerrecord componentsourcePath- the value for thesourcePathrecord componentbuildPath- the value for thebuildPathrecord componentabis- the value for theabisrecord componenttvcs- the value for thetvcsrecord componentkeys- the value for thekeysrecord component
-
-
Method Details
-
EMPTY
public static EnvironmentConfig EMPTY(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.JsonProcessingExceptiontech.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.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). -
serializationPath
Returns the value of theserializationPathrecord component.- Returns:
- the value of the
serializationPathrecord component
-
compiler
Returns the value of thecompilerrecord component.- Returns:
- the value of the
compilerrecord component
-
linker
Returns the value of thelinkerrecord component.- Returns:
- the value of the
linkerrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
buildPath
Returns the value of thebuildPathrecord component.- Returns:
- the value of the
buildPathrecord component
-
abis
Returns the value of theabisrecord component.- Returns:
- the value of the
abisrecord component
-
tvcs
Returns the value of thetvcsrecord component.- Returns:
- the value of the
tvcsrecord component
-
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-