@gearbox-protocol/sdk 1.3.3 → 1.5.0

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.
Files changed (153) hide show
  1. package/lib/apy/index.d.ts +1 -0
  2. package/lib/core/adapter.d.ts +34 -0
  3. package/lib/core/adapter.js +76 -0
  4. package/lib/core/assets.d.ts +34 -0
  5. package/lib/core/assets.js +98 -0
  6. package/lib/core/constants.d.ts +1 -0
  7. package/lib/core/constants.js +3 -1
  8. package/lib/core/creditAccount.d.ts +14 -5
  9. package/lib/core/creditAccount.js +35 -3
  10. package/lib/core/creditManager.d.ts +12 -3
  11. package/lib/core/creditManager.js +34 -36
  12. package/lib/core/strategy.d.ts +15 -5
  13. package/lib/core/strategy.js +42 -7
  14. package/lib/core/trade.d.ts +49 -0
  15. package/lib/core/trade.js +70 -0
  16. package/lib/core/wcOperation.d.ts +54 -0
  17. package/lib/core/wcOperation.js +76 -0
  18. package/lib/index.d.ts +6 -0
  19. package/lib/index.js +6 -0
  20. package/lib/parsers/abstractParser.d.ts +18 -0
  21. package/lib/parsers/abstractParser.js +32 -0
  22. package/lib/parsers/convexBaseRewardPoolAdapterParser.d.ts +9 -0
  23. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +60 -0
  24. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.d.ts +1 -0
  25. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +24 -0
  26. package/lib/parsers/convexBoosterAdapterParser.d.ts +10 -0
  27. package/lib/parsers/convexBoosterAdapterParser.js +62 -0
  28. package/lib/parsers/convexBoosterAdapterParser.spec.d.ts +1 -0
  29. package/lib/parsers/convexBoosterAdapterParser.spec.js +20 -0
  30. package/lib/parsers/creditFacadeParser.d.ts +9 -0
  31. package/lib/parsers/creditFacadeParser.js +66 -0
  32. package/lib/parsers/creditFacadeParser.spec.d.ts +1 -0
  33. package/lib/parsers/creditFacadeParser.spec.js +27 -0
  34. package/lib/parsers/curveAdapterParser.d.ts +12 -0
  35. package/lib/parsers/curveAdapterParser.js +106 -0
  36. package/lib/parsers/curveAdapterParser.spec.d.ts +1 -0
  37. package/lib/parsers/curveAdapterParser.spec.js +49 -0
  38. package/lib/parsers/iParser.d.ts +3 -0
  39. package/lib/{types/contracts/test/suites/mainnet/IPriceFeedsRegistry.js → parsers/iParser.js} +0 -0
  40. package/lib/parsers/lidoAdapterParser.d.ts +7 -0
  41. package/lib/parsers/lidoAdapterParser.js +46 -0
  42. package/lib/parsers/lidoAdapterParser.spec.d.ts +1 -0
  43. package/lib/parsers/lidoAdapterParser.spec.js +17 -0
  44. package/lib/parsers/txParser.d.ts +18 -0
  45. package/lib/parsers/txParser.js +122 -0
  46. package/lib/parsers/uniV2AdapterParser.d.ts +8 -0
  47. package/lib/parsers/uniV2AdapterParser.js +73 -0
  48. package/lib/parsers/uniV2AdapterParser.spec.d.ts +1 -0
  49. package/lib/parsers/uniV2AdapterParser.spec.js +48 -0
  50. package/lib/parsers/uniV3AdapterParser.d.ts +9 -0
  51. package/lib/parsers/uniV3AdapterParser.js +99 -0
  52. package/lib/parsers/uniV3AdapterParser.spec.d.ts +1 -0
  53. package/lib/parsers/uniV3AdapterParser.spec.js +82 -0
  54. package/lib/parsers/yearnAdapterParser.spec.d.ts +1 -0
  55. package/lib/parsers/yearnAdapterParser.spec.js +36 -0
  56. package/lib/parsers/yearnV2AdapterParser.d.ts +7 -0
  57. package/lib/parsers/yearnV2AdapterParser.js +54 -0
  58. package/lib/tokens/convex.d.ts +4 -2
  59. package/lib/tokens/convex.js +10 -1
  60. package/lib/tokens/decimals.d.ts +2 -0
  61. package/lib/tokens/decimals.js +62 -0
  62. package/lib/tokens/tokenType.d.ts +10 -9
  63. package/lib/tokens/tokenType.js +10 -9
  64. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +66 -2
  65. package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter.d.ts +620 -0
  66. package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter.js +2 -0
  67. package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter.d.ts +622 -0
  68. package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter.js +2 -0
  69. package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter.d.ts +648 -0
  70. package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter.js +2 -0
  71. package/lib/types/contracts/interfaces/adapters/curve/index.d.ts +3 -0
  72. package/lib/types/contracts/interfaces/adapters/index.d.ts +2 -0
  73. package/lib/types/contracts/interfaces/adapters/yearn/IYearnV2Adapter.d.ts +330 -0
  74. package/lib/types/contracts/interfaces/adapters/yearn/IYearnV2Adapter.js +2 -0
  75. package/lib/types/contracts/interfaces/adapters/yearn/index.d.ts +1 -0
  76. package/lib/types/contracts/interfaces/adapters/yearn/index.js +2 -0
  77. package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +28 -7
  78. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +30 -9
  79. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +31 -10
  80. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +28 -7
  81. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +28 -7
  82. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +24 -0
  83. package/lib/types/contracts/pathfinder/interfaces/IPathFinderComponent.d.ts +50 -0
  84. package/lib/types/contracts/pathfinder/interfaces/IPathFinderComponent.js +2 -0
  85. package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +29 -8
  86. package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.d.ts +99 -15
  87. package/lib/types/contracts/pathfinder/interfaces/ISwapper.d.ts +17 -1
  88. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +53 -9
  89. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +53 -9
  90. package/lib/types/contracts/pathfinder/interfaces/index.d.ts +1 -0
  91. package/lib/types/contracts/test/suites/mainnet/ITokenTestSuite.d.ts +110 -18
  92. package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.d.ts +50 -0
  93. package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.js +2 -0
  94. package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/index.d.ts +1 -0
  95. package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/index.js +2 -0
  96. package/lib/types/contracts/test/suites/mainnet/Tokens.sol/IToken.d.ts +60 -0
  97. package/lib/types/contracts/test/suites/mainnet/Tokens.sol/IToken.js +2 -0
  98. package/lib/types/contracts/test/suites/mainnet/Tokens.sol/index.d.ts +1 -0
  99. package/lib/types/contracts/test/suites/mainnet/Tokens.sol/index.js +2 -0
  100. package/lib/types/contracts/test/suites/mainnet/index.d.ts +4 -1
  101. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +62 -0
  102. package/lib/types/factories/contracts/{test/suites/mainnet/IPriceFeedsRegistry__factory.d.ts → interfaces/adapters/curve/ICurveV1_2AssetsAdapter__factory.d.ts} +4 -4
  103. package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter__factory.js +1066 -0
  104. package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter__factory.d.ts +32 -0
  105. package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter__factory.js +1066 -0
  106. package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter__factory.d.ts +32 -0
  107. package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter__factory.js +1066 -0
  108. package/lib/types/factories/contracts/interfaces/adapters/curve/index.d.ts +3 -0
  109. package/lib/types/factories/contracts/interfaces/adapters/curve/index.js +7 -1
  110. package/lib/types/factories/contracts/interfaces/adapters/index.d.ts +1 -0
  111. package/lib/types/factories/contracts/interfaces/adapters/index.js +2 -1
  112. package/lib/types/factories/contracts/interfaces/adapters/yearn/IYearnV2Adapter__factory.d.ts +46 -0
  113. package/lib/types/factories/contracts/interfaces/adapters/yearn/IYearnV2Adapter__factory.js +487 -0
  114. package/lib/types/factories/contracts/interfaces/adapters/yearn/index.d.ts +1 -0
  115. package/lib/types/factories/contracts/interfaces/adapters/yearn/index.js +8 -0
  116. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +12 -2
  117. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +54 -8
  118. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +138 -32
  119. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +110 -24
  120. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +54 -8
  121. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +54 -8
  122. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinderComponent__factory.d.ts +18 -0
  123. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinderComponent__factory.js +48 -0
  124. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +32 -0
  125. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +12 -2
  126. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +82 -16
  127. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +877 -56
  128. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapper__factory.d.ts +12 -2
  129. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapper__factory.js +26 -0
  130. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +365 -24
  131. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +355 -24
  132. package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +1 -0
  133. package/lib/types/factories/contracts/pathfinder/interfaces/index.js +3 -1
  134. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
  135. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
  136. package/lib/types/factories/contracts/test/suites/mainnet/ITokenTestSuite__factory.d.ts +2 -12
  137. package/lib/types/factories/contracts/test/suites/mainnet/ITokenTestSuite__factory.js +140 -12
  138. package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts__factory.d.ts +22 -0
  139. package/lib/types/factories/contracts/test/suites/mainnet/{IPriceFeedsRegistry__factory.js → SupportedContracts.sol/ISupportedContracts__factory.js} +25 -17
  140. package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/index.d.ts +1 -0
  141. package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/index.js +8 -0
  142. package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/IToken__factory.d.ts +22 -0
  143. package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/IToken__factory.js +79 -0
  144. package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/index.d.ts +1 -0
  145. package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/index.js +8 -0
  146. package/lib/types/factories/contracts/test/suites/mainnet/index.d.ts +2 -1
  147. package/lib/types/factories/contracts/test/suites/mainnet/index.js +26 -3
  148. package/lib/types/index.d.ts +14 -2
  149. package/lib/types/index.js +17 -5
  150. package/lib/utils/math.d.ts +1 -0
  151. package/lib/utils/math.js +5 -1
  152. package/package.json +6 -2
  153. package/lib/types/contracts/test/suites/mainnet/IPriceFeedsRegistry.d.ts +0 -42
