This pull request would implement type conversation for Asset / AssetInfo with cw-asset::Asset / cw-asset::AssetInfo.
Given the popularity of the cw-asset, when dealing with astroport, conversions between the two similar types must be done manually, or implement traits to extend one of the two types.
In particular is implemented:
use cw_asset::{Asset as CwAsset, AssetInfo as CwAssetInfo};
impl From<Asset> for CwAsset;
impl TryFrom<CwAsset> for Asset;
impl From<AssetInfo> for CwAssetInfo;
impl TryFrom<CwAssetInfo> for AssetInfo;
This pull request would implement type conversation for
Asset
/AssetInfo
withcw-asset::Asset
/cw-asset::AssetInfo
.Given the popularity of the cw-asset, when dealing with astroport, conversions between the two similar types must be done manually, or implement traits to extend one of the two types.
In particular is implemented:
New changes are also full tested.