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
 ServiceConfiguration
 
parameters should provide default values in the following way
 @Builder.Default
 [type] paramName = "value";
 
examples see KeystoreServiceConfiguration
  • 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

      protected Network network
    • targetVM

      @Nonnull protected VirtualMachine targetVM
    • vertx

      protected io.vertx.core.Vertx vertx
      the vertx instance
  • Constructor Details

    • ServiceConfiguration

      public ServiceConfiguration()
  • Method Details

    • getKeyPair

      public KeyPair getKeyPair()
    • getApiClient

      public ApiClient getApiClient()
      Returns:
      apiClient initialized with default or given values of vertx and baseURL
    • getDebugApiClient

      public ApiClient getDebugApiClient()
    • getCompilerApiClient

      public ApiClient getCompilerApiClient()
    • getMdwApiClient

      public ApiClient getMdwApiClient()