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

com.casper.sdk.model.deploy.executabledeploy.StoredVersionedContractByName Maven / Gradle / Ivy

Go to download

SDK to streamline the 3rd party Java client integration processes. Such 3rd parties include exchanges & app developers.

The newest version!
package com.casper.sdk.model.deploy.executabledeploy;

import com.casper.sdk.model.deploy.NamedArg;
import com.fasterxml.jackson.annotation.JsonTypeName;
import dev.oak3.sbs4j.SerializerBuffer;
import lombok.*;

import java.util.List;

/**
 *  Executable Deploy Item containing the StoredVersionedContractByName.
 *
 * @author Alexandre Carvalho
 * @author Andre Bertolace
 * @see ExecutableDeployItem
 * @since 0.0.1
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@JsonTypeName("StoredVersionedContractByName")
public class StoredVersionedContractByName extends AbstractStoredVersionedContract {

    /** Contract Name */
    private String name;

    @Builder
    public StoredVersionedContractByName(final String name, final Long version, final String entryPoint, final List> args) {
        super(version, entryPoint, args);
        this.name = name;
    }

    /** {@link ExecutableDeployItem} order 4 */
    @Override
    public byte getOrder() {
        return 0x4;
    }

    @Override
    protected void serializeCustom(final SerializerBuffer ser) {
        ser.writeString(getName());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy