@naviprotocol/wallet-client 1.3.2-dev.2 → 1.3.2-dev.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 CHANGED
@@ -64,7 +64,7 @@ class Me {
64
64
  throw new Error("subscribe not implemented.");
65
65
  }
66
66
  }
67
- class A {
67
+ class O {
68
68
  /**
69
69
  * Gets the current configuration for this module
70
70
  *
@@ -170,7 +170,7 @@ class E {
170
170
  return a.balances = e, a;
171
171
  }
172
172
  }
173
- class Le extends A {
173
+ class Le extends O {
174
174
  constructor() {
175
175
  super(...arguments), this.name = "balance", this.defaultConfig = {
176
176
  coinPollingInterval: 6e3,
@@ -374,11 +374,11 @@ async function ne(o, e, a, t) {
374
374
  await I(o, n, S, {
375
375
  amount: v
376
376
  });
377
- const O = await u.withdrawCoinPTB(o, s.suiCoinType, b), x = await z(
377
+ const A = await u.withdrawCoinPTB(o, s.suiCoinType, b), x = await z(
378
378
  i,
379
379
  o,
380
380
  p,
381
- O,
381
+ A,
382
382
  d
383
383
  ), k = o.moveCall({
384
384
  target: "0x2::coin::into_balance",
@@ -438,11 +438,11 @@ async function se(o, e, a, t) {
438
438
  W.forEach((_) => {
439
439
  S[C(_.coinType)] = _;
440
440
  });
441
- const O = (Y = S[C(n.suiCoinType)]) == null ? void 0 : Y.price, x = (Z = S[C(c.suiCoinType)]) == null ? void 0 : Z.price;
442
- if (!O || !x)
441
+ const A = (Y = S[C(n.suiCoinType)]) == null ? void 0 : Y.price, x = (Z = S[C(c.suiCoinType)]) == null ? void 0 : Z.price;
442
+ if (!A || !x)
443
443
  throw new Error("Fetch price failed");
444
444
  const k = Number(
445
- T(d).div(Math.pow(10, O.decimals)).multipliedBy(O).multipliedBy(1 + b).div(x).multipliedBy(Math.pow(10, c.token.decimals)).toFixed(0)
445
+ T(d).div(Math.pow(10, n.token.decimals)).multipliedBy(A).multipliedBy(1 + b).div(x).multipliedBy(Math.pow(10, c.token.decimals)).toFixed(0)
446
446
  ), [M, L] = await oe(o, n, h), [F] = o.moveCall({
447
447
  target: "0x2::coin::from_balance",
448
448
  arguments: [M],
@@ -587,7 +587,7 @@ class H {
587
587
  this.suilendClient.repay(this.obligationOwnerCap.obligationId, a, t, e), e.transferObjects([t], e.pure.address(this.walletClient.address));
588
588
  }
589
589
  }
590
- class qe extends A {
590
+ class qe extends O {
591
591
  constructor() {
592
592
  super(), this.name = "lending", this.defaultConfig = {
593
593
  env: "prod",
@@ -950,7 +950,7 @@ class qe extends A {
950
950
  this._protocols = e;
951
951
  }
952
952
  }
953
- class Ke extends A {
953
+ class Ke extends O {
954
954
  constructor() {
955
955
  super(...arguments), this.name = "volo", this.defaultConfig = {
956
956
  packageId: "0x68d22cf8bdbcd11ecba1e094922873e4080d4d11133e2443fddda0bfd11dae20",
@@ -1058,7 +1058,7 @@ class Ke extends A {
1058
1058
  }), this.walletClient.module("balance").updatePortfolio()), i;
1059
1059
  }
1060
1060
  }
1061
- class Qe extends A {
1061
+ class Qe extends O {
1062
1062
  constructor() {
1063
1063
  super(...arguments), this.name = "swap", this.defaultConfig = {
1064
1064
  apiKey: "",
@@ -1184,7 +1184,7 @@ class Qe extends A {
1184
1184
  return y;
1185
1185
  }
1186
1186
  }
1187
- class Ge extends A {
1187
+ class Ge extends O {
1188
1188
  constructor() {
1189
1189
  super(...arguments), this.name = "haedal", this.defaultConfig = {
1190
1190
  packageId: "0x3f45767c1aa95b25422f675800f02d8a813ec793a00b60667d071a77ba7178a2",