@0dotxyz/p0-ts-sdk 1.1.0-alpha.7 → 1.1.0-alpha.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.cjs CHANGED
@@ -274,6 +274,12 @@ var DISABLED_FLAG = 1 << 0;
274
274
  var FLASHLOAN_ENABLED_FLAG = 1 << 2;
275
275
  var TRANSFER_ACCOUNT_AUTHORITY_FLAG = 1 << 3;
276
276
  var MARGINFI_PROGRAM = new web3_js.PublicKey("MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA");
277
+ var MARGINFI_PROGRAM_STAGING = new web3_js.PublicKey(
278
+ "stag8sTKds2h4KzjUw3zKTsxbqvT4XKHdaR9X9E6Rct"
279
+ );
280
+ var MARGINFI_PROGRAM_STAGING_ALT = new web3_js.PublicKey(
281
+ "5UDghkpgW1HfYSrmEj2iAApHShqU44H6PKTAar9LL9bY"
282
+ );
277
283
  var ADDRESS_LOOKUP_TABLE_FOR_GROUP = {
278
284
  "4qp6Fx6tnZkY5Wropq9wUYgtFxXKwE6viZxFHg3rdAG8": [
279
285
  new web3_js.PublicKey("BrWF8J3CEuHaXsWk3kqGZ6VHvRp4SJuG9AzvB6ei2kbV"),
@@ -13019,7 +13025,6 @@ async function makeKaminoDepositIx(mfProgram, accounts, args, remainingAccounts
13019
13025
  bank,
13020
13026
  signerTokenAccount,
13021
13027
  lendingMarket,
13022
- reserveLiquidityMint,
13023
13028
  lendingMarketAuthority,
13024
13029
  reserveLiquiditySupply,
13025
13030
  reserveCollateralMint,
@@ -32856,7 +32861,8 @@ function driftSpotMarketRawToDto(spotMarketRaw) {
32856
32861
  minBorrowRate: spotMarketRaw.minBorrowRate,
32857
32862
  insuranceFund: {
32858
32863
  totalFactor: spotMarketRaw.insuranceFund.totalFactor
32859
- }
32864
+ },
32865
+ poolId: spotMarketRaw.poolId
32860
32866
  };
32861
32867
  }
32862
32868
  function driftRewardsRawToDto(rewardsRaw) {
@@ -32997,7 +33003,8 @@ function dtoToDriftSpotMarketRaw(spotMarketDto) {
32997
33003
  optimalBorrowRate: spotMarketDto.optimalBorrowRate,
32998
33004
  maxBorrowRate: spotMarketDto.maxBorrowRate,
32999
33005
  minBorrowRate: spotMarketDto.minBorrowRate,
33000
- insuranceFund: spotMarketDto.insuranceFund
33006
+ insuranceFund: spotMarketDto.insuranceFund,
33007
+ poolId: spotMarketDto.poolId
33001
33008
  };
33002
33009
  }
33003
33010
  var DRIFT_PROGRAM_ID = new web3_js.PublicKey(
@@ -40702,7 +40709,7 @@ var DISCRIMINATORS = {
40702
40709
  LENDING_ACCOUNT_PULSE_HEALTH: Buffer.from([186, 52, 117, 97, 34, 74, 39, 253]),
40703
40710
  LENDING_ACCOUNT_SORT_BALANCES: Buffer.from([187, 194, 110, 84, 82, 170, 204, 9]),
40704
40711
  DRIFT_DEPOSIT: Buffer.from([252, 63, 250, 201, 98, 55, 130, 12]),
40705
- DRIFT_WITHDRAW: Buffer.from([178, 238, 229, 72, 126, 212, 78, 103])
40712
+ DRIFT_WITHDRAW: Buffer.from([86, 59, 186, 123, 183, 181, 234, 137])
40706
40713
  };
40707
40714
  function makeInitMarginfiAccountIx2(programId, accounts) {
40708
40715
  const keys = [
@@ -40883,11 +40890,6 @@ function makeKaminoDepositIx2(programId, accounts, args, remainingAccounts = [])
40883
40890
  },
40884
40891
  { pubkey: accounts.integrationAcc1, isSigner: false, isWritable: true },
40885
40892
  { pubkey: accounts.mint, isSigner: false, isWritable: false },
40886
- {
40887
- pubkey: accounts.reserveLiquidityMint,
40888
- isSigner: false,
40889
- isWritable: true
40890
- },
40891
40893
  {
40892
40894
  pubkey: accounts.reserveLiquiditySupply,
40893
40895
  isSigner: false,
@@ -41049,16 +41051,11 @@ function makelendingAccountWithdrawEmissionIx2(programId, accounts) {
41049
41051
  { pubkey: accounts.group, isSigner: false, isWritable: false },
41050
41052
  { pubkey: accounts.marginfiAccount, isSigner: false, isWritable: true },
41051
41053
  { pubkey: accounts.authority, isSigner: true, isWritable: false },
41052
- { pubkey: accounts.destinationAccount, isSigner: false, isWritable: true },
41053
41054
  { pubkey: accounts.bank, isSigner: false, isWritable: true },
41054
41055
  { pubkey: accounts.emissionsMint, isSigner: false, isWritable: false },
41055
41056
  { pubkey: accounts.emissionsAuth, isSigner: false, isWritable: false },
41056
- {
41057
- pubkey: accounts.emissionsTokenAccount,
41058
- isSigner: false,
41059
- isWritable: false
41060
- },
41061
41057
  { pubkey: accounts.emissionsVault, isSigner: false, isWritable: true },
41058
+ { pubkey: accounts.destinationAccount, isSigner: false, isWritable: true },
41062
41059
  { pubkey: accounts.tokenProgram, isSigner: false, isWritable: false }
41063
41060
  ];
41064
41061
  return new web3_js.TransactionInstruction({
@@ -42225,7 +42222,6 @@ async function makeKaminoDepositIx3({
42225
42222
  bank: bank.address,
42226
42223
  signerTokenAccount: userTokenAtaPk,
42227
42224
  lendingMarket: reserve.lendingMarket,
42228
- reserveLiquidityMint: bank.mint,
42229
42225
  integrationAcc2: bank.kaminoIntegrationAccounts.kaminoObligation,
42230
42226
  integrationAcc1: bank.kaminoIntegrationAccounts.kaminoReserve,
42231
42227
  mint: bank.mint,
@@ -42247,7 +42243,6 @@ async function makeKaminoDepositIx3({
42247
42243
  bank: bank.address,
42248
42244
  signerTokenAccount: userTokenAtaPk,
42249
42245
  lendingMarket: reserve.lendingMarket,
42250
- reserveLiquidityMint: bank.mint,
42251
42246
  lendingMarketAuthority,
42252
42247
  reserveLiquiditySupply,
42253
42248
  reserveCollateralMint,
@@ -48021,6 +48016,8 @@ exports.JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX = JUP_SWAP_LUT_PROGRAM_AUTHORITY_IN
48021
48016
  exports.LST_MINT = LST_MINT;
48022
48017
  exports.MARGINFI_IDL = MARGINFI_IDL;
48023
48018
  exports.MARGINFI_PROGRAM = MARGINFI_PROGRAM;
48019
+ exports.MARGINFI_PROGRAM_STAGING = MARGINFI_PROGRAM_STAGING;
48020
+ exports.MARGINFI_PROGRAM_STAGING_ALT = MARGINFI_PROGRAM_STAGING_ALT;
48024
48021
  exports.MARGINFI_SPONSORED_SHARD_ID = MARGINFI_SPONSORED_SHARD_ID;
48025
48022
  exports.MAX_CONFIDENCE_INTERVAL_RATIO = MAX_CONFIDENCE_INTERVAL_RATIO;
48026
48023
  exports.MAX_TX_SIZE = MAX_TX_SIZE;