Class Package
Entity definition, metadata, and security container.
Assembly: Casper.Network.SDK.dll
Syntax
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
|
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
|
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
|
Edit this page
View Source
Versions
All versions (enabled and disabled).
Declaration
[JsonPropertyName("versions")]
public List<EntityVersionAndHash> Versions { get; init; }
Property Value
Methods
|
Edit this page
View Source
FromContractPackage(ContractPackage)
Declaration
public static Package FromContractPackage(ContractPackage contractPackage)
Parameters
Returns