Class ApplicationParams
Stores the global information associated with an application.
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class ApplicationParams : IEquatable<ApplicationParams>, IValidatableObject
Constructors
| Improve this Doc View SourceApplicationParams()
Initializes a new instance of the ApplicationParams class.
Declaration
[JsonConstructor]
protected ApplicationParams()
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 SourceApprovalProgram
\[approv\] approval program.
Declaration
[DataMember(Name = "approval-program", EmitDefaultValue = false)]
public byte[] ApprovalProgram { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] | \[approv\] approval program. |
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. |
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. |
GlobalState
[\gs\] global schema
Declaration
[DataMember(Name = "global-state", EmitDefaultValue = false)]
public TealKeyValueStore GlobalState { get; set; }
Property Value
Type | Description |
---|---|
TealKeyValueStore | [\gs\] global schema |
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 |
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 SourceEquals(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 |
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
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
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 |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.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 |