@0dotxyz/p0-ts-sdk 1.1.0-alpha.8 → 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 +10 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +9 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,
|
|
@@ -40704,7 +40709,7 @@ var DISCRIMINATORS = {
|
|
|
40704
40709
|
LENDING_ACCOUNT_PULSE_HEALTH: Buffer.from([186, 52, 117, 97, 34, 74, 39, 253]),
|
|
40705
40710
|
LENDING_ACCOUNT_SORT_BALANCES: Buffer.from([187, 194, 110, 84, 82, 170, 204, 9]),
|
|
40706
40711
|
DRIFT_DEPOSIT: Buffer.from([252, 63, 250, 201, 98, 55, 130, 12]),
|
|
40707
|
-
DRIFT_WITHDRAW: Buffer.from([
|
|
40712
|
+
DRIFT_WITHDRAW: Buffer.from([86, 59, 186, 123, 183, 181, 234, 137])
|
|
40708
40713
|
};
|
|
40709
40714
|
function makeInitMarginfiAccountIx2(programId, accounts) {
|
|
40710
40715
|
const keys = [
|
|
@@ -40885,11 +40890,6 @@ function makeKaminoDepositIx2(programId, accounts, args, remainingAccounts = [])
|
|
|
40885
40890
|
},
|
|
40886
40891
|
{ pubkey: accounts.integrationAcc1, isSigner: false, isWritable: true },
|
|
40887
40892
|
{ pubkey: accounts.mint, isSigner: false, isWritable: false },
|
|
40888
|
-
{
|
|
40889
|
-
pubkey: accounts.reserveLiquidityMint,
|
|
40890
|
-
isSigner: false,
|
|
40891
|
-
isWritable: true
|
|
40892
|
-
},
|
|
40893
40893
|
{
|
|
40894
40894
|
pubkey: accounts.reserveLiquiditySupply,
|
|
40895
40895
|
isSigner: false,
|
|
@@ -41051,16 +41051,11 @@ function makelendingAccountWithdrawEmissionIx2(programId, accounts) {
|
|
|
41051
41051
|
{ pubkey: accounts.group, isSigner: false, isWritable: false },
|
|
41052
41052
|
{ pubkey: accounts.marginfiAccount, isSigner: false, isWritable: true },
|
|
41053
41053
|
{ pubkey: accounts.authority, isSigner: true, isWritable: false },
|
|
41054
|
-
{ pubkey: accounts.destinationAccount, isSigner: false, isWritable: true },
|
|
41055
41054
|
{ pubkey: accounts.bank, isSigner: false, isWritable: true },
|
|
41056
41055
|
{ pubkey: accounts.emissionsMint, isSigner: false, isWritable: false },
|
|
41057
41056
|
{ pubkey: accounts.emissionsAuth, isSigner: false, isWritable: false },
|
|
41058
|
-
{
|
|
41059
|
-
pubkey: accounts.emissionsTokenAccount,
|
|
41060
|
-
isSigner: false,
|
|
41061
|
-
isWritable: false
|
|
41062
|
-
},
|
|
41063
41057
|
{ pubkey: accounts.emissionsVault, isSigner: false, isWritable: true },
|
|
41058
|
+
{ pubkey: accounts.destinationAccount, isSigner: false, isWritable: true },
|
|
41064
41059
|
{ pubkey: accounts.tokenProgram, isSigner: false, isWritable: false }
|
|
41065
41060
|
];
|
|
41066
41061
|
return new web3_js.TransactionInstruction({
|
|
@@ -42227,7 +42222,6 @@ async function makeKaminoDepositIx3({
|
|
|
42227
42222
|
bank: bank.address,
|
|
42228
42223
|
signerTokenAccount: userTokenAtaPk,
|
|
42229
42224
|
lendingMarket: reserve.lendingMarket,
|
|
42230
|
-
reserveLiquidityMint: bank.mint,
|
|
42231
42225
|
integrationAcc2: bank.kaminoIntegrationAccounts.kaminoObligation,
|
|
42232
42226
|
integrationAcc1: bank.kaminoIntegrationAccounts.kaminoReserve,
|
|
42233
42227
|
mint: bank.mint,
|
|
@@ -42249,7 +42243,6 @@ async function makeKaminoDepositIx3({
|
|
|
42249
42243
|
bank: bank.address,
|
|
42250
42244
|
signerTokenAccount: userTokenAtaPk,
|
|
42251
42245
|
lendingMarket: reserve.lendingMarket,
|
|
42252
|
-
reserveLiquidityMint: bank.mint,
|
|
42253
42246
|
lendingMarketAuthority,
|
|
42254
42247
|
reserveLiquiditySupply,
|
|
42255
42248
|
reserveCollateralMint,
|
|
@@ -48023,6 +48016,8 @@ exports.JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX = JUP_SWAP_LUT_PROGRAM_AUTHORITY_IN
|
|
|
48023
48016
|
exports.LST_MINT = LST_MINT;
|
|
48024
48017
|
exports.MARGINFI_IDL = MARGINFI_IDL;
|
|
48025
48018
|
exports.MARGINFI_PROGRAM = MARGINFI_PROGRAM;
|
|
48019
|
+
exports.MARGINFI_PROGRAM_STAGING = MARGINFI_PROGRAM_STAGING;
|
|
48020
|
+
exports.MARGINFI_PROGRAM_STAGING_ALT = MARGINFI_PROGRAM_STAGING_ALT;
|
|
48026
48021
|
exports.MARGINFI_SPONSORED_SHARD_ID = MARGINFI_SPONSORED_SHARD_ID;
|
|
48027
48022
|
exports.MAX_CONFIDENCE_INTERVAL_RATIO = MAX_CONFIDENCE_INTERVAL_RATIO;
|
|
48028
48023
|
exports.MAX_TX_SIZE = MAX_TX_SIZE;
|