Casper.Network.SDK
Show / Hide Table of Contents

Class ContractPackage

Contract definition, metadata, and security container.

Inheritance
object
ContractPackage
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 ContractPackage

Properties

| Edit this page View Source

AccessKey

Declaration
[JsonPropertyName("access_key")]
[JsonConverter(typeof(GlobalStateKey.GlobalStateKeyConverter))]
public URef AccessKey { get; init; }
Property Value
Type Description
URef
| Edit this page View Source

DisabledVersions

List of disabled versions of a contract.

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

Groups

Groups associate a set of URefs with a label. Entry points on a contract can be given a list of labels they accept and the runtime will check that a URef from at least one of the allowed groups is present in the caller’s context before execution.

Declaration
[JsonPropertyName("groups")]
public List<Group> Groups { get; init; }
Property Value
Type Description
List<Group>
| 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

List of active versions of a contract.

Declaration
[JsonPropertyName("versions")]
public List<ContractVersion> Versions { get; init; }
Property Value
Type Description
List<ContractVersion>
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC