/// Submits a proposal for updating replica software version of unassigned
/// nodes.
///
/// # Arguments
///
/// * `governance`          - Governance canister
/// * `sender`              - Sender of the proposal
/// * `neuron_id`           - ID of the proposing neuron. This neuron will
///   automatically vote in favor of the proposal.
/// * `version`             - Replica software version
/// * `readonly_public_key` - Public key of ssh credentials for readonly access
///   to the node.
///
/// Eventually returns the identifier of the newly submitted proposal.
Submits a proposal for updating replica software version of unassigned
nodes.
Submits a proposal for updating replica software version of unassigned nodes .
pub async fn submit_update_unassigned_node_version_proposal(
    governance: &Canister<'_>,
    sender: Sender,
    neuron_id: NeuronId,
    version: String,
    readonly_public_key: String,
) -> ProposalId {
    submit_external_update_proposal_allowing_error(
        governance,
        sender,
        neuron_id,
        NnsFunction::UpdateUnassignedNodesConfig,
        UpdateUnassignedNodesConfigPayload {
            ssh_readonly_access: Some(vec![readonly_public_key]),
            replica_version: Some(version.clone()),
        },
        format!("Update unassigned nodes version to: {}", version.clone()),
        "".to_string(),
    )
    .await
    .expect("submit_update_unassigned_node_version_proposal failed")
}
pub async fn submit_update_unassigned_node_version_proposal ( governance : & Canister < ' _ > , sender : Sender , neuron_id : NeuronId , version : String , readonly_public_key : String , ) -> ProposalId { submit_external_update_proposal_allowing_error ( governance , sender , neuron_id , NnsFunction :: UpdateUnassignedNodesConfig , UpdateUnassignedNodesConfigPayload { ssh_readonly_access : Some ( vec ! [ readonly_public_key ] ) , replica_version : Some ( version . clone ( ) ) , } , format ! ( " " version clone ( ) ) , " " . to_string ( ) , ) . await . expect ( " " ) }
Submits a proposal for updating replica software version of unassigned
nodes.
Submits a proposal for updating replica software version of unassigned nodes .
governance
&Canister<'_>
sender
Sender
neuron_id
NeuronId
version
String
readonly_public_key
String