# vote.move

#### empty\_status (public func)

{% hint style="info" %}
Creates an empty voting status information.
{% endhint %}

#### empty\_participants (public func)

{% hint style="info" %}
Creates an empty voter participant information.
{% endhint %}

#### make\_VotingEvidence (public func)

```
// func parameter
ctx[TxContext]: transaction information (auto-filled)
is_agree[bool]: vote in favor (true) or against (false)
```

{% hint style="info" %}
Generates a token object to be provided to the person who voted.
{% endhint %}

#### is\_votestatus\_enable (public func)

```
// func parameter
vote_status[VoteStatus]: vote status structure
```

{% hint style="info" %}
Checks whether voting is currently allowed.
{% endhint %}

#### is\_voted (public func)

```
// func parameter
participants [VecMap<address, Participant>]: map containing information of all
votersparticipant[Participant]: address information of the current voter
```

{% hint style="info" %}
Checks if a vote has already been cast.
{% endhint %}

#### participant (public func)

```
// func parameter
participant [Participant]: voter information structure
```

{% hint style="info" %}
Provides detailed information about the voter.
{% endhint %}

#### votestatus\_period\_check

```
// func parameter
vote_status[VoteStatus]: voting status information
clock_vote[Clock]: current time information (fixed at 0x6)
```

{% hint style="info" %}
Checks if the voting period is currently active.
{% endhint %}

#### vote\_counting (public func)

```
// func parameter
participants [VecMap<address, Participant>]: map containing information of all voters
```

{% hint style="info" %}
Provides the voting results, including: Number of votes in favor, Number of votes against, Total number of voters, Final voting outcome
{% endhint %}

#### voting (public func)

```
// func parameter
participants [VecMap<address, Participant>]: map containing information of all voters
participant [Participant]: address information of the current voter
clock_vote[Clock]: current time information (fixed at 0x6)
is_agree[bool]: indicates whether the vote is in favor (true) or against (false)
```

{% hint style="info" %}
The voter proceeds with casting their vote.
{% endhint %}

#### votestatus\_enable (public func)

```
// func parameter
vote_status[VoteStatus]: voting status information
enable [bool]: indicates whether voting is enabled
vote_start_ts[u64]: voting start time (UTC / ms)
vote_end_ts[u64]: voting end time (UTC / ms)
```

{% hint style="info" %}
Sets the status information for the voting functionality.
{% endhint %}
