@kamino-finance/klend-sdk 7.1.4-beta.0 → 7.1.5
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/@codegen/klend/accounts/LendingMarket.d.ts +3 -144
- package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/LendingMarket.js +3 -105
- package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.d.ts +15 -30
- package/dist/@codegen/klend/accounts/Obligation.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.js +21 -31
- package/dist/@codegen/klend/accounts/Obligation.js.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.d.ts +0 -6
- package/dist/@codegen/klend/accounts/Reserve.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.js +2 -9
- package/dist/@codegen/klend/accounts/Reserve.js.map +1 -1
- package/dist/@codegen/klend/accounts/UserState.d.ts +75 -0
- package/dist/@codegen/klend/accounts/UserState.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/UserState.js +25 -0
- package/dist/@codegen/klend/accounts/UserState.js.map +1 -1
- package/dist/@codegen/klend/accounts/index.d.ts +0 -6
- package/dist/@codegen/klend/accounts/index.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/index.js +1 -7
- package/dist/@codegen/klend/accounts/index.js.map +1 -1
- package/dist/@codegen/klend/errors/custom.d.ts +2 -226
- package/dist/@codegen/klend/errors/custom.d.ts.map +1 -1
- package/dist/@codegen/klend/errors/custom.js +3 -396
- package/dist/@codegen/klend/errors/custom.js.map +1 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts +2 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.js +2 -6
- package/dist/@codegen/klend/instructions/idlMissingTypes.js.map +1 -1
- package/dist/@codegen/klend/instructions/index.d.ts +0 -16
- package/dist/@codegen/klend/instructions/index.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/index.js +1 -18
- package/dist/@codegen/klend/instructions/index.js.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.d.ts +1 -1
- package/dist/@codegen/klend/instructions/initReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.js +5 -1
- package/dist/@codegen/klend/instructions/initReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.js +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.js +0 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.js.map +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.js +0 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js +1 -1
- package/dist/@codegen/klend/types/AssetTier.d.ts +45 -0
- package/dist/@codegen/klend/types/AssetTier.d.ts.map +1 -0
- package/dist/@codegen/klend/types/AssetTier.js +132 -0
- package/dist/@codegen/klend/types/AssetTier.js.map +1 -0
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts +5 -35
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ObligationLiquidity.js +7 -17
- package/dist/@codegen/klend/types/ObligationLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/ObligationOrder.d.ts +4 -4
- package/dist/@codegen/klend/types/ObligationOrder.js +2 -2
- package/dist/@codegen/klend/types/ReserveConfig.d.ts +29 -141
- package/dist/@codegen/klend/types/ReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveConfig.js +25 -89
- package/dist/@codegen/klend/types/ReserveConfig.js.map +1 -1
- package/dist/@codegen/klend/types/ReserveFees.d.ts +8 -8
- package/dist/@codegen/klend/types/ReserveFees.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveFees.js +8 -8
- package/dist/@codegen/klend/types/ReserveFees.js.map +1 -1
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts +8 -26
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveLiquidity.js +8 -14
- package/dist/@codegen/klend/types/ReserveLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts +14 -92
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.js +23 -168
- package/dist/@codegen/klend/types/UpdateConfigMode.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts +0 -130
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js +1 -241
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js.map +1 -1
- package/dist/@codegen/klend/types/index.d.ts +8 -10
- package/dist/@codegen/klend/types/index.d.ts.map +1 -1
- package/dist/@codegen/klend/types/index.js +3 -7
- package/dist/@codegen/klend/types/index.js.map +1 -1
- package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts +4 -9
- package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts.map +1 -1
- package/dist/@codegen/klend/zero_padding/ObligationZP.js +13 -22
- package/dist/@codegen/klend/zero_padding/ObligationZP.js.map +1 -1
- package/dist/classes/action.d.ts +3 -30
- package/dist/classes/action.d.ts.map +1 -1
- package/dist/classes/action.js +10 -364
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/manager.d.ts +3 -2
- package/dist/classes/manager.d.ts.map +1 -1
- package/dist/classes/manager.js +3 -12
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/market.d.ts +2 -6
- package/dist/classes/market.d.ts.map +1 -1
- package/dist/classes/market.js +6 -26
- package/dist/classes/market.js.map +1 -1
- package/dist/classes/obligation.js +1 -1
- package/dist/classes/obligation.js.map +1 -1
- package/dist/classes/reserve.d.ts.map +1 -1
- package/dist/classes/reserve.js +7 -13
- package/dist/classes/reserve.js.map +1 -1
- package/dist/classes/unstakingPool.d.ts +3 -20
- package/dist/classes/unstakingPool.d.ts.map +1 -1
- package/dist/classes/unstakingPool.js +8 -62
- package/dist/classes/unstakingPool.js.map +1 -1
- package/dist/classes/vault.d.ts +2 -1
- package/dist/classes/vault.d.ts.map +1 -1
- package/dist/classes/vault.js +59 -38
- package/dist/classes/vault.js.map +1 -1
- package/dist/idl/klend.json +293 -2186
- package/dist/lending_operations/index.d.ts +0 -1
- package/dist/lending_operations/index.d.ts.map +1 -1
- package/dist/lending_operations/index.js +0 -1
- package/dist/lending_operations/index.js.map +1 -1
- package/dist/manager/client_kamino_manager.js +9 -12
- package/dist/manager/client_kamino_manager.js.map +1 -1
- package/dist/utils/ata.d.ts +10 -1
- package/dist/utils/ata.d.ts.map +1 -1
- package/dist/utils/ata.js +47 -0
- package/dist/utils/ata.js.map +1 -1
- package/dist/utils/managerTypes.d.ts.map +1 -1
- package/dist/utils/managerTypes.js +4 -9
- package/dist/utils/managerTypes.js.map +1 -1
- package/dist/utils/seeds.d.ts +14 -10
- package/dist/utils/seeds.d.ts.map +1 -1
- package/dist/utils/seeds.js +22 -25
- package/dist/utils/seeds.js.map +1 -1
- package/package.json +1 -1
- package/src/@codegen/klend/accounts/LendingMarket.ts +5 -210
- package/src/@codegen/klend/accounts/Obligation.ts +31 -53
- package/src/@codegen/klend/accounts/Reserve.ts +2 -13
- package/src/@codegen/klend/accounts/UserState.ts +75 -0
- package/src/@codegen/klend/accounts/index.ts +0 -6
- package/src/@codegen/klend/errors/custom.ts +2 -427
- package/src/@codegen/klend/instructions/idlMissingTypes.ts +4 -7
- package/src/@codegen/klend/instructions/index.ts +0 -34
- package/src/@codegen/klend/instructions/initReserve.ts +6 -2
- package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.ts +1 -1
- package/src/@codegen/klend/instructions/updateGlobalConfig.ts +1 -2
- package/src/@codegen/klend/instructions/updateReserveConfig.ts +1 -2
- package/src/@codegen/klend/instructions/withdrawObligationCollateral.ts +1 -1
- package/src/@codegen/klend/instructions/withdrawObligationCollateralV2.ts +1 -1
- package/src/@codegen/klend/types/AssetTier.ts +119 -0
- package/src/@codegen/klend/types/ObligationLiquidity.ts +9 -39
- package/src/@codegen/klend/types/ObligationOrder.ts +4 -4
- package/src/@codegen/klend/types/ReserveConfig.ts +39 -171
- package/src/@codegen/klend/types/ReserveFees.ts +12 -12
- package/src/@codegen/klend/types/ReserveLiquidity.ts +12 -30
- package/src/@codegen/klend/types/UpdateConfigMode.ts +26 -206
- package/src/@codegen/klend/types/UpdateLendingMarketMode.ts +0 -300
- package/src/@codegen/klend/types/index.ts +16 -45
- package/src/@codegen/klend/zero_padding/ObligationZP.ts +13 -22
- package/src/classes/action.ts +8 -577
- package/src/classes/manager.ts +7 -13
- package/src/classes/market.ts +5 -36
- package/src/classes/obligation.ts +1 -1
- package/src/classes/reserve.ts +8 -13
- package/src/classes/unstakingPool.ts +6 -83
- package/src/classes/vault.ts +75 -54
- package/src/idl/klend.json +294 -2187
- package/src/lending_operations/index.ts +0 -1
- package/src/manager/client_kamino_manager.ts +9 -13
- package/src/utils/ata.ts +79 -0
- package/src/utils/managerTypes.ts +4 -9
- package/src/utils/seeds.ts +26 -28
- package/dist/@codegen/klend/accounts/PoolState.d.ts +0 -53
- package/dist/@codegen/klend/accounts/PoolState.d.ts.map +0 -1
- package/dist/@codegen/klend/accounts/PoolState.js +0 -167
- package/dist/@codegen/klend/accounts/PoolState.js.map +0 -1
- package/dist/@codegen/klend/accounts/UnstakeTicket.d.ts +0 -41
- package/dist/@codegen/klend/accounts/UnstakeTicket.d.ts.map +0 -1
- package/dist/@codegen/klend/accounts/UnstakeTicket.js +0 -143
- package/dist/@codegen/klend/accounts/UnstakeTicket.js.map +0 -1
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts +0 -132
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts.map +0 -1
- package/dist/@codegen/klend/accounts/WithdrawTicket.js +0 -191
- package/dist/@codegen/klend/accounts/WithdrawTicket.js.map +0 -1
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts +0 -39
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js +0 -67
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js.map +0 -1
- package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts +0 -36
- package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/fillBorrowOrder.js +0 -49
- package/dist/@codegen/klend/instructions/fillBorrowOrder.js.map +0 -1
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts +0 -47
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js +0 -66
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js.map +0 -1
- package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts +0 -31
- package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/setBorrowOrder.js +0 -64
- package/dist/@codegen/klend/instructions/setBorrowOrder.js.map +0 -1
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.d.ts +0 -53
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.js +0 -190
- package/dist/@codegen/klend/instructions/unstakeLstCollateralEnd.js.map +0 -1
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.d.ts +0 -70
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.js +0 -261
- package/dist/@codegen/klend/instructions/unstakeLstCollateralStart.js.map +0 -1
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.d.ts +0 -41
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.js +0 -135
- package/dist/@codegen/klend/instructions/withdrawObligationUsol.js.map +0 -1
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts +0 -51
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts.map +0 -1
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js +0 -28
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js.map +0 -1
- package/dist/@codegen/klend/types/BorrowOrder.d.ts +0 -192
- package/dist/@codegen/klend/types/BorrowOrder.d.ts.map +0 -1
- package/dist/@codegen/klend/types/BorrowOrder.js +0 -194
- package/dist/@codegen/klend/types/BorrowOrder.js.map +0 -1
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts +0 -39
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts.map +0 -1
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js +0 -100
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js.map +0 -1
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts +0 -64
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts.map +0 -1
- package/dist/@codegen/klend/types/WithdrawQueue.js +0 -104
- package/dist/@codegen/klend/types/WithdrawQueue.js.map +0 -1
- package/dist/lending_operations/unstake_lst_collateral.d.ts +0 -12
- package/dist/lending_operations/unstake_lst_collateral.d.ts.map +0 -1
- package/dist/lending_operations/unstake_lst_collateral.js +0 -104
- package/dist/lending_operations/unstake_lst_collateral.js.map +0 -1
- package/src/@codegen/klend/accounts/PoolState.ts +0 -192
- package/src/@codegen/klend/accounts/UnstakeTicket.ts +0 -160
- package/src/@codegen/klend/accounts/WithdrawTicket.ts +0 -256
- package/src/@codegen/klend/instructions/enqueueToWithdraw.ts +0 -89
- package/src/@codegen/klend/instructions/fillBorrowOrder.ts +0 -96
- package/src/@codegen/klend/instructions/recoverInvalidTicketCollateral.ts +0 -96
- package/src/@codegen/klend/instructions/setBorrowOrder.ts +0 -77
- package/src/@codegen/klend/instructions/unstakeLstCollateralEnd.ts +0 -251
- package/src/@codegen/klend/instructions/unstakeLstCollateralStart.ts +0 -353
- package/src/@codegen/klend/instructions/withdrawObligationUsol.ts +0 -168
- package/src/@codegen/klend/instructions/withdrawQueuedLiquidity.ts +0 -92
- package/src/@codegen/klend/types/BorrowOrder.ts +0 -267
- package/src/@codegen/klend/types/BorrowOrderConfigArgs.ts +0 -87
- package/src/@codegen/klend/types/WithdrawQueue.ts +0 -117
- package/src/lending_operations/unstake_lst_collateral.ts +0 -174
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.layout = exports.DISCRIMINATOR = void 0;
|
|
37
|
-
exports.unstakeLstCollateralStart = unstakeLstCollateralStart;
|
|
38
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
39
|
-
const kit_1 = require("@solana/kit");
|
|
40
|
-
const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
41
|
-
const programId_1 = require("../programId");
|
|
42
|
-
exports.DISCRIMINATOR = Buffer.from([189, 208, 126, 37, 135, 76, 144, 253]);
|
|
43
|
-
exports.layout = borsh.struct([
|
|
44
|
-
borsh.u64("lstToConvert"),
|
|
45
|
-
]);
|
|
46
|
-
function unstakeLstCollateralStart(args, accounts, remainingAccounts = [], programAddress = programId_1.PROGRAM_ID) {
|
|
47
|
-
const keys = [
|
|
48
|
-
{
|
|
49
|
-
address: accounts.depositStakedSolAccounts.owner.address,
|
|
50
|
-
role: 3,
|
|
51
|
-
signer: accounts.depositStakedSolAccounts.owner,
|
|
52
|
-
},
|
|
53
|
-
{ address: accounts.depositStakedSolAccounts.unstakeTicket, role: 1 },
|
|
54
|
-
{
|
|
55
|
-
address: accounts.depositStakedSolAccounts.unstakingPoolAuthority,
|
|
56
|
-
role: 0,
|
|
57
|
-
},
|
|
58
|
-
{ address: accounts.depositStakedSolAccounts.ownerStakedSolToken, role: 1 },
|
|
59
|
-
{
|
|
60
|
-
address: accounts.depositStakedSolAccounts.ownerUnstakingSolToken,
|
|
61
|
-
role: 1,
|
|
62
|
-
},
|
|
63
|
-
{ address: accounts.depositStakedSolAccounts.stakedSolMint, role: 1 },
|
|
64
|
-
{ address: accounts.depositStakedSolAccounts.poolState, role: 1 },
|
|
65
|
-
{ address: accounts.depositStakedSolAccounts.unstakingSolMint, role: 1 },
|
|
66
|
-
{ address: accounts.depositStakedSolAccounts.basePoolAuthority, role: 1 },
|
|
67
|
-
{
|
|
68
|
-
address: accounts.depositStakedSolAccounts.unstakingTicketBurnAuthority,
|
|
69
|
-
role: 0,
|
|
70
|
-
},
|
|
71
|
-
{ address: accounts.depositStakedSolAccounts.systemProgram, role: 0 },
|
|
72
|
-
{
|
|
73
|
-
address: accounts.depositStakedSolAccounts.unstakingSolTokenProgram,
|
|
74
|
-
role: 0,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
address: accounts.depositStakedSolAccounts.stakedSolTokenProgram,
|
|
78
|
-
role: 0,
|
|
79
|
-
},
|
|
80
|
-
{ address: accounts.unstakingPoolProgram, role: 0 },
|
|
81
|
-
{
|
|
82
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts.owner.address,
|
|
83
|
-
role: 3,
|
|
84
|
-
signer: accounts.depositAndWithdrawAccounts.depositAccounts.owner,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts.obligation,
|
|
88
|
-
role: 1,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts.lendingMarket,
|
|
92
|
-
role: 0,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
96
|
-
.lendingMarketAuthority,
|
|
97
|
-
role: 0,
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts.reserve,
|
|
101
|
-
role: 1,
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
105
|
-
.reserveLiquidityMint,
|
|
106
|
-
role: 0,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
110
|
-
.reserveLiquiditySupply,
|
|
111
|
-
role: 1,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
115
|
-
.reserveCollateralMint,
|
|
116
|
-
role: 1,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
120
|
-
.reserveDestinationDepositCollateral,
|
|
121
|
-
role: 1,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts.userSourceLiquidity,
|
|
125
|
-
role: 1,
|
|
126
|
-
},
|
|
127
|
-
(0, kit_1.isSome)(accounts.depositAndWithdrawAccounts.depositAccounts
|
|
128
|
-
.placeholderUserDestinationCollateral)
|
|
129
|
-
? {
|
|
130
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
131
|
-
.placeholderUserDestinationCollateral.value,
|
|
132
|
-
role: 0,
|
|
133
|
-
}
|
|
134
|
-
: { address: programAddress, role: 0 },
|
|
135
|
-
{
|
|
136
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
137
|
-
.collateralTokenProgram,
|
|
138
|
-
role: 0,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
142
|
-
.liquidityTokenProgram,
|
|
143
|
-
role: 0,
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
address: accounts.depositAndWithdrawAccounts.depositAccounts
|
|
147
|
-
.instructionSysvarAccount,
|
|
148
|
-
role: 0,
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts.owner.address,
|
|
152
|
-
role: 3,
|
|
153
|
-
signer: accounts.depositAndWithdrawAccounts.withdrawAccounts.owner,
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts.obligation,
|
|
157
|
-
role: 1,
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts.lendingMarket,
|
|
161
|
-
role: 0,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
165
|
-
.lendingMarketAuthority,
|
|
166
|
-
role: 0,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts.withdrawReserve,
|
|
170
|
-
role: 1,
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
174
|
-
.reserveLiquidityMint,
|
|
175
|
-
role: 0,
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
179
|
-
.reserveSourceCollateral,
|
|
180
|
-
role: 1,
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
184
|
-
.reserveCollateralMint,
|
|
185
|
-
role: 1,
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
189
|
-
.reserveLiquiditySupply,
|
|
190
|
-
role: 1,
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
194
|
-
.userDestinationLiquidity,
|
|
195
|
-
role: 1,
|
|
196
|
-
},
|
|
197
|
-
(0, kit_1.isSome)(accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
198
|
-
.placeholderUserDestinationCollateral)
|
|
199
|
-
? {
|
|
200
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
201
|
-
.placeholderUserDestinationCollateral.value,
|
|
202
|
-
role: 0,
|
|
203
|
-
}
|
|
204
|
-
: { address: programAddress, role: 0 },
|
|
205
|
-
{
|
|
206
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
207
|
-
.collateralTokenProgram,
|
|
208
|
-
role: 0,
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
212
|
-
.liquidityTokenProgram,
|
|
213
|
-
role: 0,
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
address: accounts.depositAndWithdrawAccounts.withdrawAccounts
|
|
217
|
-
.instructionSysvarAccount,
|
|
218
|
-
role: 0,
|
|
219
|
-
},
|
|
220
|
-
(0, kit_1.isSome)(accounts.depositAndWithdrawAccounts.depositFarmsAccounts
|
|
221
|
-
.obligationFarmUserState)
|
|
222
|
-
? {
|
|
223
|
-
address: accounts.depositAndWithdrawAccounts.depositFarmsAccounts
|
|
224
|
-
.obligationFarmUserState.value,
|
|
225
|
-
role: 1,
|
|
226
|
-
}
|
|
227
|
-
: { address: programAddress, role: 0 },
|
|
228
|
-
(0, kit_1.isSome)(accounts.depositAndWithdrawAccounts.depositFarmsAccounts.reserveFarmState)
|
|
229
|
-
? {
|
|
230
|
-
address: accounts.depositAndWithdrawAccounts.depositFarmsAccounts
|
|
231
|
-
.reserveFarmState.value,
|
|
232
|
-
role: 1,
|
|
233
|
-
}
|
|
234
|
-
: { address: programAddress, role: 0 },
|
|
235
|
-
(0, kit_1.isSome)(accounts.depositAndWithdrawAccounts.withdrawFarmsAccounts
|
|
236
|
-
.obligationFarmUserState)
|
|
237
|
-
? {
|
|
238
|
-
address: accounts.depositAndWithdrawAccounts.withdrawFarmsAccounts
|
|
239
|
-
.obligationFarmUserState.value,
|
|
240
|
-
role: 1,
|
|
241
|
-
}
|
|
242
|
-
: { address: programAddress, role: 0 },
|
|
243
|
-
(0, kit_1.isSome)(accounts.depositAndWithdrawAccounts.withdrawFarmsAccounts.reserveFarmState)
|
|
244
|
-
? {
|
|
245
|
-
address: accounts.depositAndWithdrawAccounts.withdrawFarmsAccounts
|
|
246
|
-
.reserveFarmState.value,
|
|
247
|
-
role: 1,
|
|
248
|
-
}
|
|
249
|
-
: { address: programAddress, role: 0 },
|
|
250
|
-
{ address: accounts.depositAndWithdrawAccounts.farmsProgram, role: 0 },
|
|
251
|
-
...remainingAccounts,
|
|
252
|
-
];
|
|
253
|
-
const buffer = Buffer.alloc(1000);
|
|
254
|
-
const len = exports.layout.encode({
|
|
255
|
-
lstToConvert: args.lstToConvert,
|
|
256
|
-
}, buffer);
|
|
257
|
-
const data = Buffer.concat([exports.DISCRIMINATOR, buffer]).slice(0, 8 + len);
|
|
258
|
-
const ix = { accounts: keys, programAddress, data };
|
|
259
|
-
return ix;
|
|
260
|
-
}
|
|
261
|
-
//# sourceMappingURL=unstakeLstCollateralStart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unstakeLstCollateralStart.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/instructions/unstakeLstCollateralStart.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyFA,8DAuQC;AAhWD,sDAAsD;AACtD,qCAQoB;AAGpB,wDAAyC,CAAC,wDAAwD;AAGlG,4CAAyC;AAE5B,Q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AE,CAAC,EAAE;QACtE,GAAG,iBAAiB;KACrB,CAAA;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACjC,MAAM,GAAG,GAAG,cAAM,CAAC,MAAM,CACvB;QACE,YAAY,EAAE,IAAI,CAAC,YAAY;KAChC,EACD,MAAM,CACP,CAAA;IACD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,qBAAa,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAA;IACrE,MAAM,EAAE,GAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAA;IAChE,OAAO,EAAE,CAAA;AACX,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Address, AccountMeta, AccountSignerMeta, Instruction, Option, TransactionSigner } from "@solana/kit";
|
|
2
|
-
import BN from "bn.js";
|
|
3
|
-
export declare const DISCRIMINATOR: Buffer<ArrayBuffer>;
|
|
4
|
-
export interface WithdrawObligationUsolArgs {
|
|
5
|
-
collateralAmount: BN;
|
|
6
|
-
}
|
|
7
|
-
export interface WithdrawObligationUsolAccounts {
|
|
8
|
-
withdrawAccounts: {
|
|
9
|
-
withdrawAccounts: {
|
|
10
|
-
owner: TransactionSigner;
|
|
11
|
-
obligation: Address;
|
|
12
|
-
lendingMarket: Address;
|
|
13
|
-
lendingMarketAuthority: Address;
|
|
14
|
-
withdrawReserve: Address;
|
|
15
|
-
reserveLiquidityMint: Address;
|
|
16
|
-
reserveSourceCollateral: Address;
|
|
17
|
-
reserveCollateralMint: Address;
|
|
18
|
-
reserveLiquiditySupply: Address;
|
|
19
|
-
userDestinationLiquidity: Address;
|
|
20
|
-
placeholderUserDestinationCollateral: Option<Address>;
|
|
21
|
-
collateralTokenProgram: Address;
|
|
22
|
-
liquidityTokenProgram: Address;
|
|
23
|
-
instructionSysvarAccount: Address;
|
|
24
|
-
};
|
|
25
|
-
farmsAccounts: {
|
|
26
|
-
obligationFarmUserState: Option<Address>;
|
|
27
|
-
reserveFarmState: Option<Address>;
|
|
28
|
-
};
|
|
29
|
-
farmsProgram: Address;
|
|
30
|
-
};
|
|
31
|
-
extraAccounts: {
|
|
32
|
-
unstakeTicket: Address;
|
|
33
|
-
emptyUnstakeTicket: Address;
|
|
34
|
-
unstakingPoolAuthority: Address;
|
|
35
|
-
unstakingPoolProgram: Address;
|
|
36
|
-
systemProgram: Address;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export declare const layout: import("buffer-layout").Layout<WithdrawObligationUsolArgs>;
|
|
40
|
-
export declare function withdrawObligationUsol(args: WithdrawObligationUsolArgs, accounts: WithdrawObligationUsolAccounts, remainingAccounts?: Array<AccountMeta | AccountSignerMeta>, programAddress?: Address): Instruction<string, readonly (AccountMeta<string> | import("@solana/kit").AccountLookupMeta<string, string>)[]>;
|
|
41
|
-
//# sourceMappingURL=withdrawObligationUsol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawObligationUsol.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/klend/instructions/withdrawObligationUsol.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EAEP,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,MAAM,EACN,iBAAiB,EAClB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,MAAM,OAAO,CAAA;AAMtB,eAAO,MAAM,aAAa,qBAAoD,CAAA;AAE9E,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,EAAE,CAAA;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE;QAChB,gBAAgB,EAAE;YAChB,KAAK,EAAE,iBAAiB,CAAA;YACxB,UAAU,EAAE,OAAO,CAAA;YACnB,aAAa,EAAE,OAAO,CAAA;YACtB,sBAAsB,EAAE,OAAO,CAAA;YAC/B,eAAe,EAAE,OAAO,CAAA;YACxB,oBAAoB,EAAE,OAAO,CAAA;YAC7B,uBAAuB,EAAE,OAAO,CAAA;YAChC,qBAAqB,EAAE,OAAO,CAAA;YAC9B,sBAAsB,EAAE,OAAO,CAAA;YAC/B,wBAAwB,EAAE,OAAO,CAAA;YACjC,oCAAoC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;YACrD,sBAAsB,EAAE,OAAO,CAAA;YAC/B,qBAAqB,EAAE,OAAO,CAAA;YAC9B,wBAAwB,EAAE,OAAO,CAAA;SAClC,CAAA;QACD,aAAa,EAAE;YACb,uBAAuB,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;YACxC,gBAAgB,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;SAClC,CAAA;QACD,YAAY,EAAE,OAAO,CAAA;KACtB,CAAA;IACD,aAAa,EAAE;QACb,aAAa,EAAE,OAAO,CAAA;QACtB,kBAAkB,EAAE,OAAO,CAAA;QAC3B,sBAAsB,EAAE,OAAO,CAAA;QAC/B,oBAAoB,EAAE,OAAO,CAAA;QAC7B,aAAa,EAAE,OAAO,CAAA;KACvB,CAAA;CACF;AAED,eAAO,MAAM,MAAM,4DAEjB,CAAA;AAEF,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,0BAA0B,EAChC,QAAQ,EAAE,8BAA8B,EACxC,iBAAiB,GAAE,KAAK,CAAC,WAAW,GAAG,iBAAiB,CAAM,EAC9D,cAAc,GAAE,OAAoB,mHAuGrC"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.layout = exports.DISCRIMINATOR = void 0;
|
|
37
|
-
exports.withdrawObligationUsol = withdrawObligationUsol;
|
|
38
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
39
|
-
const kit_1 = require("@solana/kit");
|
|
40
|
-
const borsh = __importStar(require("@coral-xyz/borsh")); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
41
|
-
const programId_1 = require("../programId");
|
|
42
|
-
exports.DISCRIMINATOR = Buffer.from([94, 105, 108, 179, 208, 96, 22, 79]);
|
|
43
|
-
exports.layout = borsh.struct([
|
|
44
|
-
borsh.u64("collateralAmount"),
|
|
45
|
-
]);
|
|
46
|
-
function withdrawObligationUsol(args, accounts, remainingAccounts = [], programAddress = programId_1.PROGRAM_ID) {
|
|
47
|
-
const keys = [
|
|
48
|
-
{
|
|
49
|
-
address: accounts.withdrawAccounts.withdrawAccounts.owner.address,
|
|
50
|
-
role: 3,
|
|
51
|
-
signer: accounts.withdrawAccounts.withdrawAccounts.owner,
|
|
52
|
-
},
|
|
53
|
-
{ address: accounts.withdrawAccounts.withdrawAccounts.obligation, role: 1 },
|
|
54
|
-
{
|
|
55
|
-
address: accounts.withdrawAccounts.withdrawAccounts.lendingMarket,
|
|
56
|
-
role: 0,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
address: accounts.withdrawAccounts.withdrawAccounts.lendingMarketAuthority,
|
|
60
|
-
role: 0,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
address: accounts.withdrawAccounts.withdrawAccounts.withdrawReserve,
|
|
64
|
-
role: 1,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
address: accounts.withdrawAccounts.withdrawAccounts.reserveLiquidityMint,
|
|
68
|
-
role: 0,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
address: accounts.withdrawAccounts.withdrawAccounts.reserveSourceCollateral,
|
|
72
|
-
role: 1,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
address: accounts.withdrawAccounts.withdrawAccounts.reserveCollateralMint,
|
|
76
|
-
role: 1,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
address: accounts.withdrawAccounts.withdrawAccounts.reserveLiquiditySupply,
|
|
80
|
-
role: 1,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
address: accounts.withdrawAccounts.withdrawAccounts.userDestinationLiquidity,
|
|
84
|
-
role: 1,
|
|
85
|
-
},
|
|
86
|
-
(0, kit_1.isSome)(accounts.withdrawAccounts.withdrawAccounts
|
|
87
|
-
.placeholderUserDestinationCollateral)
|
|
88
|
-
? {
|
|
89
|
-
address: accounts.withdrawAccounts.withdrawAccounts
|
|
90
|
-
.placeholderUserDestinationCollateral.value,
|
|
91
|
-
role: 0,
|
|
92
|
-
}
|
|
93
|
-
: { address: programAddress, role: 0 },
|
|
94
|
-
{
|
|
95
|
-
address: accounts.withdrawAccounts.withdrawAccounts.collateralTokenProgram,
|
|
96
|
-
role: 0,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
address: accounts.withdrawAccounts.withdrawAccounts.liquidityTokenProgram,
|
|
100
|
-
role: 0,
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
address: accounts.withdrawAccounts.withdrawAccounts.instructionSysvarAccount,
|
|
104
|
-
role: 0,
|
|
105
|
-
},
|
|
106
|
-
(0, kit_1.isSome)(accounts.withdrawAccounts.farmsAccounts.obligationFarmUserState)
|
|
107
|
-
? {
|
|
108
|
-
address: accounts.withdrawAccounts.farmsAccounts.obligationFarmUserState
|
|
109
|
-
.value,
|
|
110
|
-
role: 1,
|
|
111
|
-
}
|
|
112
|
-
: { address: programAddress, role: 0 },
|
|
113
|
-
(0, kit_1.isSome)(accounts.withdrawAccounts.farmsAccounts.reserveFarmState)
|
|
114
|
-
? {
|
|
115
|
-
address: accounts.withdrawAccounts.farmsAccounts.reserveFarmState.value,
|
|
116
|
-
role: 1,
|
|
117
|
-
}
|
|
118
|
-
: { address: programAddress, role: 0 },
|
|
119
|
-
{ address: accounts.withdrawAccounts.farmsProgram, role: 0 },
|
|
120
|
-
{ address: accounts.extraAccounts.unstakeTicket, role: 1 },
|
|
121
|
-
{ address: accounts.extraAccounts.emptyUnstakeTicket, role: 1 },
|
|
122
|
-
{ address: accounts.extraAccounts.unstakingPoolAuthority, role: 1 },
|
|
123
|
-
{ address: accounts.extraAccounts.unstakingPoolProgram, role: 0 },
|
|
124
|
-
{ address: accounts.extraAccounts.systemProgram, role: 0 },
|
|
125
|
-
...remainingAccounts,
|
|
126
|
-
];
|
|
127
|
-
const buffer = Buffer.alloc(1000);
|
|
128
|
-
const len = exports.layout.encode({
|
|
129
|
-
collateralAmount: args.collateralAmount,
|
|
130
|
-
}, buffer);
|
|
131
|
-
const data = Buffer.concat([exports.DISCRIMINATOR, buffer]).slice(0, 8 + len);
|
|
132
|
-
const ix = { accounts: keys, programAddress, data };
|
|
133
|
-
return ix;
|
|
134
|
-
}
|
|
135
|
-
//# sourceMappingURL=withdrawObligationUsol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawObligationUsol.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/instructions/withdrawObligationUsol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,wDA2GC;AAvKD,sDAAsD;AACtD,qCAQoB;AAGpB,wDAAyC,CAAC,wDAAwD;AAGlG,4CAAyC;AAE5B,QAAA,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;AAuCjE,QAAA,MAAM,GAAG,KAAK,CAAC,MAAM,CAA6B;IAC7D,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC;CAC9B,CAAC,CAAA;AAEF,SAAgB,sBAAsB,CACpC,IAAgC,EAChC,QAAwC,EACxC,oBAA4D,EAAE,EAC9D,iBAA0B,sBAAU;IAEpC,MAAM,IAAI,GAA2C;QACnD;YACE,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO;YACjE,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,KAAK;SACzD;QACD,EAAE,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE;QAC3E;YACE,OAAO,EAAE,QAAQ,CAA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AM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACjC,MAAM,GAAG,GAAG,cAAM,CAAC,MAAM,CACvB;QACE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;KACxC,EACD,MAAM,CACP,CAAA;IACD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,qBAAa,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAA;IACrE,MAAM,EAAE,GAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAA;IAChE,OAAO,EAAE,CAAA;AACX,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Address, AccountMeta, AccountSignerMeta, Instruction, TransactionSigner } from "@solana/kit";
|
|
2
|
-
export declare const DISCRIMINATOR: Buffer<ArrayBuffer>;
|
|
3
|
-
export interface WithdrawQueuedLiquidityAccounts {
|
|
4
|
-
/** The executor of the permissionless tx (not necessarily the ticket owner). */
|
|
5
|
-
payer: TransactionSigner;
|
|
6
|
-
/** The lending market. */
|
|
7
|
-
lendingMarket: Address;
|
|
8
|
-
/**
|
|
9
|
-
* The market's authority, needed for burning the collateral (from
|
|
10
|
-
* [Self::owner_queued_collateral_vault]) and transferring the liquidity (from
|
|
11
|
-
* [Self::reserve_liquidity_supply]).
|
|
12
|
-
*/
|
|
13
|
-
lendingMarketAuthority: Address;
|
|
14
|
-
/** The reserve. */
|
|
15
|
-
reserve: Address;
|
|
16
|
-
/** The liquidity mint, needed to invoke the transfer. */
|
|
17
|
-
reserveLiquidityMint: Address;
|
|
18
|
-
/** The collateral mint, needed to burn (`mut`!) the queued collateral. */
|
|
19
|
-
reserveCollateralMint: Address;
|
|
20
|
-
/** The liquidity supply vault (to withdraw the liquidity from). */
|
|
21
|
-
reserveLiquiditySupply: Address;
|
|
22
|
-
/**
|
|
23
|
-
* The per-owner "this reserve's queued collateral" vault (from which the collateral will be
|
|
24
|
-
* burnt).
|
|
25
|
-
*/
|
|
26
|
-
ownerQueuedCollateralVault: Address;
|
|
27
|
-
/**
|
|
28
|
-
* The token account to which the liquidity should be transferred (the one recorded in the
|
|
29
|
-
* ticket).
|
|
30
|
-
*/
|
|
31
|
-
userDestinationLiquidity: Address;
|
|
32
|
-
/** The program of [Self::reserve_collateral_mint], needed for transfer. */
|
|
33
|
-
collateralTokenProgram: Address;
|
|
34
|
-
/** The program of [Self::reserve_liquidity_mint], needed for transfer. */
|
|
35
|
-
liquidityTokenProgram: Address;
|
|
36
|
-
/**
|
|
37
|
-
* The ticket's data itself.
|
|
38
|
-
*
|
|
39
|
-
* Note: in case of complete withdrawal, this account will be closed. In case of partial
|
|
40
|
-
* withdrawal, its [WithdrawTicket::queued_collateral_amount] will simply be reduced, and the
|
|
41
|
-
* ticket will maintain its position in the queue.
|
|
42
|
-
*/
|
|
43
|
-
withdrawTicket: Address;
|
|
44
|
-
/**
|
|
45
|
-
* The owner of the [Self::withdraw_ticket]; needed only to return the rent of the
|
|
46
|
-
* [WithdrawTicket] account (if it is getting fully-consumed and closed here).
|
|
47
|
-
*/
|
|
48
|
-
withdrawTicketOwner: Address;
|
|
49
|
-
}
|
|
50
|
-
export declare function withdrawQueuedLiquidity(accounts: WithdrawQueuedLiquidityAccounts, remainingAccounts?: Array<AccountMeta | AccountSignerMeta>, programAddress?: Address): Instruction<string, readonly (AccountMeta<string> | import("@solana/kit").AccountLookupMeta<string, string>)[]>;
|
|
51
|
-
//# sourceMappingURL=withdrawQueuedLiquidity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawQueuedLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/klend/instructions/withdrawQueuedLiquidity.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EAEP,WAAW,EACX,iBAAiB,EACjB,WAAW,EAEX,iBAAiB,EAClB,MAAM,aAAa,CAAA;AAQpB,eAAO,MAAM,aAAa,qBAAsD,CAAA;AAEhF,MAAM,WAAW,+BAA+B;IAC9C,gFAAgF;IAChF,KAAK,EAAE,iBAAiB,CAAA;IACxB,0BAA0B;IAC1B,aAAa,EAAE,OAAO,CAAA;IACtB;;;;OAIG;IACH,sBAAsB,EAAE,OAAO,CAAA;IAC/B,mBAAmB;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,yDAAyD;IACzD,oBAAoB,EAAE,OAAO,CAAA;IAC7B,0EAA0E;IAC1E,qBAAqB,EAAE,OAAO,CAAA;IAC9B,mEAAmE;IACnE,sBAAsB,EAAE,OAAO,CAAA;IAC/B;;;OAGG;IACH,0BAA0B,EAAE,OAAO,CAAA;IACnC;;;OAGG;IACH,wBAAwB,EAAE,OAAO,CAAA;IACjC,2EAA2E;IAC3E,sBAAsB,EAAE,OAAO,CAAA;IAC/B,0EAA0E;IAC1E,qBAAqB,EAAE,OAAO,CAAA;IAC9B;;;;;;OAMG;IACH,cAAc,EAAE,OAAO,CAAA;IACvB;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAA;CAC7B;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,+BAA+B,EACzC,iBAAiB,GAAE,KAAK,CAAC,WAAW,GAAG,iBAAiB,CAAM,EAC9D,cAAc,GAAE,OAAoB,mHAqBrC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DISCRIMINATOR = void 0;
|
|
4
|
-
exports.withdrawQueuedLiquidity = withdrawQueuedLiquidity;
|
|
5
|
-
const programId_1 = require("../programId");
|
|
6
|
-
exports.DISCRIMINATOR = Buffer.from([66, 149, 187, 201, 74, 191, 174, 120]);
|
|
7
|
-
function withdrawQueuedLiquidity(accounts, remainingAccounts = [], programAddress = programId_1.PROGRAM_ID) {
|
|
8
|
-
const keys = [
|
|
9
|
-
{ address: accounts.payer.address, role: 3, signer: accounts.payer },
|
|
10
|
-
{ address: accounts.lendingMarket, role: 0 },
|
|
11
|
-
{ address: accounts.lendingMarketAuthority, role: 0 },
|
|
12
|
-
{ address: accounts.reserve, role: 1 },
|
|
13
|
-
{ address: accounts.reserveLiquidityMint, role: 0 },
|
|
14
|
-
{ address: accounts.reserveCollateralMint, role: 1 },
|
|
15
|
-
{ address: accounts.reserveLiquiditySupply, role: 1 },
|
|
16
|
-
{ address: accounts.ownerQueuedCollateralVault, role: 1 },
|
|
17
|
-
{ address: accounts.userDestinationLiquidity, role: 1 },
|
|
18
|
-
{ address: accounts.collateralTokenProgram, role: 0 },
|
|
19
|
-
{ address: accounts.liquidityTokenProgram, role: 0 },
|
|
20
|
-
{ address: accounts.withdrawTicket, role: 1 },
|
|
21
|
-
{ address: accounts.withdrawTicketOwner, role: 1 },
|
|
22
|
-
...remainingAccounts,
|
|
23
|
-
];
|
|
24
|
-
const data = exports.DISCRIMINATOR;
|
|
25
|
-
const ix = { accounts: keys, programAddress, data };
|
|
26
|
-
return ix;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=withdrawQueuedLiquidity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawQueuedLiquidity.js","sourceRoot":"","sources":["../../../../src/@codegen/klend/instructions/withdrawQueuedLiquidity.ts"],"names":[],"mappings":";;;AAmEA,0DAwBC;AA5ED,4CAAyC;AAE5B,QAAA,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;AAkDhF,SAAgB,uBAAuB,CACrC,QAAyC,EACzC,oBAA4D,EAAE,EAC9D,iBAA0B,sBAAU;IAEpC,MAAM,IAAI,GAA2C;QACnD,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,EA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