Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
0xodia committed Jan 25, 2024
1 parent 8c0ff8d commit f9f8d6e
Show file tree
Hide file tree
Showing 41 changed files with 78 additions and 3 deletions.
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/actions.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Connection, PublicKey, Transaction, TransactionInstruction, TransactionSignature } from "@solana/web3.js";
import BN from "bn.js";
import { Obligation } from "../state/obligation";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Cluster, PublicKey } from "@solana/web3.js";
import BigNumber from "bignumber.js";
import { ObligationType } from "./types";
Expand Down
1 change: 1 addition & 0 deletions solend-sdk/dist/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./constants";
export * from "./utils";
export * from "./types";
export * from "./margin";
export * from "./actions";
1 change: 1 addition & 0 deletions solend-sdk/dist/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ __exportStar(require("./constants"), exports);
__exportStar(require("./utils"), exports);
__exportStar(require("./types"), exports);
__exportStar(require("./margin"), exports);
__exportStar(require("./actions"), exports);
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/margin.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { AddressLookupTableAccount, Connection, PublicKey, TransactionInstruction, VersionedTransaction } from "@solana/web3.js";
import { ObligationType, PoolType, ReserveType } from ".";
import BN from "bn.js";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Cluster } from "@solana/web3.js";
import BigNumber from "bignumber.js";
import { formatReserve } from "./utils/pools";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/utils/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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<Array<PoolMetadataCoreType>>;
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/utils/obligations.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference types="node" />
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Connection, PublicKey } from "@solana/web3.js";
import BigNumber from "bignumber.js";
import { Obligation } from "../../state";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/utils/pools.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference types="node" />
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Connection, PublicKey } from "@solana/web3.js";
import BigNumber from "bignumber.js";
import SwitchboardProgram from "@switchboard-xyz/sbv2-lite";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/core/utils/prices.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Connection, PublicKey } from "@solana/web3.js";
import SwitchboardProgram from "@switchboard-xyz/sbv2-lite";
import { Reserve } from "../../state";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/hooks/margin.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Connection } from "@solana/web3.js";
import { ReserveType } from "../core";
export declare function useReserve(connection: Connection, reserveAddress: string | null): ReserveType | null | undefined;
2 changes: 2 additions & 0 deletions solend-sdk/dist/hooks/reserve.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { Connection } from "@solana/web3.js";
import { ReserveType } from "../core";
export declare function useReserve(connection: Connection, reserveAddress: string | null): ReserveType | null | undefined;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/borrowObligationLiquidity.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/depositObligationCollateral.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/depositReserveLiquidity.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/flashBorrowReserveLiquidity.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/flashRepayReserveLiquidity.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/forgiveDebt.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/initLendingMarket.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="node" />
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
export declare const initLendingMarketInstruction: (owner: PublicKey, quoteCurrency: Buffer, lendingMarket: PublicKey, lendingProgramId: PublicKey, oracleProgramId: PublicKey, switchboardProgramId: PublicKey) => TransactionInstruction;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/initObligation.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
export declare const initObligationInstruction: (obligation: PublicKey, lendingMarket: PublicKey, obligationOwner: PublicKey, solendProgramAddress: PublicKey) => TransactionInstruction;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/initReserve.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
import BN from "bn.js";
import { ReserveConfig } from "../state";
Expand Down
4 changes: 2 additions & 2 deletions solend-sdk/dist/instructions/instruction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 = {}));
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/redeemReserveCollateral.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/refreshObligation.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
export declare const refreshObligationInstruction: (obligation: PublicKey, depositReserves: PublicKey[], borrowReserves: PublicKey[], solendProgramAddress: PublicKey) => TransactionInstruction;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/refreshReserve.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
export declare const refreshReserveInstruction: (reserve: PublicKey, solendProgramAddress: PublicKey, oracle?: PublicKey, switchboardFeedAddress?: PublicKey) => TransactionInstruction;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/repayObligationLiquidity.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/syncNative.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
/**
* Construct a SyncNative instruction
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/updateMetadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
export declare const updateMetadataInstruction: (lendingMarket: PublicKey, lendingMarketOwner: PublicKey, lendingProgramId: PublicKey, marketName: string, marketDescription: string, marketImageUrl: string) => TransactionInstruction;
2 changes: 2 additions & 0 deletions solend-sdk/dist/instructions/updateReserveConfig.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
import { RateLimiterConfig } from "../state/rateLimiter";
import { ReserveConfig } from "../state/reserve";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
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;
2 changes: 2 additions & 0 deletions solend-sdk/dist/state/lendingMarket.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference types="node" />
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { AccountInfo, PublicKey } from "@solana/web3.js";
import { RateLimiter } from "./rateLimiter";
declare const BufferLayout: any;
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/state/obligation.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference types="node" />
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { AccountInfo, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
import { LastUpdate } from "./lastUpdate";
Expand Down
2 changes: 2 additions & 0 deletions solend-sdk/dist/state/reserve.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference types="node" />
/// <reference types="@project-serum/anchor/node_modules/@solana/web3.js" />
/// <reference types="@pythnetwork/client/node_modules/@solana/web3.js" />
import { AccountInfo, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
import { Buffer } from "buffer";
Expand Down
2 changes: 1 addition & 1 deletion solend-sdk/dist/state/reserve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
1 change: 1 addition & 0 deletions solend-sdk/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./constants";
export * from "./utils";
export * from "./types";
export * from "./margin";
export * from "./actions";
2 changes: 2 additions & 0 deletions solend-sdk/src/instructions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f9f8d6e

Please sign in to comment.