Class DefaultApi
java.lang.Object
com.kryptokrauts.sophia.compiler.generated.api.rxjava.DefaultApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-01-10T23:40:13.294772960Z[Etc/UTC]")
public class DefaultApi
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description DefaultApi(DefaultApi delegate)
-
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 contractvoid
getCompilerVersion(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)
Extract compiler version from bytecodeDefaultApi
getDelegate()
void
getFateAssemblerCode(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<FateAssembler>> resultHandler)
Get FATE assembler code from bytecodestatic DefaultApi
newInstance(DefaultApi arg)
io.reactivex.Single<java.lang.Object>
rxApi()
Get the Api descriptionio.reactivex.Single<APIVersion>
rxAPIVersion()
Get the version of the APIio.reactivex.Single<ByteCode>
rxCompileContract(Contract body)
Compile a sophia contract from source and return byte codeio.reactivex.Single<DecodedCalldata>
rxDecodeCalldataBytecode(DecodeCalldataBytecode body)
Identify function name and arguments in Calldata for a compiled contractio.reactivex.Single<DecodedCalldata>
rxDecodeCalldataSource(DecodeCalldataSource body)
Identify function name and arguments in Calldata for a (partial) contractio.reactivex.Single<java.lang.Object>
rxDecodeCallResult(SophiaCallResultInput body)
Decode the result of contract callio.reactivex.Single<DecodedCallresult>
rxDecodeCallResultBytecode(BytecodeCallResultInput body)
Decode the result of contract call from Bytecodeio.reactivex.Single<SophiaJsonData>
rxDecodeData(SophiaBinaryData body)
Decode data as retuned by a contract call.io.reactivex.Single<Calldata>
rxEncodeCalldata(FunctionCallInput body)
Encode Sophia function call according to sophia ABI.io.reactivex.Single<ACI>
rxGenerateACI(Contract body)
Generate an Aeternity Contract Interface (ACI) for contractio.reactivex.Single<CompilerVersion>
rxGetCompilerVersion(ByteCodeInput body)
Extract compiler version from bytecodeio.reactivex.Single<FateAssembler>
rxGetFateAssemblerCode(ByteCodeInput body)
Get FATE assembler code from bytecodeio.reactivex.Single<java.lang.Void>
rxValidateByteCode(ValidateByteCodeInput body)
Verify that an encoded byte array is the result of compiling a given contractio.reactivex.Single<CompilerVersion>
rxVersion()
Get the version of the underlying Sophia compiler versionvoid
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
-
DefaultApi
-
-
Method Details
-
getDelegate
-
aPIVersion
Get the version of the API- Parameters:
resultHandler
- Asynchronous result handler
-
rxAPIVersion
Get the version of the API- Returns:
- Asynchronous result handler (RxJava Single)
-
api
public void api(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Get the Api description- Parameters:
resultHandler
- Asynchronous result handler
-
rxApi
public io.reactivex.Single<java.lang.Object> rxApi()Get the Api description- Returns:
- Asynchronous result handler (RxJava Single)
-
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- Parameters:
body
- contract code (required)resultHandler
- Asynchronous result handler
-
rxCompileContract
Compile a sophia contract from source and return byte code- Parameters:
body
- contract code (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
decodeCallResult
public void decodeCallResult(SophiaCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler)Decode the result of contract call- Parameters:
body
- Binary data in Sophia ABI format (required)resultHandler
- Asynchronous result handler
-
rxDecodeCallResult
Decode the result of contract call- Parameters:
body
- Binary data in Sophia ABI format (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
decodeCallResultBytecode
public void decodeCallResultBytecode(BytecodeCallResultInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<DecodedCallresult>> resultHandler)Decode the result of contract call from Bytecode- Parameters:
body
- Call result + compiled contract (required)resultHandler
- Asynchronous result handler
-
rxDecodeCallResultBytecode
public io.reactivex.Single<DecodedCallresult> rxDecodeCallResultBytecode(BytecodeCallResultInput body)Decode the result of contract call from Bytecode- Parameters:
body
- Call result + compiled contract (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
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- Parameters:
body
- Calldata + compiled contract (required)resultHandler
- Asynchronous result handler
-
rxDecodeCalldataBytecode
Identify function name and arguments in Calldata for a compiled contract- Parameters:
body
- Calldata + compiled contract (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
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- Parameters:
body
- Calldata + contract (stub) code (required)resultHandler
- Asynchronous result handler
-
rxDecodeCalldataSource
Identify function name and arguments in Calldata for a (partial) contract- Parameters:
body
- Calldata + contract (stub) code (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
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- Parameters:
body
- Binary data in Sophia ABI format (required)resultHandler
- Asynchronous result handler
-
rxDecodeData
Decode data as retuned by a contract call. - Legacy decoding- Parameters:
body
- Binary data in Sophia ABI format (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
encodeCalldata
public void encodeCalldata(FunctionCallInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Calldata>> resultHandler)Encode Sophia function call according to sophia ABI.- Parameters:
body
- Sophia function call - contract code + function name + arguments (required)resultHandler
- Asynchronous result handler
-
rxEncodeCalldata
Encode Sophia function call according to sophia ABI.- Parameters:
body
- Sophia function call - contract code + function name + arguments (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
generateACI
public void generateACI(Contract body, io.vertx.core.Handler<io.vertx.core.AsyncResult<ACI>> resultHandler)Generate an Aeternity Contract Interface (ACI) for contract- Parameters:
body
- contract code (required)resultHandler
- Asynchronous result handler
-
rxGenerateACI
Generate an Aeternity Contract Interface (ACI) for contract- Parameters:
body
- contract code (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
getCompilerVersion
public void getCompilerVersion(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)Extract compiler version from bytecode- Parameters:
body
- contract byte array (required)resultHandler
- Asynchronous result handler
-
rxGetCompilerVersion
Extract compiler version from bytecode- Parameters:
body
- contract byte array (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
getFateAssemblerCode
public void getFateAssemblerCode(ByteCodeInput body, io.vertx.core.Handler<io.vertx.core.AsyncResult<FateAssembler>> resultHandler)Get FATE assembler code from bytecode- Parameters:
body
- contract byte array (required)resultHandler
- Asynchronous result handler
-
rxGetFateAssemblerCode
Get FATE assembler code from bytecode- Parameters:
body
- contract byte array (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
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- Parameters:
body
- contract byte array and source code (required)resultHandler
- Asynchronous result handler
-
rxValidateByteCode
Verify that an encoded byte array is the result of compiling a given contract- Parameters:
body
- contract byte array and source code (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
version
public void version(io.vertx.core.Handler<io.vertx.core.AsyncResult<CompilerVersion>> resultHandler)Get the version of the underlying Sophia compiler version- Parameters:
resultHandler
- Asynchronous result handler
-
rxVersion
Get the version of the underlying Sophia compiler version- Returns:
- Asynchronous result handler (RxJava Single)
-
newInstance
-