@gearbox-protocol/sdk 3.0.0-next.72 → 3.0.0-next.73
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/contracts/index.sol +3 -1
- package/lib/core/events.js +7 -7
- package/lib/core/transactions.js +11 -11
- package/lib/pathfinder/core.d.ts +1 -1
- package/lib/pathfinder/pathfinder.d.ts +6 -6
- package/lib/pathfinder/pathfinder.js +5 -5
- package/lib/types/FarmAccounting.d.ts +27 -0
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +4 -14
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +3 -5
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +1 -9
- package/lib/types/IFarmingPool.d.ts +318 -0
- package/lib/types/{interfaces/IRouter.d.ts → IRouterV3.d.ts} +4 -4
- package/lib/types/IRouterV3.js +2 -0
- package/lib/types/factories/FarmAccounting__factory.d.ts +33 -0
- package/lib/types/factories/FarmAccounting__factory.js +57 -0
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +0 -5
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +0 -6
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +0 -15
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +0 -19
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +0 -10
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +0 -13
- package/lib/types/factories/IFarmingPool__factory.d.ts +299 -0
- package/lib/types/factories/IFarmingPool__factory.js +396 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +4 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +5 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +4 -0
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +5 -0
- package/lib/types/factories/{interfaces/IRouter__factory.d.ts → IRouterV3__factory.d.ts} +4 -4
- package/lib/types/factories/{interfaces/IRouter__factory.js → IRouterV3__factory.js} +3 -3
- package/lib/types/factories/index.d.ts +3 -1
- package/lib/types/factories/index.js +8 -3
- package/lib/types/index.d.ts +9 -7
- package/lib/types/index.js +15 -11
- package/package.json +6 -5
- package/lib/types/factories/interfaces/index.d.ts +0 -1
- package/lib/types/factories/interfaces/index.js +0 -8
- package/lib/types/interfaces/index.d.ts +0 -1
- /package/lib/types/{interfaces/IRouter.js → FarmAccounting.js} +0 -0
- /package/lib/types/{interfaces/index.js → IFarmingPool.js} +0 -0
package/contracts/index.sol
CHANGED
|
@@ -70,4 +70,6 @@ import {ICurveV1_3AssetsAdapter} from
|
|
|
70
70
|
import {ICurveV1_4AssetsAdapter} from
|
|
71
71
|
"@gearbox-protocol/integrations-v3/contracts/interfaces/curve/ICurveV1_4AssetsAdapter.sol";
|
|
72
72
|
|
|
73
|
-
import {
|
|
73
|
+
import {IRouterV3} from "@gearbox-protocol/router-v3/contracts/interfaces/IRouterV3.sol";
|
|
74
|
+
|
|
75
|
+
import {IFarmingPool} from "@1inch/farming/contracts/interfaces/IFarmingPool.sol";
|
package/lib/core/events.js
CHANGED
|
@@ -158,7 +158,7 @@ class EventOpenCreditAccount extends eventOrTx_1.EVMEvent {
|
|
|
158
158
|
}
|
|
159
159
|
toString() {
|
|
160
160
|
const [symbol, decimals = 18] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
161
|
-
return `Credit
|
|
161
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: opened with debt ${(0, sdk_gov_1.formatBN)(this.amount, decimals)} ${symbol}`;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
exports.EventOpenCreditAccount = EventOpenCreditAccount;
|
|
@@ -171,7 +171,7 @@ class EventCloseCreditAccount extends eventOrTx_1.EVMEvent {
|
|
|
171
171
|
this.creditManager = opts.creditManager;
|
|
172
172
|
}
|
|
173
173
|
toString() {
|
|
174
|
-
return `Credit
|
|
174
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: was closed`;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
exports.EventCloseCreditAccount = EventCloseCreditAccount;
|
|
@@ -187,7 +187,7 @@ class EventLiquidateCreditAccount extends eventOrTx_1.EVMEvent {
|
|
|
187
187
|
}
|
|
188
188
|
toString() {
|
|
189
189
|
const [symbol, decimals = 18] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
190
|
-
return `Credit
|
|
190
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: was liquidated. ${(0, sdk_gov_1.formatBN)(this.amount, decimals)} ${symbol} were paid back as remaining funds`;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
exports.EventLiquidateCreditAccount = EventLiquidateCreditAccount;
|
|
@@ -200,7 +200,7 @@ class EventRepayCreditAccount extends eventOrTx_1.EVMEvent {
|
|
|
200
200
|
this.creditManager = opts.creditManager;
|
|
201
201
|
}
|
|
202
202
|
toString() {
|
|
203
|
-
return `Credit
|
|
203
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: was repaid`;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
exports.EventRepayCreditAccount = EventRepayCreditAccount;
|
|
@@ -216,7 +216,7 @@ class EventAddCollateral extends eventOrTx_1.EVMEvent {
|
|
|
216
216
|
}
|
|
217
217
|
toString() {
|
|
218
218
|
const [symbol, decimals = 18] = (0, sdk_gov_1.extractTokenData)(this.addedToken);
|
|
219
|
-
return `Credit
|
|
219
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: added ${(0, sdk_gov_1.formatBN)(this.amount, decimals)} ${symbol} as collateral`;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
exports.EventAddCollateral = EventAddCollateral;
|
|
@@ -232,7 +232,7 @@ class EventIncreaseBorrowAmount extends eventOrTx_1.EVMEvent {
|
|
|
232
232
|
}
|
|
233
233
|
toString() {
|
|
234
234
|
const [symbol, decimals = 18] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
235
|
-
return `Credit
|
|
235
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: borrowed amount was increased for ${(0, sdk_gov_1.formatBN)(this.amount, decimals)} ${symbol}`;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
exports.EventIncreaseBorrowAmount = EventIncreaseBorrowAmount;
|
|
@@ -248,7 +248,7 @@ class EventDecreaseBorrowAmount extends eventOrTx_1.EVMEvent {
|
|
|
248
248
|
}
|
|
249
249
|
toString() {
|
|
250
250
|
const [symbol, decimals = 18] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
251
|
-
return `Credit
|
|
251
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: borrowed amount was decreased for ${(0, sdk_gov_1.formatBN)(this.amount, decimals)} ${symbol}`;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
exports.EventDecreaseBorrowAmount = EventDecreaseBorrowAmount;
|
package/lib/core/transactions.js
CHANGED
|
@@ -131,7 +131,7 @@ class TXSwap extends eventOrTx_1.EVMTx {
|
|
|
131
131
|
toPart = ` ⇒ ${(0, sdk_gov_1.formatBN)(this.amountTo, toDecimals || 18)} ${toSymbol}`;
|
|
132
132
|
}
|
|
133
133
|
const [fromSymbol, fromDecimals] = (0, sdk_gov_1.extractTokenData)(this.tokenFrom);
|
|
134
|
-
return `Credit
|
|
134
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: ${this.operation} ${(0, sdk_gov_1.formatBN)(this.amountFrom, fromDecimals || 18)} ${fromSymbol} ${toPart} on ${(0, contractsRegister_1.getContractName)(this.protocol)}`;
|
|
135
135
|
}
|
|
136
136
|
serialize() {
|
|
137
137
|
return {
|
|
@@ -153,7 +153,7 @@ class TxAddCollateral extends eventOrTx_1.EVMTx {
|
|
|
153
153
|
}
|
|
154
154
|
toString() {
|
|
155
155
|
const [addedSymbol, addedDecimals] = (0, sdk_gov_1.extractTokenData)(this.addedToken);
|
|
156
|
-
return `Credit
|
|
156
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: Added ${(0, sdk_gov_1.formatBN)(this.amount, addedDecimals || 18)} ${addedSymbol} as collateral`;
|
|
157
157
|
}
|
|
158
158
|
serialize() {
|
|
159
159
|
return {
|
|
@@ -175,7 +175,7 @@ class TxIncreaseBorrowAmount extends eventOrTx_1.EVMTx {
|
|
|
175
175
|
}
|
|
176
176
|
toString() {
|
|
177
177
|
const [tokenSymbol, tokenDecimals] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
178
|
-
return `Credit
|
|
178
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: Borrowed amount was increased for ${(0, sdk_gov_1.formatBN)(this.amount, tokenDecimals || 18)} ${tokenSymbol}`;
|
|
179
179
|
}
|
|
180
180
|
serialize() {
|
|
181
181
|
return {
|
|
@@ -197,7 +197,7 @@ class TxDecreaseBorrowAmount extends eventOrTx_1.EVMTx {
|
|
|
197
197
|
}
|
|
198
198
|
toString() {
|
|
199
199
|
const [tokenSymbol, tokenDecimals] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
200
|
-
return `Credit
|
|
200
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: Borrowed amount was decreased for ${(0, sdk_gov_1.formatBN)(this.amount, tokenDecimals || 18)} ${tokenSymbol}`;
|
|
201
201
|
}
|
|
202
202
|
serialize() {
|
|
203
203
|
return {
|
|
@@ -221,7 +221,7 @@ class TxOpenAccount extends eventOrTx_1.EVMTx {
|
|
|
221
221
|
}
|
|
222
222
|
toString() {
|
|
223
223
|
const [tokenSymbol, tokenDecimals] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
224
|
-
return `Credit
|
|
224
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: opening ${(0, sdk_gov_1.formatBN)(this.amount, tokenDecimals || 18)} ${tokenSymbol} x ${this.leverage.toFixed(2)} ⇒
|
|
225
225
|
${(0, sdk_gov_1.formatBN)((this.amount *
|
|
226
226
|
BigInt(Math.floor(this.leverage * Number(sdk_gov_1.LEVERAGE_DECIMALS)))) /
|
|
227
227
|
sdk_gov_1.LEVERAGE_DECIMALS, tokenDecimals || 18)} ${tokenSymbol}`;
|
|
@@ -254,7 +254,7 @@ class TxOpenMultitokenAccount extends eventOrTx_1.EVMTx {
|
|
|
254
254
|
return acc;
|
|
255
255
|
}, []);
|
|
256
256
|
const [symbol, underlyingDecimals] = (0, sdk_gov_1.extractTokenData)(this.underlyingToken);
|
|
257
|
-
return `Credit
|
|
257
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: opening. Borrowed amount: ${(0, sdk_gov_1.formatBN)(this.borrowedAmount, underlyingDecimals || 18)} ${symbol}; assets: ${assetSymbols.join(", ")}`;
|
|
258
258
|
}
|
|
259
259
|
serialize() {
|
|
260
260
|
return {
|
|
@@ -324,7 +324,7 @@ class TxRepayAccount extends eventOrTx_1.EVMTx {
|
|
|
324
324
|
this.creditManager = opts.creditManager;
|
|
325
325
|
}
|
|
326
326
|
toString() {
|
|
327
|
-
return `Credit
|
|
327
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: Repaying account`;
|
|
328
328
|
}
|
|
329
329
|
serialize() {
|
|
330
330
|
return {
|
|
@@ -341,7 +341,7 @@ class TxCloseAccount extends eventOrTx_1.EVMTx {
|
|
|
341
341
|
this.creditManager = opts.creditManager;
|
|
342
342
|
}
|
|
343
343
|
toString() {
|
|
344
|
-
return `Credit
|
|
344
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: Closing account`;
|
|
345
345
|
}
|
|
346
346
|
serialize() {
|
|
347
347
|
return {
|
|
@@ -394,7 +394,7 @@ class TxEnableTokens extends eventOrTx_1.EVMTx {
|
|
|
394
394
|
? `disabled: ${disabledSymbols.join(", ")}`
|
|
395
395
|
: "",
|
|
396
396
|
].filter(s => !!s);
|
|
397
|
-
return `Credit
|
|
397
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: ${currentSentences.join("; ")}`;
|
|
398
398
|
}
|
|
399
399
|
serialize() {
|
|
400
400
|
return {
|
|
@@ -422,7 +422,7 @@ class TxUpdateQuota extends eventOrTx_1.EVMTx {
|
|
|
422
422
|
const amountString = (0, sdk_gov_1.formatBN)(math_1.BigIntMath.abs(balance), underlyingDecimals || 18);
|
|
423
423
|
return `${tokenSymbol} by ${sign}${amountString}`;
|
|
424
424
|
});
|
|
425
|
-
return `Credit
|
|
425
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)} quota updated: ${quota.join("; ")}`;
|
|
426
426
|
}
|
|
427
427
|
serialize() {
|
|
428
428
|
return {
|
|
@@ -517,7 +517,7 @@ class TxWithdrawCollateral extends eventOrTx_1.EVMTx {
|
|
|
517
517
|
}
|
|
518
518
|
toString() {
|
|
519
519
|
const [symbol, decimals] = (0, sdk_gov_1.extractTokenData)(this.token);
|
|
520
|
-
return `Credit
|
|
520
|
+
return `Credit Account ${(0, contractsRegister_1.getContractName)(this.creditManager)}: withdrawn ${(0, sdk_gov_1.formatBN)(this.amount, decimals || 18)} ${symbol}`;
|
|
521
521
|
}
|
|
522
522
|
serialize() {
|
|
523
523
|
return {
|
package/lib/pathfinder/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExcludeArrayProps } from "@gearbox-protocol/sdk-gov";
|
|
2
|
-
import { MultiCallStructOutput, RouterResultStructOutput, SwapTaskStruct } from "../types/
|
|
2
|
+
import { MultiCallStructOutput, RouterResultStructOutput, SwapTaskStruct } from "../types/IRouterV3";
|
|
3
3
|
import { BigintifyProps } from "../utils/types";
|
|
4
4
|
export declare enum SwapOperation {
|
|
5
5
|
EXACT_INPUT = 0,
|
|
@@ -3,7 +3,7 @@ import { providers, Signer } from "ethers";
|
|
|
3
3
|
import { Asset } from "../core/assets";
|
|
4
4
|
import { CreditAccountData } from "../core/creditAccount";
|
|
5
5
|
import { CreditManagerData } from "../core/creditManager";
|
|
6
|
-
import {
|
|
6
|
+
import { IRouterV3 } from "../types";
|
|
7
7
|
import { PathFinderCloseResult, PathFinderOpenStrategyResult, PathFinderResult, SwapOperation } from "./core";
|
|
8
8
|
interface FindAllSwapsProps {
|
|
9
9
|
creditAccount: CreditAccountData;
|
|
@@ -37,7 +37,7 @@ interface FindOpenStrategyPathProps {
|
|
|
37
37
|
slippage: number;
|
|
38
38
|
}
|
|
39
39
|
export declare class PathFinder {
|
|
40
|
-
pathFinder:
|
|
40
|
+
pathFinder: IRouterV3;
|
|
41
41
|
network: NetworkType;
|
|
42
42
|
static connectors: Array<SupportedToken>;
|
|
43
43
|
protected readonly _connectors: Array<string>;
|
|
@@ -45,10 +45,10 @@ export declare class PathFinder {
|
|
|
45
45
|
findAllSwaps({ creditAccount, swapOperation, tokenIn, tokenOut, amount, leftoverAmount, slippage, }: FindAllSwapsProps): Promise<Array<PathFinderResult>>;
|
|
46
46
|
findOneTokenPath({ creditAccount, tokenIn, tokenOut, amount, slippage, }: FindOneTokenPathProps): Promise<PathFinderResult>;
|
|
47
47
|
/**
|
|
48
|
-
* @dev Finds the best path for opening
|
|
49
|
-
* @param cm CreditManagerData which represents credit manager you want to use to open
|
|
48
|
+
* @dev Finds the best path for opening Credit Account and converting all NORMAL tokens and LP token in the way to TARGET
|
|
49
|
+
* @param cm CreditManagerData which represents credit manager you want to use to open Credit Account
|
|
50
50
|
* @param expectedBalances Expected balances which would be on account accounting also debt. For example,
|
|
51
|
-
* if you open an USDC
|
|
51
|
+
* if you open an USDC Credit Account, borrow 50_000 USDC and provide 10 WETH and 10_USDC as collateral
|
|
52
52
|
* from your own funds, expectedBalances should be: { "USDC": 60_000 * (10**6), "<address of WETH>": WAD.mul(10) }
|
|
53
53
|
*
|
|
54
54
|
* @param target Address of symbol of desired token
|
|
@@ -58,7 +58,7 @@ export declare class PathFinder {
|
|
|
58
58
|
findOpenStrategyPath({ creditManager: cm, expectedBalances, leftoverBalances, target, slippage, }: FindOpenStrategyPathProps): Promise<PathFinderOpenStrategyResult>;
|
|
59
59
|
/**
|
|
60
60
|
* @dev Finds the path to swap / withdraw all assets from CreditAccount into underlying asset
|
|
61
|
-
* Can bu used for closing
|
|
61
|
+
* Can bu used for closing Credit Account and for liquidations as well.
|
|
62
62
|
* @param creditAccount CreditAccountData object used for close path computation
|
|
63
63
|
* @param slippage Slippage in PERCENTAGE_FORMAT (100% = 10_000) per operation
|
|
64
64
|
* @return The best option in PathFinderCloseResult format, which
|
|
@@ -17,7 +17,7 @@ class PathFinder {
|
|
|
17
17
|
];
|
|
18
18
|
_connectors;
|
|
19
19
|
constructor(address, provider, network = "Mainnet", connectors = PathFinder.connectors) {
|
|
20
|
-
this.pathFinder = types_1.
|
|
20
|
+
this.pathFinder = types_1.IRouterV3__factory.connect(address, provider);
|
|
21
21
|
this.network = network;
|
|
22
22
|
this._connectors = connectors
|
|
23
23
|
.map(c => sdk_gov_1.tokenDataByNetwork[this.network][c]?.toLowerCase())
|
|
@@ -64,10 +64,10 @@ class PathFinder {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* @dev Finds the best path for opening
|
|
68
|
-
* @param cm CreditManagerData which represents credit manager you want to use to open
|
|
67
|
+
* @dev Finds the best path for opening Credit Account and converting all NORMAL tokens and LP token in the way to TARGET
|
|
68
|
+
* @param cm CreditManagerData which represents credit manager you want to use to open Credit Account
|
|
69
69
|
* @param expectedBalances Expected balances which would be on account accounting also debt. For example,
|
|
70
|
-
* if you open an USDC
|
|
70
|
+
* if you open an USDC Credit Account, borrow 50_000 USDC and provide 10 WETH and 10_USDC as collateral
|
|
71
71
|
* from your own funds, expectedBalances should be: { "USDC": 60_000 * (10**6), "<address of WETH>": WAD.mul(10) }
|
|
72
72
|
*
|
|
73
73
|
* @param target Address of symbol of desired token
|
|
@@ -109,7 +109,7 @@ class PathFinder {
|
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* @dev Finds the path to swap / withdraw all assets from CreditAccount into underlying asset
|
|
112
|
-
* Can bu used for closing
|
|
112
|
+
* Can bu used for closing Credit Account and for liquidations as well.
|
|
113
113
|
* @param creditAccount CreditAccountData object used for close path computation
|
|
114
114
|
* @param slippage Slippage in PERCENTAGE_FORMAT (100% = 10_000) per operation
|
|
115
115
|
* @return The best option in PathFinderCloseResult format, which
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BaseContract, Signer, utils } from "ethers";
|
|
2
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
4
|
+
export interface FarmAccountingInterface extends utils.Interface {
|
|
5
|
+
functions: {};
|
|
6
|
+
events: {};
|
|
7
|
+
}
|
|
8
|
+
export interface FarmAccounting extends BaseContract {
|
|
9
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
10
|
+
attach(addressOrName: string): this;
|
|
11
|
+
deployed(): Promise<this>;
|
|
12
|
+
interface: FarmAccountingInterface;
|
|
13
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
14
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
15
|
+
listeners(eventName?: string): Array<Listener>;
|
|
16
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
17
|
+
removeAllListeners(eventName?: string): this;
|
|
18
|
+
off: OnEvent<this>;
|
|
19
|
+
on: OnEvent<this>;
|
|
20
|
+
once: OnEvent<this>;
|
|
21
|
+
removeListener: OnEvent<this>;
|
|
22
|
+
functions: {};
|
|
23
|
+
callStatic: {};
|
|
24
|
+
filters: {};
|
|
25
|
+
estimateGas: {};
|
|
26
|
+
populateTransaction: {};
|
|
27
|
+
}
|
|
@@ -24,7 +24,6 @@ export interface ICreditFacadeV3Interface extends utils.Interface {
|
|
|
24
24
|
"forbiddenTokenMask()": FunctionFragment;
|
|
25
25
|
"liquidateCreditAccount(address,address,(address,bytes)[])": FunctionFragment;
|
|
26
26
|
"lossParams()": FunctionFragment;
|
|
27
|
-
"maxApprovedBots()": FunctionFragment;
|
|
28
27
|
"maxDebtPerBlockMultiplier()": FunctionFragment;
|
|
29
28
|
"maxQuotaMultiplier()": FunctionFragment;
|
|
30
29
|
"multicall(address,(address,bytes)[])": FunctionFragment;
|
|
@@ -39,7 +38,7 @@ export interface ICreditFacadeV3Interface extends utils.Interface {
|
|
|
39
38
|
"version()": FunctionFragment;
|
|
40
39
|
"weth()": FunctionFragment;
|
|
41
40
|
};
|
|
42
|
-
getFunction(nameOrSignatureOrTopic: "botList" | "botMulticall" | "canLiquidateWhilePaused" | "closeCreditAccount" | "creditManager" | "debtLimits" | "degenNFT" | "expirable" | "expirationDate" | "forbiddenTokenMask" | "liquidateCreditAccount" | "lossParams" | "
|
|
41
|
+
getFunction(nameOrSignatureOrTopic: "botList" | "botMulticall" | "canLiquidateWhilePaused" | "closeCreditAccount" | "creditManager" | "debtLimits" | "degenNFT" | "expirable" | "expirationDate" | "forbiddenTokenMask" | "liquidateCreditAccount" | "lossParams" | "maxDebtPerBlockMultiplier" | "maxQuotaMultiplier" | "multicall" | "openCreditAccount" | "setBotList" | "setBotPermissions" | "setCumulativeLossParams" | "setDebtLimits" | "setEmergencyLiquidator" | "setExpirationDate" | "setTokenAllowance" | "version" | "weth"): FunctionFragment;
|
|
43
42
|
encodeFunctionData(functionFragment: "botList", values?: undefined): string;
|
|
44
43
|
encodeFunctionData(functionFragment: "botMulticall", values: [PromiseOrValue<string>, MultiCallStruct[]]): string;
|
|
45
44
|
encodeFunctionData(functionFragment: "canLiquidateWhilePaused", values: [PromiseOrValue<string>]): string;
|
|
@@ -52,7 +51,6 @@ export interface ICreditFacadeV3Interface extends utils.Interface {
|
|
|
52
51
|
encodeFunctionData(functionFragment: "forbiddenTokenMask", values?: undefined): string;
|
|
53
52
|
encodeFunctionData(functionFragment: "liquidateCreditAccount", values: [PromiseOrValue<string>, PromiseOrValue<string>, MultiCallStruct[]]): string;
|
|
54
53
|
encodeFunctionData(functionFragment: "lossParams", values?: undefined): string;
|
|
55
|
-
encodeFunctionData(functionFragment: "maxApprovedBots", values?: undefined): string;
|
|
56
54
|
encodeFunctionData(functionFragment: "maxDebtPerBlockMultiplier", values?: undefined): string;
|
|
57
55
|
encodeFunctionData(functionFragment: "maxQuotaMultiplier", values?: undefined): string;
|
|
58
56
|
encodeFunctionData(functionFragment: "multicall", values: [PromiseOrValue<string>, MultiCallStruct[]]): string;
|
|
@@ -90,7 +88,6 @@ export interface ICreditFacadeV3Interface extends utils.Interface {
|
|
|
90
88
|
decodeFunctionResult(functionFragment: "forbiddenTokenMask", data: BytesLike): Result;
|
|
91
89
|
decodeFunctionResult(functionFragment: "liquidateCreditAccount", data: BytesLike): Result;
|
|
92
90
|
decodeFunctionResult(functionFragment: "lossParams", data: BytesLike): Result;
|
|
93
|
-
decodeFunctionResult(functionFragment: "maxApprovedBots", data: BytesLike): Result;
|
|
94
91
|
decodeFunctionResult(functionFragment: "maxDebtPerBlockMultiplier", data: BytesLike): Result;
|
|
95
92
|
decodeFunctionResult(functionFragment: "maxQuotaMultiplier", data: BytesLike): Result;
|
|
96
93
|
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
|
@@ -111,7 +108,7 @@ export interface ICreditFacadeV3Interface extends utils.Interface {
|
|
|
111
108
|
"Execute(address,address)": EventFragment;
|
|
112
109
|
"FinishMultiCall()": EventFragment;
|
|
113
110
|
"IncreaseDebt(address,uint256)": EventFragment;
|
|
114
|
-
"LiquidateCreditAccount(address,address,address,
|
|
111
|
+
"LiquidateCreditAccount(address,address,address,uint256)": EventFragment;
|
|
115
112
|
"OpenCreditAccount(address,address,address,uint256)": EventFragment;
|
|
116
113
|
"StartMultiCall(address,address)": EventFragment;
|
|
117
114
|
"WithdrawCollateral(address,address,uint256,address)": EventFragment;
|
|
@@ -177,7 +174,6 @@ export type IncreaseDebtEvent = TypedEvent<[
|
|
|
177
174
|
export type IncreaseDebtEventFilter = TypedEventFilter<IncreaseDebtEvent>;
|
|
178
175
|
export interface LiquidateCreditAccountEventObject {
|
|
179
176
|
creditAccount: string;
|
|
180
|
-
borrower: string;
|
|
181
177
|
liquidator: string;
|
|
182
178
|
to: string;
|
|
183
179
|
remainingFunds: BigNumber;
|
|
@@ -186,7 +182,6 @@ export type LiquidateCreditAccountEvent = TypedEvent<[
|
|
|
186
182
|
string,
|
|
187
183
|
string,
|
|
188
184
|
string,
|
|
189
|
-
string,
|
|
190
185
|
BigNumber
|
|
191
186
|
], LiquidateCreditAccountEventObject>;
|
|
192
187
|
export type LiquidateCreditAccountEventFilter = TypedEventFilter<LiquidateCreditAccountEvent>;
|
|
@@ -270,7 +265,6 @@ export interface ICreditFacadeV3 extends BaseContract {
|
|
|
270
265
|
currentCumulativeLoss: BigNumber;
|
|
271
266
|
maxCumulativeLoss: BigNumber;
|
|
272
267
|
}>;
|
|
273
|
-
maxApprovedBots(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
274
268
|
maxDebtPerBlockMultiplier(overrides?: CallOverrides): Promise<[number]>;
|
|
275
269
|
maxQuotaMultiplier(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
276
270
|
multicall(creditAccount: PromiseOrValue<string>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
@@ -333,7 +327,6 @@ export interface ICreditFacadeV3 extends BaseContract {
|
|
|
333
327
|
currentCumulativeLoss: BigNumber;
|
|
334
328
|
maxCumulativeLoss: BigNumber;
|
|
335
329
|
}>;
|
|
336
|
-
maxApprovedBots(overrides?: CallOverrides): Promise<BigNumber>;
|
|
337
330
|
maxDebtPerBlockMultiplier(overrides?: CallOverrides): Promise<number>;
|
|
338
331
|
maxQuotaMultiplier(overrides?: CallOverrides): Promise<BigNumber>;
|
|
339
332
|
multicall(creditAccount: PromiseOrValue<string>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
@@ -390,7 +383,6 @@ export interface ICreditFacadeV3 extends BaseContract {
|
|
|
390
383
|
currentCumulativeLoss: BigNumber;
|
|
391
384
|
maxCumulativeLoss: BigNumber;
|
|
392
385
|
}>;
|
|
393
|
-
maxApprovedBots(overrides?: CallOverrides): Promise<BigNumber>;
|
|
394
386
|
maxDebtPerBlockMultiplier(overrides?: CallOverrides): Promise<number>;
|
|
395
387
|
maxQuotaMultiplier(overrides?: CallOverrides): Promise<BigNumber>;
|
|
396
388
|
multicall(creditAccount: PromiseOrValue<string>, calls: MultiCallStruct[], overrides?: CallOverrides): Promise<void>;
|
|
@@ -418,8 +410,8 @@ export interface ICreditFacadeV3 extends BaseContract {
|
|
|
418
410
|
FinishMultiCall(): FinishMultiCallEventFilter;
|
|
419
411
|
"IncreaseDebt(address,uint256)"(creditAccount?: PromiseOrValue<string> | null, amount?: null): IncreaseDebtEventFilter;
|
|
420
412
|
IncreaseDebt(creditAccount?: PromiseOrValue<string> | null, amount?: null): IncreaseDebtEventFilter;
|
|
421
|
-
"LiquidateCreditAccount(address,address,address,
|
|
422
|
-
LiquidateCreditAccount(creditAccount?: PromiseOrValue<string> | null,
|
|
413
|
+
"LiquidateCreditAccount(address,address,address,uint256)"(creditAccount?: PromiseOrValue<string> | null, liquidator?: PromiseOrValue<string> | null, to?: null, remainingFunds?: null): LiquidateCreditAccountEventFilter;
|
|
414
|
+
LiquidateCreditAccount(creditAccount?: PromiseOrValue<string> | null, liquidator?: PromiseOrValue<string> | null, to?: null, remainingFunds?: null): LiquidateCreditAccountEventFilter;
|
|
423
415
|
"OpenCreditAccount(address,address,address,uint256)"(creditAccount?: PromiseOrValue<string> | null, onBehalfOf?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
424
416
|
OpenCreditAccount(creditAccount?: PromiseOrValue<string> | null, onBehalfOf?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
425
417
|
"StartMultiCall(address,address)"(creditAccount?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null): StartMultiCallEventFilter;
|
|
@@ -446,7 +438,6 @@ export interface ICreditFacadeV3 extends BaseContract {
|
|
|
446
438
|
from?: PromiseOrValue<string>;
|
|
447
439
|
}): Promise<BigNumber>;
|
|
448
440
|
lossParams(overrides?: CallOverrides): Promise<BigNumber>;
|
|
449
|
-
maxApprovedBots(overrides?: CallOverrides): Promise<BigNumber>;
|
|
450
441
|
maxDebtPerBlockMultiplier(overrides?: CallOverrides): Promise<BigNumber>;
|
|
451
442
|
maxQuotaMultiplier(overrides?: CallOverrides): Promise<BigNumber>;
|
|
452
443
|
multicall(creditAccount: PromiseOrValue<string>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
@@ -498,7 +489,6 @@ export interface ICreditFacadeV3 extends BaseContract {
|
|
|
498
489
|
from?: PromiseOrValue<string>;
|
|
499
490
|
}): Promise<PopulatedTransaction>;
|
|
500
491
|
lossParams(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
501
|
-
maxApprovedBots(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
502
492
|
maxDebtPerBlockMultiplier(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
503
493
|
maxQuotaMultiplier(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
504
494
|
multicall(creditAccount: PromiseOrValue<string>, calls: MultiCallStruct[], overrides?: PayableOverrides & {
|
|
@@ -11,7 +11,7 @@ export interface ICreditFacadeV3EventsInterface extends utils.Interface {
|
|
|
11
11
|
"Execute(address,address)": EventFragment;
|
|
12
12
|
"FinishMultiCall()": EventFragment;
|
|
13
13
|
"IncreaseDebt(address,uint256)": EventFragment;
|
|
14
|
-
"LiquidateCreditAccount(address,address,address,
|
|
14
|
+
"LiquidateCreditAccount(address,address,address,uint256)": EventFragment;
|
|
15
15
|
"OpenCreditAccount(address,address,address,uint256)": EventFragment;
|
|
16
16
|
"StartMultiCall(address,address)": EventFragment;
|
|
17
17
|
"WithdrawCollateral(address,address,uint256,address)": EventFragment;
|
|
@@ -77,7 +77,6 @@ export type IncreaseDebtEvent = TypedEvent<[
|
|
|
77
77
|
export type IncreaseDebtEventFilter = TypedEventFilter<IncreaseDebtEvent>;
|
|
78
78
|
export interface LiquidateCreditAccountEventObject {
|
|
79
79
|
creditAccount: string;
|
|
80
|
-
borrower: string;
|
|
81
80
|
liquidator: string;
|
|
82
81
|
to: string;
|
|
83
82
|
remainingFunds: BigNumber;
|
|
@@ -86,7 +85,6 @@ export type LiquidateCreditAccountEvent = TypedEvent<[
|
|
|
86
85
|
string,
|
|
87
86
|
string,
|
|
88
87
|
string,
|
|
89
|
-
string,
|
|
90
88
|
BigNumber
|
|
91
89
|
], LiquidateCreditAccountEventObject>;
|
|
92
90
|
export type LiquidateCreditAccountEventFilter = TypedEventFilter<LiquidateCreditAccountEvent>;
|
|
@@ -154,8 +152,8 @@ export interface ICreditFacadeV3Events extends BaseContract {
|
|
|
154
152
|
FinishMultiCall(): FinishMultiCallEventFilter;
|
|
155
153
|
"IncreaseDebt(address,uint256)"(creditAccount?: PromiseOrValue<string> | null, amount?: null): IncreaseDebtEventFilter;
|
|
156
154
|
IncreaseDebt(creditAccount?: PromiseOrValue<string> | null, amount?: null): IncreaseDebtEventFilter;
|
|
157
|
-
"LiquidateCreditAccount(address,address,address,
|
|
158
|
-
LiquidateCreditAccount(creditAccount?: PromiseOrValue<string> | null,
|
|
155
|
+
"LiquidateCreditAccount(address,address,address,uint256)"(creditAccount?: PromiseOrValue<string> | null, liquidator?: PromiseOrValue<string> | null, to?: null, remainingFunds?: null): LiquidateCreditAccountEventFilter;
|
|
156
|
+
LiquidateCreditAccount(creditAccount?: PromiseOrValue<string> | null, liquidator?: PromiseOrValue<string> | null, to?: null, remainingFunds?: null): LiquidateCreditAccountEventFilter;
|
|
159
157
|
"OpenCreditAccount(address,address,address,uint256)"(creditAccount?: PromiseOrValue<string> | null, onBehalfOf?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
160
158
|
OpenCreditAccount(creditAccount?: PromiseOrValue<string> | null, onBehalfOf?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
161
159
|
"StartMultiCall(address,address)"(creditAccount?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null): StartMultiCallEventFilter;
|
|
@@ -113,10 +113,9 @@ export interface ICreditManagerV3Interface extends utils.Interface {
|
|
|
113
113
|
"underlying()": FunctionFragment;
|
|
114
114
|
"updateQuota(address,address,int96,uint96,uint96)": FunctionFragment;
|
|
115
115
|
"version()": FunctionFragment;
|
|
116
|
-
"weth()": FunctionFragment;
|
|
117
116
|
"withdrawCollateral(address,address,uint256,address)": FunctionFragment;
|
|
118
117
|
};
|
|
119
|
-
getFunction(nameOrSignatureOrTopic: "accountFactory" | "adapterToContract" | "addCollateral" | "addToken" | "addressProvider" | "approveCreditAccount" | "approveToken" | "calcDebtAndCollateral" | "closeCreditAccount" | "collateralTokenByMask" | "collateralTokensCount" | "contractToAdapter" | "creditAccountInfo" | "creditAccounts(uint256,uint256)" | "creditAccounts()" | "creditAccountsLen" | "creditConfigurator" | "creditFacade" | "enabledTokensMaskOf" | "execute" | "externalCall" | "fees" | "flagsOf" | "fullCollateralCheck" | "getActiveCreditAccountOrRevert" | "getBorrowerOrRevert" | "getTokenByMask" | "getTokenMaskOrRevert" | "isLiquidatable" | "liquidateCreditAccount" | "liquidationThresholds" | "ltParams" | "manageDebt" | "maxEnabledTokens" | "name" | "openCreditAccount" | "pool" | "poolQuotaKeeper" | "priceOracle" | "quotedTokensMask" | "revokeAdapterAllowances" | "setActiveCreditAccount" | "setCollateralTokenData" | "setContractAllowance" | "setCreditConfigurator" | "setCreditFacade" | "setFees" | "setFlagFor" | "setMaxEnabledTokens" | "setPriceOracle" | "setQuotedMask" | "underlying" | "updateQuota" | "version" | "
|
|
118
|
+
getFunction(nameOrSignatureOrTopic: "accountFactory" | "adapterToContract" | "addCollateral" | "addToken" | "addressProvider" | "approveCreditAccount" | "approveToken" | "calcDebtAndCollateral" | "closeCreditAccount" | "collateralTokenByMask" | "collateralTokensCount" | "contractToAdapter" | "creditAccountInfo" | "creditAccounts(uint256,uint256)" | "creditAccounts()" | "creditAccountsLen" | "creditConfigurator" | "creditFacade" | "enabledTokensMaskOf" | "execute" | "externalCall" | "fees" | "flagsOf" | "fullCollateralCheck" | "getActiveCreditAccountOrRevert" | "getBorrowerOrRevert" | "getTokenByMask" | "getTokenMaskOrRevert" | "isLiquidatable" | "liquidateCreditAccount" | "liquidationThresholds" | "ltParams" | "manageDebt" | "maxEnabledTokens" | "name" | "openCreditAccount" | "pool" | "poolQuotaKeeper" | "priceOracle" | "quotedTokensMask" | "revokeAdapterAllowances" | "setActiveCreditAccount" | "setCollateralTokenData" | "setContractAllowance" | "setCreditConfigurator" | "setCreditFacade" | "setFees" | "setFlagFor" | "setMaxEnabledTokens" | "setPriceOracle" | "setQuotedMask" | "underlying" | "updateQuota" | "version" | "withdrawCollateral"): FunctionFragment;
|
|
120
119
|
encodeFunctionData(functionFragment: "accountFactory", values?: undefined): string;
|
|
121
120
|
encodeFunctionData(functionFragment: "adapterToContract", values: [PromiseOrValue<string>]): string;
|
|
122
121
|
encodeFunctionData(functionFragment: "addCollateral", values: [
|
|
@@ -223,7 +222,6 @@ export interface ICreditManagerV3Interface extends utils.Interface {
|
|
|
223
222
|
PromiseOrValue<BigNumberish>
|
|
224
223
|
]): string;
|
|
225
224
|
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
226
|
-
encodeFunctionData(functionFragment: "weth", values?: undefined): string;
|
|
227
225
|
encodeFunctionData(functionFragment: "withdrawCollateral", values: [
|
|
228
226
|
PromiseOrValue<string>,
|
|
229
227
|
PromiseOrValue<string>,
|
|
@@ -284,7 +282,6 @@ export interface ICreditManagerV3Interface extends utils.Interface {
|
|
|
284
282
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
285
283
|
decodeFunctionResult(functionFragment: "updateQuota", data: BytesLike): Result;
|
|
286
284
|
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
287
|
-
decodeFunctionResult(functionFragment: "weth", data: BytesLike): Result;
|
|
288
285
|
decodeFunctionResult(functionFragment: "withdrawCollateral", data: BytesLike): Result;
|
|
289
286
|
events: {
|
|
290
287
|
"SetCreditConfigurator(address)": EventFragment;
|
|
@@ -477,7 +474,6 @@ export interface ICreditManagerV3 extends BaseContract {
|
|
|
477
474
|
from?: PromiseOrValue<string>;
|
|
478
475
|
}): Promise<ContractTransaction>;
|
|
479
476
|
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
480
|
-
weth(overrides?: CallOverrides): Promise<[string]>;
|
|
481
477
|
withdrawCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, overrides?: Overrides & {
|
|
482
478
|
from?: PromiseOrValue<string>;
|
|
483
479
|
}): Promise<ContractTransaction>;
|
|
@@ -628,7 +624,6 @@ export interface ICreditManagerV3 extends BaseContract {
|
|
|
628
624
|
from?: PromiseOrValue<string>;
|
|
629
625
|
}): Promise<ContractTransaction>;
|
|
630
626
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
631
|
-
weth(overrides?: CallOverrides): Promise<string>;
|
|
632
627
|
withdrawCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, overrides?: Overrides & {
|
|
633
628
|
from?: PromiseOrValue<string>;
|
|
634
629
|
}): Promise<ContractTransaction>;
|
|
@@ -753,7 +748,6 @@ export interface ICreditManagerV3 extends BaseContract {
|
|
|
753
748
|
tokensToDisable: BigNumber;
|
|
754
749
|
}>;
|
|
755
750
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
756
|
-
weth(overrides?: CallOverrides): Promise<string>;
|
|
757
751
|
withdrawCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
758
752
|
};
|
|
759
753
|
filters: {
|
|
@@ -861,7 +855,6 @@ export interface ICreditManagerV3 extends BaseContract {
|
|
|
861
855
|
from?: PromiseOrValue<string>;
|
|
862
856
|
}): Promise<BigNumber>;
|
|
863
857
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
864
|
-
weth(overrides?: CallOverrides): Promise<BigNumber>;
|
|
865
858
|
withdrawCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, overrides?: Overrides & {
|
|
866
859
|
from?: PromiseOrValue<string>;
|
|
867
860
|
}): Promise<BigNumber>;
|
|
@@ -967,7 +960,6 @@ export interface ICreditManagerV3 extends BaseContract {
|
|
|
967
960
|
from?: PromiseOrValue<string>;
|
|
968
961
|
}): Promise<PopulatedTransaction>;
|
|
969
962
|
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
970
|
-
weth(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
971
963
|
withdrawCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, overrides?: Overrides & {
|
|
972
964
|
from?: PromiseOrValue<string>;
|
|
973
965
|
}): Promise<PopulatedTransaction>;
|