Class ContractApiImpl

java.lang.Object
com.kryptokrauts.aeternity.generated.api.ContractApiImpl
All Implemented Interfaces:
ContractApi

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

    Constructors
    Constructor Description
    ContractApiImpl()  
    ContractApiImpl​(ApiClient apiClient)  
  • Method Summary

    Modifier and Type Method Description
    ApiClient getApiClient()  
    void getContract​(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<ContractObject>> resultHandler)
    Get a contract by pubkey
    void getContractCode​(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<ByteCode>> resultHandler)
    Get contract code by pubkey
    void getContractPoI​(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<PoI>> resultHandler)
    Get a proof of inclusion for a contract
    void postContractCall​(ContractCallTx contractCallTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
    Get a contract_call transaction object
    void postContractCreate​(ContractCreateTx contractCreateTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<CreateContractUnsignedTx>> resultHandler)
    Get a contract_create transaction object
    void setApiClient​(ApiClient apiClient)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContractApiImpl

      public ContractApiImpl()
    • ContractApiImpl

      public ContractApiImpl​(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
    • getContract

      public void getContract​(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<ContractObject>> resultHandler)
      Get a contract by pubkey
      Specified by:
      getContract in interface ContractApi
      Parameters:
      pubkey - Contract pubkey to get proof for (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getContractCode

      public void getContractCode​(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<ByteCode>> resultHandler)
      Get contract code by pubkey
      Specified by:
      getContractCode in interface ContractApi
      Parameters:
      pubkey - Contract pubkey to get proof for (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • getContractPoI

      public void getContractPoI​(java.lang.String pubkey, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<PoI>> resultHandler)
      Get a proof of inclusion for a contract
      Specified by:
      getContractPoI in interface ContractApi
      Parameters:
      pubkey - Contract pubkey to get proof for (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • postContractCall

      public void postContractCall​(ContractCallTx contractCallTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<UnsignedTx>> resultHandler)
      Get a contract_call transaction object
      Specified by:
      postContractCall in interface ContractApi
      Parameters:
      contractCallTx - (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler
    • postContractCreate

      public void postContractCreate​(ContractCreateTx contractCreateTx, java.lang.Boolean intAsString, io.vertx.core.Handler<io.vertx.core.AsyncResult<CreateContractUnsignedTx>> resultHandler)
      Get a contract_create transaction object
      Specified by:
      postContractCreate in interface ContractApi
      Parameters:
      contractCreateTx - (required)
      intAsString - If this flag is set to true, the response will have all integers set as strings (optional, default to false)
      resultHandler - Asynchronous result handler