Record Class EnvironmentConfig

java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.EnvironmentConfig

public record EnvironmentConfig(String serializationPath, Solc compiler, TvmLinker linker, String sourcePath, String buildPath, Map<String,String> abis, Map<String,String> tvcs, Map<String,String> keys) extends Record
  • 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 a EnvironmentConfig record class.
      Parameters:
      serializationPath - the value for the serializationPath record component
      compiler - the value for the compiler record component
      linker - the value for the linker record component
      sourcePath - the value for the sourcePath record component
      buildPath - the value for the buildPath record component
      abis - the value for the abis record component
      tvcs - the value for the tvcs record component
      keys - the value for the keys record 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.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

      public ContractAbi abi(String name) throws com.fasterxml.jackson.core.JsonProcessingException
      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

      public ContractTvc tvc(String name)
    • addAbiPath

      public void addAbiPath(String name, String pathStr) throws IOException
      Throws:
      IOException
    • addTvcPath

      public void addTvcPath(String name, String pathStr) throws IOException
      Throws:
      IOException
    • addKeypairPath

      public void addKeypairPath(String name, String pathStr) throws IOException
      Throws:
      IOException
    • sync

      public void sync() throws IOException
      Throws:
      IOException
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • serializationPath

      public String serializationPath()
      Returns the value of the serializationPath record component.
      Returns:
      the value of the serializationPath record component
    • compiler

      public Solc compiler()
      Returns the value of the compiler record component.
      Returns:
      the value of the compiler record component
    • linker

      public TvmLinker linker()
      Returns the value of the linker record component.
      Returns:
      the value of the linker record component
    • sourcePath

      public String sourcePath()
      Returns the value of the sourcePath record component.
      Returns:
      the value of the sourcePath record component
    • buildPath

      public String buildPath()
      Returns the value of the buildPath record component.
      Returns:
      the value of the buildPath record component
    • abis

      public Map<String,String> abis()
      Returns the value of the abis record component.
      Returns:
      the value of the abis record component
    • tvcs

      public Map<String,String> tvcs()
      Returns the value of the tvcs record component.
      Returns:
      the value of the tvcs record component
    • keys

      public Map<String,String> keys()
      Returns the value of the keys record component.
      Returns:
      the value of the keys record component