pub async fn publish_package_on_single_authority(
path: PathBuf,
sender: SuiAddress,
sender_key: &dyn Signer<Signature>,
gas_payment: ObjectRef,
dep_original_addresses: impl IntoIterator<Item = (&'static str, ObjectID)>,
dep_ids: Vec<ObjectID>,
state: &Arc<AuthorityState>
) -> SuiResult<(ObjectID, ObjectRef)>
Expand description
Returns the new package’s ID and the upgrade cap object ref.
dep_original_addresses
allows us to fill out mappings in the addresses section of the package manifest. These IDs
must be the original IDs of names.
dep_ids are the IDs of the dependencies of the package, in the latest version (if there were upgrades).