Record Class LocalConfig

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

public record LocalConfig(Artifact<String,String> artifact, LocalConfig.LocalInfo info) extends Record
  • Constructor Details

    • LocalConfig

      public LocalConfig(Artifact<String,String> artifact, LocalConfig.LocalInfo info)
      Creates an instance of a LocalConfig record class.
      Parameters:
      artifact - the value for the artifact record component
      info - the value for the info 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

      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 Tvc 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.
    • artifact

      public Artifact<String,String> artifact()
      Returns the value of the artifact record component.
      Returns:
      the value of the artifact record component
    • info

      public LocalConfig.LocalInfo info()
      Returns the value of the info record component.
      Returns:
      the value of the info record component