Class DefaultApiImpl

java.lang.Object
com.kryptokrauts.sophia.compiler.generated.api.DefaultApiImpl
All Implemented Interfaces:
DefaultApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
           date="2022-01-10T23:40:13.294772960Z[Etc/UTC]")
public class DefaultApiImpl
extends java.lang.Object
implements DefaultApi
  • Constructor Details

    • DefaultApiImpl

      public DefaultApiImpl()
    • DefaultApiImpl

      public DefaultApiImpl​(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
    • aPIVersion

      public void aPIVersion​(io.vertx.core.Handler<io.vertx.core.AsyncResult<APIVersion>> resultHandler)
      Get the version of the API
      Specified by:
      aPIVersion in interface DefaultApi
      Parameters:
      resultHandler - Asynchronous result handler
    • api

      public void api​(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Get the Api description
      Specified by:
      api in interface DefaultApi
      Parameters:
      resultHandler - Asynchronous result handler
    • compileContract

      public void compileContract​(Contract body, io.vertx.core.Handler<io.vertx.core.AsyncResult<ByteCode>> resultHandler)
      Compile a sophia contract from source and return byte code
      Specified by:
      compileContract in interface DefaultApi
      Parameters:
      body - contract code (required)
      resultHandler - Asynchronous result handler
    • decodeCallResult

      public void decodeCallResult​(SophiaCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
      Decode the result of contract call
      Specified by:
      decodeCallResult in interface DefaultApi
      Parameters:
      body - Binary data in Sophia ABI format (required)
      resultHandler - Asynchronous result handler
    • decodeCallResultBytecode

      public void decodeCallResultBytecode​(BytecodeCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCallresult>> resultHandler)
      Decode the result of contract call from Bytecode
      Specified by:
      decodeCallResultBytecode in interface DefaultApi
      Parameters:
      body - Call result + compiled contract (required)
      resultHandler - Asynchronous result handler
    • decodeCalldataBytecode

      public void decodeCalldataBytecode​(DecodeCalldataBytecode body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCalldata>> resultHandler)
      Identify function name and arguments in Calldata for a compiled contract
      Specified by:
      decodeCalldataBytecode in interface DefaultApi
      Parameters:
      body - Calldata + compiled contract (required)
      resultHandler - Asynchronous result handler
    • decodeCalldataSource

      public void decodeCalldataSource​(DecodeCalldataSource body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCalldata>> resultHandler)
      Identify function name and arguments in Calldata for a (partial) contract
      Specified by:
      decodeCalldataSource in interface DefaultApi
      Parameters:
      body - Calldata + contract (stub) code (required)
      resultHandler - Asynchronous result handler
    • decodeData

      public void decodeData​(SophiaBinaryData body, io.vertx.core.Handler<io.vertx.core.AsyncResult<SophiaJsonData>> resultHandler)
      Decode data as retuned by a contract call. - Legacy decoding
      Specified by:
      decodeData in interface DefaultApi
      Parameters:
      body - Binary data in Sophia ABI format (required)
      resultHandler - Asynchronous result handler
    • encodeCalldata

      public void encodeCalldata​(FunctionCallInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Calldata>> resultHandler)
      Encode Sophia function call according to sophia ABI.
      Specified by:
      encodeCalldata in interface DefaultApi
      Parameters:
      body - Sophia function call - contract code + function name + arguments (required)
      resultHandler - Asynchronous result handler
    • generateACI

      public void generateACI​(Contract body, io.vertx.core.Handler<io.vertx.core.AsyncResult<ACI>> resultHandler)
      Generate an Aeternity Contract Interface (ACI) for contract
      Specified by:
      generateACI in interface DefaultApi
      Parameters:
      body - contract code (required)
      resultHandler - Asynchronous result handler
    • getCompilerVersion

      public void getCompilerVersion​(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)
      Extract compiler version from bytecode
      Specified by:
      getCompilerVersion in interface DefaultApi
      Parameters:
      body - contract byte array (required)
      resultHandler - Asynchronous result handler
    • getFateAssemblerCode

      public void getFateAssemblerCode​(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<FateAssembler>> resultHandler)
      Get FATE assembler code from bytecode
      Specified by:
      getFateAssemblerCode in interface DefaultApi
      Parameters:
      body - contract byte array (required)
      resultHandler - Asynchronous result handler
    • validateByteCode

      public void validateByteCode​(ValidateByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)
      Verify that an encoded byte array is the result of compiling a given contract
      Specified by:
      validateByteCode in interface DefaultApi
      Parameters:
      body - contract byte array and source code (required)
      resultHandler - Asynchronous result handler
    • version

      public void version​(io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)
      Get the version of the underlying Sophia compiler version
      Specified by:
      version in interface DefaultApi
      Parameters:
      resultHandler - Asynchronous result handler