@gearbox-protocol/sdk 3.0.0-next.60 → 3.0.0-next.61
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/lib/core/creditManager.d.ts +0 -1
- package/lib/core/creditManager.js +10 -6
- package/lib/pathfinder/core.d.ts +1 -1
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +6 -4
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +6 -4
- package/lib/types/ICreditFacadeV3Multicall.d.ts +41 -25
- package/lib/types/IZapper.d.ts +13 -18
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +5 -0
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +6 -0
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +5 -0
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +6 -0
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +25 -19
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +32 -25
- package/lib/types/factories/IZapper__factory.d.ts +0 -8
- package/lib/types/factories/IZapper__factory.js +0 -10
- package/lib/types/factories/index.d.ts +1 -1
- package/lib/types/factories/index.js +3 -4
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +1 -1
- package/lib/types/factories/interfaces/index.d.ts +1 -0
- package/lib/types/factories/interfaces/index.js +8 -0
- package/lib/types/index.d.ts +13 -11
- package/lib/types/index.js +19 -19
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +1 -1
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/package.json +3 -3
- /package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +0 -0
- /package/lib/types/{IRouter.js → interfaces/IRouter.js} +0 -0
|
@@ -49,7 +49,6 @@ export declare class CreditManagerData {
|
|
|
49
49
|
encodeDisableTokenV2(token: string): MultiCall;
|
|
50
50
|
encodeDisableTokenV3(token: string): MultiCall;
|
|
51
51
|
encodeRevertIfReceivedLessThanV2(assets: Array<Asset>): MultiCall;
|
|
52
|
-
encodeRevertIfReceivedLessThanV3(assets: Array<Asset>): MultiCall;
|
|
53
52
|
encodeUpdateQuotaV3(token: string, quotaChange: bigint, minQuota: bigint): MultiCall;
|
|
54
53
|
encodeWithdrawCollateralV3(token: string, amount: bigint, to: string): MultiCall;
|
|
55
54
|
static withdrawAllAndUnwrap_Convex(address: string, claim: boolean): MultiCall;
|
|
@@ -188,12 +188,16 @@ class CreditManagerData {
|
|
|
188
188
|
callData: types_1.ICreditFacadeV2Extended__factory.createInterface().encodeFunctionData("revertIfReceivedLessThan", [assets]),
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
encodeRevertIfReceivedLessThanV3(assets) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
// encodeRevertIfReceivedLessThanV3(assets: Array<Asset>): MultiCall {
|
|
192
|
+
// return {
|
|
193
|
+
// target: this.creditFacade,
|
|
194
|
+
// callData:
|
|
195
|
+
// ICreditFacadeV3Multicall__factory.createInterface().encodeFunctionData(
|
|
196
|
+
// "revertIfReceivedLessThan",
|
|
197
|
+
// [assets.map(a => ({ token: a.token, amount: a.balance }))],
|
|
198
|
+
// ),
|
|
199
|
+
// };
|
|
200
|
+
// }
|
|
197
201
|
encodeUpdateQuotaV3(token, quotaChange, minQuota) {
|
|
198
202
|
return {
|
|
199
203
|
target: this.creditFacade,
|
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/IRouter";
|
|
2
|
+
import { MultiCallStructOutput, RouterResultStructOutput, SwapTaskStruct } from "../types/interfaces/IRouter";
|
|
3
3
|
import { BigintifyProps } from "../utils/types";
|
|
4
4
|
export declare enum SwapOperation {
|
|
5
5
|
EXACT_INPUT = 0,
|
|
@@ -114,7 +114,7 @@ export interface ICreditFacadeV3Interface extends utils.Interface {
|
|
|
114
114
|
"LiquidateCreditAccount(address,address,address,address,uint256)": EventFragment;
|
|
115
115
|
"OpenCreditAccount(address,address,address,uint256)": EventFragment;
|
|
116
116
|
"StartMultiCall(address,address)": EventFragment;
|
|
117
|
-
"WithdrawCollateral(address,address,uint256)": EventFragment;
|
|
117
|
+
"WithdrawCollateral(address,address,uint256,address)": EventFragment;
|
|
118
118
|
};
|
|
119
119
|
getEvent(nameOrSignatureOrTopic: "AddCollateral"): EventFragment;
|
|
120
120
|
getEvent(nameOrSignatureOrTopic: "CloseCreditAccount"): EventFragment;
|
|
@@ -216,11 +216,13 @@ export interface WithdrawCollateralEventObject {
|
|
|
216
216
|
creditAccount: string;
|
|
217
217
|
token: string;
|
|
218
218
|
amount: BigNumber;
|
|
219
|
+
to: string;
|
|
219
220
|
}
|
|
220
221
|
export type WithdrawCollateralEvent = TypedEvent<[
|
|
221
222
|
string,
|
|
222
223
|
string,
|
|
223
|
-
BigNumber
|
|
224
|
+
BigNumber,
|
|
225
|
+
string
|
|
224
226
|
], WithdrawCollateralEventObject>;
|
|
225
227
|
export type WithdrawCollateralEventFilter = TypedEventFilter<WithdrawCollateralEvent>;
|
|
226
228
|
export interface ICreditFacadeV3 extends BaseContract {
|
|
@@ -422,8 +424,8 @@ export interface ICreditFacadeV3 extends BaseContract {
|
|
|
422
424
|
OpenCreditAccount(creditAccount?: PromiseOrValue<string> | null, onBehalfOf?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
423
425
|
"StartMultiCall(address,address)"(creditAccount?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null): StartMultiCallEventFilter;
|
|
424
426
|
StartMultiCall(creditAccount?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null): StartMultiCallEventFilter;
|
|
425
|
-
"WithdrawCollateral(address,address,uint256)"(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null): WithdrawCollateralEventFilter;
|
|
426
|
-
WithdrawCollateral(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null): WithdrawCollateralEventFilter;
|
|
427
|
+
"WithdrawCollateral(address,address,uint256,address)"(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null, to?: null): WithdrawCollateralEventFilter;
|
|
428
|
+
WithdrawCollateral(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null, to?: null): WithdrawCollateralEventFilter;
|
|
427
429
|
};
|
|
428
430
|
estimateGas: {
|
|
429
431
|
botList(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -14,7 +14,7 @@ export interface ICreditFacadeV3EventsInterface extends utils.Interface {
|
|
|
14
14
|
"LiquidateCreditAccount(address,address,address,address,uint256)": EventFragment;
|
|
15
15
|
"OpenCreditAccount(address,address,address,uint256)": EventFragment;
|
|
16
16
|
"StartMultiCall(address,address)": EventFragment;
|
|
17
|
-
"WithdrawCollateral(address,address,uint256)": EventFragment;
|
|
17
|
+
"WithdrawCollateral(address,address,uint256,address)": EventFragment;
|
|
18
18
|
};
|
|
19
19
|
getEvent(nameOrSignatureOrTopic: "AddCollateral"): EventFragment;
|
|
20
20
|
getEvent(nameOrSignatureOrTopic: "CloseCreditAccount"): EventFragment;
|
|
@@ -116,11 +116,13 @@ export interface WithdrawCollateralEventObject {
|
|
|
116
116
|
creditAccount: string;
|
|
117
117
|
token: string;
|
|
118
118
|
amount: BigNumber;
|
|
119
|
+
to: string;
|
|
119
120
|
}
|
|
120
121
|
export type WithdrawCollateralEvent = TypedEvent<[
|
|
121
122
|
string,
|
|
122
123
|
string,
|
|
123
|
-
BigNumber
|
|
124
|
+
BigNumber,
|
|
125
|
+
string
|
|
124
126
|
], WithdrawCollateralEventObject>;
|
|
125
127
|
export type WithdrawCollateralEventFilter = TypedEventFilter<WithdrawCollateralEvent>;
|
|
126
128
|
export interface ICreditFacadeV3Events extends BaseContract {
|
|
@@ -158,8 +160,8 @@ export interface ICreditFacadeV3Events extends BaseContract {
|
|
|
158
160
|
OpenCreditAccount(creditAccount?: PromiseOrValue<string> | null, onBehalfOf?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
159
161
|
"StartMultiCall(address,address)"(creditAccount?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null): StartMultiCallEventFilter;
|
|
160
162
|
StartMultiCall(creditAccount?: PromiseOrValue<string> | null, caller?: PromiseOrValue<string> | null): StartMultiCallEventFilter;
|
|
161
|
-
"WithdrawCollateral(address,address,uint256)"(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null): WithdrawCollateralEventFilter;
|
|
162
|
-
WithdrawCollateral(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null): WithdrawCollateralEventFilter;
|
|
163
|
+
"WithdrawCollateral(address,address,uint256,address)"(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null, to?: null): WithdrawCollateralEventFilter;
|
|
164
|
+
WithdrawCollateral(creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, amount?: null, to?: null): WithdrawCollateralEventFilter;
|
|
163
165
|
};
|
|
164
166
|
estimateGas: {};
|
|
165
167
|
populateTransaction: {};
|
|
@@ -2,14 +2,6 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, C
|
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common";
|
|
5
|
-
export type BalanceDeltaStruct = {
|
|
6
|
-
token: PromiseOrValue<string>;
|
|
7
|
-
amount: PromiseOrValue<BigNumberish>;
|
|
8
|
-
};
|
|
9
|
-
export type BalanceDeltaStructOutput = [string, BigNumber] & {
|
|
10
|
-
token: string;
|
|
11
|
-
amount: BigNumber;
|
|
12
|
-
};
|
|
13
5
|
export type RevocationPairStruct = {
|
|
14
6
|
spender: PromiseOrValue<string>;
|
|
15
7
|
token: PromiseOrValue<string>;
|
|
@@ -18,22 +10,31 @@ export type RevocationPairStructOutput = [string, string] & {
|
|
|
18
10
|
spender: string;
|
|
19
11
|
token: string;
|
|
20
12
|
};
|
|
13
|
+
export type BalanceDeltaStruct = {
|
|
14
|
+
token: PromiseOrValue<string>;
|
|
15
|
+
amount: PromiseOrValue<BigNumberish>;
|
|
16
|
+
};
|
|
17
|
+
export type BalanceDeltaStructOutput = [string, BigNumber] & {
|
|
18
|
+
token: string;
|
|
19
|
+
amount: BigNumber;
|
|
20
|
+
};
|
|
21
21
|
export interface ICreditFacadeV3MulticallInterface extends utils.Interface {
|
|
22
22
|
functions: {
|
|
23
23
|
"addCollateral(address,uint256)": FunctionFragment;
|
|
24
24
|
"addCollateralWithPermit(address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment;
|
|
25
|
+
"compareBalances()": FunctionFragment;
|
|
25
26
|
"decreaseDebt(uint256)": FunctionFragment;
|
|
26
27
|
"disableToken(address)": FunctionFragment;
|
|
27
28
|
"enableToken(address)": FunctionFragment;
|
|
28
29
|
"increaseDebt(uint256)": FunctionFragment;
|
|
29
30
|
"onDemandPriceUpdate(address,bool,bytes)": FunctionFragment;
|
|
30
|
-
"revertIfReceivedLessThan((address,int256)[])": FunctionFragment;
|
|
31
31
|
"revokeAdapterAllowances((address,address)[])": FunctionFragment;
|
|
32
32
|
"setFullCheckParams(uint256[],uint16)": FunctionFragment;
|
|
33
|
+
"storeExpectedBalances((address,int256)[])": FunctionFragment;
|
|
33
34
|
"updateQuota(address,int96,uint96)": FunctionFragment;
|
|
34
35
|
"withdrawCollateral(address,uint256,address)": FunctionFragment;
|
|
35
36
|
};
|
|
36
|
-
getFunction(nameOrSignatureOrTopic: "addCollateral" | "addCollateralWithPermit" | "decreaseDebt" | "disableToken" | "enableToken" | "increaseDebt" | "onDemandPriceUpdate" | "
|
|
37
|
+
getFunction(nameOrSignatureOrTopic: "addCollateral" | "addCollateralWithPermit" | "compareBalances" | "decreaseDebt" | "disableToken" | "enableToken" | "increaseDebt" | "onDemandPriceUpdate" | "revokeAdapterAllowances" | "setFullCheckParams" | "storeExpectedBalances" | "updateQuota" | "withdrawCollateral"): FunctionFragment;
|
|
37
38
|
encodeFunctionData(functionFragment: "addCollateral", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
|
|
38
39
|
encodeFunctionData(functionFragment: "addCollateralWithPermit", values: [
|
|
39
40
|
PromiseOrValue<string>,
|
|
@@ -43,6 +44,7 @@ export interface ICreditFacadeV3MulticallInterface extends utils.Interface {
|
|
|
43
44
|
PromiseOrValue<BytesLike>,
|
|
44
45
|
PromiseOrValue<BytesLike>
|
|
45
46
|
]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "compareBalances", values?: undefined): string;
|
|
46
48
|
encodeFunctionData(functionFragment: "decreaseDebt", values: [PromiseOrValue<BigNumberish>]): string;
|
|
47
49
|
encodeFunctionData(functionFragment: "disableToken", values: [PromiseOrValue<string>]): string;
|
|
48
50
|
encodeFunctionData(functionFragment: "enableToken", values: [PromiseOrValue<string>]): string;
|
|
@@ -52,9 +54,9 @@ export interface ICreditFacadeV3MulticallInterface extends utils.Interface {
|
|
|
52
54
|
PromiseOrValue<boolean>,
|
|
53
55
|
PromiseOrValue<BytesLike>
|
|
54
56
|
]): string;
|
|
55
|
-
encodeFunctionData(functionFragment: "revertIfReceivedLessThan", values: [BalanceDeltaStruct[]]): string;
|
|
56
57
|
encodeFunctionData(functionFragment: "revokeAdapterAllowances", values: [RevocationPairStruct[]]): string;
|
|
57
58
|
encodeFunctionData(functionFragment: "setFullCheckParams", values: [PromiseOrValue<BigNumberish>[], PromiseOrValue<BigNumberish>]): string;
|
|
59
|
+
encodeFunctionData(functionFragment: "storeExpectedBalances", values: [BalanceDeltaStruct[]]): string;
|
|
58
60
|
encodeFunctionData(functionFragment: "updateQuota", values: [
|
|
59
61
|
PromiseOrValue<string>,
|
|
60
62
|
PromiseOrValue<BigNumberish>,
|
|
@@ -67,14 +69,15 @@ export interface ICreditFacadeV3MulticallInterface extends utils.Interface {
|
|
|
67
69
|
]): string;
|
|
68
70
|
decodeFunctionResult(functionFragment: "addCollateral", data: BytesLike): Result;
|
|
69
71
|
decodeFunctionResult(functionFragment: "addCollateralWithPermit", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: "compareBalances", data: BytesLike): Result;
|
|
70
73
|
decodeFunctionResult(functionFragment: "decreaseDebt", data: BytesLike): Result;
|
|
71
74
|
decodeFunctionResult(functionFragment: "disableToken", data: BytesLike): Result;
|
|
72
75
|
decodeFunctionResult(functionFragment: "enableToken", data: BytesLike): Result;
|
|
73
76
|
decodeFunctionResult(functionFragment: "increaseDebt", data: BytesLike): Result;
|
|
74
77
|
decodeFunctionResult(functionFragment: "onDemandPriceUpdate", data: BytesLike): Result;
|
|
75
|
-
decodeFunctionResult(functionFragment: "revertIfReceivedLessThan", data: BytesLike): Result;
|
|
76
78
|
decodeFunctionResult(functionFragment: "revokeAdapterAllowances", data: BytesLike): Result;
|
|
77
79
|
decodeFunctionResult(functionFragment: "setFullCheckParams", data: BytesLike): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: "storeExpectedBalances", data: BytesLike): Result;
|
|
78
81
|
decodeFunctionResult(functionFragment: "updateQuota", data: BytesLike): Result;
|
|
79
82
|
decodeFunctionResult(functionFragment: "withdrawCollateral", data: BytesLike): Result;
|
|
80
83
|
events: {};
|
|
@@ -100,6 +103,9 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
100
103
|
addCollateralWithPermit(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
101
104
|
from?: PromiseOrValue<string>;
|
|
102
105
|
}): Promise<ContractTransaction>;
|
|
106
|
+
compareBalances(overrides?: Overrides & {
|
|
107
|
+
from?: PromiseOrValue<string>;
|
|
108
|
+
}): Promise<ContractTransaction>;
|
|
103
109
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
104
110
|
from?: PromiseOrValue<string>;
|
|
105
111
|
}): Promise<ContractTransaction>;
|
|
@@ -115,15 +121,15 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
115
121
|
onDemandPriceUpdate(token: PromiseOrValue<string>, reserve: PromiseOrValue<boolean>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
116
122
|
from?: PromiseOrValue<string>;
|
|
117
123
|
}): Promise<ContractTransaction>;
|
|
118
|
-
revertIfReceivedLessThan(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
119
|
-
from?: PromiseOrValue<string>;
|
|
120
|
-
}): Promise<ContractTransaction>;
|
|
121
124
|
revokeAdapterAllowances(revocations: RevocationPairStruct[], overrides?: Overrides & {
|
|
122
125
|
from?: PromiseOrValue<string>;
|
|
123
126
|
}): Promise<ContractTransaction>;
|
|
124
127
|
setFullCheckParams(collateralHints: PromiseOrValue<BigNumberish>[], minHealthFactor: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
125
128
|
from?: PromiseOrValue<string>;
|
|
126
129
|
}): Promise<ContractTransaction>;
|
|
130
|
+
storeExpectedBalances(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
131
|
+
from?: PromiseOrValue<string>;
|
|
132
|
+
}): Promise<ContractTransaction>;
|
|
127
133
|
updateQuota(token: PromiseOrValue<string>, quotaChange: PromiseOrValue<BigNumberish>, minQuota: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
128
134
|
from?: PromiseOrValue<string>;
|
|
129
135
|
}): Promise<ContractTransaction>;
|
|
@@ -137,6 +143,9 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
137
143
|
addCollateralWithPermit(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
138
144
|
from?: PromiseOrValue<string>;
|
|
139
145
|
}): Promise<ContractTransaction>;
|
|
146
|
+
compareBalances(overrides?: Overrides & {
|
|
147
|
+
from?: PromiseOrValue<string>;
|
|
148
|
+
}): Promise<ContractTransaction>;
|
|
140
149
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
141
150
|
from?: PromiseOrValue<string>;
|
|
142
151
|
}): Promise<ContractTransaction>;
|
|
@@ -152,15 +161,15 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
152
161
|
onDemandPriceUpdate(token: PromiseOrValue<string>, reserve: PromiseOrValue<boolean>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
153
162
|
from?: PromiseOrValue<string>;
|
|
154
163
|
}): Promise<ContractTransaction>;
|
|
155
|
-
revertIfReceivedLessThan(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
156
|
-
from?: PromiseOrValue<string>;
|
|
157
|
-
}): Promise<ContractTransaction>;
|
|
158
164
|
revokeAdapterAllowances(revocations: RevocationPairStruct[], overrides?: Overrides & {
|
|
159
165
|
from?: PromiseOrValue<string>;
|
|
160
166
|
}): Promise<ContractTransaction>;
|
|
161
167
|
setFullCheckParams(collateralHints: PromiseOrValue<BigNumberish>[], minHealthFactor: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
162
168
|
from?: PromiseOrValue<string>;
|
|
163
169
|
}): Promise<ContractTransaction>;
|
|
170
|
+
storeExpectedBalances(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
171
|
+
from?: PromiseOrValue<string>;
|
|
172
|
+
}): Promise<ContractTransaction>;
|
|
164
173
|
updateQuota(token: PromiseOrValue<string>, quotaChange: PromiseOrValue<BigNumberish>, minQuota: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
165
174
|
from?: PromiseOrValue<string>;
|
|
166
175
|
}): Promise<ContractTransaction>;
|
|
@@ -170,14 +179,15 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
170
179
|
callStatic: {
|
|
171
180
|
addCollateral(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
172
181
|
addCollateralWithPermit(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
|
|
182
|
+
compareBalances(overrides?: CallOverrides): Promise<void>;
|
|
173
183
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
174
184
|
disableToken(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
175
185
|
enableToken(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
176
186
|
increaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
177
187
|
onDemandPriceUpdate(token: PromiseOrValue<string>, reserve: PromiseOrValue<boolean>, data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
|
|
178
|
-
revertIfReceivedLessThan(balanceDeltas: BalanceDeltaStruct[], overrides?: CallOverrides): Promise<void>;
|
|
179
188
|
revokeAdapterAllowances(revocations: RevocationPairStruct[], overrides?: CallOverrides): Promise<void>;
|
|
180
189
|
setFullCheckParams(collateralHints: PromiseOrValue<BigNumberish>[], minHealthFactor: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
190
|
+
storeExpectedBalances(balanceDeltas: BalanceDeltaStruct[], overrides?: CallOverrides): Promise<void>;
|
|
181
191
|
updateQuota(token: PromiseOrValue<string>, quotaChange: PromiseOrValue<BigNumberish>, minQuota: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
182
192
|
withdrawCollateral(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
183
193
|
};
|
|
@@ -189,6 +199,9 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
189
199
|
addCollateralWithPermit(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
190
200
|
from?: PromiseOrValue<string>;
|
|
191
201
|
}): Promise<BigNumber>;
|
|
202
|
+
compareBalances(overrides?: Overrides & {
|
|
203
|
+
from?: PromiseOrValue<string>;
|
|
204
|
+
}): Promise<BigNumber>;
|
|
192
205
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
193
206
|
from?: PromiseOrValue<string>;
|
|
194
207
|
}): Promise<BigNumber>;
|
|
@@ -204,15 +217,15 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
204
217
|
onDemandPriceUpdate(token: PromiseOrValue<string>, reserve: PromiseOrValue<boolean>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
205
218
|
from?: PromiseOrValue<string>;
|
|
206
219
|
}): Promise<BigNumber>;
|
|
207
|
-
revertIfReceivedLessThan(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
208
|
-
from?: PromiseOrValue<string>;
|
|
209
|
-
}): Promise<BigNumber>;
|
|
210
220
|
revokeAdapterAllowances(revocations: RevocationPairStruct[], overrides?: Overrides & {
|
|
211
221
|
from?: PromiseOrValue<string>;
|
|
212
222
|
}): Promise<BigNumber>;
|
|
213
223
|
setFullCheckParams(collateralHints: PromiseOrValue<BigNumberish>[], minHealthFactor: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
214
224
|
from?: PromiseOrValue<string>;
|
|
215
225
|
}): Promise<BigNumber>;
|
|
226
|
+
storeExpectedBalances(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
227
|
+
from?: PromiseOrValue<string>;
|
|
228
|
+
}): Promise<BigNumber>;
|
|
216
229
|
updateQuota(token: PromiseOrValue<string>, quotaChange: PromiseOrValue<BigNumberish>, minQuota: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
217
230
|
from?: PromiseOrValue<string>;
|
|
218
231
|
}): Promise<BigNumber>;
|
|
@@ -227,6 +240,9 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
227
240
|
addCollateralWithPermit(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
228
241
|
from?: PromiseOrValue<string>;
|
|
229
242
|
}): Promise<PopulatedTransaction>;
|
|
243
|
+
compareBalances(overrides?: Overrides & {
|
|
244
|
+
from?: PromiseOrValue<string>;
|
|
245
|
+
}): Promise<PopulatedTransaction>;
|
|
230
246
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
231
247
|
from?: PromiseOrValue<string>;
|
|
232
248
|
}): Promise<PopulatedTransaction>;
|
|
@@ -242,15 +258,15 @@ export interface ICreditFacadeV3Multicall extends BaseContract {
|
|
|
242
258
|
onDemandPriceUpdate(token: PromiseOrValue<string>, reserve: PromiseOrValue<boolean>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
243
259
|
from?: PromiseOrValue<string>;
|
|
244
260
|
}): Promise<PopulatedTransaction>;
|
|
245
|
-
revertIfReceivedLessThan(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
246
|
-
from?: PromiseOrValue<string>;
|
|
247
|
-
}): Promise<PopulatedTransaction>;
|
|
248
261
|
revokeAdapterAllowances(revocations: RevocationPairStruct[], overrides?: Overrides & {
|
|
249
262
|
from?: PromiseOrValue<string>;
|
|
250
263
|
}): Promise<PopulatedTransaction>;
|
|
251
264
|
setFullCheckParams(collateralHints: PromiseOrValue<BigNumberish>[], minHealthFactor: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
252
265
|
from?: PromiseOrValue<string>;
|
|
253
266
|
}): Promise<PopulatedTransaction>;
|
|
267
|
+
storeExpectedBalances(balanceDeltas: BalanceDeltaStruct[], overrides?: Overrides & {
|
|
268
|
+
from?: PromiseOrValue<string>;
|
|
269
|
+
}): Promise<PopulatedTransaction>;
|
|
254
270
|
updateQuota(token: PromiseOrValue<string>, quotaChange: PromiseOrValue<BigNumberish>, minQuota: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
255
271
|
from?: PromiseOrValue<string>;
|
|
256
272
|
}): Promise<PopulatedTransaction>;
|
package/lib/types/IZapper.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export interface IZapperInterface extends utils.Interface {
|
|
|
7
7
|
"pool()": FunctionFragment;
|
|
8
8
|
"previewDeposit(uint256)": FunctionFragment;
|
|
9
9
|
"previewRedeem(uint256)": FunctionFragment;
|
|
10
|
-
"redeem(uint256,address
|
|
11
|
-
"redeemWithPermit(uint256,address,
|
|
10
|
+
"redeem(uint256,address)": FunctionFragment;
|
|
11
|
+
"redeemWithPermit(uint256,address,uint256,uint8,bytes32,bytes32)": FunctionFragment;
|
|
12
12
|
"tokenIn()": FunctionFragment;
|
|
13
13
|
"tokenOut()": FunctionFragment;
|
|
14
14
|
"underlying()": FunctionFragment;
|
|
@@ -17,15 +17,10 @@ export interface IZapperInterface extends utils.Interface {
|
|
|
17
17
|
encodeFunctionData(functionFragment: "pool", values?: undefined): string;
|
|
18
18
|
encodeFunctionData(functionFragment: "previewDeposit", values: [PromiseOrValue<BigNumberish>]): string;
|
|
19
19
|
encodeFunctionData(functionFragment: "previewRedeem", values: [PromiseOrValue<BigNumberish>]): string;
|
|
20
|
-
encodeFunctionData(functionFragment: "redeem", values: [
|
|
21
|
-
PromiseOrValue<BigNumberish>,
|
|
22
|
-
PromiseOrValue<string>,
|
|
23
|
-
PromiseOrValue<string>
|
|
24
|
-
]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "redeem", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
|
|
25
21
|
encodeFunctionData(functionFragment: "redeemWithPermit", values: [
|
|
26
22
|
PromiseOrValue<BigNumberish>,
|
|
27
23
|
PromiseOrValue<string>,
|
|
28
|
-
PromiseOrValue<string>,
|
|
29
24
|
PromiseOrValue<BigNumberish>,
|
|
30
25
|
PromiseOrValue<BigNumberish>,
|
|
31
26
|
PromiseOrValue<BytesLike>,
|
|
@@ -66,10 +61,10 @@ export interface IZapper extends BaseContract {
|
|
|
66
61
|
previewRedeem(tokenOutAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber] & {
|
|
67
62
|
tokenInAmount: BigNumber;
|
|
68
63
|
}>;
|
|
69
|
-
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
64
|
+
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, overrides?: Overrides & {
|
|
70
65
|
from?: PromiseOrValue<string>;
|
|
71
66
|
}): Promise<ContractTransaction>;
|
|
72
|
-
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
67
|
+
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
73
68
|
from?: PromiseOrValue<string>;
|
|
74
69
|
}): Promise<ContractTransaction>;
|
|
75
70
|
tokenIn(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -79,10 +74,10 @@ export interface IZapper extends BaseContract {
|
|
|
79
74
|
pool(overrides?: CallOverrides): Promise<string>;
|
|
80
75
|
previewDeposit(tokenInAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
81
76
|
previewRedeem(tokenOutAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
82
|
-
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
77
|
+
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, overrides?: Overrides & {
|
|
83
78
|
from?: PromiseOrValue<string>;
|
|
84
79
|
}): Promise<ContractTransaction>;
|
|
85
|
-
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
80
|
+
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
86
81
|
from?: PromiseOrValue<string>;
|
|
87
82
|
}): Promise<ContractTransaction>;
|
|
88
83
|
tokenIn(overrides?: CallOverrides): Promise<string>;
|
|
@@ -92,8 +87,8 @@ export interface IZapper extends BaseContract {
|
|
|
92
87
|
pool(overrides?: CallOverrides): Promise<string>;
|
|
93
88
|
previewDeposit(tokenInAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
94
89
|
previewRedeem(tokenOutAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
95
|
-
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
96
|
-
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
90
|
+
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
91
|
+
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
97
92
|
tokenIn(overrides?: CallOverrides): Promise<string>;
|
|
98
93
|
tokenOut(overrides?: CallOverrides): Promise<string>;
|
|
99
94
|
underlying(overrides?: CallOverrides): Promise<string>;
|
|
@@ -103,10 +98,10 @@ export interface IZapper extends BaseContract {
|
|
|
103
98
|
pool(overrides?: CallOverrides): Promise<BigNumber>;
|
|
104
99
|
previewDeposit(tokenInAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
105
100
|
previewRedeem(tokenOutAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
106
|
-
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
101
|
+
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, overrides?: Overrides & {
|
|
107
102
|
from?: PromiseOrValue<string>;
|
|
108
103
|
}): Promise<BigNumber>;
|
|
109
|
-
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
104
|
+
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
110
105
|
from?: PromiseOrValue<string>;
|
|
111
106
|
}): Promise<BigNumber>;
|
|
112
107
|
tokenIn(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -117,10 +112,10 @@ export interface IZapper extends BaseContract {
|
|
|
117
112
|
pool(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
118
113
|
previewDeposit(tokenInAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
119
114
|
previewRedeem(tokenOutAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
120
|
-
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
115
|
+
redeem(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, overrides?: Overrides & {
|
|
121
116
|
from?: PromiseOrValue<string>;
|
|
122
117
|
}): Promise<PopulatedTransaction>;
|
|
123
|
-
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>,
|
|
118
|
+
redeemWithPermit(tokenOutAmount: PromiseOrValue<BigNumberish>, receiver: PromiseOrValue<string>, deadline: PromiseOrValue<BigNumberish>, v: PromiseOrValue<BigNumberish>, r: PromiseOrValue<BytesLike>, s: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
124
119
|
from?: PromiseOrValue<string>;
|
|
125
120
|
}): Promise<PopulatedTransaction>;
|
|
126
121
|
tokenIn(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -174,6 +174,11 @@ export declare class ICreditFacadeV3Events__factory {
|
|
|
174
174
|
readonly internalType: "uint256";
|
|
175
175
|
readonly name: "amount";
|
|
176
176
|
readonly type: "uint256";
|
|
177
|
+
}, {
|
|
178
|
+
readonly indexed: false;
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "to";
|
|
181
|
+
readonly type: "address";
|
|
177
182
|
}];
|
|
178
183
|
readonly name: "WithdrawCollateral";
|
|
179
184
|
readonly type: "event";
|
|
@@ -174,6 +174,11 @@ export declare class ICreditFacadeV3__factory {
|
|
|
174
174
|
readonly internalType: "uint256";
|
|
175
175
|
readonly name: "amount";
|
|
176
176
|
readonly type: "uint256";
|
|
177
|
+
}, {
|
|
178
|
+
readonly indexed: false;
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "to";
|
|
181
|
+
readonly type: "address";
|
|
177
182
|
}];
|
|
178
183
|
readonly name: "WithdrawCollateral";
|
|
179
184
|
readonly type: "event";
|
|
@@ -46,6 +46,12 @@ export declare class ICreditFacadeV3Multicall__factory {
|
|
|
46
46
|
readonly outputs: readonly [];
|
|
47
47
|
readonly stateMutability: "nonpayable";
|
|
48
48
|
readonly type: "function";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [];
|
|
51
|
+
readonly name: "compareBalances";
|
|
52
|
+
readonly outputs: readonly [];
|
|
53
|
+
readonly stateMutability: "nonpayable";
|
|
54
|
+
readonly type: "function";
|
|
49
55
|
}, {
|
|
50
56
|
readonly inputs: readonly [{
|
|
51
57
|
readonly internalType: "uint256";
|
|
@@ -104,25 +110,6 @@ export declare class ICreditFacadeV3Multicall__factory {
|
|
|
104
110
|
readonly outputs: readonly [];
|
|
105
111
|
readonly stateMutability: "nonpayable";
|
|
106
112
|
readonly type: "function";
|
|
107
|
-
}, {
|
|
108
|
-
readonly inputs: readonly [{
|
|
109
|
-
readonly components: readonly [{
|
|
110
|
-
readonly internalType: "address";
|
|
111
|
-
readonly name: "token";
|
|
112
|
-
readonly type: "address";
|
|
113
|
-
}, {
|
|
114
|
-
readonly internalType: "int256";
|
|
115
|
-
readonly name: "amount";
|
|
116
|
-
readonly type: "int256";
|
|
117
|
-
}];
|
|
118
|
-
readonly internalType: "struct BalanceDelta[]";
|
|
119
|
-
readonly name: "balanceDeltas";
|
|
120
|
-
readonly type: "tuple[]";
|
|
121
|
-
}];
|
|
122
|
-
readonly name: "revertIfReceivedLessThan";
|
|
123
|
-
readonly outputs: readonly [];
|
|
124
|
-
readonly stateMutability: "nonpayable";
|
|
125
|
-
readonly type: "function";
|
|
126
113
|
}, {
|
|
127
114
|
readonly inputs: readonly [{
|
|
128
115
|
readonly components: readonly [{
|
|
@@ -156,6 +143,25 @@ export declare class ICreditFacadeV3Multicall__factory {
|
|
|
156
143
|
readonly outputs: readonly [];
|
|
157
144
|
readonly stateMutability: "nonpayable";
|
|
158
145
|
readonly type: "function";
|
|
146
|
+
}, {
|
|
147
|
+
readonly inputs: readonly [{
|
|
148
|
+
readonly components: readonly [{
|
|
149
|
+
readonly internalType: "address";
|
|
150
|
+
readonly name: "token";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
}, {
|
|
153
|
+
readonly internalType: "int256";
|
|
154
|
+
readonly name: "amount";
|
|
155
|
+
readonly type: "int256";
|
|
156
|
+
}];
|
|
157
|
+
readonly internalType: "struct BalanceDelta[]";
|
|
158
|
+
readonly name: "balanceDeltas";
|
|
159
|
+
readonly type: "tuple[]";
|
|
160
|
+
}];
|
|
161
|
+
readonly name: "storeExpectedBalances";
|
|
162
|
+
readonly outputs: readonly [];
|
|
163
|
+
readonly stateMutability: "nonpayable";
|
|
164
|
+
readonly type: "function";
|
|
159
165
|
}, {
|
|
160
166
|
readonly inputs: readonly [{
|
|
161
167
|
readonly internalType: "address";
|
|
@@ -62,6 +62,13 @@ const _abi = [
|
|
|
62
62
|
stateMutability: "nonpayable",
|
|
63
63
|
type: "function",
|
|
64
64
|
},
|
|
65
|
+
{
|
|
66
|
+
inputs: [],
|
|
67
|
+
name: "compareBalances",
|
|
68
|
+
outputs: [],
|
|
69
|
+
stateMutability: "nonpayable",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
65
72
|
{
|
|
66
73
|
inputs: [
|
|
67
74
|
{
|
|
@@ -137,31 +144,6 @@ const _abi = [
|
|
|
137
144
|
stateMutability: "nonpayable",
|
|
138
145
|
type: "function",
|
|
139
146
|
},
|
|
140
|
-
{
|
|
141
|
-
inputs: [
|
|
142
|
-
{
|
|
143
|
-
components: [
|
|
144
|
-
{
|
|
145
|
-
internalType: "address",
|
|
146
|
-
name: "token",
|
|
147
|
-
type: "address",
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
internalType: "int256",
|
|
151
|
-
name: "amount",
|
|
152
|
-
type: "int256",
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
internalType: "struct BalanceDelta[]",
|
|
156
|
-
name: "balanceDeltas",
|
|
157
|
-
type: "tuple[]",
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
name: "revertIfReceivedLessThan",
|
|
161
|
-
outputs: [],
|
|
162
|
-
stateMutability: "nonpayable",
|
|
163
|
-
type: "function",
|
|
164
|
-
},
|
|
165
147
|
{
|
|
166
148
|
inputs: [
|
|
167
149
|
{
|
|
@@ -205,6 +187,31 @@ const _abi = [
|
|
|
205
187
|
stateMutability: "nonpayable",
|
|
206
188
|
type: "function",
|
|
207
189
|
},
|
|
190
|
+
{
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
components: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "address",
|
|
196
|
+
name: "token",
|
|
197
|
+
type: "address",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "int256",
|
|
201
|
+
name: "amount",
|
|
202
|
+
type: "int256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
internalType: "struct BalanceDelta[]",
|
|
206
|
+
name: "balanceDeltas",
|
|
207
|
+
type: "tuple[]",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
name: "storeExpectedBalances",
|
|
211
|
+
outputs: [],
|
|
212
|
+
stateMutability: "nonpayable",
|
|
213
|
+
type: "function",
|
|
214
|
+
},
|
|
208
215
|
{
|
|
209
216
|
inputs: [
|
|
210
217
|
{
|
|
@@ -49,10 +49,6 @@ export declare class IZapper__factory {
|
|
|
49
49
|
readonly internalType: "address";
|
|
50
50
|
readonly name: "receiver";
|
|
51
51
|
readonly type: "address";
|
|
52
|
-
}, {
|
|
53
|
-
readonly internalType: "address";
|
|
54
|
-
readonly name: "owner";
|
|
55
|
-
readonly type: "address";
|
|
56
52
|
}];
|
|
57
53
|
readonly name: "redeem";
|
|
58
54
|
readonly outputs: readonly [{
|
|
@@ -71,10 +67,6 @@ export declare class IZapper__factory {
|
|
|
71
67
|
readonly internalType: "address";
|
|
72
68
|
readonly name: "receiver";
|
|
73
69
|
readonly type: "address";
|
|
74
|
-
}, {
|
|
75
|
-
readonly internalType: "address";
|
|
76
|
-
readonly name: "owner";
|
|
77
|
-
readonly type: "address";
|
|
78
70
|
}, {
|
|
79
71
|
readonly internalType: "uint256";
|
|
80
72
|
readonly name: "deadline";
|
|
@@ -69,11 +69,6 @@ const _abi = [
|
|
|
69
69
|
name: "receiver",
|
|
70
70
|
type: "address",
|
|
71
71
|
},
|
|
72
|
-
{
|
|
73
|
-
internalType: "address",
|
|
74
|
-
name: "owner",
|
|
75
|
-
type: "address",
|
|
76
|
-
},
|
|
77
72
|
],
|
|
78
73
|
name: "redeem",
|
|
79
74
|
outputs: [
|
|
@@ -98,11 +93,6 @@ const _abi = [
|
|
|
98
93
|
name: "receiver",
|
|
99
94
|
type: "address",
|
|
100
95
|
},
|
|
101
|
-
{
|
|
102
|
-
internalType: "address",
|
|
103
|
-
name: "owner",
|
|
104
|
-
type: "address",
|
|
105
|
-
},
|
|
106
96
|
{
|
|
107
97
|
internalType: "uint256",
|
|
108
98
|
name: "deadline",
|
|
@@ -32,6 +32,7 @@ export * as iUniswapV3AdapterSol from "./IUniswapV3Adapter.sol";
|
|
|
32
32
|
export * as istEthSol from "./IstETH.sol";
|
|
33
33
|
export * as iwstEthSol from "./IwstETH.sol";
|
|
34
34
|
export * as iwstEthGatewaySol from "./IwstETHGateway.sol";
|
|
35
|
+
export * as interfaces from "./interfaces";
|
|
35
36
|
export { AddressProvider__factory } from "./AddressProvider__factory";
|
|
36
37
|
export { Claimable__factory } from "./Claimable__factory";
|
|
37
38
|
export { Errors__factory } from "./Errors__factory";
|
|
@@ -67,7 +68,6 @@ export { ILinearInterestRateModelV3__factory } from "./ILinearInterestRateModelV
|
|
|
67
68
|
export { IOffchainOracle__factory } from "./IOffchainOracle__factory";
|
|
68
69
|
export { IPermit2__factory } from "./IPermit2__factory";
|
|
69
70
|
export { IPriceOracleBase__factory } from "./IPriceOracleBase__factory";
|
|
70
|
-
export { IRouter__factory } from "./IRouter__factory";
|
|
71
71
|
export { IVersion__factory } from "./IVersion__factory";
|
|
72
72
|
export { IVotingContractV3__factory } from "./IVotingContractV3__factory";
|
|
73
73
|
export { IWETH__factory } from "./IWETH__factory";
|
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.SafeERC20__factory = exports.Ownable__factory = exports.IwstETHV1Adapter__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.
|
|
26
|
+
exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.ICurveV1Adapter__factory = exports.ICurvePool__factory = exports.ICreditFacadeV3Multicall__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IConvexToken__factory = exports.IBaseRewardPool__factory = exports.IAdapter__factory = exports.IAaveV2_WrappedATokenAdapter__factory = exports.IAaveV2_LendingPoolAdapter__factory = exports.Errors__factory = exports.Claimable__factory = exports.AddressProvider__factory = exports.interfaces = exports.iwstEthGatewaySol = exports.iwstEthSol = exports.istEthSol = exports.iUniswapV3AdapterSol = exports.iUniswapV3Sol = exports.iUniswapV2AdapterSol = exports.iPriceOracleV3Sol = exports.iPriceOracleSol = exports.iPriceFeedSol = exports.iPoolV3Sol = exports.iPoolServiceSol = exports.iPoolQuotaKeeperV3Sol = exports.iGearStakingV3Sol = exports.iGaugeV3Sol = exports.iDegenNftv2Sol = exports.iDegenDistributorSol = exports.iCurvePool4Sol = exports.iCurvePool3Sol = exports.iCurvePool2Sol = exports.iCreditManagerV3Sol = exports.iCreditManagerV2Sol = exports.iCreditFacadeV3Sol = exports.iCreditFacadeV2Sol = exports.iCreditConfiguratorV3Sol = exports.iCreditConfiguratorV2Sol = exports.iConvexV1BoosterAdapterSol = exports.iContractsRegisterSol = exports.iCompoundV2CTokenAdapterSol = exports.iBalancerV2VaultAdapterSol = exports.iBalancerV2VaultSol = exports.iAirdropDistributorSol = exports.iAddressProviderV3Sol = exports.iAddressProviderSol = exports.balancesSol = void 0;
|
|
27
|
+
exports.SafeERC20__factory = exports.Ownable__factory = exports.IwstETHV1Adapter__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IPriceOracleBase__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILinearInterestRateModelV3__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626Adapter__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IERC165__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = void 0;
|
|
28
28
|
/* Autogenerated file. Do not edit manually. */
|
|
29
29
|
/* tslint:disable */
|
|
30
30
|
/* eslint-disable */
|
|
@@ -62,6 +62,7 @@ exports.iUniswapV3AdapterSol = __importStar(require("./IUniswapV3Adapter.sol"));
|
|
|
62
62
|
exports.istEthSol = __importStar(require("./IstETH.sol"));
|
|
63
63
|
exports.iwstEthSol = __importStar(require("./IwstETH.sol"));
|
|
64
64
|
exports.iwstEthGatewaySol = __importStar(require("./IwstETHGateway.sol"));
|
|
65
|
+
exports.interfaces = __importStar(require("./interfaces"));
|
|
65
66
|
var AddressProvider__factory_1 = require("./AddressProvider__factory");
|
|
66
67
|
Object.defineProperty(exports, "AddressProvider__factory", { enumerable: true, get: function () { return AddressProvider__factory_1.AddressProvider__factory; } });
|
|
67
68
|
var Claimable__factory_1 = require("./Claimable__factory");
|
|
@@ -132,8 +133,6 @@ var IPermit2__factory_1 = require("./IPermit2__factory");
|
|
|
132
133
|
Object.defineProperty(exports, "IPermit2__factory", { enumerable: true, get: function () { return IPermit2__factory_1.IPermit2__factory; } });
|
|
133
134
|
var IPriceOracleBase__factory_1 = require("./IPriceOracleBase__factory");
|
|
134
135
|
Object.defineProperty(exports, "IPriceOracleBase__factory", { enumerable: true, get: function () { return IPriceOracleBase__factory_1.IPriceOracleBase__factory; } });
|
|
135
|
-
var IRouter__factory_1 = require("./IRouter__factory");
|
|
136
|
-
Object.defineProperty(exports, "IRouter__factory", { enumerable: true, get: function () { return IRouter__factory_1.IRouter__factory; } });
|
|
137
136
|
var IVersion__factory_1 = require("./IVersion__factory");
|
|
138
137
|
Object.defineProperty(exports, "IVersion__factory", { enumerable: true, get: function () { return IVersion__factory_1.IVersion__factory; } });
|
|
139
138
|
var IVotingContractV3__factory_1 = require("./IVotingContractV3__factory");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
|
-
import type { IRouter, IRouterInterface } from "
|
|
3
|
+
import type { IRouter, IRouterInterface } from "../../interfaces/IRouter";
|
|
4
4
|
export declare class IRouter__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
6
|
readonly anonymous: false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IRouter__factory } from "./IRouter__factory";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IRouter__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var IRouter__factory_1 = require("./IRouter__factory");
|
|
8
|
+
Object.defineProperty(exports, "IRouter__factory", { enumerable: true, get: function () { return IRouter__factory_1.IRouter__factory; } });
|
package/lib/types/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ import type * as iwstEthSol from "./IwstETH.sol";
|
|
|
66
66
|
export type { iwstEthSol };
|
|
67
67
|
import type * as iwstEthGatewaySol from "./IwstETHGateway.sol";
|
|
68
68
|
export type { iwstEthGatewaySol };
|
|
69
|
+
import type * as interfaces from "./interfaces";
|
|
70
|
+
export type { interfaces };
|
|
69
71
|
export type { AddressProvider } from "./AddressProvider";
|
|
70
72
|
export type { Claimable } from "./Claimable";
|
|
71
73
|
export type { Errors } from "./Errors";
|
|
@@ -101,7 +103,6 @@ export type { ILinearInterestRateModelV3 } from "./ILinearInterestRateModelV3";
|
|
|
101
103
|
export type { IOffchainOracle } from "./IOffchainOracle";
|
|
102
104
|
export type { IPermit2 } from "./IPermit2";
|
|
103
105
|
export type { IPriceOracleBase } from "./IPriceOracleBase";
|
|
104
|
-
export type { IRouter } from "./IRouter";
|
|
105
106
|
export type { IVersion } from "./IVersion";
|
|
106
107
|
export type { IVotingContractV3 } from "./IVotingContractV3";
|
|
107
108
|
export type { IWETH } from "./IWETH";
|
|
@@ -193,17 +194,17 @@ export type { ICreditManagerV3 } from "./ICreditManagerV3.sol/ICreditManagerV3";
|
|
|
193
194
|
export { ICreditManagerV3__factory } from "./factories/ICreditManagerV3.sol/ICreditManagerV3__factory";
|
|
194
195
|
export type { ICreditManagerV3Events } from "./ICreditManagerV3.sol/ICreditManagerV3Events";
|
|
195
196
|
export { ICreditManagerV3Events__factory } from "./factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory";
|
|
196
|
-
export { ICurvePool__factory } from "./factories/ICurvePool__factory";
|
|
197
197
|
export type { ICurvePool2Assets } from "./ICurvePool_2.sol/ICurvePool2Assets";
|
|
198
198
|
export { ICurvePool2Assets__factory } from "./factories/ICurvePool_2.sol/ICurvePool2Assets__factory";
|
|
199
199
|
export type { ICurvePool3Assets } from "./ICurvePool_3.sol/ICurvePool3Assets";
|
|
200
200
|
export { ICurvePool3Assets__factory } from "./factories/ICurvePool_3.sol/ICurvePool3Assets__factory";
|
|
201
201
|
export type { ICurvePool4Assets } from "./ICurvePool_4.sol/ICurvePool4Assets";
|
|
202
202
|
export { ICurvePool4Assets__factory } from "./factories/ICurvePool_4.sol/ICurvePool4Assets__factory";
|
|
203
|
-
export {
|
|
203
|
+
export { ICurvePool__factory } from "./factories/ICurvePool__factory";
|
|
204
204
|
export { ICurveV1_2AssetsAdapter__factory } from "./factories/ICurveV1_2AssetsAdapter__factory";
|
|
205
205
|
export { ICurveV1_3AssetsAdapter__factory } from "./factories/ICurveV1_3AssetsAdapter__factory";
|
|
206
206
|
export { ICurveV1_4AssetsAdapter__factory } from "./factories/ICurveV1_4AssetsAdapter__factory";
|
|
207
|
+
export { ICurveV1Adapter__factory } from "./factories/ICurveV1Adapter__factory";
|
|
207
208
|
export { IDaiLikePermit__factory } from "./factories/IDaiLikePermit__factory";
|
|
208
209
|
export { IDataCompressorV2_10__factory } from "./factories/IDataCompressorV2_10__factory";
|
|
209
210
|
export { IDataCompressorV3_00__factory } from "./factories/IDataCompressorV3_00__factory";
|
|
@@ -239,6 +240,8 @@ export { IGearStakingV3Events__factory } from "./factories/IGearStakingV3.sol/IG
|
|
|
239
240
|
export { IInterestRateModel__factory } from "./factories/IInterestRateModel__factory";
|
|
240
241
|
export { ILidoV1Adapter__factory } from "./factories/ILidoV1Adapter__factory";
|
|
241
242
|
export { ILinearInterestRateModelV3__factory } from "./factories/ILinearInterestRateModelV3__factory";
|
|
243
|
+
export type { IRouter } from "./interfaces/IRouter";
|
|
244
|
+
export { IRouter__factory } from "./factories/interfaces/IRouter__factory";
|
|
242
245
|
export { IOffchainOracle__factory } from "./factories/IOffchainOracle__factory";
|
|
243
246
|
export { IPermit2__factory } from "./factories/IPermit2__factory";
|
|
244
247
|
export type { IPoolQuotaKeeperV3 } from "./IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3";
|
|
@@ -270,7 +273,10 @@ export type { IPriceOracleV3 } from "./IPriceOracleV3.sol/IPriceOracleV3";
|
|
|
270
273
|
export { IPriceOracleV3__factory } from "./factories/IPriceOracleV3.sol/IPriceOracleV3__factory";
|
|
271
274
|
export type { IPriceOracleV3Events } from "./IPriceOracleV3.sol/IPriceOracleV3Events";
|
|
272
275
|
export { IPriceOracleV3Events__factory } from "./factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory";
|
|
273
|
-
export {
|
|
276
|
+
export type { IstETH } from "./IstETH.sol/IstETH";
|
|
277
|
+
export { IstETH__factory } from "./factories/IstETH.sol/IstETH__factory";
|
|
278
|
+
export type { IstETHGetters } from "./IstETH.sol/IstETHGetters";
|
|
279
|
+
export { IstETHGetters__factory } from "./factories/IstETH.sol/IstETHGetters__factory";
|
|
274
280
|
export type { IUniswapV2Adapter } from "./IUniswapV2Adapter.sol/IUniswapV2Adapter";
|
|
275
281
|
export { IUniswapV2Adapter__factory } from "./factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory";
|
|
276
282
|
export type { IUniswapV2AdapterEvents } from "./IUniswapV2Adapter.sol/IUniswapV2AdapterEvents";
|
|
@@ -289,13 +295,6 @@ export { IVersion__factory } from "./factories/IVersion__factory";
|
|
|
289
295
|
export { IVotingContractV3__factory } from "./factories/IVotingContractV3__factory";
|
|
290
296
|
export { IWETH__factory } from "./factories/IWETH__factory";
|
|
291
297
|
export { IWETHGateway__factory } from "./factories/IWETHGateway__factory";
|
|
292
|
-
export { IYVault__factory } from "./factories/IYVault__factory";
|
|
293
|
-
export { IYearnV2Adapter__factory } from "./factories/IYearnV2Adapter__factory";
|
|
294
|
-
export { IZapper__factory } from "./factories/IZapper__factory";
|
|
295
|
-
export type { IstETH } from "./IstETH.sol/IstETH";
|
|
296
|
-
export { IstETH__factory } from "./factories/IstETH.sol/IstETH__factory";
|
|
297
|
-
export type { IstETHGetters } from "./IstETH.sol/IstETHGetters";
|
|
298
|
-
export { IstETHGetters__factory } from "./factories/IstETH.sol/IstETHGetters__factory";
|
|
299
298
|
export type { IwstETH } from "./IwstETH.sol/IwstETH";
|
|
300
299
|
export { IwstETH__factory } from "./factories/IwstETH.sol/IwstETH__factory";
|
|
301
300
|
export type { IwstETHGetters } from "./IwstETH.sol/IwstETHGetters";
|
|
@@ -303,5 +302,8 @@ export { IwstETHGetters__factory } from "./factories/IwstETH.sol/IwstETHGetters_
|
|
|
303
302
|
export type { IwstETHGateWay } from "./IwstETHGateway.sol/IwstETHGateWay";
|
|
304
303
|
export { IwstETHGateWay__factory } from "./factories/IwstETHGateway.sol/IwstETHGateWay__factory";
|
|
305
304
|
export { IwstETHV1Adapter__factory } from "./factories/IwstETHV1Adapter__factory";
|
|
305
|
+
export { IYearnV2Adapter__factory } from "./factories/IYearnV2Adapter__factory";
|
|
306
|
+
export { IYVault__factory } from "./factories/IYVault__factory";
|
|
307
|
+
export { IZapper__factory } from "./factories/IZapper__factory";
|
|
306
308
|
export { Ownable__factory } from "./factories/Ownable__factory";
|
|
307
309
|
export { SafeERC20__factory } from "./factories/SafeERC20__factory";
|
package/lib/types/index.js
CHANGED
|
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.SafeERC20__factory = exports.Ownable__factory = exports.
|
|
26
|
+
exports.ICurvePool__factory = exports.ICurvePool4Assets__factory = exports.ICurvePool3Assets__factory = exports.ICurvePool2Assets__factory = exports.ICreditManagerV3Events__factory = exports.ICreditManagerV3__factory = exports.ICreditManagerV2Exceptions__factory = exports.ICreditManagerV2Events__factory = exports.ICreditManagerV2__factory = exports.ICreditFacadeV3Multicall__factory = exports.ICreditFacadeV3Events__factory = exports.ICreditFacadeV3__factory = exports.ICreditFacadeV2V2__factory = exports.ICreditFacadeV2Extended__factory = exports.ICreditFacadeV2Exceptions__factory = exports.ICreditFacadeV2Events__factory = exports.ICreditFacadeV2__factory = exports.ICreditConfiguratorV3Events__factory = exports.ICreditConfiguratorV3__factory = exports.ICreditConfiguratorV2Exceptions__factory = exports.ICreditConfiguratorV2Events__factory = exports.ICreditConfiguratorV2__factory = exports.IConvexV1BoosterAdapterEvents__factory = exports.IConvexV1BoosterAdapter__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IConvexToken__factory = exports.IContractsRegisterEvents__factory = exports.IContractsRegister__factory = exports.ICompoundV2_Exceptions__factory = exports.ICompoundV2_CTokenAdapter__factory = exports.IBaseRewardPool__factory = exports.IBalancerV2VaultAdapterExceptions__factory = exports.IBalancerV2VaultAdapterEvents__factory = exports.IBalancerV2VaultAdapter__factory = exports.IBalancerV2VaultGetters__factory = exports.IBalancerV2Vault__factory = exports.IAirdropDistributorEvents__factory = exports.IAirdropDistributor__factory = exports.IAddressProviderV3Events__factory = exports.IAddressProviderV3__factory = exports.IAddressProviderEvents__factory = exports.IAddressProvider__factory = exports.IAdapter__factory = exports.IAaveV2_WrappedATokenAdapter__factory = exports.IAaveV2_LendingPoolAdapter__factory = exports.Errors__factory = exports.Claimable__factory = exports.BalanceOps__factory = exports.AddressProvider__factory = exports.factories = void 0;
|
|
27
|
+
exports.IstETHGetters__factory = exports.IstETH__factory = exports.IPriceOracleV3Events__factory = exports.IPriceOracleV3__factory = exports.IPriceOracleBase__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__factory = exports.IUpdatablePriceFeed__factory = exports.IPriceFeed__factory = exports.IPoolV3Events__factory = exports.IPoolV3__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPoolQuotaKeeperV3Events__factory = exports.IPoolQuotaKeeperV3__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.IRouter__factory = exports.ILinearInterestRateModelV3__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGearStakingV3Events__factory = exports.IGearStakingV3__factory = exports.IGaugeV3Events__factory = exports.IGaugeV3__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626Adapter__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IERC165__factory = exports.IDegenNFTV2Exceptions__factory = exports.IDegenNFTV2Events__factory = exports.IDegenNFTV2__factory = exports.IDegenDistributorEvents__factory = exports.IDegenDistributor__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = exports.ICurveV1Adapter__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = void 0;
|
|
28
|
+
exports.SafeERC20__factory = exports.Ownable__factory = exports.IZapper__factory = exports.IYVault__factory = exports.IYearnV2Adapter__factory = exports.IwstETHV1Adapter__factory = exports.IwstETHGateWay__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IUniswapV3AdapterExceptions__factory = exports.IUniswapV3AdapterEvents__factory = exports.IUniswapV3Adapter__factory = exports.ISwapRouter__factory = exports.IUniswapV2AdapterExceptions__factory = exports.IUniswapV2AdapterEvents__factory = exports.IUniswapV2Adapter__factory = void 0;
|
|
29
29
|
exports.factories = __importStar(require("./factories"));
|
|
30
30
|
var AddressProvider__factory_1 = require("./factories/AddressProvider__factory");
|
|
31
31
|
Object.defineProperty(exports, "AddressProvider__factory", { enumerable: true, get: function () { return AddressProvider__factory_1.AddressProvider__factory; } });
|
|
@@ -117,22 +117,22 @@ var ICreditManagerV3__factory_1 = require("./factories/ICreditManagerV3.sol/ICre
|
|
|
117
117
|
Object.defineProperty(exports, "ICreditManagerV3__factory", { enumerable: true, get: function () { return ICreditManagerV3__factory_1.ICreditManagerV3__factory; } });
|
|
118
118
|
var ICreditManagerV3Events__factory_1 = require("./factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory");
|
|
119
119
|
Object.defineProperty(exports, "ICreditManagerV3Events__factory", { enumerable: true, get: function () { return ICreditManagerV3Events__factory_1.ICreditManagerV3Events__factory; } });
|
|
120
|
-
var ICurvePool__factory_1 = require("./factories/ICurvePool__factory");
|
|
121
|
-
Object.defineProperty(exports, "ICurvePool__factory", { enumerable: true, get: function () { return ICurvePool__factory_1.ICurvePool__factory; } });
|
|
122
120
|
var ICurvePool2Assets__factory_1 = require("./factories/ICurvePool_2.sol/ICurvePool2Assets__factory");
|
|
123
121
|
Object.defineProperty(exports, "ICurvePool2Assets__factory", { enumerable: true, get: function () { return ICurvePool2Assets__factory_1.ICurvePool2Assets__factory; } });
|
|
124
122
|
var ICurvePool3Assets__factory_1 = require("./factories/ICurvePool_3.sol/ICurvePool3Assets__factory");
|
|
125
123
|
Object.defineProperty(exports, "ICurvePool3Assets__factory", { enumerable: true, get: function () { return ICurvePool3Assets__factory_1.ICurvePool3Assets__factory; } });
|
|
126
124
|
var ICurvePool4Assets__factory_1 = require("./factories/ICurvePool_4.sol/ICurvePool4Assets__factory");
|
|
127
125
|
Object.defineProperty(exports, "ICurvePool4Assets__factory", { enumerable: true, get: function () { return ICurvePool4Assets__factory_1.ICurvePool4Assets__factory; } });
|
|
128
|
-
var
|
|
129
|
-
Object.defineProperty(exports, "
|
|
126
|
+
var ICurvePool__factory_1 = require("./factories/ICurvePool__factory");
|
|
127
|
+
Object.defineProperty(exports, "ICurvePool__factory", { enumerable: true, get: function () { return ICurvePool__factory_1.ICurvePool__factory; } });
|
|
130
128
|
var ICurveV1_2AssetsAdapter__factory_1 = require("./factories/ICurveV1_2AssetsAdapter__factory");
|
|
131
129
|
Object.defineProperty(exports, "ICurveV1_2AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_2AssetsAdapter__factory_1.ICurveV1_2AssetsAdapter__factory; } });
|
|
132
130
|
var ICurveV1_3AssetsAdapter__factory_1 = require("./factories/ICurveV1_3AssetsAdapter__factory");
|
|
133
131
|
Object.defineProperty(exports, "ICurveV1_3AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_3AssetsAdapter__factory_1.ICurveV1_3AssetsAdapter__factory; } });
|
|
134
132
|
var ICurveV1_4AssetsAdapter__factory_1 = require("./factories/ICurveV1_4AssetsAdapter__factory");
|
|
135
133
|
Object.defineProperty(exports, "ICurveV1_4AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_4AssetsAdapter__factory_1.ICurveV1_4AssetsAdapter__factory; } });
|
|
134
|
+
var ICurveV1Adapter__factory_1 = require("./factories/ICurveV1Adapter__factory");
|
|
135
|
+
Object.defineProperty(exports, "ICurveV1Adapter__factory", { enumerable: true, get: function () { return ICurveV1Adapter__factory_1.ICurveV1Adapter__factory; } });
|
|
136
136
|
var IDaiLikePermit__factory_1 = require("./factories/IDaiLikePermit__factory");
|
|
137
137
|
Object.defineProperty(exports, "IDaiLikePermit__factory", { enumerable: true, get: function () { return IDaiLikePermit__factory_1.IDaiLikePermit__factory; } });
|
|
138
138
|
var IDataCompressorV2_10__factory_1 = require("./factories/IDataCompressorV2_10__factory");
|
|
@@ -185,6 +185,8 @@ var ILidoV1Adapter__factory_1 = require("./factories/ILidoV1Adapter__factory");
|
|
|
185
185
|
Object.defineProperty(exports, "ILidoV1Adapter__factory", { enumerable: true, get: function () { return ILidoV1Adapter__factory_1.ILidoV1Adapter__factory; } });
|
|
186
186
|
var ILinearInterestRateModelV3__factory_1 = require("./factories/ILinearInterestRateModelV3__factory");
|
|
187
187
|
Object.defineProperty(exports, "ILinearInterestRateModelV3__factory", { enumerable: true, get: function () { return ILinearInterestRateModelV3__factory_1.ILinearInterestRateModelV3__factory; } });
|
|
188
|
+
var IRouter__factory_1 = require("./factories/interfaces/IRouter__factory");
|
|
189
|
+
Object.defineProperty(exports, "IRouter__factory", { enumerable: true, get: function () { return IRouter__factory_1.IRouter__factory; } });
|
|
188
190
|
var IOffchainOracle__factory_1 = require("./factories/IOffchainOracle__factory");
|
|
189
191
|
Object.defineProperty(exports, "IOffchainOracle__factory", { enumerable: true, get: function () { return IOffchainOracle__factory_1.IOffchainOracle__factory; } });
|
|
190
192
|
var IPermit2__factory_1 = require("./factories/IPermit2__factory");
|
|
@@ -219,8 +221,10 @@ var IPriceOracleV3__factory_1 = require("./factories/IPriceOracleV3.sol/IPriceOr
|
|
|
219
221
|
Object.defineProperty(exports, "IPriceOracleV3__factory", { enumerable: true, get: function () { return IPriceOracleV3__factory_1.IPriceOracleV3__factory; } });
|
|
220
222
|
var IPriceOracleV3Events__factory_1 = require("./factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory");
|
|
221
223
|
Object.defineProperty(exports, "IPriceOracleV3Events__factory", { enumerable: true, get: function () { return IPriceOracleV3Events__factory_1.IPriceOracleV3Events__factory; } });
|
|
222
|
-
var
|
|
223
|
-
Object.defineProperty(exports, "
|
|
224
|
+
var IstETH__factory_1 = require("./factories/IstETH.sol/IstETH__factory");
|
|
225
|
+
Object.defineProperty(exports, "IstETH__factory", { enumerable: true, get: function () { return IstETH__factory_1.IstETH__factory; } });
|
|
226
|
+
var IstETHGetters__factory_1 = require("./factories/IstETH.sol/IstETHGetters__factory");
|
|
227
|
+
Object.defineProperty(exports, "IstETHGetters__factory", { enumerable: true, get: function () { return IstETHGetters__factory_1.IstETHGetters__factory; } });
|
|
224
228
|
var IUniswapV2Adapter__factory_1 = require("./factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory");
|
|
225
229
|
Object.defineProperty(exports, "IUniswapV2Adapter__factory", { enumerable: true, get: function () { return IUniswapV2Adapter__factory_1.IUniswapV2Adapter__factory; } });
|
|
226
230
|
var IUniswapV2AdapterEvents__factory_1 = require("./factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory");
|
|
@@ -243,16 +247,6 @@ var IWETH__factory_1 = require("./factories/IWETH__factory");
|
|
|
243
247
|
Object.defineProperty(exports, "IWETH__factory", { enumerable: true, get: function () { return IWETH__factory_1.IWETH__factory; } });
|
|
244
248
|
var IWETHGateway__factory_1 = require("./factories/IWETHGateway__factory");
|
|
245
249
|
Object.defineProperty(exports, "IWETHGateway__factory", { enumerable: true, get: function () { return IWETHGateway__factory_1.IWETHGateway__factory; } });
|
|
246
|
-
var IYVault__factory_1 = require("./factories/IYVault__factory");
|
|
247
|
-
Object.defineProperty(exports, "IYVault__factory", { enumerable: true, get: function () { return IYVault__factory_1.IYVault__factory; } });
|
|
248
|
-
var IYearnV2Adapter__factory_1 = require("./factories/IYearnV2Adapter__factory");
|
|
249
|
-
Object.defineProperty(exports, "IYearnV2Adapter__factory", { enumerable: true, get: function () { return IYearnV2Adapter__factory_1.IYearnV2Adapter__factory; } });
|
|
250
|
-
var IZapper__factory_1 = require("./factories/IZapper__factory");
|
|
251
|
-
Object.defineProperty(exports, "IZapper__factory", { enumerable: true, get: function () { return IZapper__factory_1.IZapper__factory; } });
|
|
252
|
-
var IstETH__factory_1 = require("./factories/IstETH.sol/IstETH__factory");
|
|
253
|
-
Object.defineProperty(exports, "IstETH__factory", { enumerable: true, get: function () { return IstETH__factory_1.IstETH__factory; } });
|
|
254
|
-
var IstETHGetters__factory_1 = require("./factories/IstETH.sol/IstETHGetters__factory");
|
|
255
|
-
Object.defineProperty(exports, "IstETHGetters__factory", { enumerable: true, get: function () { return IstETHGetters__factory_1.IstETHGetters__factory; } });
|
|
256
250
|
var IwstETH__factory_1 = require("./factories/IwstETH.sol/IwstETH__factory");
|
|
257
251
|
Object.defineProperty(exports, "IwstETH__factory", { enumerable: true, get: function () { return IwstETH__factory_1.IwstETH__factory; } });
|
|
258
252
|
var IwstETHGetters__factory_1 = require("./factories/IwstETH.sol/IwstETHGetters__factory");
|
|
@@ -261,6 +255,12 @@ var IwstETHGateWay__factory_1 = require("./factories/IwstETHGateway.sol/IwstETHG
|
|
|
261
255
|
Object.defineProperty(exports, "IwstETHGateWay__factory", { enumerable: true, get: function () { return IwstETHGateWay__factory_1.IwstETHGateWay__factory; } });
|
|
262
256
|
var IwstETHV1Adapter__factory_1 = require("./factories/IwstETHV1Adapter__factory");
|
|
263
257
|
Object.defineProperty(exports, "IwstETHV1Adapter__factory", { enumerable: true, get: function () { return IwstETHV1Adapter__factory_1.IwstETHV1Adapter__factory; } });
|
|
258
|
+
var IYearnV2Adapter__factory_1 = require("./factories/IYearnV2Adapter__factory");
|
|
259
|
+
Object.defineProperty(exports, "IYearnV2Adapter__factory", { enumerable: true, get: function () { return IYearnV2Adapter__factory_1.IYearnV2Adapter__factory; } });
|
|
260
|
+
var IYVault__factory_1 = require("./factories/IYVault__factory");
|
|
261
|
+
Object.defineProperty(exports, "IYVault__factory", { enumerable: true, get: function () { return IYVault__factory_1.IYVault__factory; } });
|
|
262
|
+
var IZapper__factory_1 = require("./factories/IZapper__factory");
|
|
263
|
+
Object.defineProperty(exports, "IZapper__factory", { enumerable: true, get: function () { return IZapper__factory_1.IZapper__factory; } });
|
|
264
264
|
var Ownable__factory_1 = require("./factories/Ownable__factory");
|
|
265
265
|
Object.defineProperty(exports, "Ownable__factory", { enumerable: true, get: function () { return Ownable__factory_1.Ownable__factory; } });
|
|
266
266
|
var SafeERC20__factory_1 = require("./factories/SafeERC20__factory");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
2
|
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../common";
|
|
5
5
|
export type SwapTaskStruct = {
|
|
6
6
|
swapOperation: PromiseOrValue<BigNumberish>;
|
|
7
7
|
creditAccount: PromiseOrValue<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { IRouter } from "./IRouter";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.61",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@commitlint/cli": "^17.6.3",
|
|
42
42
|
"@commitlint/config-conventional": "^17.0.3",
|
|
43
43
|
"@gearbox-protocol/core-v2": "1.19.0-base.17",
|
|
44
|
-
"@gearbox-protocol/core-v3": "^1.
|
|
44
|
+
"@gearbox-protocol/core-v3": "^1.45.0",
|
|
45
45
|
"@gearbox-protocol/eslint-config": "^1.4.1",
|
|
46
|
-
"@gearbox-protocol/integrations-v3": "^1.
|
|
46
|
+
"@gearbox-protocol/integrations-v3": "^1.25.0",
|
|
47
47
|
"@gearbox-protocol/oracles-v3": "^1.8.1",
|
|
48
48
|
"@gearbox-protocol/periphery-v3": "^1.3.9",
|
|
49
49
|
"@gearbox-protocol/prettier-config": "^1.4.1",
|
|
File without changes
|
|
File without changes
|