Class ServiceConfiguration
java.lang.Object
com.kryptokrauts.aeternity.sdk.service.ServiceConfiguration
- Direct Known Subclasses:
AeternityServiceConfiguration
,KeyPairServiceConfiguration
,KeystoreServiceConfiguration
public class ServiceConfiguration
extends java.lang.Object
The SDKs basic configuration class.
Other configuration classes with service parameters should extend this configuration class like
@Getter @Builder( builderMethodName = "configure", buildMethodName = "compile" ) public class [Servicename]ServiceConfiguration implements ServiceConfigurationparameters should provide default values in the following way
@Builder.Default [type] paramName = "value";examples see
KeystoreServiceConfiguration
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
baseUrl
protected java.lang.String
compilerBaseUrl
protected java.lang.String
debugBaseUrl
protected java.lang.String
mdwBaseUrl
protected Network
network
protected VirtualMachine
targetVM
protected io.vertx.core.Vertx
vertx
the vertx instance -
Constructor Summary
Constructors Constructor Description ServiceConfiguration()
-
Method Summary
Modifier and Type Method Description ApiClient
getApiClient()
ApiClient
getCompilerApiClient()
ApiClient
getDebugApiClient()
KeyPair
getKeyPair()
ApiClient
getMdwApiClient()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
baseUrl
@Nonnull protected java.lang.String baseUrl -
debugBaseUrl
@Nonnull protected java.lang.String debugBaseUrl -
compilerBaseUrl
@Nonnull protected java.lang.String compilerBaseUrl -
mdwBaseUrl
@Nonnull protected java.lang.String mdwBaseUrl -
network
-
targetVM
-
vertx
protected io.vertx.core.Vertx vertxthe vertx instance
-
-
Constructor Details
-
ServiceConfiguration
public ServiceConfiguration()
-
-
Method Details
-
getKeyPair
-
getApiClient
- Returns:
- apiClient initialized with default or given values of vertx and baseURL
-
getDebugApiClient
-
getCompilerApiClient
-
getMdwApiClient
-