pub struct Proposal {
pub guild_id: u64,
pub proposer: String,
pub to: String,
pub amount: u128,
pub deadline: u64,
pub status: u8,
pub for_votes: u128,
pub against_votes: u128,
}Expand description
One proposal record, decoded from getProposal(uint256). Field order/types
mirror the facet’s returned tuple exactly: guildId, proposer, to, amount,
deadline, status, forVotes, againstVotes. status is the raw VStatus byte
(see Proposal::status_label).
Fields§
§guild_id: u64The guild whose treasury this measure spends.
proposer: StringThe member who opened the proposal (the record’s author), 0x-hex address.
to: StringThe spend recipient (may be a contract — a member-guild’s TBA), 0x-hex.
amount: u128$LH (wei) the measure spends from the guild treasury on a pass.
deadline: u64Unix seconds voting closes; execute opens after this.
status: u8Raw lifecycle byte: 0 Active, 1 Passed, 2 Failed, 3 Executed, 4 Expired.
for_votes: u128Weighted votes in favour (== count of for-voters, MVP weight 1).
against_votes: u128Weighted votes against.
Implementations§
Trait Implementations§
impl Eq for Proposal
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnsafeUnpin for Proposal
impl UnwindSafe for Proposal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more