> For the complete documentation index, see [llms.txt](https://docs.gnoswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gnoswap.io/contracts/gov/governance/proposal_schedule_status.gno.md).

# proposal\_schedule\_status.gno

{% embed url="<https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno>" %}

## Types

### ProposalScheduleStatus

```go
type ProposalScheduleStatus struct
```

ProposalScheduleStatus represents the pre-calculated time schedule for a proposal. This structure defines all the important timestamps in a proposal's lifecycle, from creation through voting to execution and expiration.

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L6)

#### Methods

**ActiveTime**

```go
func (p *ProposalScheduleStatus) ActiveTime() int64
```

ActiveTime returns the Unix timestamp when proposal voting starts.

#### Return Values

| Name    | Type  | Description            |
| ------- | ----- | ---------------------- |
| `int64` | int64 | voting start timestamp |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L52)

**Clone**

```go
func (p *ProposalScheduleStatus) Clone() *ProposalScheduleStatus
```

Clone creates a deep copy of the ProposalScheduleStatus.

#### Return Values

| Name                      | Type                     | Description                                      |
| ------------------------- | ------------------------ | ------------------------------------------------ |
| `*ProposalScheduleStatus` | \*ProposalScheduleStatus | copied schedule, or nil when the receiver is nil |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L117)

**CreateTime**

```go
func (p *ProposalScheduleStatus) CreateTime() int64
```

Getter methods CreateTime returns the Unix timestamp when the proposal was created.

#### Return Values

| Name    | Type  | Description                 |
| ------- | ----- | --------------------------- |
| `int64` | int64 | proposal creation timestamp |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L46)

**ExecutableTime**

```go
func (p *ProposalScheduleStatus) ExecutableTime() int64
```

ExecutableTime returns the Unix timestamp when the execution window starts.

#### Return Values

| Name    | Type  | Description               |
| ------- | ----- | ------------------------- |
| `int64` | int64 | execution start timestamp |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L64)

**ExpiredTime**

```go
func (p *ProposalScheduleStatus) ExpiredTime() int64
```

ExpiredTime returns the Unix timestamp when the execution window closes.

#### Return Values

| Name    | Type  | Description                    |
| ------- | ----- | ------------------------------ |
| `int64` | int64 | execution expiration timestamp |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L70)

**SetActiveTime**

```go
func (p *ProposalScheduleStatus) SetActiveTime(
	activeTime int64
)
```

SetActiveTime updates the timestamp when proposal voting starts.

#### Parameters

| Name         | Type  | Description                       |
| ------------ | ----- | --------------------------------- |
| `activeTime` | int64 | Unix timestamp when voting starts |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L85)

**SetCreateTime**

```go
func (p *ProposalScheduleStatus) SetCreateTime(
	createTime int64
)
```

Setter methods SetCreateTime updates the proposal creation timestamp.

#### Parameters

| Name         | Type  | Description                                  |
| ------------ | ----- | -------------------------------------------- |
| `createTime` | int64 | Unix timestamp when the proposal was created |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L77)

**SetExecutableTime**

```go
func (p *ProposalScheduleStatus) SetExecutableTime(
	executableTime int64
)
```

SetExecutableTime updates the timestamp when proposal execution can start.

#### Parameters

| Name             | Type  | Description                                     |
| ---------------- | ----- | ----------------------------------------------- |
| `executableTime` | int64 | Unix timestamp when the execution window starts |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L101)

**SetExpiredTime**

```go
func (p *ProposalScheduleStatus) SetExpiredTime(
	expiredTime int64
)
```

SetExpiredTime updates the timestamp when proposal execution expires.

#### Parameters

| Name          | Type  | Description                                     |
| ------------- | ----- | ----------------------------------------------- |
| `expiredTime` | int64 | Unix timestamp when the execution window closes |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L109)

**SetVotingEndTime**

```go
func (p *ProposalScheduleStatus) SetVotingEndTime(
	votingEndTime int64
)
```

SetVotingEndTime updates the timestamp when proposal voting ends.

#### Parameters

| Name            | Type  | Description                     |
| --------------- | ----- | ------------------------------- |
| `votingEndTime` | int64 | Unix timestamp when voting ends |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L93)

**VotingEndTime**

```go
func (p *ProposalScheduleStatus) VotingEndTime() int64
```

VotingEndTime returns the Unix timestamp when proposal voting ends.

#### Return Values

| Name    | Type  | Description          |
| ------- | ----- | -------------------- |
| `int64` | int64 | voting end timestamp |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L58)

#### Constructors

* `func NewProposalScheduleStatus(createTime int64, activeTime int64, votingEndTime int64, executableTime int64, expiredTime int64) *ProposalScheduleStatus` ([source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_schedule_status.gno#L25))
