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

s.fisco-bcos-tars-sdk.3.5.0.source-code.TransactionReceipt 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 TransactionReceipt {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

  protected TransactionReceipt(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

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

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwn = own;
  }

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

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        bcosJNI.delete_TransactionReceipt(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void decode(SWIGTYPE_p_bytesConstRef _receiptData) {
    bcosJNI.TransactionReceipt_decode(swigCPtr, this, SWIGTYPE_p_bytesConstRef.getCPtr(_receiptData));
  }

  public void encode(SWIGTYPE_p_bytes _encodedData) {
    bcosJNI.TransactionReceipt_encode(swigCPtr, this, SWIGTYPE_p_bytes.getCPtr(_encodedData));
  }

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

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

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

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

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

  public SWIGTYPE_p_bcos__bytesConstRef output() {
    return new SWIGTYPE_p_bcos__bytesConstRef(bcosJNI.TransactionReceipt_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.TransactionReceipt_logEntries(swigCPtr, this), true);
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy