@scallop-io/sui-scallop-sdk 1.4.24 → 1.4.25

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": "1.4.24",
3
+ "version": "1.4.25",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -80,10 +80,10 @@
80
80
  "vitest": "^0.34.6"
81
81
  },
82
82
  "peerDependencies": {
83
+ "@mysten/bcs": "^1.2.0",
83
84
  "@mysten/sui": "1.3.1",
84
85
  "@scallop-io/sui-kit": "1.3.1",
85
- "bn.js": "^5.2.1",
86
- "@mysten/bcs": "^1.2.0"
86
+ "bn.js": "^5.2.1"
87
87
  },
88
88
  "lint-staged": {
89
89
  "**/*.ts": [
@@ -28,5 +28,6 @@ export const COIN_GECKGO_IDS: Record<SupportPoolCoins, string> = {
28
28
  // Isolated Asset
29
29
  fud: 'fud-the-pug',
30
30
  blub: 'blub',
31
- musd: '', // @TODO: add coinGecko id
31
+ musd: 'meta-usd',
32
+ ns: 'suins-token',
32
33
  };
@@ -51,6 +51,7 @@ export const SUPPORT_POOLS = [
51
51
  'fdusd',
52
52
  'blub',
53
53
  'musd',
54
+ 'ns',
54
55
  ] as const;
55
56
 
56
57
  export const SUPPORT_COLLATERALS = [
@@ -106,6 +107,7 @@ export const SUPPORT_SCOIN = [
106
107
  'sfdusd',
107
108
  'sblub',
108
109
  'smusd',
110
+ 'sns',
109
111
  ] as const;
110
112
 
111
113
  export const SUPPORT_SUI_BRIDGE = ['sbeth', 'sbusdt', 'sbwbtc'] as const;
@@ -23,6 +23,7 @@ export const coinDecimals: types.SupportCoinDecimals = {
23
23
  fud: 5,
24
24
  blub: 2,
25
25
  musd: 9,
26
+ ns: 6,
26
27
  susdc: 6,
27
28
  sweth: 8,
28
29
  ssbeth: 8,
@@ -44,6 +45,7 @@ export const coinDecimals: types.SupportCoinDecimals = {
44
45
  sfud: 5,
45
46
  sblub: 2,
46
47
  smusd: 9,
48
+ sns: 6,
47
49
  };
48
50
 
49
51
  export const assetCoins: types.AssetCoins = {
@@ -68,6 +70,7 @@ export const assetCoins: types.AssetCoins = {
68
70
  fud: 'fud',
69
71
  blub: 'blub',
70
72
  musd: 'musd',
73
+ ns: 'ns',
71
74
  };
72
75
 
73
76
  export const marketCoins: types.MarketCoins = {
@@ -92,6 +95,7 @@ export const marketCoins: types.MarketCoins = {
92
95
  sfud: 'sfud',
93
96
  sblub: 'sblub',
94
97
  smusd: 'smusd',
98
+ sns: 'sns',
95
99
  };
96
100
 
97
101
  export const sCoins: types.SCoins = {
@@ -115,6 +119,7 @@ export const sCoins: types.SCoins = {
115
119
  sdeep: 'sdeep',
116
120
  sblub: 'sblub',
117
121
  smusd: 'smusd',
122
+ sns: 'sns',
118
123
  };
119
124
 
120
125
  export const stakeMarketCoins: types.StakeMarketCoins = {
@@ -153,6 +158,8 @@ export const coinIds: types.AssetCoinIds = {
153
158
  sca: IS_VE_SCA_TEST
154
159
  ? '0x6cd813061a3adf3602b76545f076205f0c8e7ec1d3b1eab9a1da7992c18c0524'
155
160
  : '0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6',
161
+ musd: '0xe44df51c0b21a27ab915fa1fe2ca610cd3eaa6d9666fe5e62b988bf7f0bd8722',
162
+ ns: '0x5145494a5f5100e645e4b0aa950fa6b68f614e8c59e17bc5ded3495123a79178',
156
163
  // Wormhole assets
157
164
  weth: '0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5',
158
165
  wbtc: '0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881',
@@ -175,7 +182,6 @@ export const coinIds: types.AssetCoinIds = {
175
182
  sbeth: '0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29',
176
183
  sbusdt: '0x375f70cf2ae4c00bf37117d0c85a2c71545e6ee05c4a5c7d282cd66a4504b068',
177
184
  sbwbtc: '0xaafb102dd0902f5055cadecd687fb5b71ca82ef0e0285d90afde828ec58ca96b',
178
- musd: '0xe44df51c0b21a27ab915fa1fe2ca610cd3eaa6d9666fe5e62b988bf7f0bd8722',
179
185
  };
180
186
 
181
187
  export const wormholeCoinIds: types.WormholeCoinIds = {
@@ -197,6 +203,9 @@ export const sCoinIds: types.SCoinIds = {
197
203
  ssca: '0x5ca17430c1d046fae9edeaa8fd76c7b4193a00d764a0ecfa9418d733ad27bc1e::scallop_sca::SCALLOP_SCA',
198
204
  scetus:
199
205
  '0xea346ce428f91ab007210443efcea5f5cdbbb3aae7e9affc0ca93f9203c31f0c::scallop_cetus::SCALLOP_CETUS',
206
+ smusd:
207
+ '0x0a228d1c59071eccf3716076a1f71216846ee256d9fb07ea11fb7c1eb56435a5::scallop_musd::SCALLOP_MUSD',
208
+ sns: '0x6511052d2f1404934e0d877709949bcda7c1d451d1218a4b2643ca2f3fa93991::scallop_ns::SCALLOP_NS',
200
209
  // Wormhole assets
201
210
  sweth:
202
211
  '0x67540ceb850d418679e69f1fb6b2093d6df78a2a699ffc733f7646096d552e9b::scallop_wormhole_eth::SCALLOP_WORMHOLE_ETH',
@@ -233,8 +242,6 @@ export const sCoinIds: types.SCoinIds = {
233
242
  '0xb1d7df34829d1513b73ba17cb7ad90c88d1e104bb65ab8f62f13e0cc103783d3::scallop_sb_usdt::SCALLOP_SB_USDT',
234
243
  ssbwbtc:
235
244
  '0x08c0fe357d3a138f4552bee393ce3a28a45bebcca43373d6a90bc44ab76f82e2::scallop_sb_wbtc::SCALLOP_SB_WBTC',
236
- smusd:
237
- '0x0a228d1c59071eccf3716076a1f71216846ee256d9fb07ea11fb7c1eb56435a5::scallop_musd::SCALLOP_MUSD',
238
245
  } as const;
239
246
 
240
247
  export const sCoinTypeToName = Object.entries(sCoinIds).reduce(
@@ -825,4 +825,39 @@ export const POOL_ADDRESSES: OptionalKeys<
825
825
  pythFeedObjectId:
826
826
  '0x72fbf053d6009a40cff74d9708592bd7b86673a0e7b252077e1aa53390976584',
827
827
  },
828
+ ns: {
829
+ coinName: 'ns',
830
+ symbol: 'NS',
831
+ lendingPoolAddress:
832
+ '0x98491693e99905ce243655f1d2dc86b62d7c9c330985ee71d16760b63601708c',
833
+ borrowDynamic:
834
+ '0x320035fc3bdba3106f550531523b5eab623fc3b42639e6b27623838d121ef64a',
835
+ interestModel:
836
+ '0x6e3c7426f922c6e8538331d36918dc092a53e46d4bb478c36d09b40d0fddc3bf',
837
+ borrowFeeKey:
838
+ '0x9d99ae707899e1034401e8fb8524573a2603ac71a6d367f65d06fbb0ca586950',
839
+ supplyLimitKey:
840
+ '0xe6e87903708cbc09c8d5b005ddbec036efde2c58de4b52d4d8b9f10cb5c9a92b',
841
+ borrowLimitKey:
842
+ '0x3e958a562c6062e39559bb72feb2e4fa5595d629fcafe36a3a40546e0934bd8a',
843
+ isolatedAssetKey:
844
+ '0x73ebd841fdbe2a4b4f87fd58a729cba0a7a5871962dc04f5123339d1e0e64de8',
845
+ sCoinTreasury:
846
+ '0xa178587907006828839f312e6b5afa69e8aa9c66bdf06b2a5918bd8d913488e3',
847
+ sCoinType:
848
+ '0x6511052d2f1404934e0d877709949bcda7c1d451d1218a4b2643ca2f3fa93991::scallop_ns::SCALLOP_NS',
849
+ sCoinName: 'sns',
850
+ sCoinSymbol: 'sNS',
851
+ coinMetadataId:
852
+ '0x279adec041f8ec5c2d419abf2c32713ae7930a9a3a1ff244c88e5ceced40db6e',
853
+ coinType:
854
+ '0x5145494a5f5100e645e4b0aa950fa6b68f614e8c59e17bc5ded3495123a79178::ns::NS',
855
+ sCoinMetadataId:
856
+ '0x898320fe66409bdcf580e2a5764217aa51a6fb26890645efff7011b54117e6df',
857
+ decimals: 6,
858
+ pythFeed:
859
+ 'bb5ff26e47a3a6cc7ec2fce1db996c2a145300edc5acaabe43bf9ff7c5dd5d32',
860
+ pythFeedObjectId:
861
+ '0xc6352e1ea55d7b5acc3ed690cc3cdf8007978071d7bfd6a189445018cfb366e0',
862
+ },
828
863
  };
@@ -29,4 +29,5 @@ export const PYTH_FEED_IDS: Record<SupportPoolCoins, string> = {
29
29
  fud: '6a4090703da959247727f2b490eb21aea95c8684ecfac675f432008830890c75',
30
30
  blub: '5fc11ffe4975b624be495be038da30e30bee2004d8ae6282b5364577ef4ca92c',
31
31
  musd: '2ee09cdb656959379b9262f89de5ff3d4dfed0dd34c072b3e22518496a65249c',
32
+ ns: 'bb5ff26e47a3a6cc7ec2fce1db996c2a145300edc5acaabe43bf9ff7c5dd5d32',
32
33
  };