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

com.jd.blockchain.transaction.ContractCodeDeployOperationBuilderImpl 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.BlockchainIdentity;
import com.jd.blockchain.ledger.ContractCodeDeployOperation;
import com.jd.blockchain.ledger.ContractLang;

public class ContractCodeDeployOperationBuilderImpl implements ContractCodeDeployOperationBuilder {

    @Override
    public ContractCodeDeployOperation deploy(BlockchainIdentity id, byte[] chainCode) {
        ContractCodeDeployOpTemplate op = new ContractCodeDeployOpTemplate(id, chainCode);
        return op;
    }

    @Override
    public ContractCodeDeployOperation deploy(BlockchainIdentity id, byte[] chainCode, ContractLang lang) {
        ContractCodeDeployOpTemplate op = new ContractCodeDeployOpTemplate(id, chainCode, lang);
        return op;
    }

    @Override
    public ContractCodeDeployOperation deploy(BlockchainIdentity id, byte[] chainCode, long version) {
        ContractCodeDeployOpTemplate op = new ContractCodeDeployOpTemplate(id, chainCode, version);
        return op;
    }

    @Override
    public ContractCodeDeployOperation deploy(BlockchainIdentity id, byte[] chainCode, long version, ContractLang lang) {
        ContractCodeDeployOpTemplate op = new ContractCodeDeployOpTemplate(id, chainCode, version, lang);
        return op;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy