Casper.Network.SDK
Show / Hide Table of Contents

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.

Inheritance
System.Object
ExecutableDeployItem
StoredVersionedContractByNameDeployItem
Inherited Members
ExecutableDeployItem.RuntimeArgs
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class StoredVersionedContractByNameDeployItem : ExecutableDeployItem

Constructors

StoredVersionedContractByNameDeployItem()

Declaration
public StoredVersionedContractByNameDeployItem()

StoredVersionedContractByNameDeployItem(String, Nullable<UInt32>, 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
System.String name

Name of a named key in the caller account Named Keys that points to the contract package.

System.Nullable<System.UInt32> version

Version of the contract to call. Null for latest version.

System.String entryPoint

Method in the contract to call.

List<NamedArg> args

List of named arguments to pass as input data to the call.

Properties

EntryPoint

Entry point or method of the contract to call.

Declaration
public string EntryPoint { get; set; }
Property Value
Type Description
System.String

Name

Name of a named key in the caller account that stores the contract package hash.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Version

Version of the contract to call (null indicates latest version).

Declaration
public uint? Version { get; set; }
Property Value
Type Description
System.Nullable<System.UInt32>

Methods

JsonPropertyName()

Declaration
public override string JsonPropertyName()
Returns
Type Description
System.String
Overrides
ExecutableDeployItem.JsonPropertyName()

Tag()

Declaration
public override byte Tag()
Returns
Type Description
System.Byte
Overrides
ExecutableDeployItem.Tag()
In This Article
Back to top Maintained by MAKE Technology LLC