-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
2
solend-sdk/dist/instructions/depositObligationCollateral.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
2 changes: 2 additions & 0 deletions
2
solend-sdk/dist/instructions/depositReserveLiquidityAndObligationCollateral.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
2
solend-sdk/dist/instructions/flashBorrowReserveLiquidity.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
2 changes: 2 additions & 0 deletions
2
solend-sdk/dist/instructions/setLendingMarketOwnerAndConfig.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
solend-sdk/dist/instructions/withdrawObligationCollateral.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
2 changes: 2 additions & 0 deletions
2
solend-sdk/dist/instructions/withdrawObligationCollateralAndRedeemReserveLiquidity.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters