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 void
api(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
Get the Api descriptionvoid
aPIVersion(io.vertx.core.Handler<io.vertx.core.AsyncResult<APIVersion>> resultHandler)
Get the version of the APIvoid
compileContract(Contract body, io.vertx.core.Handler<io.vertx.core.AsyncResult<ByteCode>> resultHandler)
Compile a sophia contract from source and return byte codevoid
decodeCalldataBytecode(DecodeCalldataBytecode body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCalldata>> resultHandler)
Identify function name and arguments in Calldata for a compiled contractvoid
decodeCalldataSource(DecodeCalldataSource body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCalldata>> resultHandler)
Identify function name and arguments in Calldata for a (partial) contractvoid
decodeCallResult(SophiaCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)
Decode the result of contract callvoid
decodeCallResultBytecode(BytecodeCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCallresult>> resultHandler)
Decode the result of contract call from Bytecodevoid
decodeData(SophiaBinaryData body, io.vertx.core.Handler<io.vertx.core.AsyncResult<SophiaJsonData>> resultHandler)
Decode data as retuned by a contract call.void
encodeCalldata(FunctionCallInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Calldata>> resultHandler)
Encode Sophia function call according to sophia ABI.void
generateACI(Contract body, io.vertx.core.Handler<io.vertx.core.AsyncResult<ACI>> resultHandler)
Generate an Aeternity Contract Interface (ACI) for contractApiClient
getApiClient()
void
getCompilerVersion(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)
Extract compiler version from bytecodevoid
getFateAssemblerCode(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<FateAssembler>> resultHandler)
Get FATE assembler code from bytecodevoid
setApiClient(ApiClient apiClient)
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 contractvoid
version(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:
aPIVersion
in 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:
api
in 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:
compileContract
in 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:
decodeCallResult
in 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:
decodeCallResultBytecode
in 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:
decodeCalldataBytecode
in 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:
decodeCalldataSource
in 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:
decodeData
in 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:
encodeCalldata
in 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:
generateACI
in 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:
getCompilerVersion
in 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:
getFateAssemblerCode
in 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:
validateByteCode
in 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:
version
in interfaceDefaultApi
- Parameters:
resultHandler
- Asynchronous result handler
-