sigil-wallet · governance
Source declarations, signatures and documentation for governance.
Source: sigil/node/sigil-wallet/src/governance.rs. SHA-256: c475e7edb12d523010154eb91981ff802577884df8f19e83e0d8ef3715bd98e5.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
governance::parse_vote_choice
Parse a vote choice string.
pub fn parse_vote_choice(choice: &str) -> WalletResult<VoteChoice>;Source line: 27.
governance::propose
Submit a governance proposal.
pub async fn propose(
rpc_url: &str,
chain_id: &str,
did: &str,
title: &str,
description: &str,
passphrase: &str,
nonce: u64,
) -> WalletResult<String>;Source line: 69.
governance::vote
Vote on a governance proposal.
pub async fn vote(
rpc_url: &str,
chain_id: &str,
did: &str,
proposal_id: &str,
choice: &str,
passphrase: &str,
nonce: u64,
) -> WalletResult<String>;Source line: 99.
governance::print_propose
Print proposal submission confirmation.
pub fn print_propose(did: &str, title: &str, tx_hash: &str);Source line: 127.
governance::print_vote
Print vote confirmation.
pub fn print_vote(did: &str, proposal_id: &str, choice: &str, tx_hash: &str);Source line: 146.