Class ContractPackage
Contract definition, metadata, and security container.
Inherited Members
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class ContractPackage
Properties
| Edit this page View SourceAccessKey
Declaration
[JsonPropertyName("access_key")]
[JsonConverter(typeof(GlobalStateKey.GlobalStateKeyConverter))]
public URef AccessKey { get; init; }
Property Value
| Type | Description |
|---|---|
| URef |
DisabledVersions
List of disabled versions of a contract.
Declaration
[JsonPropertyName("disabled_versions")]
public List<DisabledVersion> DisabledVersions { get; init; }
Property Value
| Type | Description |
|---|---|
| List<DisabledVersion> |
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> |
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 |
Versions
List of active versions of a contract.
Declaration
[JsonPropertyName("versions")]
public List<ContractVersion> Versions { get; init; }
Property Value
| Type | Description |
|---|---|
| List<ContractVersion> |