@scallop-io/sui-scallop-sdk 2.3.13 → 2.3.14-rc.1
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/models/scallopUtils.ts +9 -0
- package/src/types/constant/common.ts +1 -0
package/package.json
CHANGED
|
@@ -75,6 +75,10 @@ class ScallopUtils implements ScallopUtilsInterface {
|
|
|
75
75
|
return this.constants.whitelist.wormhole.has(coinName);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
isLayerZeroAsset(coinName: any) {
|
|
79
|
+
return this.constants.whitelist.layerZero.has(coinName);
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
isMarketCoin(coinName: string) {
|
|
79
83
|
const assetCoinName = coinName.slice(1).toLowerCase() as string;
|
|
80
84
|
return (
|
|
@@ -258,6 +262,11 @@ class ScallopUtils implements ScallopUtilsInterface {
|
|
|
258
262
|
from: 'Wormhole',
|
|
259
263
|
type: 'Portal from Ethereum',
|
|
260
264
|
};
|
|
265
|
+
} else if (this.isLayerZeroAsset(assetCoinName)) {
|
|
266
|
+
return {
|
|
267
|
+
from: 'LayerZero',
|
|
268
|
+
type: 'Ominchain Fungible Token from LayerZero',
|
|
269
|
+
};
|
|
261
270
|
}
|
|
262
271
|
|
|
263
272
|
return undefined;
|