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

com.jd.blockchain.transaction.ContractOperator Maven / Gradle / Ivy

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

import com.jd.blockchain.ledger.BytesValueList;
import utils.Bytes;

public interface ContractOperator {

    /**
     * 部署合约;
     *
     * @return
     */
    ContractCodeDeployOperationBuilder contracts();

    /**
     * 创建调用合约的代理实例;
     *
     * @param address
     * @param contractIntf
     * @return
     */
     T contract(String address, Class contractIntf);

    /**
     * 创建调用合约的代理实例;
     *
     * @param address
     * @param contractIntf
     * @return
     */
     T contract(Bytes address, Class contractIntf);

    /**
     * 合约权限修改,状态修改等更新操作
     *
     * @return
     */
    ContractOperationBuilder contract(Bytes address);

    /**
     * 合约权限修改,状态修改等更新操作
     *
     * @return
     */
    ContractOperationBuilder contract(String address);

    /**
     * 合约权限修改,状态修改等更新操作
     * 废弃此方法,替代方法为 {@link #contract(String address)};
     * 保留此方法仅为兼容1.6.0之前版本,此方法调用配合
     * {@link ContractEventSendOperationBuilder#send(String address, String event, BytesValueList args)}
     * {@link ContractEventSendOperationBuilder#send(Bytes address, String event, BytesValueList args)}
     *
     * @return
     */
    @Deprecated
    ContractOperationBuilder contract();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy