# governance/proposals

## Index

### Classes

* [InteractiveProposalBuilder](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference)
* [ProposalBuilder](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference)

### Interfaces

* [ProposalTransactionJSON](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference)

### Variables

* [HOTFIX\_PARAM\_ABI\_TYPES](#const-hotfix_param_abi_types)

### Functions

* [hotfixToEncodedParams](#const-hotfixtoencodedparams)
* [hotfixToHash](#const-hotfixtohash)
* [proposalToJSON](#const-proposaltojson)

## Variables

### `Const` HOTFIX\_PARAM\_ABI\_TYPES

• **HOTFIX\_PARAM\_ABI\_TYPES**: *string\[]* = getAbiTypes(GovernanceABI as any, 'executeHotfix')

*Defined in* [*packages/contractkit/src/governance/proposals.ts:25*](https://github.com/celo-org/celo-monorepo/blob/master/packages/contractkit/src/governance/proposals.ts#L25)

## Functions

### `Const` hotfixToEncodedParams

▸ **hotfixToEncodedParams**(`kit`: [ContractKit](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference), `proposal`: [Proposal](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/_wrappers_governance_#proposal), `salt`: Buffer): *string*

*Defined in* [*packages/contractkit/src/governance/proposals.ts:27*](https://github.com/celo-org/celo-monorepo/blob/master/packages/contractkit/src/governance/proposals.ts#L27)

**Parameters:**

| Name       | Type                                                                                                         |
| ---------- | ------------------------------------------------------------------------------------------------------------ |
| `kit`      | [ContractKit](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference) |
| `proposal` | [Proposal](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/_wrappers_governance_#proposal)       |
| `salt`     | Buffer                                                                                                       |

**Returns:** *string*

### `Const` hotfixToHash

▸ **hotfixToHash**(`kit`: [ContractKit](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference), `proposal`: [Proposal](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/_wrappers_governance_#proposal), `salt`: Buffer): *Buffer‹›*

*Defined in* [*packages/contractkit/src/governance/proposals.ts:30*](https://github.com/celo-org/celo-monorepo/blob/master/packages/contractkit/src/governance/proposals.ts#L30)

**Parameters:**

| Name       | Type                                                                                                         |
| ---------- | ------------------------------------------------------------------------------------------------------------ |
| `kit`      | [ContractKit](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference) |
| `proposal` | [Proposal](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/_wrappers_governance_#proposal)       |
| `salt`     | Buffer                                                                                                       |

**Returns:** *Buffer‹›*

### `Const` proposalToJSON

▸ **proposalToJSON**(`kit`: [ContractKit](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference), `proposal`: [Proposal](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/_wrappers_governance_#proposal)): *Promise‹*[*ProposalTransactionJSON*](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference)*\[]›*

*Defined in* [*packages/contractkit/src/governance/proposals.ts:69*](https://github.com/celo-org/celo-monorepo/blob/master/packages/contractkit/src/governance/proposals.ts#L69)

Convert a compiled proposal to a human-readable JSON form using network information.

**Parameters:**

| Name       | Type                                                                                                         | Description                                                        |
| ---------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| `kit`      | [ContractKit](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference) | Contract kit instance used to resolve addresses to contract names. |
| `proposal` | [Proposal](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/_wrappers_governance_#proposal)       | A constructed proposal object.                                     |

**Returns:** *Promise‹*[*ProposalTransactionJSON*](https://josh-8.gitbook.io/celo-docs/developer-guide/summary/external-modules/broken-reference)*\[]›*

The JSON encoding of the proposal.
