All Downloads are FREE. Search and download functionalities are using the official Maven repository.

s.fisco-bcos-tars-sdk.3.5.0.source-code.TransactionReceiptImpl Maven / Gradle / Ivy

The newest version!
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.1.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.fisco.bcos.sdk.tars;

public class TransactionReceiptImpl extends TransactionReceipt {
  private transient long swigCPtr;
  private transient boolean swigCMemOwnDerived;

  protected TransactionReceiptImpl(long cPtr, boolean cMemoryOwn) {
    super(bcosJNI.TransactionReceiptImpl_SWIGSmartPtrUpcast(cPtr), true);
    swigCMemOwnDerived = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(TransactionReceiptImpl obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwnDerived = own;
    super.swigSetCMemOwn(own);
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwnDerived) {
        swigCMemOwnDerived = false;
        bcosJNI.delete_TransactionReceiptImpl(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void decode(SWIGTYPE_p_bcos__bytesConstRef _receiptData) {
    bcosJNI.TransactionReceiptImpl_decode(swigCPtr, this, SWIGTYPE_p_bcos__bytesConstRef.getCPtr(_receiptData));
  }

  public void encode(SWIGTYPE_p_std__vectorT_unsigned_char_t _encodedData) {
    bcosJNI.TransactionReceiptImpl_encode(swigCPtr, this, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(_encodedData));
  }

  public SWIGTYPE_p_bcos__h256 hash() {
    return new SWIGTYPE_p_bcos__h256(bcosJNI.TransactionReceiptImpl_hash(swigCPtr, this), true);
  }

  public int version() {
    return bcosJNI.TransactionReceiptImpl_version(swigCPtr, this);
  }

  public SWIGTYPE_p_bcos__u256 gasUsed() {
    return new SWIGTYPE_p_bcos__u256(bcosJNI.TransactionReceiptImpl_gasUsed(swigCPtr, this), true);
  }

  public SWIGTYPE_p_std__string_view contractAddress() {
    return new SWIGTYPE_p_std__string_view(bcosJNI.TransactionReceiptImpl_contractAddress(swigCPtr, this), true);
  }

  public int status() {
    return bcosJNI.TransactionReceiptImpl_status(swigCPtr, this);
  }

  public SWIGTYPE_p_bcos__bytesConstRef output() {
    return new SWIGTYPE_p_bcos__bytesConstRef(bcosJNI.TransactionReceiptImpl_output(swigCPtr, this), true);
  }

  public SWIGTYPE_p_gsl__spanT_bcos__protocol__LogEntry_const_t logEntries() {
    return new SWIGTYPE_p_gsl__spanT_bcos__protocol__LogEntry_const_t(bcosJNI.TransactionReceiptImpl_logEntries(swigCPtr, this), true);
  }

  public int blockNumber() {
    return bcosJNI.TransactionReceiptImpl_blockNumber(swigCPtr, this);
  }

  public SWIGTYPE_p_bcostars__TransactionReceipt inner() {
    return new SWIGTYPE_p_bcostars__TransactionReceipt(bcosJNI.TransactionReceiptImpl_inner(swigCPtr, this), false);
  }

  public SWIGTYPE_p_bcostars__TransactionReceipt mutableInner() {
    return new SWIGTYPE_p_bcostars__TransactionReceipt(bcosJNI.TransactionReceiptImpl_mutableInner(swigCPtr, this), false);
  }

  public void setInner(SWIGTYPE_p_bcostars__TransactionReceipt inner) {
    bcosJNI.TransactionReceiptImpl_setInner__SWIG_0(swigCPtr, this, SWIGTYPE_p_bcostars__TransactionReceipt.getCPtr(inner));
  }

  public SWIGTYPE_p_std__functionT_bcostars__TransactionReceipt_pfF_t innerGetter() {
    return new SWIGTYPE_p_std__functionT_bcostars__TransactionReceipt_pfF_t(bcosJNI.TransactionReceiptImpl_innerGetter(swigCPtr, this), false);
  }

  public void setLogEntries(LogEntryVector _logEntries) {
    bcosJNI.TransactionReceiptImpl_setLogEntries(swigCPtr, this, LogEntryVector.getCPtr(_logEntries), _logEntries);
  }

  public String message() {
    return bcosJNI.TransactionReceiptImpl_message(swigCPtr, this);
  }

  public void setMessage(String message) {
    bcosJNI.TransactionReceiptImpl_setMessage(swigCPtr, this, message);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy