├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .prettierignore ├── README.md ├── __tests__ ├── flash_loan.test.ts └── market.test.ts ├── docs ├── .nojekyll ├── CNAME ├── assets │ ├── highlight.css │ ├── icons.css │ ├── icons.png │ ├── icons@2x.png │ ├── main.js │ ├── search.js │ ├── style.css │ ├── widgets.png │ └── widgets@2x.png ├── classes │ ├── SolendAction.html │ ├── SolendClaim.html │ ├── SolendMarket.html │ ├── SolendObligation.html │ ├── SolendReserve.html │ └── SolendWallet.html ├── index.html ├── interfaces │ ├── LastUpdate.html │ ├── LendingMarket.html │ ├── Obligation.html │ ├── ObligationCollateral.html │ ├── ObligationLiquidity.html │ ├── ProtoObligation.html │ ├── Reserve.html │ ├── ReserveCollateral.html │ ├── ReserveConfig.html │ └── ReserveLiquidity.html └── modules.html ├── jest.config.js ├── package.json ├── setupJest.js ├── src ├── classes │ ├── action.ts │ ├── claim.ts │ ├── constants.ts │ ├── index.ts │ ├── market.ts │ ├── obligation.ts │ ├── reserve.ts │ ├── shared.ts │ ├── utils.ts │ └── wallet.ts ├── experimental │ └── break_flash_loans.ts ├── global.d.ts ├── index.ts ├── instructions │ ├── borrowObligationLiquidity.ts │ ├── depositObligationCollateral.ts │ ├── depositReserveLiquidity.ts │ ├── depositReserveLiquidityAndObligationCollateral.ts │ ├── flashBorrowReserveLiquidity.ts │ ├── flashRepayReserveLiquidity.ts │ ├── index.ts │ ├── initLendingMarket.ts │ ├── initObligation.ts │ ├── initReserve.ts │ ├── instruction.ts │ ├── redeemReserveCollateral.ts │ ├── refreshObligation.ts │ ├── refreshReserve.ts │ ├── repayObligationLiquidity.ts │ ├── syncNative.ts │ ├── updateReserveConfig.ts │ ├── withdrawObligationCollateral.ts │ └── withdrawObligationCollateralAndRedeemReserveLiquidity.ts ├── lib.ts ├── state │ ├── index.ts │ ├── lastUpdate.ts │ ├── lendingMarket.ts │ ├── obligation.ts │ └── reserve.ts └── utils │ ├── layout.ts │ └── merkle_distributor.ts ├── tsconfig.eslint.json ├── tsconfig.json ├── typedoc.json └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | __tests__ 3 | docs 4 | node_modules 5 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | __tests__/ 3 | docs/ 4 | node_modules/ 5 | *.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/flash_loan.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/__tests__/flash_loan.test.ts -------------------------------------------------------------------------------- /__tests__/market.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/__tests__/market.test.ts -------------------------------------------------------------------------------- /docs/.nojekyll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/.nojekyll -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | sdk.solend.fi -------------------------------------------------------------------------------- /docs/assets/highlight.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/highlight.css -------------------------------------------------------------------------------- /docs/assets/icons.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/icons.css -------------------------------------------------------------------------------- /docs/assets/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/icons.png -------------------------------------------------------------------------------- /docs/assets/icons@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/icons@2x.png -------------------------------------------------------------------------------- /docs/assets/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/main.js -------------------------------------------------------------------------------- /docs/assets/search.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/search.js -------------------------------------------------------------------------------- /docs/assets/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/style.css -------------------------------------------------------------------------------- /docs/assets/widgets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/widgets.png -------------------------------------------------------------------------------- /docs/assets/widgets@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/assets/widgets@2x.png -------------------------------------------------------------------------------- /docs/classes/SolendAction.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/classes/SolendAction.html -------------------------------------------------------------------------------- /docs/classes/SolendClaim.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/classes/SolendClaim.html -------------------------------------------------------------------------------- /docs/classes/SolendMarket.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/classes/SolendMarket.html -------------------------------------------------------------------------------- /docs/classes/SolendObligation.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/classes/SolendObligation.html -------------------------------------------------------------------------------- /docs/classes/SolendReserve.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/classes/SolendReserve.html -------------------------------------------------------------------------------- /docs/classes/SolendWallet.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/classes/SolendWallet.html -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/index.html -------------------------------------------------------------------------------- /docs/interfaces/LastUpdate.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/LastUpdate.html -------------------------------------------------------------------------------- /docs/interfaces/LendingMarket.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/LendingMarket.html -------------------------------------------------------------------------------- /docs/interfaces/Obligation.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/Obligation.html -------------------------------------------------------------------------------- /docs/interfaces/ObligationCollateral.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/ObligationCollateral.html -------------------------------------------------------------------------------- /docs/interfaces/ObligationLiquidity.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/ObligationLiquidity.html -------------------------------------------------------------------------------- /docs/interfaces/ProtoObligation.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/ProtoObligation.html -------------------------------------------------------------------------------- /docs/interfaces/Reserve.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/Reserve.html -------------------------------------------------------------------------------- /docs/interfaces/ReserveCollateral.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/ReserveCollateral.html -------------------------------------------------------------------------------- /docs/interfaces/ReserveConfig.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/ReserveConfig.html -------------------------------------------------------------------------------- /docs/interfaces/ReserveLiquidity.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/interfaces/ReserveLiquidity.html -------------------------------------------------------------------------------- /docs/modules.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/docs/modules.html -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/package.json -------------------------------------------------------------------------------- /setupJest.js: -------------------------------------------------------------------------------- 1 | require("jest-fetch-mock").enableMocks(); 2 | -------------------------------------------------------------------------------- /src/classes/action.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/action.ts -------------------------------------------------------------------------------- /src/classes/claim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/claim.ts -------------------------------------------------------------------------------- /src/classes/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/constants.ts -------------------------------------------------------------------------------- /src/classes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/index.ts -------------------------------------------------------------------------------- /src/classes/market.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/market.ts -------------------------------------------------------------------------------- /src/classes/obligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/obligation.ts -------------------------------------------------------------------------------- /src/classes/reserve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/reserve.ts -------------------------------------------------------------------------------- /src/classes/shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/shared.ts -------------------------------------------------------------------------------- /src/classes/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/utils.ts -------------------------------------------------------------------------------- /src/classes/wallet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/classes/wallet.ts -------------------------------------------------------------------------------- /src/experimental/break_flash_loans.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/experimental/break_flash_loans.ts -------------------------------------------------------------------------------- /src/global.d.ts: -------------------------------------------------------------------------------- 1 | declare module "buffer-layout"; 2 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./lib"; 2 | -------------------------------------------------------------------------------- /src/instructions/borrowObligationLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/borrowObligationLiquidity.ts -------------------------------------------------------------------------------- /src/instructions/depositObligationCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/depositObligationCollateral.ts -------------------------------------------------------------------------------- /src/instructions/depositReserveLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/depositReserveLiquidity.ts -------------------------------------------------------------------------------- /src/instructions/depositReserveLiquidityAndObligationCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/depositReserveLiquidityAndObligationCollateral.ts -------------------------------------------------------------------------------- /src/instructions/flashBorrowReserveLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/flashBorrowReserveLiquidity.ts -------------------------------------------------------------------------------- /src/instructions/flashRepayReserveLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/flashRepayReserveLiquidity.ts -------------------------------------------------------------------------------- /src/instructions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/index.ts -------------------------------------------------------------------------------- /src/instructions/initLendingMarket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/initLendingMarket.ts -------------------------------------------------------------------------------- /src/instructions/initObligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/initObligation.ts -------------------------------------------------------------------------------- /src/instructions/initReserve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/initReserve.ts -------------------------------------------------------------------------------- /src/instructions/instruction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/instruction.ts -------------------------------------------------------------------------------- /src/instructions/redeemReserveCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/redeemReserveCollateral.ts -------------------------------------------------------------------------------- /src/instructions/refreshObligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/refreshObligation.ts -------------------------------------------------------------------------------- /src/instructions/refreshReserve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/refreshReserve.ts -------------------------------------------------------------------------------- /src/instructions/repayObligationLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/repayObligationLiquidity.ts -------------------------------------------------------------------------------- /src/instructions/syncNative.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/syncNative.ts -------------------------------------------------------------------------------- /src/instructions/updateReserveConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/updateReserveConfig.ts -------------------------------------------------------------------------------- /src/instructions/withdrawObligationCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/withdrawObligationCollateral.ts -------------------------------------------------------------------------------- /src/instructions/withdrawObligationCollateralAndRedeemReserveLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/instructions/withdrawObligationCollateralAndRedeemReserveLiquidity.ts -------------------------------------------------------------------------------- /src/lib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/lib.ts -------------------------------------------------------------------------------- /src/state/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/state/index.ts -------------------------------------------------------------------------------- /src/state/lastUpdate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/state/lastUpdate.ts -------------------------------------------------------------------------------- /src/state/lendingMarket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/state/lendingMarket.ts -------------------------------------------------------------------------------- /src/state/obligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/state/obligation.ts -------------------------------------------------------------------------------- /src/state/reserve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/state/reserve.ts -------------------------------------------------------------------------------- /src/utils/layout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/utils/layout.ts -------------------------------------------------------------------------------- /src/utils/merkle_distributor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/src/utils/merkle_distributor.ts -------------------------------------------------------------------------------- /tsconfig.eslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "include": [".eslintrc.js"] 3 | } 4 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/typedoc.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solendprotocol/solend-sdk/HEAD/yarn.lock --------------------------------------------------------------------------------