com.casper.sdk.model.entity.SmartContract Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of casper-java-sdk Show documentation
Show all versions of casper-java-sdk Show documentation
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;
}