@naviprotocol/lending 2.0.2 → 2.0.3
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.esm.js +71 -87
- package/dist/index.esm.js.map +1 -1
- package/dist/oracle.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -129,9 +129,9 @@ const oe = l.bytes(32).transform({
|
|
|
129
129
|
borrow_balance: l.u256(),
|
|
130
130
|
/** User's current supply balance */
|
|
131
131
|
supply_balance: l.u256()
|
|
132
|
-
}), Ge = "2.0.
|
|
132
|
+
}), Ge = "2.0.3", E = {
|
|
133
133
|
version: Ge
|
|
134
|
-
}, We =
|
|
134
|
+
}, We = E.version, He = () => {
|
|
135
135
|
if (typeof process < "u" && process.versions && process.versions.node) {
|
|
136
136
|
const e = process.version;
|
|
137
137
|
return `Node.js ${e.startsWith("v") ? e.substring(1) : e}`;
|
|
@@ -551,7 +551,7 @@ function Yt(e) {
|
|
|
551
551
|
function ue() {
|
|
552
552
|
return je;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function O(e) {
|
|
555
555
|
const t = e?.services?.naviOpenApi ?? J.services?.naviOpenApi;
|
|
556
556
|
return {
|
|
557
557
|
baseUrl: pt(t?.baseUrl ?? dt),
|
|
@@ -559,7 +559,7 @@ function E(e) {
|
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
561
|
function M(e, t) {
|
|
562
|
-
const r =
|
|
562
|
+
const r = O(t), o = e.startsWith("/") ? e : `/${e}`;
|
|
563
563
|
return `${r.baseUrl}${o}`;
|
|
564
564
|
}
|
|
565
565
|
function mt(e) {
|
|
@@ -614,7 +614,7 @@ async function q(e, t) {
|
|
|
614
614
|
});
|
|
615
615
|
return ft(n);
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function ke(e) {
|
|
618
618
|
return {
|
|
619
619
|
json: !!e?.showContent,
|
|
620
620
|
display: !!e?.showDisplay,
|
|
@@ -622,7 +622,7 @@ function Ie(e) {
|
|
|
622
622
|
objectBcs: !!e?.showBcs
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Ie(e) {
|
|
626
626
|
return !e || e instanceof Error ? {
|
|
627
627
|
error: e instanceof Error ? { code: "notFound", error: e.message } : void 0
|
|
628
628
|
} : {
|
|
@@ -648,9 +648,9 @@ async function yt(e, t) {
|
|
|
648
648
|
throw new Error("getSuiObject requires a Sui v2 Core-capable client");
|
|
649
649
|
const { object: o } = await r.getObject({
|
|
650
650
|
objectId: t.id,
|
|
651
|
-
include:
|
|
651
|
+
include: ke(t.options)
|
|
652
652
|
});
|
|
653
|
-
return
|
|
653
|
+
return Ie(o);
|
|
654
654
|
}
|
|
655
655
|
async function gt(e, t) {
|
|
656
656
|
const r = e?.core;
|
|
@@ -658,9 +658,9 @@ async function gt(e, t) {
|
|
|
658
658
|
throw new Error("multiGetSuiObjects requires a Sui v2 Core-capable client");
|
|
659
659
|
const { objects: o } = await r.getObjects({
|
|
660
660
|
objectIds: t.ids,
|
|
661
|
-
include:
|
|
661
|
+
include: ke(t.options)
|
|
662
662
|
});
|
|
663
|
-
return o.map(
|
|
663
|
+
return o.map(Ie);
|
|
664
664
|
}
|
|
665
665
|
function _e(e) {
|
|
666
666
|
const t = [];
|
|
@@ -777,8 +777,8 @@ var z = /* @__PURE__ */ ((e) => (e[e.Supply = 1] = "Supply", e[e.Withdraw = 2] =
|
|
|
777
777
|
const G = $(
|
|
778
778
|
A(
|
|
779
779
|
async (e) => {
|
|
780
|
-
const t = (e?.markets || [F.main]).map((a) => _(a)), r =
|
|
781
|
-
`/navi/pools?env=${e?.env || "prod"}&sdk=${
|
|
780
|
+
const t = (e?.markets || [F.main]).map((a) => _(a)), r = O(e), o = M(
|
|
781
|
+
`/navi/pools?env=${e?.env || "prod"}&sdk=${E.version}&market=${t.map(
|
|
782
782
|
(a) => a.key
|
|
783
783
|
)}`,
|
|
784
784
|
e
|
|
@@ -787,9 +787,9 @@ const G = $(
|
|
|
787
787
|
);
|
|
788
788
|
return n.data.forEach((a) => {
|
|
789
789
|
const i = n.meta.emodes.filter((b) => {
|
|
790
|
-
const
|
|
791
|
-
return a.market ===
|
|
792
|
-
}).filter((b) => !!b.assets.find((
|
|
790
|
+
const k = _(b.marketId);
|
|
791
|
+
return a.market === k.key && b.isActive;
|
|
792
|
+
}).filter((b) => !!b.assets.find((k) => k.assetId === a.id));
|
|
793
793
|
a.emodes = i;
|
|
794
794
|
const s = p(a.totalSupplyAmount).div(Math.pow(10, 9)).decimalPlaces(a.token.decimals, p.ROUND_DOWN).toString(), u = p(a.borrowedAmount).shiftedBy(-9).decimalPlaces(a.token.decimals, p.ROUND_DOWN).toString(), m = p(s).multipliedBy(a.oracle.price).toString(), w = p(u).multipliedBy(a.oracle.price).toString(), y = p(a.supplyCapCeiling).shiftedBy(-27).decimalPlaces(a.token.decimals, p.ROUND_DOWN).toString(), g = p.max(
|
|
795
795
|
p(a.borrowedAmount),
|
|
@@ -820,7 +820,7 @@ async function S(e, t) {
|
|
|
820
820
|
}
|
|
821
821
|
const Zt = $(
|
|
822
822
|
A(async (e) => {
|
|
823
|
-
const t =
|
|
823
|
+
const t = O(e), r = M(`/navi/stats?sdk=${E.version}`, e);
|
|
824
824
|
return (await fetch(r, {
|
|
825
825
|
headers: U(D, t)
|
|
826
826
|
}).then((n) => n.json())).data;
|
|
@@ -828,7 +828,7 @@ const Zt = $(
|
|
|
828
828
|
), Xt = $(
|
|
829
829
|
A(
|
|
830
830
|
async (e) => {
|
|
831
|
-
const t =
|
|
831
|
+
const t = O(e), r = M(`/navi/fee?sdk=${E.version}`, e);
|
|
832
832
|
return await fetch(r, {
|
|
833
833
|
headers: U(D, t)
|
|
834
834
|
}).then((n) => n.json());
|
|
@@ -1253,8 +1253,8 @@ const _ = (e) => {
|
|
|
1253
1253
|
), j = $(
|
|
1254
1254
|
A(
|
|
1255
1255
|
async (e) => {
|
|
1256
|
-
const t = _(e?.market || R), r =
|
|
1257
|
-
`/navi/config?env=${e?.env || "prod"}&sdk=${
|
|
1256
|
+
const t = _(e?.market || R), r = O(e), o = M(
|
|
1257
|
+
`/navi/config?env=${e?.env || "prod"}&sdk=${E.version}&market=${t.key}`,
|
|
1258
1258
|
e
|
|
1259
1259
|
);
|
|
1260
1260
|
return (await fetch(o, {
|
|
@@ -1263,7 +1263,7 @@ const _ = (e) => {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
)
|
|
1265
1265
|
), v = 1e3 * 60 * 5;
|
|
1266
|
-
async function
|
|
1266
|
+
async function kt(e, t) {
|
|
1267
1267
|
const r = await j({
|
|
1268
1268
|
cacheTime: v,
|
|
1269
1269
|
...t
|
|
@@ -1273,7 +1273,7 @@ async function It(e, t) {
|
|
|
1273
1273
|
arguments: []
|
|
1274
1274
|
});
|
|
1275
1275
|
}
|
|
1276
|
-
async function
|
|
1276
|
+
async function It(e, t, r) {
|
|
1277
1277
|
const o = await j({
|
|
1278
1278
|
cacheTime: v,
|
|
1279
1279
|
...r
|
|
@@ -1317,12 +1317,12 @@ async function ar(e, t, r) {
|
|
|
1317
1317
|
const o = await j({
|
|
1318
1318
|
cacheTime: v,
|
|
1319
1319
|
...r
|
|
1320
|
-
}), n = await
|
|
1320
|
+
}), n = await kt(e, r);
|
|
1321
1321
|
await _t(e, t, {
|
|
1322
1322
|
...r,
|
|
1323
1323
|
accountCap: n
|
|
1324
1324
|
});
|
|
1325
|
-
const a = await _(r?.market || R), c = await
|
|
1325
|
+
const a = await _(r?.market || R), c = await It(e, n, r);
|
|
1326
1326
|
return e.moveCall({
|
|
1327
1327
|
target: `${o.emode.contract.registryPackage}::registry::register_emode_for_account_cap`,
|
|
1328
1328
|
arguments: [
|
|
@@ -1446,13 +1446,13 @@ async function Ae(e, t, r) {
|
|
|
1446
1446
|
})).results || [], w = {};
|
|
1447
1447
|
s.forEach((d, f) => {
|
|
1448
1448
|
try {
|
|
1449
|
-
const b = m[f]?.returnValues?.map((T) => l.vector(qe).parse(Uint8Array.from(T[0])))[0] || [],
|
|
1449
|
+
const b = m[f]?.returnValues?.map((T) => l.vector(qe).parse(Uint8Array.from(T[0])))[0] || [], k = {};
|
|
1450
1450
|
for (const T of b)
|
|
1451
|
-
|
|
1451
|
+
k[T.id] = {
|
|
1452
1452
|
supplyIndex: T.supply_index,
|
|
1453
1453
|
borrowIndex: T.borrow_index
|
|
1454
1454
|
};
|
|
1455
|
-
w[d.key] =
|
|
1455
|
+
w[d.key] = k;
|
|
1456
1456
|
} catch (b) {
|
|
1457
1457
|
console.warn(
|
|
1458
1458
|
`[@naviprotocol/lending] Failed to decode reserve data for market "${d.key}", falling back to open-api pool indices`,
|
|
@@ -1462,19 +1462,19 @@ async function Ae(e, t, r) {
|
|
|
1462
1462
|
});
|
|
1463
1463
|
const y = m.slice(s.length).map((d) => d.returnValues?.map((f) => l.vector(ze).parse(Uint8Array.from(f[0])))[0] || []), g = [];
|
|
1464
1464
|
return y.forEach((d, f) => {
|
|
1465
|
-
const b = t[f],
|
|
1466
|
-
d.forEach((
|
|
1467
|
-
if (
|
|
1465
|
+
const b = t[f], k = _(b.market), T = w[k.key] || {};
|
|
1466
|
+
d.forEach((I) => {
|
|
1467
|
+
if (I.supply_balance === "0" && I.borrow_balance === "0" && (b.emodeId === void 0 || !r?.includeZeroBalanceEmodePositions))
|
|
1468
1468
|
return;
|
|
1469
|
-
const B = c[`${
|
|
1469
|
+
const B = c[`${k.key}-${I.asset_id}`];
|
|
1470
1470
|
if (!B)
|
|
1471
1471
|
return;
|
|
1472
|
-
const W = T[
|
|
1472
|
+
const W = T[I.asset_id], Y = W?.supplyIndex ?? B.currentSupplyIndex, Ee = W?.borrowIndex ?? B.currentBorrowIndex, Oe = de(I.supply_balance, Y).toString(), Ve = de(I.borrow_balance, Ee).toString();
|
|
1473
1473
|
g.push({
|
|
1474
|
-
supplyBalance:
|
|
1474
|
+
supplyBalance: Oe,
|
|
1475
1475
|
borrowBalance: Ve,
|
|
1476
|
-
assetId:
|
|
1477
|
-
market:
|
|
1476
|
+
assetId: I.asset_id,
|
|
1477
|
+
market: k.key,
|
|
1478
1478
|
pool: B,
|
|
1479
1479
|
emodeId: b.emodeId
|
|
1480
1480
|
});
|
|
@@ -1527,8 +1527,8 @@ const dr = A(
|
|
|
1527
1527
|
async (e, t) => {
|
|
1528
1528
|
const r = new URLSearchParams();
|
|
1529
1529
|
t?.cursor && r.set("cursor", t.cursor), r.set("userAddress", e);
|
|
1530
|
-
const o =
|
|
1531
|
-
`/navi/user/transactions?${r.toString()}&sdk=${
|
|
1530
|
+
const o = O(t), n = M(
|
|
1531
|
+
`/navi/user/transactions?${r.toString()}&sdk=${E.version}`,
|
|
1532
1532
|
t
|
|
1533
1533
|
);
|
|
1534
1534
|
return (await fetch(n, {
|
|
@@ -2073,23 +2073,7 @@ async function fe(e, t, r) {
|
|
|
2073
2073
|
a.length > 0 && await $t(e, a, r);
|
|
2074
2074
|
}
|
|
2075
2075
|
for (const n of t)
|
|
2076
|
-
|
|
2077
|
-
target: `${o.oracle.packageId}::oracle_pro::update_single_price`,
|
|
2078
|
-
arguments: [
|
|
2079
|
-
e.object("0x6"),
|
|
2080
|
-
// Clock object
|
|
2081
|
-
e.object(o.oracle.oracleConfig),
|
|
2082
|
-
// Oracle configuration
|
|
2083
|
-
e.object(o.oracle.priceOracle),
|
|
2084
|
-
// Price oracle contract
|
|
2085
|
-
e.object(o.oracle.supraOracleHolder),
|
|
2086
|
-
// Supra oracle holder
|
|
2087
|
-
e.object(n.pythPriceInfoObject),
|
|
2088
|
-
// Pyth price info object
|
|
2089
|
-
e.pure.address(n.feedId)
|
|
2090
|
-
// Price feed ID
|
|
2091
|
-
]
|
|
2092
|
-
}) : e.moveCall({
|
|
2076
|
+
e.moveCall({
|
|
2093
2077
|
target: `${o.oracle.packageId}::oracle_pro::update_single_price_v2`,
|
|
2094
2078
|
arguments: [
|
|
2095
2079
|
e.object("0x6"),
|
|
@@ -2115,7 +2099,7 @@ async function $e(e) {
|
|
|
2115
2099
|
cacheTime: v
|
|
2116
2100
|
})).oracle.feeds;
|
|
2117
2101
|
}
|
|
2118
|
-
function
|
|
2102
|
+
function Et(e, t) {
|
|
2119
2103
|
return e.filter((r) => !!(t?.lendingState && t.lendingState.find((n) => r.oracleId === n.pool.oracleId) || t?.lendingPositions && t.lendingPositions.find((n) => {
|
|
2120
2104
|
if (![
|
|
2121
2105
|
"navi-lending-supply",
|
|
@@ -2141,7 +2125,7 @@ async function yr(e, t, r, o) {
|
|
|
2141
2125
|
...o,
|
|
2142
2126
|
markets: c
|
|
2143
2127
|
});
|
|
2144
|
-
return n =
|
|
2128
|
+
return n = Et(a, {
|
|
2145
2129
|
lendingPositions: i,
|
|
2146
2130
|
pools: r
|
|
2147
2131
|
}), await fe(e, n, {
|
|
@@ -2166,8 +2150,8 @@ async function yr(e, t, r, o) {
|
|
|
2166
2150
|
const ne = $(
|
|
2167
2151
|
A(
|
|
2168
2152
|
async (e) => {
|
|
2169
|
-
const t =
|
|
2170
|
-
`/navi/flashloan?env=${e?.env || "prod"}&sdk=${
|
|
2153
|
+
const t = O(e), r = M(
|
|
2154
|
+
`/navi/flashloan?env=${e?.env || "prod"}&sdk=${E.version}&market=${e?.market || R}`,
|
|
2171
2155
|
e
|
|
2172
2156
|
), o = await fetch(r, {
|
|
2173
2157
|
headers: U(D, t)
|
|
@@ -2313,7 +2297,7 @@ async function br(e, t, r, o, n, a) {
|
|
|
2313
2297
|
return [m, w];
|
|
2314
2298
|
}
|
|
2315
2299
|
}
|
|
2316
|
-
async function
|
|
2300
|
+
async function Ot(e, t, r) {
|
|
2317
2301
|
const o = r?.client ?? V, n = await G({
|
|
2318
2302
|
...r,
|
|
2319
2303
|
markets: Object.values(F),
|
|
@@ -2362,9 +2346,9 @@ async function Et(e, t, r) {
|
|
|
2362
2346
|
const g = y[0].length;
|
|
2363
2347
|
for (let d = 0; d < g; d++) {
|
|
2364
2348
|
const f = a.find(
|
|
2365
|
-
(
|
|
2349
|
+
(k) => C(k.coinType) === C(y[1][d])
|
|
2366
2350
|
), b = n.find(
|
|
2367
|
-
(
|
|
2351
|
+
(k) => C(k.coinType) === C(y[0][d]) && k.market === i.market
|
|
2368
2352
|
);
|
|
2369
2353
|
!f || !b || c.push({
|
|
2370
2354
|
assetId: b.id,
|
|
@@ -2405,7 +2389,7 @@ async function vr(e, t) {
|
|
|
2405
2389
|
};
|
|
2406
2390
|
})
|
|
2407
2391
|
);
|
|
2408
|
-
return await
|
|
2392
|
+
return await Ot(e, n, t);
|
|
2409
2393
|
}
|
|
2410
2394
|
function Cr(e) {
|
|
2411
2395
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -2438,18 +2422,18 @@ function Cr(e) {
|
|
|
2438
2422
|
}
|
|
2439
2423
|
const jr = A(
|
|
2440
2424
|
async (e, t) => {
|
|
2441
|
-
const r =
|
|
2442
|
-
`/navi/user/total_claimed_reward?userAddress=${e}&sdk=${
|
|
2425
|
+
const r = O(t), o = M(
|
|
2426
|
+
`/navi/user/total_claimed_reward?userAddress=${e}&sdk=${E.version}&market=${t?.market || R}`,
|
|
2443
2427
|
t
|
|
2444
2428
|
);
|
|
2445
2429
|
return (await fetch(o, {
|
|
2446
2430
|
headers: U(D, r)
|
|
2447
2431
|
}).then((a) => a.json())).data;
|
|
2448
2432
|
}
|
|
2449
|
-
),
|
|
2433
|
+
), kr = A(
|
|
2450
2434
|
async (e, t) => {
|
|
2451
|
-
const r =
|
|
2452
|
-
`/navi/user/rewards?userAddress=${e}&page=${t?.page || 1}&pageSize=${t?.size || 400}&sdk=${
|
|
2435
|
+
const r = O(t), o = M(
|
|
2436
|
+
`/navi/user/rewards?userAddress=${e}&page=${t?.page || 1}&pageSize=${t?.size || 400}&sdk=${E.version}&market=${t?.market || R}`,
|
|
2453
2437
|
t
|
|
2454
2438
|
), n = await fetch(o, {
|
|
2455
2439
|
headers: U(D, r)
|
|
@@ -2459,7 +2443,7 @@ const jr = A(
|
|
|
2459
2443
|
});
|
|
2460
2444
|
}
|
|
2461
2445
|
);
|
|
2462
|
-
async function
|
|
2446
|
+
async function Ir(e, t, r) {
|
|
2463
2447
|
const o = await G({
|
|
2464
2448
|
...r,
|
|
2465
2449
|
markets: Object.values(F),
|
|
@@ -2491,17 +2475,17 @@ async function kr(e, t, r) {
|
|
|
2491
2475
|
cacheTime: v,
|
|
2492
2476
|
market: m
|
|
2493
2477
|
}), f = c.split("___")[0], b = o.filter(
|
|
2494
|
-
(
|
|
2478
|
+
(I) => C(I.suiCoinType) === C(f)
|
|
2495
2479
|
);
|
|
2496
|
-
b.sort((
|
|
2497
|
-
const
|
|
2480
|
+
b.sort((I, B) => I.market === m ? -1 : 1);
|
|
2481
|
+
const k = b[0], T = d.rewardFunds[C(f)];
|
|
2498
2482
|
if (!T)
|
|
2499
2483
|
throw new Error(`No matching rewardFund found for reward coin: ${f} ${m}`);
|
|
2500
2484
|
if (r?.accountCap && !r.customCoinReceive)
|
|
2501
2485
|
throw new Error("customCoinReceive is required when accountCap is provided");
|
|
2502
2486
|
if (r?.customCoinReceive) {
|
|
2503
|
-
let
|
|
2504
|
-
r.accountCap ?
|
|
2487
|
+
let I;
|
|
2488
|
+
r.accountCap ? I = e.moveCall({
|
|
2505
2489
|
target: `${d.package}::incentive_v3::claim_reward_with_account_cap`,
|
|
2506
2490
|
arguments: [
|
|
2507
2491
|
e.object("0x06"),
|
|
@@ -2520,7 +2504,7 @@ async function kr(e, t, r) {
|
|
|
2520
2504
|
// Account capability
|
|
2521
2505
|
],
|
|
2522
2506
|
typeArguments: [f]
|
|
2523
|
-
}) : g ?
|
|
2507
|
+
}) : g ? I = e.moveCall({
|
|
2524
2508
|
target: `${d.package}::incentive_v3::claim_reward_with_account_cap`,
|
|
2525
2509
|
arguments: [
|
|
2526
2510
|
e.object("0x06"),
|
|
@@ -2539,7 +2523,7 @@ async function kr(e, t, r) {
|
|
|
2539
2523
|
// Account capability
|
|
2540
2524
|
],
|
|
2541
2525
|
typeArguments: [f]
|
|
2542
|
-
}) :
|
|
2526
|
+
}) : I = e.moveCall({
|
|
2543
2527
|
target: `${d.package}::incentive_v3::claim_reward`,
|
|
2544
2528
|
arguments: [
|
|
2545
2529
|
e.object("0x06"),
|
|
@@ -2559,7 +2543,7 @@ async function kr(e, t, r) {
|
|
|
2559
2543
|
});
|
|
2560
2544
|
const [B] = e.moveCall({
|
|
2561
2545
|
target: "0x2::coin::from_balance",
|
|
2562
|
-
arguments: [
|
|
2546
|
+
arguments: [I],
|
|
2563
2547
|
typeArguments: [f]
|
|
2564
2548
|
});
|
|
2565
2549
|
if (r?.customCoinReceive.type === "transfer") {
|
|
@@ -2571,23 +2555,23 @@ async function kr(e, t, r) {
|
|
|
2571
2555
|
);
|
|
2572
2556
|
}
|
|
2573
2557
|
if (r?.customCoinReceive.type === "depositNAVI") {
|
|
2574
|
-
const W = p(
|
|
2558
|
+
const W = p(k.totalSupplyAmount).shiftedBy(-9), Y = p(k.supplyCapCeiling).shiftedBy(-27);
|
|
2575
2559
|
W.plus(u).isGreaterThan(Y) && r?.customCoinReceive.depositNAVI?.fallbackReceiveAddress ? e.transferObjects(
|
|
2576
2560
|
[B],
|
|
2577
2561
|
e.pure.address(r.customCoinReceive.depositNAVI.fallbackReceiveAddress)
|
|
2578
|
-
) : await vt(e,
|
|
2562
|
+
) : await vt(e, k, B, {
|
|
2579
2563
|
...r,
|
|
2580
|
-
market:
|
|
2564
|
+
market: k.market
|
|
2581
2565
|
});
|
|
2582
2566
|
} else
|
|
2583
2567
|
a.push({
|
|
2584
2568
|
coin: B,
|
|
2585
|
-
identifier:
|
|
2569
|
+
identifier: k,
|
|
2586
2570
|
owner: w,
|
|
2587
2571
|
isEMode: g
|
|
2588
2572
|
});
|
|
2589
2573
|
} else if (r?.accountCap || g) {
|
|
2590
|
-
const
|
|
2574
|
+
const I = e.moveCall({
|
|
2591
2575
|
target: `${d.package}::incentive_v3::claim_reward_with_account_cap`,
|
|
2592
2576
|
arguments: [
|
|
2593
2577
|
e.object("0x06"),
|
|
@@ -2608,7 +2592,7 @@ async function kr(e, t, r) {
|
|
|
2608
2592
|
typeArguments: [f]
|
|
2609
2593
|
}), [B] = e.moveCall({
|
|
2610
2594
|
target: "0x2::coin::from_balance",
|
|
2611
|
-
arguments: [
|
|
2595
|
+
arguments: [I],
|
|
2612
2596
|
typeArguments: [f]
|
|
2613
2597
|
});
|
|
2614
2598
|
e.transferObjects(
|
|
@@ -2658,9 +2642,9 @@ export {
|
|
|
2658
2642
|
ze as UserStateInfo,
|
|
2659
2643
|
er as borrowCoinPTB,
|
|
2660
2644
|
M as buildNaviOpenApiUrl,
|
|
2661
|
-
|
|
2645
|
+
Ir as claimLendingRewardsPTB,
|
|
2662
2646
|
Yt as configureNaviSdk,
|
|
2663
|
-
|
|
2647
|
+
kt as createAccountCapPTB,
|
|
2664
2648
|
ar as createEModeCapPTB,
|
|
2665
2649
|
ve as createNaviLegacyJsonRpcClient,
|
|
2666
2650
|
rt as createNaviSuiClient,
|
|
@@ -2669,9 +2653,9 @@ export {
|
|
|
2669
2653
|
ir as emodeIdentityId,
|
|
2670
2654
|
_t as enterEModePTB,
|
|
2671
2655
|
or as exitEModePTB,
|
|
2672
|
-
|
|
2656
|
+
Et as filterPriceFeeds,
|
|
2673
2657
|
hr as flashloanPTB,
|
|
2674
|
-
|
|
2658
|
+
It as getAccountCapOwnerPTB,
|
|
2675
2659
|
Jt as getAddressBalance,
|
|
2676
2660
|
ne as getAllFlashLoanAssets,
|
|
2677
2661
|
rr as getBorrowFee,
|
|
@@ -2697,7 +2681,7 @@ export {
|
|
|
2697
2681
|
Zt as getStats,
|
|
2698
2682
|
dr as getTransactions,
|
|
2699
2683
|
vr as getUserAvailableLendingRewards,
|
|
2700
|
-
|
|
2684
|
+
kr as getUserClaimedRewardHistory,
|
|
2701
2685
|
Be as getUserEModeCaps,
|
|
2702
2686
|
jr as getUserTotalClaimedReward,
|
|
2703
2687
|
br as liquidatePTB,
|
|
@@ -2711,7 +2695,7 @@ export {
|
|
|
2711
2695
|
tr as repayCoinPTB,
|
|
2712
2696
|
wr as repayFlashLoanPTB,
|
|
2713
2697
|
Qt as requireNaviGraphQLClient,
|
|
2714
|
-
|
|
2698
|
+
O as resolveNaviOpenApiEndpoint,
|
|
2715
2699
|
Cr as summaryLendingRewards,
|
|
2716
2700
|
yr as updateOraclePriceBeforeUserOperationPTB,
|
|
2717
2701
|
fe as updateOraclePricesPTB,
|