Show / Hide Table of Contents

    Class ApplicationParams

    Stores the global information associated with an application.

    Inheritance
    System.Object
    ApplicationParams
    Implements
    System.IEquatable<ApplicationParams>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Algorand.V2.Model
    Assembly: Algorand.dll
    Syntax
    [DataContract]
    public class ApplicationParams : IEquatable<ApplicationParams>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    ApplicationParams()

    Initializes a new instance of the ApplicationParams class.

    Declaration
    [JsonConstructor]
    protected ApplicationParams()
    | Improve this Doc View Source

    ApplicationParams(String, Byte[], Byte[], ApplicationStateSchema, ApplicationStateSchema, TealKeyValueStore)

    Initializes a new instance of the ApplicationParams class.

    Declaration
    public ApplicationParams(string creator = null, byte[] approvalProgram = null, byte[] clearStateProgram = null, ApplicationStateSchema localStateSchema = null, ApplicationStateSchema globalStateSchema = null, TealKeyValueStore globalState = null)
    Parameters
    Type Name Description
    System.String creator

    The address that created this application. This is the address where the parameters and global state for this application can be found. (required).

    System.Byte[] approvalProgram

    \[approv\] approval program. (required).

    System.Byte[] clearStateProgram

    \[clearp\] approval program. (required).

    ApplicationStateSchema localStateSchema

    [\lsch\] local schema.

    ApplicationStateSchema globalStateSchema

    [\lsch\] global schema.

    TealKeyValueStore globalState

    [\gs\] global schema.

    Properties

    | Improve this Doc View Source

    ApprovalProgram

    \[approv\] approval program.

    Declaration
    [DataMember(Name = "approval-program", EmitDefaultValue = false)]
    public byte[] ApprovalProgram { get; set; }
    Property Value
    Type Description
    System.Byte[]

    \[approv\] approval program.

    | Improve this Doc View Source

    ClearStateProgram

    \[clearp\] approval program.

    Declaration
    [DataMember(Name = "clear-state-program", EmitDefaultValue = false)]
    public byte[] ClearStateProgram { get; set; }
    Property Value
    Type Description
    System.Byte[]

    \[clearp\] approval program.

    | Improve this Doc View Source

    Creator

    The address that created this application. This is the address where the parameters and global state for this application can be found.

    Declaration
    [DataMember(Name = "creator", EmitDefaultValue = false)]
    public string Creator { get; set; }
    Property Value
    Type Description
    System.String

    The address that created this application. This is the address where the parameters and global state for this application can be found.

    | Improve this Doc View Source

    GlobalState

    [\gs\] global schema

    Declaration
    [DataMember(Name = "global-state", EmitDefaultValue = false)]
    public TealKeyValueStore GlobalState { get; set; }
    Property Value
    Type Description
    TealKeyValueStore

    [\gs\] global schema

    | Improve this Doc View Source

    GlobalStateSchema

    [\lsch\] global schema

    Declaration
    [DataMember(Name = "global-state-schema", EmitDefaultValue = false)]
    public ApplicationStateSchema GlobalStateSchema { get; set; }
    Property Value
    Type Description
    ApplicationStateSchema

    [\lsch\] global schema

    | Improve this Doc View Source

    LocalStateSchema

    [\lsch\] local schema

    Declaration
    [DataMember(Name = "local-state-schema", EmitDefaultValue = false)]
    public ApplicationStateSchema LocalStateSchema { get; set; }
    Property Value
    Type Description
    ApplicationStateSchema

    [\lsch\] local schema

    Methods

    | Improve this Doc View Source

    Equals(ApplicationParams)

    Returns true if ApplicationParams instances are equal

    Declaration
    public bool Equals(ApplicationParams input)
    Parameters
    Type Name Description
    ApplicationParams input

    Instance of ApplicationParams to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    | Improve this Doc View Source

    Equals(Object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    System.Object input

    Object to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Hash code

    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    System.String

    JSON string presentation of the object

    | Improve this Doc View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String presentation of the object

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IValidatableObject.Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext

    Validation context

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX