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

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

package com.jd.blockchain.transaction;

import com.jd.blockchain.binaryproto.DataContractRegistry;
import com.jd.blockchain.ledger.BlockchainIdentity;
import com.jd.blockchain.ledger.ParticipantNodeState;
import com.jd.blockchain.ledger.ParticipantStateUpdateOperation;
import com.jd.blockchain.utils.net.NetworkAddress;

public class ParticipantStateUpdateOpTemplate implements ParticipantStateUpdateOperation {

    static {
        DataContractRegistry.register(ParticipantStateUpdateOperation.class);
    }

    private BlockchainIdentity stateUpdateIdentity;
    private NetworkAddress networkAddress;
    private ParticipantNodeState participantNodeState;

    public ParticipantStateUpdateOpTemplate(BlockchainIdentity stateUpdateIdentity, NetworkAddress networkAddress, ParticipantNodeState participantNodeState) {

        this.stateUpdateIdentity = stateUpdateIdentity;
        this.networkAddress = networkAddress;
        this.participantNodeState = participantNodeState;
    }


    @Override
    public BlockchainIdentity getStateUpdateIdentity() {
        return stateUpdateIdentity;
    }

    @Override
    public NetworkAddress getNetworkAddress() {
        return networkAddress;
    }

    @Override
    public ParticipantNodeState getState() {
        return participantNodeState;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy