// Creates a Governance store with one dummy ExecuteNnsFunction proposal
Creates a Governance store with one dummy ExecuteNnsFunction proposal
Creates a Governance store with one dummy ExecuteNnsFunction proposal
fn fixture_for_proposals(proposal_id: ProposalId, payload: Vec<u8>) -> GovernanceProto {
    let execute_nns_function = ExecuteNnsFunction {
        nns_function: NnsFunction::ClearProvisionalWhitelist as i32,
        payload,
    };
    let proposal = Proposal {
        action: Some(proposal::Action::ExecuteNnsFunction(execute_nns_function)),
        ..Default::default()
    };
    let proposal_data = ProposalData {
        id: Some(proposal_id),
        proposal: Some(proposal),
        ..Default::default()
    };
    GovernanceProto {
        economics: Some(NetworkEconomics::with_default_values()),
        proposals: once((proposal_id.id, proposal_data)).collect(),
        ..Default::default()
    }
}
fn fixture_for_proposals ( proposal_id : ProposalId , payload : Vec < u8 > ) -> GovernanceProto { let execute_nns_function = ExecuteNnsFunction { nns_function : NnsFunction :: ClearProvisionalWhitelist as i32 , payload , } ; let proposal = Proposal { action : Some ( proposal :: Action :: ExecuteNnsFunction ( execute_nns_function ) ) , .. Default :: default ( ) } ; let proposal_data = ProposalData { id : Some ( proposal_id ) , proposal : Some ( proposal ) , .. Default :: default ( ) } ; GovernanceProto { economics : Some ( NetworkEconomics :: with_default_values ( ) ) , proposals : once ( ( proposal_id . id , proposal_data ) ) . collect ( ) , .. Default :: default ( ) } }
Creates a Governance store with one dummy ExecuteNnsFunction proposal
Creates a Governance store with one dummy ExecuteNnsFunction proposal
proposal_id
ProposalId
payload
Vec<u8>