Package com.casper.sdk.model.entity
Class Entity
- java.lang.Object
-
- com.casper.sdk.model.entity.Entity
-
public class Entity extends java.lang.ObjectMethods and type signatures supported by a contract.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntity.EntityBuilder
-
Constructor Summary
Constructors Constructor Description Entity()Entity(java.lang.String protocolVersion, EntityAddressKind entityAddressKind, java.lang.String packageHash, java.lang.String byteCodeHash, URef mainPurse, java.util.List<AssociatedKey> associatedKeys, ActionThresholds actionThresholds, java.util.List<MessageTopic> messageTopics)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Entity.EntityBuilderbuilder()ActionThresholdsgetActionThresholds()Thresholds that have to be met when executing an action of a certain type.java.util.List<AssociatedKey>getAssociatedKeys()A collection of weighted public keys (represented as account hashes) associated with an account.java.lang.StringgetByteCodeHash()HashAddr which is the raw bytes of the ByteCodeHashEntityAddressKindgetEntityAddressKind()The type of Package.URefgetMainPurse()Purse addressjava.util.List<MessageTopic>getMessageTopics()Collection of named message topics.java.lang.StringgetPackageHash()A Package in the global state.java.lang.StringgetProtocolVersion()Casper Platform protocol versionvoidsetActionThresholds(ActionThresholds actionThresholds)Thresholds that have to be met when executing an action of a certain type.voidsetAssociatedKeys(java.util.List<AssociatedKey> associatedKeys)A collection of weighted public keys (represented as account hashes) associated with an account.voidsetByteCodeHash(java.lang.String byteCodeHash)HashAddr which is the raw bytes of the ByteCodeHashvoidsetEntityAddressKind(EntityAddressKind entityAddressKind)The type of Package.voidsetMainPurse(URef mainPurse)Purse addressvoidsetMessageTopics(java.util.List<MessageTopic> messageTopics)Collection of named message topics.voidsetPackageHash(java.lang.String packageHash)A Package in the global state.voidsetProtocolVersion(java.lang.String protocolVersion)Casper Platform protocol version
-
-
-
Constructor Detail
-
Entity
public Entity()
-
Entity
public Entity(java.lang.String protocolVersion, EntityAddressKind entityAddressKind, java.lang.String packageHash, java.lang.String byteCodeHash, URef mainPurse, java.util.List<AssociatedKey> associatedKeys, ActionThresholds actionThresholds, java.util.List<MessageTopic> messageTopics)
-
-
Method Detail
-
builder
public static Entity.EntityBuilder builder()
-
getProtocolVersion
public java.lang.String getProtocolVersion()
Casper Platform protocol version
-
getEntityAddressKind
public EntityAddressKind getEntityAddressKind()
The type of Package.
-
getPackageHash
public java.lang.String getPackageHash()
A Package in the global state.
-
getByteCodeHash
public java.lang.String getByteCodeHash()
HashAddr which is the raw bytes of the ByteCodeHash
-
getMainPurse
public URef getMainPurse()
Purse address
-
getAssociatedKeys
public java.util.List<AssociatedKey> getAssociatedKeys()
A collection of weighted public keys (represented as account hashes) associated with an account.
-
getActionThresholds
public ActionThresholds getActionThresholds()
Thresholds that have to be met when executing an action of a certain type.
-
getMessageTopics
public java.util.List<MessageTopic> getMessageTopics()
Collection of named message topics.
-
setProtocolVersion
public void setProtocolVersion(java.lang.String protocolVersion)
Casper Platform protocol version
-
setEntityAddressKind
public void setEntityAddressKind(EntityAddressKind entityAddressKind)
The type of Package.
-
setPackageHash
public void setPackageHash(java.lang.String packageHash)
A Package in the global state.
-
setByteCodeHash
public void setByteCodeHash(java.lang.String byteCodeHash)
HashAddr which is the raw bytes of the ByteCodeHash
-
setMainPurse
public void setMainPurse(URef mainPurse)
Purse address
-
setAssociatedKeys
public void setAssociatedKeys(java.util.List<AssociatedKey> associatedKeys)
A collection of weighted public keys (represented as account hashes) associated with an account.
-
setActionThresholds
public void setActionThresholds(ActionThresholds actionThresholds)
Thresholds that have to be met when executing an action of a certain type.
-
setMessageTopics
public void setMessageTopics(java.util.List<MessageTopic> messageTopics)
Collection of named message topics.
-
-