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

com.jd.blockchain.ledger.ContractEventSendOperation Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

import com.jd.binaryproto.DataContract;
import com.jd.binaryproto.DataField;
import com.jd.binaryproto.PrimitiveType;
import com.jd.blockchain.consts.DataCodes;

import utils.Bytes;

/**
 * 发送合约事件的操作;
 * 
 * @author huanghaiquan
 *
 */
@DataContract(code = DataCodes.TX_OP_CONTRACT_EVENT_SEND)
public interface ContractEventSendOperation extends Operation {

	/**
	 * 响应事件的合约地址;
	 * 
	 * @return
	 */
	@DataField(order = 2, primitiveType = PrimitiveType.BYTES)
	Bytes getContractAddress();

	/**
	 * 事件名;
	 * 
	 * @return
	 */
	@DataField(order = 3, primitiveType = PrimitiveType.TEXT)
	String getEvent();

	/**
	 * 事件参数;
	 * 
	 * @return
	 */
	@DataField(order = 4, refContract = true)
	BytesValueList getArgs();

	/**
	 * contract's version;
	 *
	 * @return
	 */
	@DataField(order = 5, primitiveType = PrimitiveType.INT64)
	long getVersion();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy