Casper.Network.SDK
Show / Hide Table of Contents

Class Package

Entity definition, metadata, and security container.

Inheritance
object
Package
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class Package

Properties

| Edit this page View Source

DisabledVersions

Collection of disabled entity versions. The runtime will not permit disabled entity versions to be executed.

Declaration
[JsonPropertyName("disabled_versions")]
public List<EntityVersion> DisabledVersions { get; init; }
Property Value
Type Description
List<EntityVersion>
| Edit this page View Source

Groups

Mapping maintaining the set of URefs associated with each "user group". This can be used to control access to methods in a particular version of the entity. A method is callable by any context which "knows" any of the URefs associated with the method's user group.

Declaration
[JsonPropertyName("groups")]
public List<NamedUserGroup> Groups { get; init; }
Property Value
Type Description
List<NamedUserGroup>
| Edit this page View Source

LockStatus

The current state of the contract package.

Declaration
[JsonPropertyName("lock_status")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public LockStatus LockStatus { get; init; }
Property Value
Type Description
LockStatus
| Edit this page View Source

Versions

All versions (enabled and disabled).

Declaration
[JsonPropertyName("versions")]
public List<EntityVersionAndHash> Versions { get; init; }
Property Value
Type Description
List<EntityVersionAndHash>

Methods

| Edit this page View Source

FromContractPackage(ContractPackage)

Declaration
public static Package FromContractPackage(ContractPackage contractPackage)
Parameters
Type Name Description
ContractPackage contractPackage
Returns
Type Description
Package
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC