Coda by Ian Macalinao
Preparing search index...
@macalinao/clients-kamino-lending
KaminoLendingPluginInstructions
Interface KaminoLendingPluginInstructions
interface
KaminoLendingPluginInstructions
{
borrowObligationLiquidity
:
(
input
:
BorrowObligationLiquidityAsyncInput
,
)
=>
Promise
<
BorrowObligationLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
borrowObligationLiquidityV2
:
(
input
:
BorrowObligationLiquidityV2AsyncInput
,
)
=>
Promise
<
BorrowObligationLiquidityV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
deleteReferrerStateAndShortUrl
:
(
input
:
DeleteReferrerStateAndShortUrlInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
depositAndWithdraw
:
(
input
:
DepositAndWithdrawInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
depositObligationCollateral
:
(
input
:
DepositObligationCollateralInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
depositObligationCollateralV2
:
(
input
:
DepositObligationCollateralV2AsyncInput
,
)
=>
Promise
<
DepositObligationCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
depositReserveLiquidity
:
(
input
:
DepositReserveLiquidityAsyncInput
,
)
=>
Promise
<
DepositReserveLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
depositReserveLiquidityAndObligationCollateral
:
(
input
:
DepositReserveLiquidityAndObligationCollateralAsyncInput
,
)
=>
Promise
<
DepositReserveLiquidityAndObligationCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
depositReserveLiquidityAndObligationCollateralV2
:
(
input
:
DepositReserveLiquidityAndObligationCollateralV2AsyncInput
,
)
=>
Promise
<
DepositReserveLiquidityAndObligationCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
flashBorrowReserveLiquidity
:
(
input
:
FlashBorrowReserveLiquidityAsyncInput
,
)
=>
Promise
<
FlashBorrowReserveLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
flashRepayReserveLiquidity
:
(
input
:
FlashRepayReserveLiquidityAsyncInput
,
)
=>
Promise
<
FlashRepayReserveLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
idlMissingTypes
:
(
input
:
IdlMissingTypesInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
initFarmsForReserve
:
(
input
:
InitFarmsForReserveAsyncInput
,
)
=>
Promise
<
InitFarmsForReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
initGlobalConfig
:
(
input
:
MakeOptional
<
InitGlobalConfigAsyncInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Promise
<
InitGlobalConfigInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
initLendingMarket
:
(
input
:
InitLendingMarketAsyncInput
,
)
=>
Promise
<
InitLendingMarketInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
initObligation
:
(
input
:
MakeOptional
<
InitObligationInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"feePayer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
initObligationFarmsForReserve
:
(
input
:
MakeOptional
<
InitObligationFarmsForReserveAsyncInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"payer"
,
>
,
)
=>
Promise
<
InitObligationFarmsForReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
initReferrerStateAndShortUrl
:
(
input
:
InitReferrerStateAndShortUrlInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
initReferrerTokenState
:
(
input
:
MakeOptional
<
InitReferrerTokenStateInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
initReserve
:
(
input
:
InitReserveAsyncInput
,
)
=>
Promise
<
InitReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
initUserMetadata
:
(
input
:
MakeOptional
<
InitUserMetadataInput
<
string
,
string
,
string
,
string
,
string
,
string
>
,
"feePayer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
liquidateObligationAndRedeemReserveCollateral
:
(
input
:
LiquidateObligationAndRedeemReserveCollateralAsyncInput
,
)
=>
Promise
<
LiquidateObligationAndRedeemReserveCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
liquidateObligationAndRedeemReserveCollateralV2
:
(
input
:
LiquidateObligationAndRedeemReserveCollateralV2Input
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
markObligationForDeleveraging
:
(
input
:
MarkObligationForDeleveragingInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
redeemFees
:
(
input
:
RedeemFeesAsyncInput
,
)
=>
Promise
<
RedeemFeesInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
redeemReserveCollateral
:
(
input
:
RedeemReserveCollateralAsyncInput
,
)
=>
Promise
<
RedeemReserveCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
refreshObligation
:
(
input
:
RefreshObligationInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
]
,
>
&
SelfPlanAndSendFunctions
;
refreshObligationFarmsForReserve
:
(
input
:
RefreshObligationFarmsForReserveAsyncInput
,
)
=>
Promise
<
RefreshObligationFarmsForReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
refreshReserve
:
(
input
:
RefreshReserveInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
refreshReservesBatch
:
(
input
:
RefreshReservesBatchInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
]
,
>
&
SelfPlanAndSendFunctions
;
repayAndWithdrawAndRedeem
:
(
input
:
RepayAndWithdrawAndRedeemInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
repayObligationLiquidity
:
(
input
:
RepayObligationLiquidityInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
repayObligationLiquidityV2
:
(
input
:
RepayObligationLiquidityV2AsyncInput
,
)
=>
Promise
<
RepayObligationLiquidityV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
requestElevationGroup
:
(
input
:
RequestElevationGroupInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
setObligationOrder
:
(
input
:
SetObligationOrderInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
socializeLoss
:
(
input
:
SocializeLossInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
socializeLossV2
:
(
input
:
SocializeLossV2AsyncInput
,
)
=>
Promise
<
SocializeLossV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
updateGlobalConfig
:
(
input
:
UpdateGlobalConfigInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
updateGlobalConfigAdmin
:
(
input
:
UpdateGlobalConfigAdminInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
updateLendingMarket
:
(
input
:
UpdateLendingMarketInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
updateLendingMarketOwner
:
(
input
:
UpdateLendingMarketOwnerInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
updateReserveConfig
:
(
input
:
UpdateReserveConfigInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
;
withdrawObligationCollateral
:
(
input
:
WithdrawObligationCollateralAsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
withdrawObligationCollateralAndRedeemReserveCollateral
:
(
input
:
WithdrawObligationCollateralAndRedeemReserveCollateralAsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralAndRedeemReserveCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
withdrawObligationCollateralAndRedeemReserveCollateralV2
:
(
input
:
WithdrawObligationCollateralAndRedeemReserveCollateralV2AsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralAndRedeemReserveCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
withdrawObligationCollateralV2
:
(
input
:
WithdrawObligationCollateralV2AsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
withdrawProtocolFee
:
(
input
:
WithdrawProtocolFeeAsyncInput
,
)
=>
Promise
<
WithdrawProtocolFeeInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
withdrawReferrerFees
:
(
input
:
WithdrawReferrerFeesAsyncInput
,
)
=>
Promise
<
WithdrawReferrerFeesInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
;
}
Index
Properties
borrow
Obligation
Liquidity
borrow
Obligation
Liquidity
V2
delete
Referrer
State
And
Short
Url
deposit
And
Withdraw
deposit
Obligation
Collateral
deposit
Obligation
Collateral
V2
deposit
Reserve
Liquidity
deposit
Reserve
Liquidity
And
Obligation
Collateral
deposit
Reserve
Liquidity
And
Obligation
Collateral
V2
flash
Borrow
Reserve
Liquidity
flash
Repay
Reserve
Liquidity
idl
Missing
Types
init
Farms
For
Reserve
init
Global
Config
init
Lending
Market
init
Obligation
init
Obligation
Farms
For
Reserve
init
Referrer
State
And
Short
Url
init
Referrer
Token
State
init
Reserve
init
User
Metadata
liquidate
Obligation
And
Redeem
Reserve
Collateral
liquidate
Obligation
And
Redeem
Reserve
Collateral
V2
mark
Obligation
For
Deleveraging
redeem
Fees
redeem
Reserve
Collateral
refresh
Obligation
refresh
Obligation
Farms
For
Reserve
refresh
Reserve
refresh
Reserves
Batch
repay
And
Withdraw
And
Redeem
repay
Obligation
Liquidity
repay
Obligation
Liquidity
V2
request
Elevation
Group
set
Obligation
Order
socialize
Loss
socialize
Loss
V2
update
Global
Config
update
Global
Config
Admin
update
Lending
Market
update
Lending
Market
Owner
update
Reserve
Config
withdraw
Obligation
Collateral
withdraw
Obligation
Collateral
And
Redeem
Reserve
Collateral
withdraw
Obligation
Collateral
And
Redeem
Reserve
Collateral
V2
withdraw
Obligation
Collateral
V2
withdraw
Protocol
Fee
withdraw
Referrer
Fees
Properties
borrow
Obligation
Liquidity
borrowObligationLiquidity
:
(
input
:
BorrowObligationLiquidityAsyncInput
,
)
=>
Promise
<
BorrowObligationLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
borrow
Obligation
Liquidity
V2
borrowObligationLiquidityV2
:
(
input
:
BorrowObligationLiquidityV2AsyncInput
,
)
=>
Promise
<
BorrowObligationLiquidityV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
delete
Referrer
State
And
Short
Url
deleteReferrerStateAndShortUrl
:
(
input
:
DeleteReferrerStateAndShortUrlInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
deposit
And
Withdraw
depositAndWithdraw
:
(
input
:
DepositAndWithdrawInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
deposit
Obligation
Collateral
depositObligationCollateral
:
(
input
:
DepositObligationCollateralInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
deposit
Obligation
Collateral
V2
depositObligationCollateralV2
:
(
input
:
DepositObligationCollateralV2AsyncInput
,
)
=>
Promise
<
DepositObligationCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
deposit
Reserve
Liquidity
depositReserveLiquidity
:
(
input
:
DepositReserveLiquidityAsyncInput
,
)
=>
Promise
<
DepositReserveLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
deposit
Reserve
Liquidity
And
Obligation
Collateral
depositReserveLiquidityAndObligationCollateral
:
(
input
:
DepositReserveLiquidityAndObligationCollateralAsyncInput
,
)
=>
Promise
<
DepositReserveLiquidityAndObligationCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
deposit
Reserve
Liquidity
And
Obligation
Collateral
V2
depositReserveLiquidityAndObligationCollateralV2
:
(
input
:
DepositReserveLiquidityAndObligationCollateralV2AsyncInput
,
)
=>
Promise
<
DepositReserveLiquidityAndObligationCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
flash
Borrow
Reserve
Liquidity
flashBorrowReserveLiquidity
:
(
input
:
FlashBorrowReserveLiquidityAsyncInput
,
)
=>
Promise
<
FlashBorrowReserveLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
flash
Repay
Reserve
Liquidity
flashRepayReserveLiquidity
:
(
input
:
FlashRepayReserveLiquidityAsyncInput
,
)
=>
Promise
<
FlashRepayReserveLiquidityInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
idl
Missing
Types
idlMissingTypes
:
(
input
:
IdlMissingTypesInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
init
Farms
For
Reserve
initFarmsForReserve
:
(
input
:
InitFarmsForReserveAsyncInput
,
)
=>
Promise
<
InitFarmsForReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
init
Global
Config
initGlobalConfig
:
(
input
:
MakeOptional
<
InitGlobalConfigAsyncInput
<
string
,
string
,
string
,
string
,
string
>
,
"payer"
,
>
,
)
=>
Promise
<
InitGlobalConfigInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
init
Lending
Market
initLendingMarket
:
(
input
:
InitLendingMarketAsyncInput
,
)
=>
Promise
<
InitLendingMarketInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
init
Obligation
initObligation
:
(
input
:
MakeOptional
<
InitObligationInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"feePayer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
init
Obligation
Farms
For
Reserve
initObligationFarmsForReserve
:
(
input
:
MakeOptional
<
InitObligationFarmsForReserveAsyncInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"payer"
,
>
,
)
=>
Promise
<
InitObligationFarmsForReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
init
Referrer
State
And
Short
Url
initReferrerStateAndShortUrl
:
(
input
:
InitReferrerStateAndShortUrlInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
init
Referrer
Token
State
initReferrerTokenState
:
(
input
:
MakeOptional
<
InitReferrerTokenStateInput
<
string
,
string
,
string
,
string
,
string
,
string
,
string
,
>
,
"payer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
init
Reserve
initReserve
:
(
input
:
InitReserveAsyncInput
,
)
=>
Promise
<
InitReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
init
User
Metadata
initUserMetadata
:
(
input
:
MakeOptional
<
InitUserMetadataInput
<
string
,
string
,
string
,
string
,
string
,
string
>
,
"feePayer"
,
>
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
AccountMeta
<
string
>
&
{
role
:
WRITABLE_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
liquidate
Obligation
And
Redeem
Reserve
Collateral
liquidateObligationAndRedeemReserveCollateral
:
(
input
:
LiquidateObligationAndRedeemReserveCollateralAsyncInput
,
)
=>
Promise
<
LiquidateObligationAndRedeemReserveCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
liquidate
Obligation
And
Redeem
Reserve
Collateral
V2
liquidateObligationAndRedeemReserveCollateralV2
:
(
input
:
LiquidateObligationAndRedeemReserveCollateralV2Input
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
mark
Obligation
For
Deleveraging
markObligationForDeleveraging
:
(
input
:
MarkObligationForDeleveragingInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
redeem
Fees
redeemFees
:
(
input
:
RedeemFeesAsyncInput
,
)
=>
Promise
<
RedeemFeesInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
redeem
Reserve
Collateral
redeemReserveCollateral
:
(
input
:
RedeemReserveCollateralAsyncInput
,
)
=>
Promise
<
RedeemReserveCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
refresh
Obligation
refreshObligation
:
(
input
:
RefreshObligationInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
]
,
>
&
SelfPlanAndSendFunctions
refresh
Obligation
Farms
For
Reserve
refreshObligationFarmsForReserve
:
(
input
:
RefreshObligationFarmsForReserveAsyncInput
,
)
=>
Promise
<
RefreshObligationFarmsForReserveInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
refresh
Reserve
refreshReserve
:
(
input
:
RefreshReserveInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
refresh
Reserves
Batch
refreshReservesBatch
:
(
input
:
RefreshReservesBatchInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
]
,
>
&
SelfPlanAndSendFunctions
repay
And
Withdraw
And
Redeem
repayAndWithdrawAndRedeem
:
(
input
:
RepayAndWithdrawAndRedeemInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
repay
Obligation
Liquidity
repayObligationLiquidity
:
(
input
:
RepayObligationLiquidityInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
repay
Obligation
Liquidity
V2
repayObligationLiquidityV2
:
(
input
:
RepayObligationLiquidityV2AsyncInput
,
)
=>
Promise
<
RepayObligationLiquidityV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
request
Elevation
Group
requestElevationGroup
:
(
input
:
RequestElevationGroupInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
set
Obligation
Order
setObligationOrder
:
(
input
:
SetObligationOrderInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
socialize
Loss
socializeLoss
:
(
input
:
SocializeLossInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
socialize
Loss
V2
socializeLossV2
:
(
input
:
SocializeLossV2AsyncInput
,
)
=>
Promise
<
SocializeLossV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
update
Global
Config
updateGlobalConfig
:
(
input
:
UpdateGlobalConfigInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
update
Global
Config
Admin
updateGlobalConfigAdmin
:
(
input
:
UpdateGlobalConfigAdminInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
update
Lending
Market
updateLendingMarket
:
(
input
:
UpdateLendingMarketInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
update
Lending
Market
Owner
updateLendingMarketOwner
:
(
input
:
UpdateLendingMarketOwnerInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
update
Reserve
Config
updateReserveConfig
:
(
input
:
UpdateReserveConfigInput
,
)
=>
Instruction
<
Address
,
readonly
(
AccountMeta
<
string
>
|
AccountLookupMeta
<
string
,
string
>
)
[]
,
>
&
InstructionWithData
<
ReadonlyUint8Array
<
ArrayBufferLike
>
>
&
InstructionWithAccounts
<
[
AccountMeta
<
string
>
&
{
role
:
READONLY_SIGNER
}
&
AccountSignerMeta
<
string
,
TransactionSigner
<
string
>
,
>
,
ReadonlyAccount
<
string
>
,
ReadonlyAccount
<
string
>
,
WritableAccount
<
string
>
,
]
,
>
&
SelfPlanAndSendFunctions
withdraw
Obligation
Collateral
withdrawObligationCollateral
:
(
input
:
WithdrawObligationCollateralAsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
withdraw
Obligation
Collateral
And
Redeem
Reserve
Collateral
withdrawObligationCollateralAndRedeemReserveCollateral
:
(
input
:
WithdrawObligationCollateralAndRedeemReserveCollateralAsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralAndRedeemReserveCollateralInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
withdraw
Obligation
Collateral
And
Redeem
Reserve
Collateral
V2
withdrawObligationCollateralAndRedeemReserveCollateralV2
:
(
input
:
WithdrawObligationCollateralAndRedeemReserveCollateralV2AsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralAndRedeemReserveCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
withdraw
Obligation
Collateral
V2
withdrawObligationCollateralV2
:
(
input
:
WithdrawObligationCollateralV2AsyncInput
,
)
=>
Promise
<
WithdrawObligationCollateralV2Instruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
withdraw
Protocol
Fee
withdrawProtocolFee
:
(
input
:
WithdrawProtocolFeeAsyncInput
,
)
=>
Promise
<
WithdrawProtocolFeeInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
withdraw
Referrer
Fees
withdrawReferrerFees
:
(
input
:
WithdrawReferrerFeesAsyncInput
,
)
=>
Promise
<
WithdrawReferrerFeesInstruction
<
Address
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
string
,
[
]
,
>
,
>
&
SelfPlanAndSendFunctions
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
borrow
Obligation
Liquidity
borrow
Obligation
Liquidity
V2
delete
Referrer
State
And
Short
Url
deposit
And
Withdraw
deposit
Obligation
Collateral
deposit
Obligation
Collateral
V2
deposit
Reserve
Liquidity
deposit
Reserve
Liquidity
And
Obligation
Collateral
deposit
Reserve
Liquidity
And
Obligation
Collateral
V2
flash
Borrow
Reserve
Liquidity
flash
Repay
Reserve
Liquidity
idl
Missing
Types
init
Farms
For
Reserve
init
Global
Config
init
Lending
Market
init
Obligation
init
Obligation
Farms
For
Reserve
init
Referrer
State
And
Short
Url
init
Referrer
Token
State
init
Reserve
init
User
Metadata
liquidate
Obligation
And
Redeem
Reserve
Collateral
liquidate
Obligation
And
Redeem
Reserve
Collateral
V2
mark
Obligation
For
Deleveraging
redeem
Fees
redeem
Reserve
Collateral
refresh
Obligation
refresh
Obligation
Farms
For
Reserve
refresh
Reserve
refresh
Reserves
Batch
repay
And
Withdraw
And
Redeem
repay
Obligation
Liquidity
repay
Obligation
Liquidity
V2
request
Elevation
Group
set
Obligation
Order
socialize
Loss
socialize
Loss
V2
update
Global
Config
update
Global
Config
Admin
update
Lending
Market
update
Lending
Market
Owner
update
Reserve
Config
withdraw
Obligation
Collateral
withdraw
Obligation
Collateral
And
Redeem
Reserve
Collateral
withdraw
Obligation
Collateral
And
Redeem
Reserve
Collateral
V2
withdraw
Obligation
Collateral
V2
withdraw
Protocol
Fee
withdraw
Referrer
Fees
Coda by Ian Macalinao
Loading...