pub async fn command_upload_manifest(
    arweave: &Arweave,
    log_dir: &str,
    reward_mult: f32,
    sol_keypair_path: Option<String>,
) -> CommandResult {
    let solana_url = "https://api.mainnet-beta.solana.com/".parse::<Url>()?;
    let sol_ar_url = SOL_AR_BASE_URL.parse::<Url>()?.join("sol")?;
    let from_keypair = sol_keypair_path.map(|s| keypair::read_keypair_file(s).unwrap());

    let price_terms = arweave.get_price_terms(reward_mult).await?;
    let output = arweave
        .upload_manifest_from_bundle_log_dir(
            log_dir,
            price_terms,
            solana_url,
            sol_ar_url,
            from_keypair,
        )
        .await?;

    println!("{}", output);
    Ok(())
}
/// Creates and uploads manifest from directory of bundle statuses.
Creates and uploads manifest from directory of bundle statuses.
Creates and uploads manifest from directory of bundle statuses .
pub async fn command_upload_manifest(
    arweave: &Arweave,
    log_dir: &str,
    reward_mult: f32,
    sol_keypair_path: Option<String>,
) -> CommandResult {
    let solana_url = "https://api.mainnet-beta.solana.com/".parse::<Url>()?;
    let sol_ar_url = SOL_AR_BASE_URL.parse::<Url>()?.join("sol")?;
    let from_keypair = sol_keypair_path.map(|s| keypair::read_keypair_file(s).unwrap());
    let price_terms = arweave.get_price_terms(reward_mult).await?;
    let output = arweave
        .upload_manifest_from_bundle_log_dir(
            log_dir,
            price_terms,
            solana_url,
            sol_ar_url,
            from_keypair,
        )
        .await?;
    println!("{}", output);
    Ok(())
}
pub async fn command_upload_manifest ( arweave : & Arweave , log_dir : & str , reward_mult : f32 , sol_keypair_path : Option < String > , ) -> CommandResult { let solana_url = " " . parse :: < Url > ( ) ? ; let sol_ar_url = SOL_AR_BASE_URL . parse :: < Url > ( ) ? . join ( " " ) ? ; let from_keypair = sol_keypair_path . map ( | s | keypair :: read_keypair_file ( s ) . unwrap ( ) ) ; let price_terms = arweave . get_price_terms ( reward_mult ) . await ? ; let output = arweave . upload_manifest_from_bundle_log_dir ( log_dir , price_terms , solana_url , sol_ar_url , from_keypair , ) . await ? ; println ! ( " " output ) ; Ok ( ( ) ) }
Creates and uploads manifest from directory of bundle statuses.
Creates and uploads manifest from directory of bundle statuses .
arweave
&Arweave
log_dir
&str
reward_mult
f32
sol_keypair_path
Option<String>
arweave
&Arweave
log_dir
&str
reward_mult
f32
sol_keypair_path
Option<String>