@raac/rpc 1.1.0-beta.14 → 1.1.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/RPCLibrary.js
CHANGED
|
@@ -196,8 +196,8 @@ class RPCLibrary {
|
|
|
196
196
|
repayToLendingPool: repayToLendingPool_1.default,
|
|
197
197
|
borrowFromLendingPool: borrowFromLendingPool_1.default,
|
|
198
198
|
getHousePrice: getHousePrice_1.default,
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
depositAssetToLendingPool: depositAssetToLendingPool_1.default,
|
|
200
|
+
withdrawAssetFromLendingPool: withdrawAssetFromLendingPool_1.default,
|
|
201
201
|
getLendingPoolInfo: getLendingPoolInfo_1.default,
|
|
202
202
|
getRawUserDepositsInLendingPool: getRawUserDepositsInLendingPool_1.default,
|
|
203
203
|
getEligibleUserDeposits: getEligibleUserDeposits_1.default,
|
|
@@ -208,6 +208,7 @@ class RPCLibrary {
|
|
|
208
208
|
getPositionView: getPositionView_1.default,
|
|
209
209
|
getUserCollateralValue: getUserCollateralValue_1.default,
|
|
210
210
|
depositToLendingPool: depositToLendingPool_1.default,
|
|
211
|
+
withdrawFromLendingPool: withdrawFromLendingPool_1.default,
|
|
211
212
|
initializeLiquidation: initializeLiquidation_1.default,
|
|
212
213
|
closeLiquidation: closeLiquidation_1.default,
|
|
213
214
|
borrowFromLendingPoolWithInsurance: borrowFromLendingPoolWithInsurance_1.default,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = withdrawAssetFromLendingPool;
|
|
4
4
|
const getAdapterAddress_1 = require("./getAdapterAddress");
|
|
5
5
|
const _helpers_1 = require("./_helpers");
|
|
6
|
-
exports.default = withdrawAssetFromLendingPool;
|
|
7
6
|
async function withdrawAssetFromLendingPool(chainId, adapterName, data, signer) {
|
|
8
7
|
try {
|
|
9
8
|
const lendingPoolContract = await (0, _helpers_1.getLendingPoolContract)(chainId, signer);
|
|
@@ -14,8 +14,8 @@ import withdrawFromLendingPool from "./pools/lendingPool/withdrawFromLendingPool
|
|
|
14
14
|
import getLendingPoolTotalLiquidity from "./pools/lendingPool/getLendingPoolTotalLiquidity";
|
|
15
15
|
import borrowFromLendingPool from "./pools/lendingPool/borrowFromLendingPool";
|
|
16
16
|
import repayToLendingPool from "./pools/lendingPool/repayToLendingPool";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
17
|
+
import depositAssetToLendingPool from "./pools/lendingPool/depositAssetToLendingPool";
|
|
18
|
+
import withdrawAssetFromLendingPool from "./pools/lendingPool/withdrawAssetFromLendingPool";
|
|
19
19
|
import getHousePrice from "./pools/lendingPool/getHousePrice";
|
|
20
20
|
import getERC20AdapterInfo from "./pools/lendingPool/adapters/erc20/getERC20AdapterInfo";
|
|
21
21
|
import getERC20AdapterBalance from "./pools/lendingPool/adapters/erc20/getERC20AdapterBalance";
|
|
@@ -151,8 +151,8 @@ declare class RPCLibrary {
|
|
|
151
151
|
repayToLendingPool: typeof repayToLendingPool;
|
|
152
152
|
borrowFromLendingPool: typeof borrowFromLendingPool;
|
|
153
153
|
getHousePrice: typeof getHousePrice;
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
depositAssetToLendingPool: typeof depositAssetToLendingPool;
|
|
155
|
+
withdrawAssetFromLendingPool: typeof withdrawAssetFromLendingPool;
|
|
156
156
|
getLendingPoolInfo: typeof getLendingPoolInfo;
|
|
157
157
|
getRawUserDepositsInLendingPool: typeof getRawUserDepositsInLendingPool;
|
|
158
158
|
getEligibleUserDeposits: typeof getEligibleUserDeposits;
|
|
@@ -163,6 +163,7 @@ declare class RPCLibrary {
|
|
|
163
163
|
getPositionView: typeof getPositionView;
|
|
164
164
|
getUserCollateralValue: typeof getUserCollateralValue;
|
|
165
165
|
depositToLendingPool: typeof depositToLendingPool;
|
|
166
|
+
withdrawFromLendingPool: typeof withdrawFromLendingPool;
|
|
166
167
|
initializeLiquidation: typeof initializeLiquidation;
|
|
167
168
|
closeLiquidation: typeof closeLiquidation;
|
|
168
169
|
borrowFromLendingPoolWithInsurance: typeof borrowFromLendingPoolWithInsurance;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BytesLike, Signer } from "ethers";
|
|
2
2
|
import { ChainId } from "../../configs/chains/index";
|
|
3
3
|
import { LendingPoolAdapterId } from "./types";
|
|
4
|
-
export default withdrawAssetFromLendingPool
|
|
5
|
-
export declare function withdrawAssetFromLendingPool(chainId: ChainId, adapterName: LendingPoolAdapterId, data: BytesLike, signer: Signer): Promise<boolean>;
|
|
4
|
+
export default function withdrawAssetFromLendingPool(chainId: ChainId, adapterName: LendingPoolAdapterId, data: BytesLike, signer: Signer): Promise<boolean>;
|