diff --git a/solend-sdk/dist/core/actions.d.ts b/solend-sdk/dist/core/actions.d.ts index 835b0413..432b93d2 100644 --- a/solend-sdk/dist/core/actions.d.ts +++ b/solend-sdk/dist/core/actions.d.ts @@ -1,3 +1,5 @@ +/// +/// import { Connection, PublicKey, Transaction, TransactionInstruction, TransactionSignature } from "@solana/web3.js"; import BN from "bn.js"; import { Obligation } from "../state/obligation"; diff --git a/solend-sdk/dist/core/constants.d.ts b/solend-sdk/dist/core/constants.d.ts index 66552a86..f11aa824 100644 --- a/solend-sdk/dist/core/constants.d.ts +++ b/solend-sdk/dist/core/constants.d.ts @@ -1,3 +1,5 @@ +/// +/// import { Cluster, PublicKey } from "@solana/web3.js"; import BigNumber from "bignumber.js"; import { ObligationType } from "./types"; diff --git a/solend-sdk/dist/core/index.d.ts b/solend-sdk/dist/core/index.d.ts index 91cb4952..d08ea495 100644 --- a/solend-sdk/dist/core/index.d.ts +++ b/solend-sdk/dist/core/index.d.ts @@ -2,3 +2,4 @@ export * from "./constants"; export * from "./utils"; export * from "./types"; export * from "./margin"; +export * from "./actions"; diff --git a/solend-sdk/dist/core/index.js b/solend-sdk/dist/core/index.js index 1d2e2a7f..d10e9977 100644 --- a/solend-sdk/dist/core/index.js +++ b/solend-sdk/dist/core/index.js @@ -18,3 +18,4 @@ __exportStar(require("./constants"), exports); __exportStar(require("./utils"), exports); __exportStar(require("./types"), exports); __exportStar(require("./margin"), exports); +__exportStar(require("./actions"), exports); diff --git a/solend-sdk/dist/core/margin.d.ts b/solend-sdk/dist/core/margin.d.ts index f7fea714..f1a417df 100644 --- a/solend-sdk/dist/core/margin.d.ts +++ b/solend-sdk/dist/core/margin.d.ts @@ -1,3 +1,5 @@ +/// +/// import { AddressLookupTableAccount, Connection, PublicKey, TransactionInstruction, VersionedTransaction } from "@solana/web3.js"; import { ObligationType, PoolType, ReserveType } from "."; import BN from "bn.js"; diff --git a/solend-sdk/dist/core/types.d.ts b/solend-sdk/dist/core/types.d.ts index ee828648..2af5eb65 100644 --- a/solend-sdk/dist/core/types.d.ts +++ b/solend-sdk/dist/core/types.d.ts @@ -1,3 +1,5 @@ +/// +/// import { Cluster } from "@solana/web3.js"; import BigNumber from "bignumber.js"; import { formatReserve } from "./utils/pools"; diff --git a/solend-sdk/dist/core/utils/config.d.ts b/solend-sdk/dist/core/utils/config.d.ts index 9651098c..4001dde5 100644 --- a/solend-sdk/dist/core/utils/config.d.ts +++ b/solend-sdk/dist/core/utils/config.d.ts @@ -1,3 +1,5 @@ +/// +/// import { Connection, PublicKey } from "@solana/web3.js"; import { EnvironmentType, PoolMetadataCoreType } from "../types"; export declare function fetchPoolMetadata(connection: Connection, environment?: EnvironmentType, useApi?: Boolean, debug?: Boolean): Promise>; diff --git a/solend-sdk/dist/core/utils/obligations.d.ts b/solend-sdk/dist/core/utils/obligations.d.ts index 9e7879d0..eaa47524 100644 --- a/solend-sdk/dist/core/utils/obligations.d.ts +++ b/solend-sdk/dist/core/utils/obligations.d.ts @@ -1,4 +1,6 @@ /// +/// +/// import { Connection, PublicKey } from "@solana/web3.js"; import BigNumber from "bignumber.js"; import { Obligation } from "../../state"; diff --git a/solend-sdk/dist/core/utils/pools.d.ts b/solend-sdk/dist/core/utils/pools.d.ts index c40e7ee5..128ceff0 100644 --- a/solend-sdk/dist/core/utils/pools.d.ts +++ b/solend-sdk/dist/core/utils/pools.d.ts @@ -1,4 +1,6 @@ /// +/// +/// import { Connection, PublicKey } from "@solana/web3.js"; import BigNumber from "bignumber.js"; import SwitchboardProgram from "@switchboard-xyz/sbv2-lite"; diff --git a/solend-sdk/dist/core/utils/prices.d.ts b/solend-sdk/dist/core/utils/prices.d.ts index ca31d806..ff0d5d53 100644 --- a/solend-sdk/dist/core/utils/prices.d.ts +++ b/solend-sdk/dist/core/utils/prices.d.ts @@ -1,3 +1,5 @@ +/// +/// import { Connection, PublicKey } from "@solana/web3.js"; import SwitchboardProgram from "@switchboard-xyz/sbv2-lite"; import { Reserve } from "../../state"; diff --git a/solend-sdk/dist/hooks/margin.d.ts b/solend-sdk/dist/hooks/margin.d.ts index 1d957ed4..a7fcca8c 100644 --- a/solend-sdk/dist/hooks/margin.d.ts +++ b/solend-sdk/dist/hooks/margin.d.ts @@ -1,3 +1,5 @@ +/// +/// import { Connection } from "@solana/web3.js"; import { ReserveType } from "../core"; export declare function useReserve(connection: Connection, reserveAddress: string | null): ReserveType | null | undefined; diff --git a/solend-sdk/dist/hooks/reserve.d.ts b/solend-sdk/dist/hooks/reserve.d.ts index 1d957ed4..a7fcca8c 100644 --- a/solend-sdk/dist/hooks/reserve.d.ts +++ b/solend-sdk/dist/hooks/reserve.d.ts @@ -1,3 +1,5 @@ +/// +/// import { Connection } from "@solana/web3.js"; import { ReserveType } from "../core"; export declare function useReserve(connection: Connection, reserveAddress: string | null): ReserveType | null | undefined; diff --git a/solend-sdk/dist/instructions/borrowObligationLiquidity.d.ts b/solend-sdk/dist/instructions/borrowObligationLiquidity.d.ts index 0caaffd8..196a7825 100644 --- a/solend-sdk/dist/instructions/borrowObligationLiquidity.d.ts +++ b/solend-sdk/dist/instructions/borrowObligationLiquidity.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const borrowObligationLiquidityInstruction: (liquidityAmount: number | BN, sourceLiquidity: PublicKey, destinationLiquidity: PublicKey, borrowReserve: PublicKey, borrowReserveLiquidityFeeReceiver: PublicKey, obligation: PublicKey, lendingMarket: PublicKey, lendingMarketAuthority: PublicKey, obligationOwner: PublicKey, solendProgramAddress: PublicKey, hostFeeReceiver?: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/depositObligationCollateral.d.ts b/solend-sdk/dist/instructions/depositObligationCollateral.d.ts index 30ece540..6a7fb064 100644 --- a/solend-sdk/dist/instructions/depositObligationCollateral.d.ts +++ b/solend-sdk/dist/instructions/depositObligationCollateral.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const depositObligationCollateralInstruction: (collateralAmount: number | BN, sourceCollateral: PublicKey, destinationCollateral: PublicKey, depositReserve: PublicKey, obligation: PublicKey, lendingMarket: PublicKey, obligationOwner: PublicKey, transferAuthority: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/depositReserveLiquidity.d.ts b/solend-sdk/dist/instructions/depositReserveLiquidity.d.ts index 0070bfda..e364b137 100644 --- a/solend-sdk/dist/instructions/depositReserveLiquidity.d.ts +++ b/solend-sdk/dist/instructions/depositReserveLiquidity.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const depositReserveLiquidityInstruction: (liquidityAmount: number | BN, sourceLiquidity: PublicKey, destinationCollateral: PublicKey, reserve: PublicKey, reserveLiquiditySupply: PublicKey, reserveCollateralMint: PublicKey, lendingMarket: PublicKey, lendingMarketAuthority: PublicKey, transferAuthority: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/depositReserveLiquidityAndObligationCollateral.d.ts b/solend-sdk/dist/instructions/depositReserveLiquidityAndObligationCollateral.d.ts index 72777645..ea16a700 100644 --- a/solend-sdk/dist/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +++ b/solend-sdk/dist/instructions/depositReserveLiquidityAndObligationCollateral.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const depositReserveLiquidityAndObligationCollateralInstruction: (liquidityAmount: number | BN, sourceLiquidity: PublicKey, sourceCollateral: PublicKey, reserve: PublicKey, reserveLiquiditySupply: PublicKey, reserveCollateralMint: PublicKey, lendingMarket: PublicKey, lendingMarketAuthority: PublicKey, destinationCollateral: PublicKey, obligation: PublicKey, obligationOwner: PublicKey, pythOracle: PublicKey, switchboardFeedAddress: PublicKey, transferAuthority: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/flashBorrowReserveLiquidity.d.ts b/solend-sdk/dist/instructions/flashBorrowReserveLiquidity.d.ts index f313d8f1..dc716247 100644 --- a/solend-sdk/dist/instructions/flashBorrowReserveLiquidity.d.ts +++ b/solend-sdk/dist/instructions/flashBorrowReserveLiquidity.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const flashBorrowReserveLiquidityInstruction: (liquidityAmount: number | BN, sourceLiquidity: PublicKey, destinationLiquidity: PublicKey, reserve: PublicKey, lendingMarket: PublicKey, lendingProgramId: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/flashRepayReserveLiquidity.d.ts b/solend-sdk/dist/instructions/flashRepayReserveLiquidity.d.ts index 09f39a77..62a9cdea 100644 --- a/solend-sdk/dist/instructions/flashRepayReserveLiquidity.d.ts +++ b/solend-sdk/dist/instructions/flashRepayReserveLiquidity.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const flashRepayReserveLiquidityInstruction: (liquidityAmount: number | BN, borrowInstructionIndex: number, sourceLiquidity: PublicKey, destinationLiquidity: PublicKey, reserveLiquidityFeeReceiver: PublicKey, hostFeeReceiver: PublicKey, reserve: PublicKey, lendingMarket: PublicKey, userTransferAuthority: PublicKey, lendingProgramId: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/forgiveDebt.d.ts b/solend-sdk/dist/instructions/forgiveDebt.d.ts index 833c3653..63d918be 100644 --- a/solend-sdk/dist/instructions/forgiveDebt.d.ts +++ b/solend-sdk/dist/instructions/forgiveDebt.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const forgiveDebtInstruction: (obligation: PublicKey, reserve: PublicKey, lendingMarket: PublicKey, lendingMarketOwner: PublicKey, liquidityAmount: number | BN, lendingProgramId: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/index.d.ts b/solend-sdk/dist/instructions/index.d.ts index a61dfe88..82a0dd00 100644 --- a/solend-sdk/dist/instructions/index.d.ts +++ b/solend-sdk/dist/instructions/index.d.ts @@ -6,8 +6,10 @@ export * from "./redeemReserveCollateral"; export * from "./refreshObligation"; export * from "./refreshReserve"; export * from "./repayObligationLiquidity"; +export * from "./repayMaxObligationLiquidity"; export * from "./withdrawObligationCollateral"; export * from "./depositReserveLiquidityAndObligationCollateral"; +export * from "./depositMaxReserveLiquidityAndObligationCollateral"; export * from "./withdrawObligationCollateralAndRedeemReserveLiquidity"; export * from "./syncNative"; export * from "./initLendingMarket"; diff --git a/solend-sdk/dist/instructions/index.js b/solend-sdk/dist/instructions/index.js index 521ff347..b40bb2c2 100644 --- a/solend-sdk/dist/instructions/index.js +++ b/solend-sdk/dist/instructions/index.js @@ -22,8 +22,10 @@ __exportStar(require("./redeemReserveCollateral"), exports); __exportStar(require("./refreshObligation"), exports); __exportStar(require("./refreshReserve"), exports); __exportStar(require("./repayObligationLiquidity"), exports); +__exportStar(require("./repayMaxObligationLiquidity"), exports); __exportStar(require("./withdrawObligationCollateral"), exports); __exportStar(require("./depositReserveLiquidityAndObligationCollateral"), exports); +__exportStar(require("./depositMaxReserveLiquidityAndObligationCollateral"), exports); __exportStar(require("./withdrawObligationCollateralAndRedeemReserveLiquidity"), exports); __exportStar(require("./syncNative"), exports); __exportStar(require("./initLendingMarket"), exports); diff --git a/solend-sdk/dist/instructions/initLendingMarket.d.ts b/solend-sdk/dist/instructions/initLendingMarket.d.ts index 3b9a1d9a..e2233dd2 100644 --- a/solend-sdk/dist/instructions/initLendingMarket.d.ts +++ b/solend-sdk/dist/instructions/initLendingMarket.d.ts @@ -1,3 +1,5 @@ /// +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; export declare const initLendingMarketInstruction: (owner: PublicKey, quoteCurrency: Buffer, lendingMarket: PublicKey, lendingProgramId: PublicKey, oracleProgramId: PublicKey, switchboardProgramId: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/initObligation.d.ts b/solend-sdk/dist/instructions/initObligation.d.ts index 6707717c..0bdfbcc3 100644 --- a/solend-sdk/dist/instructions/initObligation.d.ts +++ b/solend-sdk/dist/instructions/initObligation.d.ts @@ -1,2 +1,4 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; export declare const initObligationInstruction: (obligation: PublicKey, lendingMarket: PublicKey, obligationOwner: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/initReserve.d.ts b/solend-sdk/dist/instructions/initReserve.d.ts index fd2e4df7..b353e0a4 100644 --- a/solend-sdk/dist/instructions/initReserve.d.ts +++ b/solend-sdk/dist/instructions/initReserve.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; import { ReserveConfig } from "../state"; diff --git a/solend-sdk/dist/instructions/instruction.js b/solend-sdk/dist/instructions/instruction.js index f45d99ae..dce01b16 100644 --- a/solend-sdk/dist/instructions/instruction.js +++ b/solend-sdk/dist/instructions/instruction.js @@ -24,7 +24,7 @@ var LendingInstruction; LendingInstruction[LendingInstruction["FlashRepayReserveLiquidity"] = 20] = "FlashRepayReserveLiquidity"; LendingInstruction[LendingInstruction["ForgiveDebt"] = 21] = "ForgiveDebt"; LendingInstruction[LendingInstruction["UpdateMetadata"] = 22] = "UpdateMetadata"; -})(LendingInstruction = exports.LendingInstruction || (exports.LendingInstruction = {})); +})(LendingInstruction || (exports.LendingInstruction = LendingInstruction = {})); /** Instructions defined by the program */ var TokenInstruction; (function (TokenInstruction) { @@ -49,4 +49,4 @@ var TokenInstruction; TokenInstruction[TokenInstruction["InitializeAccount3"] = 18] = "InitializeAccount3"; TokenInstruction[TokenInstruction["InitializeMultisig2"] = 19] = "InitializeMultisig2"; TokenInstruction[TokenInstruction["InitializeMint2"] = 20] = "InitializeMint2"; -})(TokenInstruction = exports.TokenInstruction || (exports.TokenInstruction = {})); +})(TokenInstruction || (exports.TokenInstruction = TokenInstruction = {})); diff --git a/solend-sdk/dist/instructions/redeemReserveCollateral.d.ts b/solend-sdk/dist/instructions/redeemReserveCollateral.d.ts index 3c4c0054..12f65f0d 100644 --- a/solend-sdk/dist/instructions/redeemReserveCollateral.d.ts +++ b/solend-sdk/dist/instructions/redeemReserveCollateral.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const redeemReserveCollateralInstruction: (collateralAmount: number | BN, sourceCollateral: PublicKey, destinationLiquidity: PublicKey, reserve: PublicKey, reserveCollateralMint: PublicKey, reserveLiquiditySupply: PublicKey, lendingMarket: PublicKey, lendingMarketAuthority: PublicKey, transferAuthority: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/refreshObligation.d.ts b/solend-sdk/dist/instructions/refreshObligation.d.ts index ff8835bf..fd86ce16 100644 --- a/solend-sdk/dist/instructions/refreshObligation.d.ts +++ b/solend-sdk/dist/instructions/refreshObligation.d.ts @@ -1,2 +1,4 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; export declare const refreshObligationInstruction: (obligation: PublicKey, depositReserves: PublicKey[], borrowReserves: PublicKey[], solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/refreshReserve.d.ts b/solend-sdk/dist/instructions/refreshReserve.d.ts index 115efa83..6e8af65b 100644 --- a/solend-sdk/dist/instructions/refreshReserve.d.ts +++ b/solend-sdk/dist/instructions/refreshReserve.d.ts @@ -1,2 +1,4 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; export declare const refreshReserveInstruction: (reserve: PublicKey, solendProgramAddress: PublicKey, oracle?: PublicKey, switchboardFeedAddress?: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/repayObligationLiquidity.d.ts b/solend-sdk/dist/instructions/repayObligationLiquidity.d.ts index e4d2a1f1..4569ed2e 100644 --- a/solend-sdk/dist/instructions/repayObligationLiquidity.d.ts +++ b/solend-sdk/dist/instructions/repayObligationLiquidity.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const repayObligationLiquidityInstruction: (liquidityAmount: number | BN, sourceLiquidity: PublicKey, destinationLiquidity: PublicKey, repayReserve: PublicKey, obligation: PublicKey, lendingMarket: PublicKey, transferAuthority: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/setLendingMarketOwnerAndConfig.d.ts b/solend-sdk/dist/instructions/setLendingMarketOwnerAndConfig.d.ts index b9d342af..0e932ac7 100644 --- a/solend-sdk/dist/instructions/setLendingMarketOwnerAndConfig.d.ts +++ b/solend-sdk/dist/instructions/setLendingMarketOwnerAndConfig.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import { RateLimiterConfig } from "../state/rateLimiter"; export declare const setLendingMarketOwnerAndConfigInstruction: (lendingMarket: PublicKey, currentMarketOwner: PublicKey, newMarketOwner: PublicKey, newRateLimiterConfig: RateLimiterConfig, riskAuthority: PublicKey, lendingProgramId: PublicKey, whitelistedLiquidator?: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/syncNative.d.ts b/solend-sdk/dist/instructions/syncNative.d.ts index bc6de063..199b2075 100644 --- a/solend-sdk/dist/instructions/syncNative.d.ts +++ b/solend-sdk/dist/instructions/syncNative.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; /** * Construct a SyncNative instruction diff --git a/solend-sdk/dist/instructions/updateMetadata.d.ts b/solend-sdk/dist/instructions/updateMetadata.d.ts index e2b6d100..8a6b2bc6 100644 --- a/solend-sdk/dist/instructions/updateMetadata.d.ts +++ b/solend-sdk/dist/instructions/updateMetadata.d.ts @@ -1,2 +1,4 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; export declare const updateMetadataInstruction: (lendingMarket: PublicKey, lendingMarketOwner: PublicKey, lendingProgramId: PublicKey, marketName: string, marketDescription: string, marketImageUrl: string) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/updateReserveConfig.d.ts b/solend-sdk/dist/instructions/updateReserveConfig.d.ts index c2718b2a..ca1f85a5 100644 --- a/solend-sdk/dist/instructions/updateReserveConfig.d.ts +++ b/solend-sdk/dist/instructions/updateReserveConfig.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import { RateLimiterConfig } from "../state/rateLimiter"; import { ReserveConfig } from "../state/reserve"; diff --git a/solend-sdk/dist/instructions/withdrawObligationCollateral.d.ts b/solend-sdk/dist/instructions/withdrawObligationCollateral.d.ts index a98680c0..fb3f04c9 100644 --- a/solend-sdk/dist/instructions/withdrawObligationCollateral.d.ts +++ b/solend-sdk/dist/instructions/withdrawObligationCollateral.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const withdrawObligationCollateralInstruction: (collateralAmount: number | BN, sourceCollateral: PublicKey, destinationCollateral: PublicKey, withdrawReserve: PublicKey, obligation: PublicKey, lendingMarket: PublicKey, lendingMarketAuthority: PublicKey, obligationOwner: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/instructions/withdrawObligationCollateralAndRedeemReserveLiquidity.d.ts b/solend-sdk/dist/instructions/withdrawObligationCollateralAndRedeemReserveLiquidity.d.ts index 95d224fa..40fe3e8c 100644 --- a/solend-sdk/dist/instructions/withdrawObligationCollateralAndRedeemReserveLiquidity.d.ts +++ b/solend-sdk/dist/instructions/withdrawObligationCollateralAndRedeemReserveLiquidity.d.ts @@ -1,3 +1,5 @@ +/// +/// import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import BN from "bn.js"; export declare const withdrawObligationCollateralAndRedeemReserveLiquidity: (collateralAmount: number | BN, sourceCollateral: PublicKey, destinationCollateral: PublicKey, withdrawReserve: PublicKey, obligation: PublicKey, lendingMarket: PublicKey, lendingMarketAuthority: PublicKey, destinationLiquidity: PublicKey, reserveCollateralMint: PublicKey, reserveLiquiditySupply: PublicKey, obligationOwner: PublicKey, transferAuthority: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction; diff --git a/solend-sdk/dist/state/lendingMarket.d.ts b/solend-sdk/dist/state/lendingMarket.d.ts index 5b1cda42..759aeed3 100644 --- a/solend-sdk/dist/state/lendingMarket.d.ts +++ b/solend-sdk/dist/state/lendingMarket.d.ts @@ -1,4 +1,6 @@ /// +/// +/// import { AccountInfo, PublicKey } from "@solana/web3.js"; import { RateLimiter } from "./rateLimiter"; declare const BufferLayout: any; diff --git a/solend-sdk/dist/state/obligation.d.ts b/solend-sdk/dist/state/obligation.d.ts index f20f5c07..68277c9b 100644 --- a/solend-sdk/dist/state/obligation.d.ts +++ b/solend-sdk/dist/state/obligation.d.ts @@ -1,4 +1,6 @@ /// +/// +/// import { AccountInfo, PublicKey } from "@solana/web3.js"; import BN from "bn.js"; import { LastUpdate } from "./lastUpdate"; diff --git a/solend-sdk/dist/state/reserve.d.ts b/solend-sdk/dist/state/reserve.d.ts index 4e297dbe..277f8b26 100644 --- a/solend-sdk/dist/state/reserve.d.ts +++ b/solend-sdk/dist/state/reserve.d.ts @@ -1,4 +1,6 @@ /// +/// +/// import { AccountInfo, PublicKey } from "@solana/web3.js"; import BN from "bn.js"; import { Buffer } from "buffer"; diff --git a/solend-sdk/dist/state/reserve.js b/solend-sdk/dist/state/reserve.js index 0fb28d5b..0c77cec9 100644 --- a/solend-sdk/dist/state/reserve.js +++ b/solend-sdk/dist/state/reserve.js @@ -39,7 +39,7 @@ var AssetType; (function (AssetType) { AssetType[AssetType["Regular"] = 0] = "Regular"; AssetType[AssetType["Isolated"] = 1] = "Isolated"; -})(AssetType = exports.AssetType || (exports.AssetType = {})); +})(AssetType || (exports.AssetType = AssetType = {})); exports.ReserveConfigLayout = BufferLayout.struct([ BufferLayout.u8("optimalUtilizationRate"), BufferLayout.u8("maxUtilizationRate"), diff --git a/solend-sdk/src/core/index.ts b/solend-sdk/src/core/index.ts index 91cb4952..2fe48100 100644 --- a/solend-sdk/src/core/index.ts +++ b/solend-sdk/src/core/index.ts @@ -2,3 +2,4 @@ export * from "./constants"; export * from "./utils"; export * from "./types"; export * from "./margin"; +export * from "./actions"; \ No newline at end of file diff --git a/solend-sdk/src/instructions/index.ts b/solend-sdk/src/instructions/index.ts index a61dfe88..82a0dd00 100644 --- a/solend-sdk/src/instructions/index.ts +++ b/solend-sdk/src/instructions/index.ts @@ -6,8 +6,10 @@ export * from "./redeemReserveCollateral"; export * from "./refreshObligation"; export * from "./refreshReserve"; export * from "./repayObligationLiquidity"; +export * from "./repayMaxObligationLiquidity"; export * from "./withdrawObligationCollateral"; export * from "./depositReserveLiquidityAndObligationCollateral"; +export * from "./depositMaxReserveLiquidityAndObligationCollateral"; export * from "./withdrawObligationCollateralAndRedeemReserveLiquidity"; export * from "./syncNative"; export * from "./initLendingMarket";