@elmntl/jlpd-sdk 0.1.8 → 0.1.9

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.d.mts CHANGED
@@ -3025,6 +3025,9 @@ interface UpdateStvParams$1 {
3025
3025
  minDeposit?: BN;
3026
3026
  flags?: number;
3027
3027
  jlMint?: PublicKey;
3028
+ pps?: BN;
3029
+ hwm?: BN;
3030
+ baseLoaned?: BN;
3028
3031
  }
3029
3032
  interface InitializeStvParams$1 {
3030
3033
  poolName: PoolName;
@@ -3523,6 +3526,9 @@ interface UpdateStvParams {
3523
3526
  maxDeposit: BN;
3524
3527
  minDeposit: BN;
3525
3528
  jlMint: PublicKey | null;
3529
+ pps: BN | null;
3530
+ hwm: BN | null;
3531
+ baseLoaned: BN | null;
3526
3532
  }
3527
3533
  interface InitOrUpdateJlpVaultAccounts {
3528
3534
  admin: PublicKey;
package/dist/index.d.ts CHANGED
@@ -3025,6 +3025,9 @@ interface UpdateStvParams$1 {
3025
3025
  minDeposit?: BN;
3026
3026
  flags?: number;
3027
3027
  jlMint?: PublicKey;
3028
+ pps?: BN;
3029
+ hwm?: BN;
3030
+ baseLoaned?: BN;
3028
3031
  }
3029
3032
  interface InitializeStvParams$1 {
3030
3033
  poolName: PoolName;
@@ -3523,6 +3526,9 @@ interface UpdateStvParams {
3523
3526
  maxDeposit: BN;
3524
3527
  minDeposit: BN;
3525
3528
  jlMint: PublicKey | null;
3529
+ pps: BN | null;
3530
+ hwm: BN | null;
3531
+ baseLoaned: BN | null;
3526
3532
  }
3527
3533
  interface InitOrUpdateJlpVaultAccounts {
3528
3534
  admin: PublicKey;
package/dist/index.js CHANGED
@@ -3655,7 +3655,10 @@ async function createUpdateStvInstruction(program, params, accounts) {
3655
3655
  flags: params.flags,
3656
3656
  maxDeposit: params.maxDeposit,
3657
3657
  minDeposit: params.minDeposit,
3658
- jlMint: params.jlMint
3658
+ jlMint: params.jlMint,
3659
+ pps: params.pps,
3660
+ hwm: params.hwm,
3661
+ baseLoaned: params.baseLoaned
3659
3662
  }).accounts({
3660
3663
  admin: accounts.admin,
3661
3664
  jlpVault: accounts.jlpVault,
@@ -4191,8 +4194,10 @@ var PoolContext = class {
4191
4194
  flags: params.flags ?? stv.flags,
4192
4195
  maxDeposit: params.maxDeposit ?? stv.maxDeposit,
4193
4196
  minDeposit: params.minDeposit ?? stv.minDeposit,
4194
- jlMint: params.jlMint ?? null
4195
- // null means no change (Option::None on-chain)
4197
+ jlMint: params.jlMint ?? null,
4198
+ pps: params.pps ?? null,
4199
+ hwm: params.hwm ?? null,
4200
+ baseLoaned: params.baseLoaned ?? null
4196
4201
  },
4197
4202
  {
4198
4203
  admin: params.admin,
package/dist/index.mjs CHANGED
@@ -3562,7 +3562,10 @@ async function createUpdateStvInstruction(program, params, accounts) {
3562
3562
  flags: params.flags,
3563
3563
  maxDeposit: params.maxDeposit,
3564
3564
  minDeposit: params.minDeposit,
3565
- jlMint: params.jlMint
3565
+ jlMint: params.jlMint,
3566
+ pps: params.pps,
3567
+ hwm: params.hwm,
3568
+ baseLoaned: params.baseLoaned
3566
3569
  }).accounts({
3567
3570
  admin: accounts.admin,
3568
3571
  jlpVault: accounts.jlpVault,
@@ -4098,8 +4101,10 @@ var PoolContext = class {
4098
4101
  flags: params.flags ?? stv.flags,
4099
4102
  maxDeposit: params.maxDeposit ?? stv.maxDeposit,
4100
4103
  minDeposit: params.minDeposit ?? stv.minDeposit,
4101
- jlMint: params.jlMint ?? null
4102
- // null means no change (Option::None on-chain)
4104
+ jlMint: params.jlMint ?? null,
4105
+ pps: params.pps ?? null,
4106
+ hwm: params.hwm ?? null,
4107
+ baseLoaned: params.baseLoaned ?? null
4103
4108
  },
4104
4109
  {
4105
4110
  admin: params.admin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmntl/jlpd-sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "SDK for JLP.D (JLP Deconstructed) by Elemental",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",