java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Sdk
public record Sdk(tech.deplant.java4ever.binding.EverSdkContext context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, OnchainConfig onchainConfig, LocalConfig localConfig)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSdk(tech.deplant.java4ever.binding.EverSdkContext context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, OnchainConfig onchainConfig, LocalConfig localConfig) Creates an instance of aSdkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sdk.Builderbuilder()tech.deplant.java4ever.binding.Client.ClientConfigReturns the value of theclientConfigrecord component.tech.deplant.java4ever.binding.EverSdkContextcontext()Returns the value of thecontextrecord component.<T> TconvertMap(Map<String, Object> inputMap, com.fasterxml.jackson.core.type.TypeReference<T> outputType) <T> TconvertMap(Map<String, Object> inputMap, Class<T> outputClass) longReturns the value of thedebugTreeTimeoutrecord component.static SdkDEFAULT()static Sdk<T> Tdeserialize(String inputString, Class<T> outputClass) String[]final booleanIndicates whether some other object is "equal to" this one.tech.deplant.java4ever.binding.Tvm.ExecutionOptionsfinal inthashCode()Returns a hash code value for this object.Returns the value of thelocalConfigrecord component.com.fasterxml.jackson.databind.ObjectMappermapper()Returns the value of theonchainConfigrecord component.com.fasterxml.jackson.databind.JsonNodeparseStruct(Object struct) voidsaveContract(String name, AbstractContract contract) voidsaveKeys(String name, Credentials keys) final StringtoString()Returns a string representation of this record class.version()
-
Constructor Details
-
Sdk
public Sdk(tech.deplant.java4ever.binding.EverSdkContext context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, OnchainConfig onchainConfig, LocalConfig localConfig) Creates an instance of aSdkrecord class.- Parameters:
context- the value for thecontextrecord componentdebugTreeTimeout- the value for thedebugTreeTimeoutrecord componentclientConfig- the value for theclientConfigrecord componentonchainConfig- the value for theonchainConfigrecord componentlocalConfig- the value for thelocalConfigrecord component
-
-
Method Details
-
DEFAULT
- Throws:
IOException
-
DEFAULT
- Throws:
IOException
-
builder
-
endpoints
-
version
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
mapper
public com.fasterxml.jackson.databind.ObjectMapper mapper() -
convertMap
-
convertMap
-
parseStruct
public com.fasterxml.jackson.databind.JsonNode parseStruct(Object struct) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deserialize
public <T> T deserialize(String inputString, Class<T> outputClass) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
serialize
public String serialize(Object inputObject) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
saveContract
- Throws:
IOException
-
saveKeys
- Throws:
IOException
-
executionOptions
public tech.deplant.java4ever.binding.Tvm.ExecutionOptions executionOptions() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
context
public tech.deplant.java4ever.binding.EverSdkContext context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
debugTreeTimeout
public long debugTreeTimeout()Returns the value of thedebugTreeTimeoutrecord component.- Returns:
- the value of the
debugTreeTimeoutrecord component
-
clientConfig
public tech.deplant.java4ever.binding.Client.ClientConfig clientConfig()Returns the value of theclientConfigrecord component.- Returns:
- the value of the
clientConfigrecord component
-
onchainConfig
Returns the value of theonchainConfigrecord component.- Returns:
- the value of the
onchainConfigrecord component
-
localConfig
Returns the value of thelocalConfigrecord component.- Returns:
- the value of the
localConfigrecord component
-