com.jd.blockchain.contract.ContractEventContext Maven / Gradle / Ivy
package com.jd.blockchain.contract;
import java.util.Set;
import com.jd.blockchain.crypto.HashDigest;
import com.jd.blockchain.ledger.BlockchainIdentity;
import com.jd.blockchain.ledger.BytesValueList;
import com.jd.blockchain.ledger.TransactionRequest;
/**
* 合约事件上下文;
*
* @author huanghaiquan
*
*/
public interface ContractEventContext {
/**
* 当前账本哈希;
*
* @return
*/
HashDigest getCurrentLedgerHash();
/**
* 执行合约事件的交易请求;
*
* @return
*/
TransactionRequest getTransactionRequest();
/**
* 交易的签署人集合;
*
* @return
*/
Set getTxSigners();
/**
* 事件名称;
*
* @return
*/
String getEvent();
/**
* 参数列表;
*
* @return
*/
BytesValueList getArgs();
/**
* 账本操作上下文;
*
* @return
*/
LedgerContext getLedger();
/**
* 合约的拥有者集合;
*
*
* 合约的拥有者是部署合约时的签名者;
*
* @return
*/
Set getContracOwners();
/**
* get contract's version;
* @return
*/
long getVersion();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy