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

io.nuls.v2.model.dto.ContractResultDto Maven / Gradle / Ivy

/**
 * MIT License
 * 

* Copyright (c) 2017-2019 nuls.io *

* Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: *

* The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. *

* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package io.nuls.v2.model.dto; import io.nuls.core.rpc.model.ApiModel; import io.nuls.core.rpc.model.ApiModelProperty; import io.nuls.core.rpc.model.TypeDescriptor; import java.util.List; /** * @author: PierreLuo */ @ApiModel public class ContractResultDto { @ApiModelProperty(description = "合约执行是否成功") private boolean success; @ApiModelProperty(description = "执行失败信息") private String errorMessage; @ApiModelProperty(description = "合约地址") private String contractAddress; @ApiModelProperty(description = "合约执行结果") private String result; @ApiModelProperty(description = "GAS限制") private long gasLimit; @ApiModelProperty(description = "已使用GAS") private long gasUsed; @ApiModelProperty(description = "GAS单价") private long price; @ApiModelProperty(description = "交易总手续费") private String totalFee; @ApiModelProperty(description = "交易大小手续费") private String txSizeFee; @ApiModelProperty(description = "实际执行合约手续费") private String actualContractFee; @ApiModelProperty(description = "合约返回的手续费") private String refundFee; @ApiModelProperty(description = "调用者向合约地址转入的主网资产金额,没有此业务时则为0") private String value; @ApiModelProperty(description = "异常堆栈踪迹") private String stackTrace; @ApiModelProperty(description = "合约转账列表(从合约转出)", type = @TypeDescriptor(value = List.class, collectionElement = ContractMergedTransferDto.class)) private List transfers; @ApiModelProperty(description = "合约事件列表", type = @TypeDescriptor(value = List.class, collectionElement = String.class)) private List events; @ApiModelProperty(description = "合约token转账列表", type = @TypeDescriptor(value = List.class, collectionElement = ContractTokenTransferDto.class)) private List tokenTransfers; @ApiModelProperty(description = "合约调用外部命令的调用记录列表", type = @TypeDescriptor(value = List.class, collectionElement = ContractInvokeRegisterCmdDto.class)) private List invokeRegisterCmds; @ApiModelProperty(description = "合约生成交易的序列化字符串列表", type = @TypeDescriptor(value = List.class, collectionElement = String.class)) private List contractTxList; @ApiModelProperty(description = "备注") private String remark; public boolean isSuccess() { return success; } public void setSuccess(boolean success) { this.success = success; } public String getErrorMessage() { return errorMessage; } public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public String getContractAddress() { return contractAddress; } public void setContractAddress(String contractAddress) { this.contractAddress = contractAddress; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } public long getGasLimit() { return gasLimit; } public void setGasLimit(long gasLimit) { this.gasLimit = gasLimit; } public long getGasUsed() { return gasUsed; } public void setGasUsed(long gasUsed) { this.gasUsed = gasUsed; } public long getPrice() { return price; } public void setPrice(long price) { this.price = price; } public String getTotalFee() { return totalFee; } public void setTotalFee(String totalFee) { this.totalFee = totalFee; } public String getTxSizeFee() { return txSizeFee; } public void setTxSizeFee(String txSizeFee) { this.txSizeFee = txSizeFee; } public String getActualContractFee() { return actualContractFee; } public void setActualContractFee(String actualContractFee) { this.actualContractFee = actualContractFee; } public String getRefundFee() { return refundFee; } public void setRefundFee(String refundFee) { this.refundFee = refundFee; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getStackTrace() { return stackTrace; } public void setStackTrace(String stackTrace) { this.stackTrace = stackTrace; } public List getTransfers() { return transfers; } public void setTransfers(List transfers) { this.transfers = transfers; } public List getEvents() { return events; } public void setEvents(List events) { this.events = events; } public List getTokenTransfers() { return tokenTransfers; } public void setTokenTransfers(List tokenTransfers) { this.tokenTransfers = tokenTransfers; } public List getInvokeRegisterCmds() { return invokeRegisterCmds; } public void setInvokeRegisterCmds(List invokeRegisterCmds) { this.invokeRegisterCmds = invokeRegisterCmds; } public List getContractTxList() { return contractTxList; } public void setContractTxList(List contractTxList) { this.contractTxList = contractTxList; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy