@scallop-io/sui-scallop-sdk 1.3.5-alpha.3 → 1.3.5-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopUtils.d.ts +1 -1
- package/package.json +1 -1
- package/src/models/scallopUtils.ts +6 -3
package/dist/index.mjs
CHANGED
|
@@ -4813,8 +4813,8 @@ var ScallopUtils = class {
|
|
|
4813
4813
|
* @param coinName - Specific support coin name.
|
|
4814
4814
|
* @return Coin type.
|
|
4815
4815
|
*/
|
|
4816
|
-
parseCoinType(coinName) {
|
|
4817
|
-
if (sCoinIds[coinName]) {
|
|
4816
|
+
parseCoinType(coinName, useOldMarketCoin = false) {
|
|
4817
|
+
if (sCoinIds[coinName] && !useOldMarketCoin) {
|
|
4818
4818
|
return sCoinIds[coinName];
|
|
4819
4819
|
}
|
|
4820
4820
|
coinName = isMarketCoin(coinName) ? this.parseCoinName(coinName) : coinName;
|
|
@@ -4922,7 +4922,7 @@ var ScallopUtils = class {
|
|
|
4922
4922
|
*/
|
|
4923
4923
|
parseMarketCoinType(coinName) {
|
|
4924
4924
|
const protocolObjectId = this.address.get("core.object") ?? PROTOCOL_OBJECT_ID;
|
|
4925
|
-
const coinType = this.parseCoinType(coinName);
|
|
4925
|
+
const coinType = this.parseCoinType(coinName, true);
|
|
4926
4926
|
return `${protocolObjectId}::reserve::MarketCoin<${coinType}>`;
|
|
4927
4927
|
}
|
|
4928
4928
|
parseCoinNameFromType(coinType) {
|