@celo/governance"proposals"

Module: "proposals"

Index

Classes

Interfaces

Variables

Functions

Variables

Const hotfixExecuteAbi

hotfixExecuteAbi: AbiItem = getAbiByName(GovernanceABI, 'executeHotfix')

Defined in proposals.ts:45

Functions

Const hotfixToEncodedParams

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

Defined in proposals.ts:47

Parameters:

Name Type
kit ContractKit
proposal Proposal
salt Buffer

Returns: string


Const hotfixToHash

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

Defined in proposals.ts:53

Parameters:

Name Type
kit ContractKit
proposal Proposal
salt Buffer

Returns: Buffer‹›


Const proposalToJSON

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

Defined in proposals.ts:123

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.
registryAdditions? RegistryAdditions Registry remappings prior to parsing the proposal as a map of name to corresponding contract address.

Returns: Promise‹ProposalTransactionJSON[]›

The JSON encoding of the proposal.