Class StoredVersionedContractByNameDeployItem
Deploy item to call an entry point in a contract. The contract is referenced by a named key in the caller account pointing to the contract package hash and a version number.
Inherited Members
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class StoredVersionedContractByNameDeployItem : ExecutableDeployItem
Constructors
| Edit this page View SourceStoredVersionedContractByNameDeployItem()
Declaration
public StoredVersionedContractByNameDeployItem()
StoredVersionedContractByNameDeployItem(string, uint?, string, List<NamedArg>)
Creates a deploy item to call an entry point in a contract package. The contract is referenced by a named key in the caller's account and a version number in the contract package.
Declaration
public StoredVersionedContractByNameDeployItem(string name, uint? version, string entryPoint, List<NamedArg> args = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of a named key in the caller account Named Keys that points to the contract package. |
| uint? | version | Version of the contract to call. Null for latest version. |
| string | entryPoint | Method in the contract to call. |
| List<NamedArg> | args | List of named arguments to pass as input data to the call. |
Properties
| Edit this page View SourceEntryPoint
Entry point or method of the contract to call.
Declaration
[JsonPropertyName("entry_point")]
public string EntryPoint { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Name of a named key in the caller account that stores the contract package hash.
Declaration
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Version
Version of the contract to call (null indicates latest version).
Declaration
[JsonPropertyName("version")]
public uint? Version { get; init; }
Property Value
| Type | Description |
|---|---|
| uint? |
Methods
| Edit this page View SourceJsonPropertyName()
Declaration
public override string JsonPropertyName()
Returns
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceTag()
Declaration
public override byte Tag()
Returns
| Type | Description |
|---|---|
| byte |