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

com.casper.sdk.model.entity.SmartContract 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.entity;

import com.fasterxml.jackson.annotation.*;
import lombok.*;

/**
 * Packages associated with Wasm stored on chain.
 *
 * @author [email protected]
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SmartContract implements EntityAddressKind {

    @JsonCreator
    public static SmartContract create(final TransactionRuntime value) {
        return new SmartContract(value);
    }

    /** The runtime used to execute a Transaction. */
    public enum TransactionRuntime {
        @JsonProperty("VmCasperV1")
        VMCASPERV1,
        @JsonProperty("VmCasperV2")
        VMCASPERV2
    }

    @JsonValue
    private TransactionRuntime smartContract;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy