Deploys the Stellar Asset Contract (SAC) address for a given asset XDR.
This function takes an asset's XDR representation and deploys the corresponding Stellar Asset Contract. It will fail if the contract is already deployed.
This utility is specifically designed for Stellar Classic tokens (native Stellar assets), allowing them to be used in Soroban smart contracts through the SAC interface.
asset_xdr - The XDR byte representation of the Stellar assetOk(Address) - The deployed Stellar Asset Contract addressErr(ContractError::InvalidAssetXdr) - If the asset XDR is invalidErr - If the contract is already deployed (deployment error)This function is used to deploy a new Stellar Asset Contract for a specific asset. It takes the XDR representation of a Stellar asset (code and issuer) and creates a new contract instance for that asset.
To obtain the asset XDR:
fn deploy_stellar_asset_contract(
env: soroban_sdk::Env,
asset_xdr: soroban_sdk::Bytes,
) -> Result