Developer Guide

governance/proposals

Index

Classes

Interfaces

Variables

Functions

Variables

Const HOTFIX_PARAM_ABI_TYPES

HOTFIX_PARAM_ABI_TYPES: string[] = getAbiTypes(GovernanceABI as any, 'executeHotfix')

Defined in contractkit/src/governance/proposals.ts:15

Functions

Const hotfixToEncodedParams

hotfixToEncodedParams(kit: ContractKit, proposal: Proposal, salt: Buffer): string

Defined in contractkit/src/governance/proposals.ts:17

Parameters:

Name

Type

kit

ContractKit

proposal

Proposal

salt

Buffer

Returns: string

Const hotfixToHash

hotfixToHash(kit: ContractKit, proposal: Proposal, salt: Buffer): Buffer‹›

Defined in contractkit/src/governance/proposals.ts:20

Parameters:

Name

Type

kit

ContractKit

proposal

Proposal

salt

Buffer

Returns: Buffer‹›

Const proposalToJSON

proposalToJSON(kit: ContractKit, proposal: Proposal): Promise‹ProposalTransactionJSON[]›

Defined in contractkit/src/governance/proposals.ts:50

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

Parameters:

Name

Type

Description

kit

ContractKit

Contract kit instance used to resolve addresses to contract names.

proposal

Proposal

A constructed proposal object.

Returns: Promise‹ProposalTransactionJSON[]›

The JSON encoding of the proposal.