@@ -1 +1,4 @@
1
1
  export * as iCurveV1AdapterSol from "./ICurveV1Adapter.sol";
2
+ export { ICurveV1_2AssetsAdapter__factory } from "./ICurveV1_2AssetsAdapter__factory";
3
+ export { ICurveV1_3AssetsAdapter__factory } from "./ICurveV1_3AssetsAdapter__factory";
4
+ export { ICurveV1_4AssetsAdapter__factory } from "./ICurveV1_4AssetsAdapter__factory";
@@ -23,8 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.iCurveV1AdapterSol = void 0;
26
+ exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.iCurveV1AdapterSol = void 0;
27
27
  /* Autogenerated file. Do not edit manually. */
28
28
  /* tslint:disable */
29
29
  /* eslint-disable */
30
30
  exports.iCurveV1AdapterSol = __importStar(require("./ICurveV1Adapter.sol"));
31
+ var ICurveV1_2AssetsAdapter__factory_1 = require("./ICurveV1_2AssetsAdapter__factory");
32
+ Object.defineProperty(exports, "ICurveV1_2AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_2AssetsAdapter__factory_1.ICurveV1_2AssetsAdapter__factory; } });
33
+ var ICurveV1_3AssetsAdapter__factory_1 = require("./ICurveV1_3AssetsAdapter__factory");
34
+ Object.defineProperty(exports, "ICurveV1_3AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_3AssetsAdapter__factory_1.ICurveV1_3AssetsAdapter__factory; } });
35
+ var ICurveV1_4AssetsAdapter__factory_1 = require("./ICurveV1_4AssetsAdapter__factory");
36
+ Object.defineProperty(exports, "ICurveV1_4AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_4AssetsAdapter__factory_1.ICurveV1_4AssetsAdapter__factory; } });
@@ -4,3 +4,4 @@ export * as convex from "./convex";
4
4
  export * as curve from "./curve";
5
5
  export * as lido from "./lido";
6
6
  export * as uniswap from "./uniswap";
7
+ export * as yearn from "./yearn";
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.uniswap = exports.lido = exports.curve = exports.convex = exports.iUniversalAdapterSol = exports.iAdapterSol = void 0;
26
+ exports.yearn = exports.uniswap = exports.lido = exports.curve = exports.convex = exports.iUniversalAdapterSol = exports.iAdapterSol = void 0;
27
27
  /* Autogenerated file. Do not edit manually. */
28
28
  /* tslint:disable */
29
29
  /* eslint-disable */
@@ -33,3 +33,4 @@ exports.convex = __importStar(require("./convex"));
33
33
  exports.curve = __importStar(require("./curve"));
34
34
  exports.lido = __importStar(require("./lido"));
35
35
  exports.uniswap = __importStar(require("./uniswap"));
36
+ exports.yearn = __importStar(require("./yearn"));
@@ -0,0 +1,46 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IYearnV2Adapter, IYearnV2AdapterInterface } from "../../../../../contracts/interfaces/adapters/yearn/IYearnV2Adapter";
4
+ export declare class IYearnV2Adapter__factory {
5
+ static readonly abi: ({
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
11
+ name: string;
12
+ type: string;
13
+ anonymous?: undefined;
14
+ outputs?: undefined;
15
+ stateMutability?: undefined;
16
+ } | {
17
+ anonymous: boolean;
18
+ inputs: {
19
+ indexed: boolean;
20
+ internalType: string;
21
+ name: string;
22
+ type: string;
23
+ }[];
24
+ name: string;
25
+ type: string;
26
+ outputs?: undefined;
27
+ stateMutability?: undefined;
28
+ } | {
29
+ inputs: {
30
+ internalType: string;
31
+ name: string;
32
+ type: string;
33
+ }[];
34
+ name: string;
35
+ outputs: {
36
+ internalType: string;
37
+ name: string;
38
+ type: string;
39
+ }[];
40
+ stateMutability: string;
41
+ type: string;
42
+ anonymous?: undefined;
43
+ })[];
44
+ static createInterface(): IYearnV2AdapterInterface;
45
+ static connect(address: string, signerOrProvider: Signer | Provider): IYearnV2Adapter;
46
+ }
@@ -0,0 +1,487 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IYearnV2Adapter__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "",
14
+ type: "address",
15
+ },
16
+ ],
17
+ name: "TokenIsNotInAllowedList",
18
+ type: "error",
19
+ },
20
+ {
21
+ anonymous: false,
22
+ inputs: [
23
+ {
24
+ indexed: true,
25
+ internalType: "address",
26
+ name: "owner",
27
+ type: "address",
28
+ },
29
+ {
30
+ indexed: true,
31
+ internalType: "address",
32
+ name: "spender",
33
+ type: "address",
34
+ },
35
+ {
36
+ indexed: false,
37
+ internalType: "uint256",
38
+ name: "value",
39
+ type: "uint256",
40
+ },
41
+ ],
42
+ name: "Approval",
43
+ type: "event",
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ {
49
+ indexed: true,
50
+ internalType: "address",
51
+ name: "from",
52
+ type: "address",
53
+ },
54
+ {
55
+ indexed: true,
56
+ internalType: "address",
57
+ name: "to",
58
+ type: "address",
59
+ },
60
+ {
61
+ indexed: false,
62
+ internalType: "uint256",
63
+ name: "value",
64
+ type: "uint256",
65
+ },
66
+ ],
67
+ name: "Transfer",
68
+ type: "event",
69
+ },
70
+ {
71
+ inputs: [],
72
+ name: "_gearboxAdapterType",
73
+ outputs: [
74
+ {
75
+ internalType: "enum AdapterType",
76
+ name: "",
77
+ type: "uint8",
78
+ },
79
+ ],
80
+ stateMutability: "pure",
81
+ type: "function",
82
+ },
83
+ {
84
+ inputs: [],
85
+ name: "_gearboxAdapterVersion",
86
+ outputs: [
87
+ {
88
+ internalType: "uint16",
89
+ name: "",
90
+ type: "uint16",
91
+ },
92
+ ],
93
+ stateMutability: "pure",
94
+ type: "function",
95
+ },
96
+ {
97
+ inputs: [
98
+ {
99
+ internalType: "address",
100
+ name: "owner",
101
+ type: "address",
102
+ },
103
+ {
104
+ internalType: "address",
105
+ name: "spender",
106
+ type: "address",
107
+ },
108
+ ],
109
+ name: "allowance",
110
+ outputs: [
111
+ {
112
+ internalType: "uint256",
113
+ name: "",
114
+ type: "uint256",
115
+ },
116
+ ],
117
+ stateMutability: "view",
118
+ type: "function",
119
+ },
120
+ {
121
+ inputs: [
122
+ {
123
+ internalType: "address",
124
+ name: "spender",
125
+ type: "address",
126
+ },
127
+ {
128
+ internalType: "uint256",
129
+ name: "amount",
130
+ type: "uint256",
131
+ },
132
+ ],
133
+ name: "approve",
134
+ outputs: [
135
+ {
136
+ internalType: "bool",
137
+ name: "",
138
+ type: "bool",
139
+ },
140
+ ],
141
+ stateMutability: "nonpayable",
142
+ type: "function",
143
+ },
144
+ {
145
+ inputs: [
146
+ {
147
+ internalType: "address",
148
+ name: "account",
149
+ type: "address",
150
+ },
151
+ ],
152
+ name: "balanceOf",
153
+ outputs: [
154
+ {
155
+ internalType: "uint256",
156
+ name: "",
157
+ type: "uint256",
158
+ },
159
+ ],
160
+ stateMutability: "view",
161
+ type: "function",
162
+ },
163
+ {
164
+ inputs: [],
165
+ name: "creditFacade",
166
+ outputs: [
167
+ {
168
+ internalType: "address",
169
+ name: "",
170
+ type: "address",
171
+ },
172
+ ],
173
+ stateMutability: "view",
174
+ type: "function",
175
+ },
176
+ {
177
+ inputs: [],
178
+ name: "creditManager",
179
+ outputs: [
180
+ {
181
+ internalType: "contract ICreditManagerV2",
182
+ name: "",
183
+ type: "address",
184
+ },
185
+ ],
186
+ stateMutability: "view",
187
+ type: "function",
188
+ },
189
+ {
190
+ inputs: [],
191
+ name: "decimals",
192
+ outputs: [
193
+ {
194
+ internalType: "uint8",
195
+ name: "",
196
+ type: "uint8",
197
+ },
198
+ ],
199
+ stateMutability: "view",
200
+ type: "function",
201
+ },
202
+ {
203
+ inputs: [
204
+ {
205
+ internalType: "uint256",
206
+ name: "_amount",
207
+ type: "uint256",
208
+ },
209
+ {
210
+ internalType: "address",
211
+ name: "recipient",
212
+ type: "address",
213
+ },
214
+ ],
215
+ name: "deposit",
216
+ outputs: [
217
+ {
218
+ internalType: "uint256",
219
+ name: "",
220
+ type: "uint256",
221
+ },
222
+ ],
223
+ stateMutability: "nonpayable",
224
+ type: "function",
225
+ },
226
+ {
227
+ inputs: [
228
+ {
229
+ internalType: "uint256",
230
+ name: "_amount",
231
+ type: "uint256",
232
+ },
233
+ ],
234
+ name: "deposit",
235
+ outputs: [
236
+ {
237
+ internalType: "uint256",
238
+ name: "",
239
+ type: "uint256",
240
+ },
241
+ ],
242
+ stateMutability: "nonpayable",
243
+ type: "function",
244
+ },
245
+ {
246
+ inputs: [],
247
+ name: "deposit",
248
+ outputs: [
249
+ {
250
+ internalType: "uint256",
251
+ name: "",
252
+ type: "uint256",
253
+ },
254
+ ],
255
+ stateMutability: "nonpayable",
256
+ type: "function",
257
+ },
258
+ {
259
+ inputs: [],
260
+ name: "name",
261
+ outputs: [
262
+ {
263
+ internalType: "string",
264
+ name: "",
265
+ type: "string",
266
+ },
267
+ ],
268
+ stateMutability: "view",
269
+ type: "function",
270
+ },
271
+ {
272
+ inputs: [],
273
+ name: "pricePerShare",
274
+ outputs: [
275
+ {
276
+ internalType: "uint256",
277
+ name: "",
278
+ type: "uint256",
279
+ },
280
+ ],
281
+ stateMutability: "view",
282
+ type: "function",
283
+ },
284
+ {
285
+ inputs: [],
286
+ name: "symbol",
287
+ outputs: [
288
+ {
289
+ internalType: "string",
290
+ name: "",
291
+ type: "string",
292
+ },
293
+ ],
294
+ stateMutability: "view",
295
+ type: "function",
296
+ },
297
+ {
298
+ inputs: [],
299
+ name: "targetContract",
300
+ outputs: [
301
+ {
302
+ internalType: "address",
303
+ name: "",
304
+ type: "address",
305
+ },
306
+ ],
307
+ stateMutability: "view",
308
+ type: "function",
309
+ },
310
+ {
311
+ inputs: [],
312
+ name: "token",
313
+ outputs: [
314
+ {
315
+ internalType: "address",
316
+ name: "",
317
+ type: "address",
318
+ },
319
+ ],
320
+ stateMutability: "view",
321
+ type: "function",
322
+ },
323
+ {
324
+ inputs: [],
325
+ name: "totalSupply",
326
+ outputs: [
327
+ {
328
+ internalType: "uint256",
329
+ name: "",
330
+ type: "uint256",
331
+ },
332
+ ],
333
+ stateMutability: "view",
334
+ type: "function",
335
+ },
336
+ {
337
+ inputs: [
338
+ {
339
+ internalType: "address",
340
+ name: "recipient",
341
+ type: "address",
342
+ },
343
+ {
344
+ internalType: "uint256",
345
+ name: "amount",
346
+ type: "uint256",
347
+ },
348
+ ],
349
+ name: "transfer",
350
+ outputs: [
351
+ {
352
+ internalType: "bool",
353
+ name: "",
354
+ type: "bool",
355
+ },
356
+ ],
357
+ stateMutability: "nonpayable",
358
+ type: "function",
359
+ },
360
+ {
361
+ inputs: [
362
+ {
363
+ internalType: "address",
364
+ name: "sender",
365
+ type: "address",
366
+ },
367
+ {
368
+ internalType: "address",
369
+ name: "recipient",
370
+ type: "address",
371
+ },
372
+ {
373
+ internalType: "uint256",
374
+ name: "amount",
375
+ type: "uint256",
376
+ },
377
+ ],
378
+ name: "transferFrom",
379
+ outputs: [
380
+ {
381
+ internalType: "bool",
382
+ name: "",
383
+ type: "bool",
384
+ },
385
+ ],
386
+ stateMutability: "nonpayable",
387
+ type: "function",
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ internalType: "uint256",
393
+ name: "maxShares",
394
+ type: "uint256",
395
+ },
396
+ {
397
+ internalType: "address",
398
+ name: "recipient",
399
+ type: "address",
400
+ },
401
+ ],
402
+ name: "withdraw",
403
+ outputs: [
404
+ {
405
+ internalType: "uint256",
406
+ name: "",
407
+ type: "uint256",
408
+ },
409
+ ],
410
+ stateMutability: "nonpayable",
411
+ type: "function",
412
+ },
413
+ {
414
+ inputs: [
415
+ {
416
+ internalType: "uint256",
417
+ name: "maxShares",
418
+ type: "uint256",
419
+ },
420
+ ],
421
+ name: "withdraw",
422
+ outputs: [
423
+ {
424
+ internalType: "uint256",
425
+ name: "",
426
+ type: "uint256",
427
+ },
428
+ ],
429
+ stateMutability: "nonpayable",
430
+ type: "function",
431
+ },
432
+ {
433
+ inputs: [],
434
+ name: "withdraw",
435
+ outputs: [
436
+ {
437
+ internalType: "uint256",
438
+ name: "",
439
+ type: "uint256",
440
+ },
441
+ ],
442
+ stateMutability: "nonpayable",
443
+ type: "function",
444
+ },
445
+ {
446
+ inputs: [
447
+ {
448
+ internalType: "uint256",
449
+ name: "maxShares",
450
+ type: "uint256",
451
+ },
452
+ {
453
+ internalType: "address",
454
+ name: "recipient",
455
+ type: "address",
456
+ },
457
+ {
458
+ internalType: "uint256",
459
+ name: "maxLoss",
460
+ type: "uint256",
461
+ },
462
+ ],
463
+ name: "withdraw",
464
+ outputs: [
465
+ {
466
+ internalType: "uint256",
467
+ name: "",
468
+ type: "uint256",
469
+ },
470
+ ],
471
+ stateMutability: "nonpayable",
472
+ type: "function",
473
+ },
474
+ ];
475
+ var IYearnV2Adapter__factory = /** @class */ (function () {
476
+ function IYearnV2Adapter__factory() {
477
+ }
478
+ IYearnV2Adapter__factory.createInterface = function () {
479
+ return new ethers_1.utils.Interface(_abi);
480
+ };
481
+ IYearnV2Adapter__factory.connect = function (address, signerOrProvider) {
482
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
483
+ };
484
+ IYearnV2Adapter__factory.abi = _abi;
485
+ return IYearnV2Adapter__factory;
486
+ }());
487
+ exports.IYearnV2Adapter__factory = IYearnV2Adapter__factory;
@@ -0,0 +1 @@
1
+ export { IYearnV2Adapter__factory } from "./IYearnV2Adapter__factory";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IYearnV2Adapter__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IYearnV2Adapter__factory_1 = require("./IYearnV2Adapter__factory");
8
+ Object.defineProperty(exports, "IYearnV2Adapter__factory", { enumerable: true, get: function () { return IYearnV2Adapter__factory_1.IYearnV2Adapter__factory; } });
@@ -2,7 +2,7 @@ import { Signer } from "ethers";
2
2
  import type { Provider } from "@ethersproject/providers";
3
3
  import type { IClosePathResolver, IClosePathResolverInterface } from "../../../../contracts/pathfinder/interfaces/IClosePathResolver";
4
4
  export declare class IClosePathResolver__factory {
5
- static readonly abi: {
5
+ static readonly abi: ({
6
6
  inputs: ({
7
7
  components: ({
8
8
  internalType: string;
@@ -51,7 +51,17 @@ export declare class IClosePathResolver__factory {
51
51
  }[];
52
52
  stateMutability: string;
53
53
  type: string;
54
- }[];
54
+ } | {
55
+ inputs: never[];
56
+ name: string;
57
+ outputs: {
58
+ internalType: string;
59
+ name: string;
60
+ type: string;
61
+ }[];
62
+ stateMutability: string;
63
+ type: string;
64
+ })[];
55
65
  static createInterface(): IClosePathResolverInterface;
56
66
  static connect(address: string, signerOrProvider: Signer | Provider): IClosePathResolver;
57
67
  }