> For the complete documentation index, see [llms.txt](https://docs.rigoblock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rigoblock.com/api/governance/interfaces/irigoblockgovernancefactory.md).

# IRigoblockGovernanceFactory

## Overview

#### License: Apache-2.0-or-later

```solidity
interface IRigoblockGovernanceFactory
```

## Structs info

### Parameters

```solidity
struct Parameters {
	address implementation;
	address governanceStrategy;
	uint256 proposalThreshold;
	uint256 quorumThreshold;
	TimeType timeType;
	string name;
}
```

## Events info

### GovernanceCreated

```solidity
event GovernanceCreated(address governance)
```

Emitted when a governance is created.

Parameters:

| Name       | Type    | Description                      |
| ---------- | ------- | -------------------------------- |
| governance | address | Address of the governance proxy. |

## Functions info

### createGovernance (0xa1cbaff4)

```solidity
function createGovernance(
    address implementation,
    address governanceStrategy,
    uint256 proposalThreshold,
    uint256 quorumThreshold,
    TimeType timeType,
    string calldata name
) external returns (address governance)
```

Creates a new governance proxy.

Parameters:

| Name               | Type          | Description                                           |
| ------------------ | ------------- | ----------------------------------------------------- |
| implementation     | address       | Address of the governance implementation contract.    |
| governanceStrategy | address       | Address of the voting strategy.                       |
| proposalThreshold  | uint256       | Number of votes required for creating a new proposal. |
| quorumThreshold    | uint256       | Number of votes required for execution.               |
| timeType           | enum TimeType | Enum of time type (block number or timestamp).        |
| name               | string        | Human readable string of the name.                    |

Return values:

| Name       | Type    | Description                    |
| ---------- | ------- | ------------------------------ |
| governance | address | Address of the new governance. |

### parameters (0x89035730)

```solidity
function parameters()
    external
    view
    returns (IRigoblockGovernanceFactory.Parameters memory)
```

Returns the governance initialization parameters at proxy deploy.

Return values:

| Name | Type                                          | Description                         |
| ---- | --------------------------------------------- | ----------------------------------- |
| \[0] | struct IRigoblockGovernanceFactory.Parameters | Tuple of the governance parameters. |
