@jup-ag/lend 0.0.101 → 0.0.102

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.
@@ -3,7 +3,7 @@ import BN from 'bn.js';
3
3
  import { Program, AnchorProvider } from '@coral-xyz/anchor';
4
4
  import { l as liquidity } from '../shared/lend.CioR9-te.mjs';
5
5
  import { getAssociatedTokenAddressSync, ASSOCIATED_TOKEN_PROGRAM_ID, TOKEN_PROGRAM_ID } from '@solana/spl-token';
6
- import { g as getTickHasDebt, v as vaults, a as getPosition, c as getTick, d as getTickIdLiquidation, e as getVaultConfig, f as getBranch, h as getVaultState, i as getVaultMetadata, j as getLiquidity, k as getRateModel, l as getUserBorrowPosition, m as getUserSupplyPosition, n as getLiquidityReserve, o as getPositionTokenAccount, p as getPositionMetadata, q as getPositionMint, r as getVaultAdmin, s as getClaimAccount } from '../shared/lend.qfqiaCtm.mjs';
6
+ import { g as getTickHasDebt, v as vaults, a as getPosition, c as getTick, d as getTickIdLiquidation, e as getVaultConfig, f as getBranch, h as getVaultState, i as getVaultMetadata, j as getLiquidity, k as getRateModel, l as getUserBorrowPosition, m as getUserSupplyPosition, n as getLiquidityReserve, o as getPositionTokenAccount, p as getPositionMetadata, q as getPositionMint, r as getVaultAdmin, s as getClaimAccount } from '../shared/lend.BWTZqUUK.mjs';
7
7
  import { e as getReserve } from '../shared/lend.BzG5ldOV.mjs';
8
8
 
9
9
  const address = "jupnw4B6Eqs7ft6rxpzYLJZYSnrpRgPcr589n5Kv4oc";
@@ -234,6 +234,35 @@ const instructions = [
234
234
  }
235
235
  ]
236
236
  },
237
+ {
238
+ name: "update_authority",
239
+ discriminator: [
240
+ 32,
241
+ 46,
242
+ 64,
243
+ 28,
244
+ 149,
245
+ 75,
246
+ 243,
247
+ 88
248
+ ],
249
+ accounts: [
250
+ {
251
+ name: "authority",
252
+ signer: true
253
+ },
254
+ {
255
+ name: "oracle_admin",
256
+ writable: true
257
+ }
258
+ ],
259
+ args: [
260
+ {
261
+ name: "new_authority",
262
+ type: "pubkey"
263
+ }
264
+ ]
265
+ },
237
266
  {
238
267
  name: "update_auths",
239
268
  discriminator: [
@@ -299,6 +328,19 @@ const accounts = [
299
328
  }
300
329
  ];
301
330
  const events = [
331
+ {
332
+ name: "LogStakePoolHighFeeDetected",
333
+ discriminator: [
334
+ 198,
335
+ 106,
336
+ 149,
337
+ 7,
338
+ 25,
339
+ 83,
340
+ 39,
341
+ 155
342
+ ]
343
+ },
302
344
  {
303
345
  name: "LogUpdateAuthority",
304
346
  discriminator: [
@@ -401,6 +443,26 @@ const errors = [
401
443
  code: 6014,
402
444
  name: "InvalidPrice",
403
445
  msg: "INVALID_PRICE"
446
+ },
447
+ {
448
+ code: 6015,
449
+ name: "FeeTooHigh",
450
+ msg: "FEE_TOO_HIGH"
451
+ },
452
+ {
453
+ code: 6016,
454
+ name: "RedstonePriceOverflow",
455
+ msg: "REDSTONE_PRICE_OVERFLOW"
456
+ },
457
+ {
458
+ code: 6017,
459
+ name: "TimestampExpected",
460
+ msg: "TIMESTAMP_EXPECTED"
461
+ },
462
+ {
463
+ code: 6018,
464
+ name: "ChainlinkPriceReadError",
465
+ msg: "CHAINLINK_PRICE_READ_ERROR"
404
466
  }
405
467
  ];
406
468
  const types = [
@@ -420,6 +482,22 @@ const types = [
420
482
  ]
421
483
  }
422
484
  },
485
+ {
486
+ name: "LogStakePoolHighFeeDetected",
487
+ type: {
488
+ kind: "struct",
489
+ fields: [
490
+ {
491
+ name: "stake_pool",
492
+ type: "pubkey"
493
+ },
494
+ {
495
+ name: "epoch",
496
+ type: "u64"
497
+ }
498
+ ]
499
+ }
500
+ },
423
501
  {
424
502
  name: "LogUpdateAuthority",
425
503
  type: {
@@ -504,6 +582,15 @@ const types = [
504
582
  },
505
583
  {
506
584
  name: "StakePool"
585
+ },
586
+ {
587
+ name: "MsolPool"
588
+ },
589
+ {
590
+ name: "Redstone"
591
+ },
592
+ {
593
+ name: "Chainlink"
507
594
  }
508
595
  ]
509
596
  }