@0dotxyz/p0-ts-sdk 2.4.1 → 2.5.0-alpha.0

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/vendor.cjs CHANGED
@@ -31002,41 +31002,27 @@ function jupLendingStateRawToDto(raw) {
31002
31002
  function jupTokenReserveRawToDto(raw) {
31003
31003
  return {
31004
31004
  pubkey: raw.pubkey.toBase58(),
31005
- mint: raw.mint.toBase58(),
31006
- vault: raw.vault.toBase58(),
31007
31005
  borrowRate: raw.borrowRate,
31008
31006
  feeOnInterest: raw.feeOnInterest,
31009
31007
  lastUtilization: raw.lastUtilization,
31010
- lastUpdateTimestamp: raw.lastUpdateTimestamp.toString(),
31011
31008
  supplyExchangePrice: raw.supplyExchangePrice.toString(),
31012
31009
  borrowExchangePrice: raw.borrowExchangePrice.toString(),
31013
- maxUtilization: raw.maxUtilization,
31014
31010
  totalSupplyWithInterest: raw.totalSupplyWithInterest.toString(),
31015
31011
  totalSupplyInterestFree: raw.totalSupplyInterestFree.toString(),
31016
31012
  totalBorrowWithInterest: raw.totalBorrowWithInterest.toString(),
31017
- totalBorrowInterestFree: raw.totalBorrowInterestFree.toString(),
31018
- totalClaimAmount: raw.totalClaimAmount.toString(),
31019
- interactingProtocol: raw.interactingProtocol.toBase58(),
31020
- interactingTimestamp: raw.interactingTimestamp.toString(),
31021
- interactingBalance: raw.interactingBalance.toString()
31013
+ totalBorrowInterestFree: raw.totalBorrowInterestFree.toString()
31022
31014
  };
31023
31015
  }
31024
31016
  function jupLendingRewardsRateModelRawToDto(raw) {
31025
31017
  return {
31026
- pubkey: raw.pubkey.toBase58(),
31027
- mint: raw.mint.toBase58(),
31028
31018
  startTvl: raw.startTvl.toString(),
31029
31019
  duration: raw.duration.toString(),
31030
31020
  startTime: raw.startTime.toString(),
31031
- yearlyReward: raw.yearlyReward.toString(),
31032
- nextDuration: raw.nextDuration.toString(),
31033
- nextRewardAmount: raw.nextRewardAmount.toString()
31021
+ yearlyReward: raw.yearlyReward.toString()
31034
31022
  };
31035
31023
  }
31036
31024
  function jupRateModelRawToDto(raw) {
31037
31025
  return {
31038
- pubkey: raw.pubkey.toBase58(),
31039
- mint: raw.mint.toBase58(),
31040
31026
  version: raw.version,
31041
31027
  rateAtZero: raw.rateAtZero,
31042
31028
  kink1Utilization: raw.kink1Utilization,
@@ -31193,41 +31179,27 @@ function dtoToJupLendingStateRaw(dto) {
31193
31179
  function dtoToJupTokenReserveRaw(dto) {
31194
31180
  return {
31195
31181
  pubkey: new web3_js.PublicKey(dto.pubkey),
31196
- mint: new web3_js.PublicKey(dto.mint),
31197
- vault: new web3_js.PublicKey(dto.vault),
31198
31182
  borrowRate: dto.borrowRate,
31199
31183
  feeOnInterest: dto.feeOnInterest,
31200
31184
  lastUtilization: dto.lastUtilization,
31201
- lastUpdateTimestamp: new BN5__default.default(dto.lastUpdateTimestamp),
31202
31185
  supplyExchangePrice: new BN5__default.default(dto.supplyExchangePrice),
31203
31186
  borrowExchangePrice: new BN5__default.default(dto.borrowExchangePrice),
31204
- maxUtilization: dto.maxUtilization,
31205
31187
  totalSupplyWithInterest: new BN5__default.default(dto.totalSupplyWithInterest),
31206
31188
  totalSupplyInterestFree: new BN5__default.default(dto.totalSupplyInterestFree),
31207
31189
  totalBorrowWithInterest: new BN5__default.default(dto.totalBorrowWithInterest),
31208
- totalBorrowInterestFree: new BN5__default.default(dto.totalBorrowInterestFree),
31209
- totalClaimAmount: new BN5__default.default(dto.totalClaimAmount),
31210
- interactingProtocol: new web3_js.PublicKey(dto.interactingProtocol),
31211
- interactingTimestamp: new BN5__default.default(dto.interactingTimestamp),
31212
- interactingBalance: new BN5__default.default(dto.interactingBalance)
31190
+ totalBorrowInterestFree: new BN5__default.default(dto.totalBorrowInterestFree)
31213
31191
  };
31214
31192
  }
31215
31193
  function dtoToJupLendingRewardsRateModelRaw(dto) {
31216
31194
  return {
31217
- pubkey: new web3_js.PublicKey(dto.pubkey),
31218
- mint: new web3_js.PublicKey(dto.mint),
31219
31195
  startTvl: new BN5__default.default(dto.startTvl),
31220
31196
  duration: new BN5__default.default(dto.duration),
31221
31197
  startTime: new BN5__default.default(dto.startTime),
31222
- yearlyReward: new BN5__default.default(dto.yearlyReward),
31223
- nextDuration: new BN5__default.default(dto.nextDuration),
31224
- nextRewardAmount: new BN5__default.default(dto.nextRewardAmount)
31198
+ yearlyReward: new BN5__default.default(dto.yearlyReward)
31225
31199
  };
31226
31200
  }
31227
31201
  function dtoToJupRateModelRaw(dto) {
31228
31202
  return {
31229
- pubkey: new web3_js.PublicKey(dto.pubkey),
31230
- mint: new web3_js.PublicKey(dto.mint),
31231
31203
  version: dto.version,
31232
31204
  rateAtZero: dto.rateAtZero,
31233
31205
  kink1Utilization: dto.kink1Utilization,