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 Summary
Constructors Constructor Description DefaultApiImpl()DefaultApiImpl(ApiClient apiClient) -
Method Summary
Modifier and Type Method Description voidapi(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get the Api descriptionvoidaPIVersion(io.vertx.core.Handler<io.vertx.core.AsyncResult<APIVersion>> resultHandler)Get the version of the APIvoidcompileContract(Contract body, io.vertx.core.Handler<io.vertx.core.AsyncResult<ByteCode>> resultHandler)Compile a sophia contract from source and return byte codevoiddecodeCalldataBytecode(DecodeCalldataBytecode body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCalldata>> resultHandler)Identify function name and arguments in Calldata for a compiled contractvoiddecodeCalldataSource(DecodeCalldataSource body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCalldata>> resultHandler)Identify function name and arguments in Calldata for a (partial) contractvoiddecodeCallResult(SophiaCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Decode the result of contract callvoiddecodeCallResultBytecode(BytecodeCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCallresult>> resultHandler)Decode the result of contract call from BytecodevoiddecodeData(SophiaBinaryData body, io.vertx.core.Handler<io.vertx.core.AsyncResult<SophiaJsonData>> resultHandler)Decode data as retuned by a contract call.voidencodeCalldata(FunctionCallInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Calldata>> resultHandler)Encode Sophia function call according to sophia ABI.voidgenerateACI(Contract body, io.vertx.core.Handler<io.vertx.core.AsyncResult<ACI>> resultHandler)Generate an Aeternity Contract Interface (ACI) for contractApiClientgetApiClient()voidgetCompilerVersion(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)Extract compiler version from bytecodevoidgetFateAssemblerCode(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<FateAssembler>> resultHandler)Get FATE assembler code from bytecodevoidsetApiClient(ApiClient apiClient)voidvalidateByteCode(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 contractvoidversion(io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)Get the version of the underlying Sophia compiler versionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DefaultApiImpl
public DefaultApiImpl() -
DefaultApiImpl
-
-
Method Details
-
getApiClient
-
setApiClient
-
aPIVersion
Get the version of the API- Specified by:
aPIVersionin interfaceDefaultApi- 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:
apiin interfaceDefaultApi- 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:
compileContractin interfaceDefaultApi- 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:
decodeCallResultin interfaceDefaultApi- 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:
decodeCallResultBytecodein interfaceDefaultApi- 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:
decodeCalldataBytecodein interfaceDefaultApi- 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:
decodeCalldataSourcein interfaceDefaultApi- 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:
decodeDatain interfaceDefaultApi- 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:
encodeCalldatain interfaceDefaultApi- 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:
generateACIin interfaceDefaultApi- 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:
getCompilerVersionin interfaceDefaultApi- 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:
getFateAssemblerCodein interfaceDefaultApi- 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:
validateByteCodein interfaceDefaultApi- 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:
versionin interfaceDefaultApi- Parameters:
resultHandler- Asynchronous result handler
-