ProposalItem
type ProposalItem = { description: string; endBlock: bigint; executions: Array<{ nativeTokenValue: bigint | undefined; toAddress: string | undefined; }>; proposalId: bigint; proposer: string; startBlock: bigint; state: number; stateLabel: string | undefined; votes: ProposalVoteInfo;};
Description of the proposal
type description = string;
The block number where the proposal concludes its voting phase
type endBlock = bigint;
The array of containing info about the set of actions that will be executed onchain, should the proposal pass
type executions = Array<{ nativeTokenValue: bigint | undefined; toAddress: string | undefined;}>;
ID of the proposal
type proposalId = bigint;
The wallet address of the proposer
type proposer = string;
The block number at which the proposal is open for voting
type startBlock = bigint;
The current state of the proposal, represented in number
type state = number;
The current state of the proposal, represented in a user-friendly string Example: "pending" | "active" | "canceled"
type stateLabel = string | undefined;
The current vote info. See type ProposalVoteInfo
for more context
type votes = ProposalVoteInfo;