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
-
Constructor Summary
ConstructorDescriptionSdk
(tech.deplant.java4ever.binding.EverSdkContext context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, OnchainConfig onchainConfig, LocalConfig localConfig) Creates an instance of aSdk
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sdk.Builder
builder()
tech.deplant.java4ever.binding.Client.ClientConfig
Returns the value of theclientConfig
record component.tech.deplant.java4ever.binding.EverSdkContext
context()
Returns the value of thecontext
record component.<T> T
convertMap
(Map<String, Object> inputMap, com.fasterxml.jackson.core.type.TypeReference<T> outputType) <T> T
convertMap
(Map<String, Object> inputMap, Class<T> outputClass) long
Returns the value of thedebugTreeTimeout
record component.static Sdk
DEFAULT()
static Sdk
<T> T
deserialize
(String inputString, Class<T> outputClass) String[]
final boolean
Indicates whether some other object is "equal to" this one.tech.deplant.java4ever.binding.Tvm.ExecutionOptions
final int
hashCode()
Returns a hash code value for this object.Returns the value of thelocalConfig
record component.com.fasterxml.jackson.databind.ObjectMapper
mapper()
Returns the value of theonchainConfig
record component.com.fasterxml.jackson.databind.JsonNode
parseStruct
(Object struct) void
saveContract
(String name, AbstractContract contract) void
saveKeys
(String name, Credentials keys) final String
toString()
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 aSdk
record class.- Parameters:
context
- the value for thecontext
record componentdebugTreeTimeout
- the value for thedebugTreeTimeout
record componentclientConfig
- the value for theclientConfig
record componentonchainConfig
- the value for theonchainConfig
record componentlocalConfig
- the value for thelocalConfig
record 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 thecontext
record component.- Returns:
- the value of the
context
record component
-
debugTreeTimeout
public long debugTreeTimeout()Returns the value of thedebugTreeTimeout
record component.- Returns:
- the value of the
debugTreeTimeout
record component
-
clientConfig
public tech.deplant.java4ever.binding.Client.ClientConfig clientConfig()Returns the value of theclientConfig
record component.- Returns:
- the value of the
clientConfig
record component
-
onchainConfig
Returns the value of theonchainConfig
record component.- Returns:
- the value of the
onchainConfig
record component
-
localConfig
Returns the value of thelocalConfig
record component.- Returns:
- the value of the
localConfig
record component
-