sui_package_alt/
sui_flavor.rsuse std::collections::BTreeMap;
use move_package_alt::{
dependency::{self, Pinned, PinnedDependencyInfo, Unpinned},
errors::PackageResult,
flavor::MoveFlavor,
package::PackageName,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone)]
#[serde(rename = "kebab-case")]
pub struct OnChainDependency {
on_chain: bool,
}
pub struct SuiFlavor;
impl MoveFlavor for SuiFlavor {
type FlavorDependency<P: ?Sized> = OnChainDependency;
fn pin(
&self,
deps: BTreeMap<PackageName, Self::FlavorDependency<Unpinned>>,
) -> PackageResult<BTreeMap<PackageName, Self::FlavorDependency<Pinned>>> {
todo!()
}
fn fetch(
&self,
deps: BTreeMap<PackageName, Self::FlavorDependency<Pinned>>,
) -> PackageResult<BTreeMap<PackageName, std::path::PathBuf>> {
todo!()
}
type PublishedMetadata = (); type EnvironmentID = (); type AddressInfo = (); type PackageMetadata = (); fn implicit_deps(&self, id: Self::EnvironmentID) -> Vec<PinnedDependencyInfo<Self>> {
todo!()
}
}