@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "2.3.13",
3
+ "version": "2.3.14-rc.1",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -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;
@@ -38,6 +38,7 @@ export type Whitelist = {
38
38
  scoin: Set<string>;
39
39
  suiBridge: Set<string>;
40
40
  wormhole: Set<string>;
41
+ layerZero: Set<string>;
41
42
  oracles: Set<string>;
42
43
  borrowIncentiveRewards: Set<string>;
43
44
  rewardsAsPoint: Set<string>;