@gearbox-protocol/sdk 3.0.0-next.61 → 3.0.0-next.62

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.
@@ -56,6 +56,7 @@ import {IPriceOracleBase} from "@gearbox-protocol/core-v2/contracts/interfaces/I
56
56
  import {IPriceOracleV2} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol";
57
57
  import {IPriceOracleV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IPriceOracleV3.sol";
58
58
  import {IPriceFeed} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceFeed.sol";
59
+ import {ILPPriceFeed} from "@gearbox-protocol/oracles-v3/contracts/interfaces/ILPPriceFeed.sol";
59
60
 
60
61
  import {ICurveV1_2AssetsAdapter} from
61
62
  "@gearbox-protocol/integrations-v3/contracts/interfaces/curve/ICurveV1_2AssetsAdapter.sol";
@@ -0,0 +1,285 @@
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
2
+ import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../common";
5
+ export interface ILPPriceFeedInterface extends utils.Interface {
6
+ functions: {
7
+ "allowBoundsUpdate()": FunctionFragment;
8
+ "decimals()": FunctionFragment;
9
+ "description()": FunctionFragment;
10
+ "forbidBoundsUpdate()": FunctionFragment;
11
+ "getAggregatePrice()": FunctionFragment;
12
+ "getLPExchangeRate()": FunctionFragment;
13
+ "getScale()": FunctionFragment;
14
+ "lastBoundsUpdate()": FunctionFragment;
15
+ "latestRoundData()": FunctionFragment;
16
+ "lowerBound()": FunctionFragment;
17
+ "lpContract()": FunctionFragment;
18
+ "lpToken()": FunctionFragment;
19
+ "priceFeedType()": FunctionFragment;
20
+ "priceOracle()": FunctionFragment;
21
+ "setLimiter(uint256)": FunctionFragment;
22
+ "skipPriceCheck()": FunctionFragment;
23
+ "updateBounds(bytes)": FunctionFragment;
24
+ "updateBoundsAllowed()": FunctionFragment;
25
+ "upperBound()": FunctionFragment;
26
+ "version()": FunctionFragment;
27
+ };
28
+ getFunction(nameOrSignatureOrTopic: "allowBoundsUpdate" | "decimals" | "description" | "forbidBoundsUpdate" | "getAggregatePrice" | "getLPExchangeRate" | "getScale" | "lastBoundsUpdate" | "latestRoundData" | "lowerBound" | "lpContract" | "lpToken" | "priceFeedType" | "priceOracle" | "setLimiter" | "skipPriceCheck" | "updateBounds" | "updateBoundsAllowed" | "upperBound" | "version"): FunctionFragment;
29
+ encodeFunctionData(functionFragment: "allowBoundsUpdate", values?: undefined): string;
30
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
31
+ encodeFunctionData(functionFragment: "description", values?: undefined): string;
32
+ encodeFunctionData(functionFragment: "forbidBoundsUpdate", values?: undefined): string;
33
+ encodeFunctionData(functionFragment: "getAggregatePrice", values?: undefined): string;
34
+ encodeFunctionData(functionFragment: "getLPExchangeRate", values?: undefined): string;
35
+ encodeFunctionData(functionFragment: "getScale", values?: undefined): string;
36
+ encodeFunctionData(functionFragment: "lastBoundsUpdate", values?: undefined): string;
37
+ encodeFunctionData(functionFragment: "latestRoundData", values?: undefined): string;
38
+ encodeFunctionData(functionFragment: "lowerBound", values?: undefined): string;
39
+ encodeFunctionData(functionFragment: "lpContract", values?: undefined): string;
40
+ encodeFunctionData(functionFragment: "lpToken", values?: undefined): string;
41
+ encodeFunctionData(functionFragment: "priceFeedType", values?: undefined): string;
42
+ encodeFunctionData(functionFragment: "priceOracle", values?: undefined): string;
43
+ encodeFunctionData(functionFragment: "setLimiter", values: [PromiseOrValue<BigNumberish>]): string;
44
+ encodeFunctionData(functionFragment: "skipPriceCheck", values?: undefined): string;
45
+ encodeFunctionData(functionFragment: "updateBounds", values: [PromiseOrValue<BytesLike>]): string;
46
+ encodeFunctionData(functionFragment: "updateBoundsAllowed", values?: undefined): string;
47
+ encodeFunctionData(functionFragment: "upperBound", values?: undefined): string;
48
+ encodeFunctionData(functionFragment: "version", values?: undefined): string;
49
+ decodeFunctionResult(functionFragment: "allowBoundsUpdate", data: BytesLike): Result;
50
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
51
+ decodeFunctionResult(functionFragment: "description", data: BytesLike): Result;
52
+ decodeFunctionResult(functionFragment: "forbidBoundsUpdate", data: BytesLike): Result;
53
+ decodeFunctionResult(functionFragment: "getAggregatePrice", data: BytesLike): Result;
54
+ decodeFunctionResult(functionFragment: "getLPExchangeRate", data: BytesLike): Result;
55
+ decodeFunctionResult(functionFragment: "getScale", data: BytesLike): Result;
56
+ decodeFunctionResult(functionFragment: "lastBoundsUpdate", data: BytesLike): Result;
57
+ decodeFunctionResult(functionFragment: "latestRoundData", data: BytesLike): Result;
58
+ decodeFunctionResult(functionFragment: "lowerBound", data: BytesLike): Result;
59
+ decodeFunctionResult(functionFragment: "lpContract", data: BytesLike): Result;
60
+ decodeFunctionResult(functionFragment: "lpToken", data: BytesLike): Result;
61
+ decodeFunctionResult(functionFragment: "priceFeedType", data: BytesLike): Result;
62
+ decodeFunctionResult(functionFragment: "priceOracle", data: BytesLike): Result;
63
+ decodeFunctionResult(functionFragment: "setLimiter", data: BytesLike): Result;
64
+ decodeFunctionResult(functionFragment: "skipPriceCheck", data: BytesLike): Result;
65
+ decodeFunctionResult(functionFragment: "updateBounds", data: BytesLike): Result;
66
+ decodeFunctionResult(functionFragment: "updateBoundsAllowed", data: BytesLike): Result;
67
+ decodeFunctionResult(functionFragment: "upperBound", data: BytesLike): Result;
68
+ decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
69
+ events: {
70
+ "SetBounds(uint256,uint256)": EventFragment;
71
+ "SetUpdateBoundsAllowed(bool)": EventFragment;
72
+ };
73
+ getEvent(nameOrSignatureOrTopic: "SetBounds"): EventFragment;
74
+ getEvent(nameOrSignatureOrTopic: "SetUpdateBoundsAllowed"): EventFragment;
75
+ }
76
+ export interface SetBoundsEventObject {
77
+ lowerBound: BigNumber;
78
+ upperBound: BigNumber;
79
+ }
80
+ export type SetBoundsEvent = TypedEvent<[
81
+ BigNumber,
82
+ BigNumber
83
+ ], SetBoundsEventObject>;
84
+ export type SetBoundsEventFilter = TypedEventFilter<SetBoundsEvent>;
85
+ export interface SetUpdateBoundsAllowedEventObject {
86
+ allowed: boolean;
87
+ }
88
+ export type SetUpdateBoundsAllowedEvent = TypedEvent<[
89
+ boolean
90
+ ], SetUpdateBoundsAllowedEventObject>;
91
+ export type SetUpdateBoundsAllowedEventFilter = TypedEventFilter<SetUpdateBoundsAllowedEvent>;
92
+ export interface ILPPriceFeed extends BaseContract {
93
+ connect(signerOrProvider: Signer | Provider | string): this;
94
+ attach(addressOrName: string): this;
95
+ deployed(): Promise<this>;
96
+ interface: ILPPriceFeedInterface;
97
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
98
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
99
+ listeners(eventName?: string): Array<Listener>;
100
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
101
+ removeAllListeners(eventName?: string): this;
102
+ off: OnEvent<this>;
103
+ on: OnEvent<this>;
104
+ once: OnEvent<this>;
105
+ removeListener: OnEvent<this>;
106
+ functions: {
107
+ allowBoundsUpdate(overrides?: Overrides & {
108
+ from?: PromiseOrValue<string>;
109
+ }): Promise<ContractTransaction>;
110
+ decimals(overrides?: CallOverrides): Promise<[number]>;
111
+ description(overrides?: CallOverrides): Promise<[string]>;
112
+ forbidBoundsUpdate(overrides?: Overrides & {
113
+ from?: PromiseOrValue<string>;
114
+ }): Promise<ContractTransaction>;
115
+ getAggregatePrice(overrides?: CallOverrides): Promise<[BigNumber] & {
116
+ answer: BigNumber;
117
+ }>;
118
+ getLPExchangeRate(overrides?: CallOverrides): Promise<[BigNumber] & {
119
+ exchangeRate: BigNumber;
120
+ }>;
121
+ getScale(overrides?: CallOverrides): Promise<[BigNumber] & {
122
+ scale: BigNumber;
123
+ }>;
124
+ lastBoundsUpdate(overrides?: CallOverrides): Promise<[number]>;
125
+ latestRoundData(overrides?: CallOverrides): Promise<[
126
+ BigNumber,
127
+ BigNumber,
128
+ BigNumber,
129
+ BigNumber,
130
+ BigNumber
131
+ ] & {
132
+ answer: BigNumber;
133
+ updatedAt: BigNumber;
134
+ }>;
135
+ lowerBound(overrides?: CallOverrides): Promise<[BigNumber]>;
136
+ lpContract(overrides?: CallOverrides): Promise<[string]>;
137
+ lpToken(overrides?: CallOverrides): Promise<[string]>;
138
+ priceFeedType(overrides?: CallOverrides): Promise<[number]>;
139
+ priceOracle(overrides?: CallOverrides): Promise<[string]>;
140
+ setLimiter(newLowerBound: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
141
+ from?: PromiseOrValue<string>;
142
+ }): Promise<ContractTransaction>;
143
+ skipPriceCheck(overrides?: CallOverrides): Promise<[boolean]>;
144
+ updateBounds(updateData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
145
+ from?: PromiseOrValue<string>;
146
+ }): Promise<ContractTransaction>;
147
+ updateBoundsAllowed(overrides?: CallOverrides): Promise<[boolean]>;
148
+ upperBound(overrides?: CallOverrides): Promise<[BigNumber]>;
149
+ version(overrides?: CallOverrides): Promise<[BigNumber]>;
150
+ };
151
+ allowBoundsUpdate(overrides?: Overrides & {
152
+ from?: PromiseOrValue<string>;
153
+ }): Promise<ContractTransaction>;
154
+ decimals(overrides?: CallOverrides): Promise<number>;
155
+ description(overrides?: CallOverrides): Promise<string>;
156
+ forbidBoundsUpdate(overrides?: Overrides & {
157
+ from?: PromiseOrValue<string>;
158
+ }): Promise<ContractTransaction>;
159
+ getAggregatePrice(overrides?: CallOverrides): Promise<BigNumber>;
160
+ getLPExchangeRate(overrides?: CallOverrides): Promise<BigNumber>;
161
+ getScale(overrides?: CallOverrides): Promise<BigNumber>;
162
+ lastBoundsUpdate(overrides?: CallOverrides): Promise<number>;
163
+ latestRoundData(overrides?: CallOverrides): Promise<[
164
+ BigNumber,
165
+ BigNumber,
166
+ BigNumber,
167
+ BigNumber,
168
+ BigNumber
169
+ ] & {
170
+ answer: BigNumber;
171
+ updatedAt: BigNumber;
172
+ }>;
173
+ lowerBound(overrides?: CallOverrides): Promise<BigNumber>;
174
+ lpContract(overrides?: CallOverrides): Promise<string>;
175
+ lpToken(overrides?: CallOverrides): Promise<string>;
176
+ priceFeedType(overrides?: CallOverrides): Promise<number>;
177
+ priceOracle(overrides?: CallOverrides): Promise<string>;
178
+ setLimiter(newLowerBound: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
179
+ from?: PromiseOrValue<string>;
180
+ }): Promise<ContractTransaction>;
181
+ skipPriceCheck(overrides?: CallOverrides): Promise<boolean>;
182
+ updateBounds(updateData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
183
+ from?: PromiseOrValue<string>;
184
+ }): Promise<ContractTransaction>;
185
+ updateBoundsAllowed(overrides?: CallOverrides): Promise<boolean>;
186
+ upperBound(overrides?: CallOverrides): Promise<BigNumber>;
187
+ version(overrides?: CallOverrides): Promise<BigNumber>;
188
+ callStatic: {
189
+ allowBoundsUpdate(overrides?: CallOverrides): Promise<void>;
190
+ decimals(overrides?: CallOverrides): Promise<number>;
191
+ description(overrides?: CallOverrides): Promise<string>;
192
+ forbidBoundsUpdate(overrides?: CallOverrides): Promise<void>;
193
+ getAggregatePrice(overrides?: CallOverrides): Promise<BigNumber>;
194
+ getLPExchangeRate(overrides?: CallOverrides): Promise<BigNumber>;
195
+ getScale(overrides?: CallOverrides): Promise<BigNumber>;
196
+ lastBoundsUpdate(overrides?: CallOverrides): Promise<number>;
197
+ latestRoundData(overrides?: CallOverrides): Promise<[
198
+ BigNumber,
199
+ BigNumber,
200
+ BigNumber,
201
+ BigNumber,
202
+ BigNumber
203
+ ] & {
204
+ answer: BigNumber;
205
+ updatedAt: BigNumber;
206
+ }>;
207
+ lowerBound(overrides?: CallOverrides): Promise<BigNumber>;
208
+ lpContract(overrides?: CallOverrides): Promise<string>;
209
+ lpToken(overrides?: CallOverrides): Promise<string>;
210
+ priceFeedType(overrides?: CallOverrides): Promise<number>;
211
+ priceOracle(overrides?: CallOverrides): Promise<string>;
212
+ setLimiter(newLowerBound: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
213
+ skipPriceCheck(overrides?: CallOverrides): Promise<boolean>;
214
+ updateBounds(updateData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
215
+ updateBoundsAllowed(overrides?: CallOverrides): Promise<boolean>;
216
+ upperBound(overrides?: CallOverrides): Promise<BigNumber>;
217
+ version(overrides?: CallOverrides): Promise<BigNumber>;
218
+ };
219
+ filters: {
220
+ "SetBounds(uint256,uint256)"(lowerBound?: null, upperBound?: null): SetBoundsEventFilter;
221
+ SetBounds(lowerBound?: null, upperBound?: null): SetBoundsEventFilter;
222
+ "SetUpdateBoundsAllowed(bool)"(allowed?: null): SetUpdateBoundsAllowedEventFilter;
223
+ SetUpdateBoundsAllowed(allowed?: null): SetUpdateBoundsAllowedEventFilter;
224
+ };
225
+ estimateGas: {
226
+ allowBoundsUpdate(overrides?: Overrides & {
227
+ from?: PromiseOrValue<string>;
228
+ }): Promise<BigNumber>;
229
+ decimals(overrides?: CallOverrides): Promise<BigNumber>;
230
+ description(overrides?: CallOverrides): Promise<BigNumber>;
231
+ forbidBoundsUpdate(overrides?: Overrides & {
232
+ from?: PromiseOrValue<string>;
233
+ }): Promise<BigNumber>;
234
+ getAggregatePrice(overrides?: CallOverrides): Promise<BigNumber>;
235
+ getLPExchangeRate(overrides?: CallOverrides): Promise<BigNumber>;
236
+ getScale(overrides?: CallOverrides): Promise<BigNumber>;
237
+ lastBoundsUpdate(overrides?: CallOverrides): Promise<BigNumber>;
238
+ latestRoundData(overrides?: CallOverrides): Promise<BigNumber>;
239
+ lowerBound(overrides?: CallOverrides): Promise<BigNumber>;
240
+ lpContract(overrides?: CallOverrides): Promise<BigNumber>;
241
+ lpToken(overrides?: CallOverrides): Promise<BigNumber>;
242
+ priceFeedType(overrides?: CallOverrides): Promise<BigNumber>;
243
+ priceOracle(overrides?: CallOverrides): Promise<BigNumber>;
244
+ setLimiter(newLowerBound: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
245
+ from?: PromiseOrValue<string>;
246
+ }): Promise<BigNumber>;
247
+ skipPriceCheck(overrides?: CallOverrides): Promise<BigNumber>;
248
+ updateBounds(updateData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
249
+ from?: PromiseOrValue<string>;
250
+ }): Promise<BigNumber>;
251
+ updateBoundsAllowed(overrides?: CallOverrides): Promise<BigNumber>;
252
+ upperBound(overrides?: CallOverrides): Promise<BigNumber>;
253
+ version(overrides?: CallOverrides): Promise<BigNumber>;
254
+ };
255
+ populateTransaction: {
256
+ allowBoundsUpdate(overrides?: Overrides & {
257
+ from?: PromiseOrValue<string>;
258
+ }): Promise<PopulatedTransaction>;
259
+ decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
260
+ description(overrides?: CallOverrides): Promise<PopulatedTransaction>;
261
+ forbidBoundsUpdate(overrides?: Overrides & {
262
+ from?: PromiseOrValue<string>;
263
+ }): Promise<PopulatedTransaction>;
264
+ getAggregatePrice(overrides?: CallOverrides): Promise<PopulatedTransaction>;
265
+ getLPExchangeRate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
266
+ getScale(overrides?: CallOverrides): Promise<PopulatedTransaction>;
267
+ lastBoundsUpdate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
268
+ latestRoundData(overrides?: CallOverrides): Promise<PopulatedTransaction>;
269
+ lowerBound(overrides?: CallOverrides): Promise<PopulatedTransaction>;
270
+ lpContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
271
+ lpToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
272
+ priceFeedType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
273
+ priceOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
274
+ setLimiter(newLowerBound: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
275
+ from?: PromiseOrValue<string>;
276
+ }): Promise<PopulatedTransaction>;
277
+ skipPriceCheck(overrides?: CallOverrides): Promise<PopulatedTransaction>;
278
+ updateBounds(updateData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
279
+ from?: PromiseOrValue<string>;
280
+ }): Promise<PopulatedTransaction>;
281
+ updateBoundsAllowed(overrides?: CallOverrides): Promise<PopulatedTransaction>;
282
+ upperBound(overrides?: CallOverrides): Promise<PopulatedTransaction>;
283
+ version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
284
+ };
285
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,54 @@
1
+ import type { BaseContract, BigNumber, Signer, utils } from "ethers";
2
+ import type { EventFragment } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../common";
5
+ export interface ILPPriceFeedEventsInterface extends utils.Interface {
6
+ functions: {};
7
+ events: {
8
+ "SetBounds(uint256,uint256)": EventFragment;
9
+ "SetUpdateBoundsAllowed(bool)": EventFragment;
10
+ };
11
+ getEvent(nameOrSignatureOrTopic: "SetBounds"): EventFragment;
12
+ getEvent(nameOrSignatureOrTopic: "SetUpdateBoundsAllowed"): EventFragment;
13
+ }
14
+ export interface SetBoundsEventObject {
15
+ lowerBound: BigNumber;
16
+ upperBound: BigNumber;
17
+ }
18
+ export type SetBoundsEvent = TypedEvent<[
19
+ BigNumber,
20
+ BigNumber
21
+ ], SetBoundsEventObject>;
22
+ export type SetBoundsEventFilter = TypedEventFilter<SetBoundsEvent>;
23
+ export interface SetUpdateBoundsAllowedEventObject {
24
+ allowed: boolean;
25
+ }
26
+ export type SetUpdateBoundsAllowedEvent = TypedEvent<[
27
+ boolean
28
+ ], SetUpdateBoundsAllowedEventObject>;
29
+ export type SetUpdateBoundsAllowedEventFilter = TypedEventFilter<SetUpdateBoundsAllowedEvent>;
30
+ export interface ILPPriceFeedEvents extends BaseContract {
31
+ connect(signerOrProvider: Signer | Provider | string): this;
32
+ attach(addressOrName: string): this;
33
+ deployed(): Promise<this>;
34
+ interface: ILPPriceFeedEventsInterface;
35
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
36
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
37
+ listeners(eventName?: string): Array<Listener>;
38
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
39
+ removeAllListeners(eventName?: string): this;
40
+ off: OnEvent<this>;
41
+ on: OnEvent<this>;
42
+ once: OnEvent<this>;
43
+ removeListener: OnEvent<this>;
44
+ functions: {};
45
+ callStatic: {};
46
+ filters: {
47
+ "SetBounds(uint256,uint256)"(lowerBound?: null, upperBound?: null): SetBoundsEventFilter;
48
+ SetBounds(lowerBound?: null, upperBound?: null): SetBoundsEventFilter;
49
+ "SetUpdateBoundsAllowed(bool)"(allowed?: null): SetUpdateBoundsAllowedEventFilter;
50
+ SetUpdateBoundsAllowed(allowed?: null): SetUpdateBoundsAllowedEventFilter;
51
+ };
52
+ estimateGas: {};
53
+ populateTransaction: {};
54
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ import type { BaseContract, Signer, utils } from "ethers";
2
+ import type { Listener, Provider } from "@ethersproject/providers";
3
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../common";
4
+ export interface ILPPriceFeedExceptionsInterface extends utils.Interface {
5
+ functions: {};
6
+ events: {};
7
+ }
8
+ export interface ILPPriceFeedExceptions extends BaseContract {
9
+ connect(signerOrProvider: Signer | Provider | string): this;
10
+ attach(addressOrName: string): this;
11
+ deployed(): Promise<this>;
12
+ interface: ILPPriceFeedExceptionsInterface;
13
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
14
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
15
+ listeners(eventName?: string): Array<Listener>;
16
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
17
+ removeAllListeners(eventName?: string): this;
18
+ off: OnEvent<this>;
19
+ on: OnEvent<this>;
20
+ once: OnEvent<this>;
21
+ removeListener: OnEvent<this>;
22
+ functions: {};
23
+ callStatic: {};
24
+ filters: {};
25
+ estimateGas: {};
26
+ populateTransaction: {};
27
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type { ILPPriceFeed } from "./ILPPriceFeed";
2
+ export type { ILPPriceFeedEvents } from "./ILPPriceFeedEvents";
3
+ export type { ILPPriceFeedExceptions } from "./ILPPriceFeedExceptions";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { ILPPriceFeedEvents, ILPPriceFeedEventsInterface } from "../../ILPPriceFeed.sol/ILPPriceFeedEvents";
4
+ export declare class ILPPriceFeedEvents__factory {
5
+ static readonly abi: readonly [{
6
+ readonly anonymous: false;
7
+ readonly inputs: readonly [{
8
+ readonly indexed: false;
9
+ readonly internalType: "uint256";
10
+ readonly name: "lowerBound";
11
+ readonly type: "uint256";
12
+ }, {
13
+ readonly indexed: false;
14
+ readonly internalType: "uint256";
15
+ readonly name: "upperBound";
16
+ readonly type: "uint256";
17
+ }];
18
+ readonly name: "SetBounds";
19
+ readonly type: "event";
20
+ }, {
21
+ readonly anonymous: false;
22
+ readonly inputs: readonly [{
23
+ readonly indexed: false;
24
+ readonly internalType: "bool";
25
+ readonly name: "allowed";
26
+ readonly type: "bool";
27
+ }];
28
+ readonly name: "SetUpdateBoundsAllowed";
29
+ readonly type: "event";
30
+ }];
31
+ static createInterface(): ILPPriceFeedEventsInterface;
32
+ static connect(address: string, signerOrProvider: Signer | Provider): ILPPriceFeedEvents;
33
+ }
@@ -0,0 +1,51 @@
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.ILPPriceFeedEvents__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: false,
14
+ internalType: "uint256",
15
+ name: "lowerBound",
16
+ type: "uint256",
17
+ },
18
+ {
19
+ indexed: false,
20
+ internalType: "uint256",
21
+ name: "upperBound",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ name: "SetBounds",
26
+ type: "event",
27
+ },
28
+ {
29
+ anonymous: false,
30
+ inputs: [
31
+ {
32
+ indexed: false,
33
+ internalType: "bool",
34
+ name: "allowed",
35
+ type: "bool",
36
+ },
37
+ ],
38
+ name: "SetUpdateBoundsAllowed",
39
+ type: "event",
40
+ },
41
+ ];
42
+ class ILPPriceFeedEvents__factory {
43
+ static abi = _abi;
44
+ static createInterface() {
45
+ return new ethers_1.utils.Interface(_abi);
46
+ }
47
+ static connect(address, signerOrProvider) {
48
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
49
+ }
50
+ }
51
+ exports.ILPPriceFeedEvents__factory = ILPPriceFeedEvents__factory;
@@ -0,0 +1,24 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { ILPPriceFeedExceptions, ILPPriceFeedExceptionsInterface } from "../../ILPPriceFeed.sol/ILPPriceFeedExceptions";
4
+ export declare class ILPPriceFeedExceptions__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [];
7
+ readonly name: "ExchangeRateOutOfBoundsException";
8
+ readonly type: "error";
9
+ }, {
10
+ readonly inputs: readonly [];
11
+ readonly name: "ReserveFeedMustNotBeSelfException";
12
+ readonly type: "error";
13
+ }, {
14
+ readonly inputs: readonly [];
15
+ readonly name: "UpdateBoundsBeforeCooldownException";
16
+ readonly type: "error";
17
+ }, {
18
+ readonly inputs: readonly [];
19
+ readonly name: "UpdateBoundsNotAllowedException";
20
+ readonly type: "error";
21
+ }];
22
+ static createInterface(): ILPPriceFeedExceptionsInterface;
23
+ static connect(address: string, signerOrProvider: Signer | Provider): ILPPriceFeedExceptions;
24
+ }
@@ -0,0 +1,39 @@
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.ILPPriceFeedExceptions__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "ExchangeRateOutOfBoundsException",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [],
16
+ name: "ReserveFeedMustNotBeSelfException",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [],
21
+ name: "UpdateBoundsBeforeCooldownException",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [],
26
+ name: "UpdateBoundsNotAllowedException",
27
+ type: "error",
28
+ },
29
+ ];
30
+ class ILPPriceFeedExceptions__factory {
31
+ static abi = _abi;
32
+ static createInterface() {
33
+ return new ethers_1.utils.Interface(_abi);
34
+ }
35
+ static connect(address, signerOrProvider) {
36
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
37
+ }
38
+ }
39
+ exports.ILPPriceFeedExceptions__factory = ILPPriceFeedExceptions__factory;
@@ -0,0 +1,257 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { ILPPriceFeed, ILPPriceFeedInterface } from "../../ILPPriceFeed.sol/ILPPriceFeed";
4
+ export declare class ILPPriceFeed__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [];
7
+ readonly name: "ExchangeRateOutOfBoundsException";
8
+ readonly type: "error";
9
+ }, {
10
+ readonly inputs: readonly [];
11
+ readonly name: "ReserveFeedMustNotBeSelfException";
12
+ readonly type: "error";
13
+ }, {
14
+ readonly inputs: readonly [];
15
+ readonly name: "UpdateBoundsBeforeCooldownException";
16
+ readonly type: "error";
17
+ }, {
18
+ readonly inputs: readonly [];
19
+ readonly name: "UpdateBoundsNotAllowedException";
20
+ readonly type: "error";
21
+ }, {
22
+ readonly anonymous: false;
23
+ readonly inputs: readonly [{
24
+ readonly indexed: false;
25
+ readonly internalType: "uint256";
26
+ readonly name: "lowerBound";
27
+ readonly type: "uint256";
28
+ }, {
29
+ readonly indexed: false;
30
+ readonly internalType: "uint256";
31
+ readonly name: "upperBound";
32
+ readonly type: "uint256";
33
+ }];
34
+ readonly name: "SetBounds";
35
+ readonly type: "event";
36
+ }, {
37
+ readonly anonymous: false;
38
+ readonly inputs: readonly [{
39
+ readonly indexed: false;
40
+ readonly internalType: "bool";
41
+ readonly name: "allowed";
42
+ readonly type: "bool";
43
+ }];
44
+ readonly name: "SetUpdateBoundsAllowed";
45
+ readonly type: "event";
46
+ }, {
47
+ readonly inputs: readonly [];
48
+ readonly name: "allowBoundsUpdate";
49
+ readonly outputs: readonly [];
50
+ readonly stateMutability: "nonpayable";
51
+ readonly type: "function";
52
+ }, {
53
+ readonly inputs: readonly [];
54
+ readonly name: "decimals";
55
+ readonly outputs: readonly [{
56
+ readonly internalType: "uint8";
57
+ readonly name: "";
58
+ readonly type: "uint8";
59
+ }];
60
+ readonly stateMutability: "view";
61
+ readonly type: "function";
62
+ }, {
63
+ readonly inputs: readonly [];
64
+ readonly name: "description";
65
+ readonly outputs: readonly [{
66
+ readonly internalType: "string";
67
+ readonly name: "";
68
+ readonly type: "string";
69
+ }];
70
+ readonly stateMutability: "view";
71
+ readonly type: "function";
72
+ }, {
73
+ readonly inputs: readonly [];
74
+ readonly name: "forbidBoundsUpdate";
75
+ readonly outputs: readonly [];
76
+ readonly stateMutability: "nonpayable";
77
+ readonly type: "function";
78
+ }, {
79
+ readonly inputs: readonly [];
80
+ readonly name: "getAggregatePrice";
81
+ readonly outputs: readonly [{
82
+ readonly internalType: "int256";
83
+ readonly name: "answer";
84
+ readonly type: "int256";
85
+ }];
86
+ readonly stateMutability: "view";
87
+ readonly type: "function";
88
+ }, {
89
+ readonly inputs: readonly [];
90
+ readonly name: "getLPExchangeRate";
91
+ readonly outputs: readonly [{
92
+ readonly internalType: "uint256";
93
+ readonly name: "exchangeRate";
94
+ readonly type: "uint256";
95
+ }];
96
+ readonly stateMutability: "view";
97
+ readonly type: "function";
98
+ }, {
99
+ readonly inputs: readonly [];
100
+ readonly name: "getScale";
101
+ readonly outputs: readonly [{
102
+ readonly internalType: "uint256";
103
+ readonly name: "scale";
104
+ readonly type: "uint256";
105
+ }];
106
+ readonly stateMutability: "view";
107
+ readonly type: "function";
108
+ }, {
109
+ readonly inputs: readonly [];
110
+ readonly name: "lastBoundsUpdate";
111
+ readonly outputs: readonly [{
112
+ readonly internalType: "uint40";
113
+ readonly name: "";
114
+ readonly type: "uint40";
115
+ }];
116
+ readonly stateMutability: "view";
117
+ readonly type: "function";
118
+ }, {
119
+ readonly inputs: readonly [];
120
+ readonly name: "latestRoundData";
121
+ readonly outputs: readonly [{
122
+ readonly internalType: "uint80";
123
+ readonly name: "";
124
+ readonly type: "uint80";
125
+ }, {
126
+ readonly internalType: "int256";
127
+ readonly name: "answer";
128
+ readonly type: "int256";
129
+ }, {
130
+ readonly internalType: "uint256";
131
+ readonly name: "";
132
+ readonly type: "uint256";
133
+ }, {
134
+ readonly internalType: "uint256";
135
+ readonly name: "updatedAt";
136
+ readonly type: "uint256";
137
+ }, {
138
+ readonly internalType: "uint80";
139
+ readonly name: "";
140
+ readonly type: "uint80";
141
+ }];
142
+ readonly stateMutability: "view";
143
+ readonly type: "function";
144
+ }, {
145
+ readonly inputs: readonly [];
146
+ readonly name: "lowerBound";
147
+ readonly outputs: readonly [{
148
+ readonly internalType: "uint256";
149
+ readonly name: "";
150
+ readonly type: "uint256";
151
+ }];
152
+ readonly stateMutability: "view";
153
+ readonly type: "function";
154
+ }, {
155
+ readonly inputs: readonly [];
156
+ readonly name: "lpContract";
157
+ readonly outputs: readonly [{
158
+ readonly internalType: "address";
159
+ readonly name: "";
160
+ readonly type: "address";
161
+ }];
162
+ readonly stateMutability: "view";
163
+ readonly type: "function";
164
+ }, {
165
+ readonly inputs: readonly [];
166
+ readonly name: "lpToken";
167
+ readonly outputs: readonly [{
168
+ readonly internalType: "address";
169
+ readonly name: "";
170
+ readonly type: "address";
171
+ }];
172
+ readonly stateMutability: "view";
173
+ readonly type: "function";
174
+ }, {
175
+ readonly inputs: readonly [];
176
+ readonly name: "priceFeedType";
177
+ readonly outputs: readonly [{
178
+ readonly internalType: "enum PriceFeedType";
179
+ readonly name: "";
180
+ readonly type: "uint8";
181
+ }];
182
+ readonly stateMutability: "view";
183
+ readonly type: "function";
184
+ }, {
185
+ readonly inputs: readonly [];
186
+ readonly name: "priceOracle";
187
+ readonly outputs: readonly [{
188
+ readonly internalType: "address";
189
+ readonly name: "";
190
+ readonly type: "address";
191
+ }];
192
+ readonly stateMutability: "view";
193
+ readonly type: "function";
194
+ }, {
195
+ readonly inputs: readonly [{
196
+ readonly internalType: "uint256";
197
+ readonly name: "newLowerBound";
198
+ readonly type: "uint256";
199
+ }];
200
+ readonly name: "setLimiter";
201
+ readonly outputs: readonly [];
202
+ readonly stateMutability: "nonpayable";
203
+ readonly type: "function";
204
+ }, {
205
+ readonly inputs: readonly [];
206
+ readonly name: "skipPriceCheck";
207
+ readonly outputs: readonly [{
208
+ readonly internalType: "bool";
209
+ readonly name: "";
210
+ readonly type: "bool";
211
+ }];
212
+ readonly stateMutability: "view";
213
+ readonly type: "function";
214
+ }, {
215
+ readonly inputs: readonly [{
216
+ readonly internalType: "bytes";
217
+ readonly name: "updateData";
218
+ readonly type: "bytes";
219
+ }];
220
+ readonly name: "updateBounds";
221
+ readonly outputs: readonly [];
222
+ readonly stateMutability: "nonpayable";
223
+ readonly type: "function";
224
+ }, {
225
+ readonly inputs: readonly [];
226
+ readonly name: "updateBoundsAllowed";
227
+ readonly outputs: readonly [{
228
+ readonly internalType: "bool";
229
+ readonly name: "";
230
+ readonly type: "bool";
231
+ }];
232
+ readonly stateMutability: "view";
233
+ readonly type: "function";
234
+ }, {
235
+ readonly inputs: readonly [];
236
+ readonly name: "upperBound";
237
+ readonly outputs: readonly [{
238
+ readonly internalType: "uint256";
239
+ readonly name: "";
240
+ readonly type: "uint256";
241
+ }];
242
+ readonly stateMutability: "view";
243
+ readonly type: "function";
244
+ }, {
245
+ readonly inputs: readonly [];
246
+ readonly name: "version";
247
+ readonly outputs: readonly [{
248
+ readonly internalType: "uint256";
249
+ readonly name: "";
250
+ readonly type: "uint256";
251
+ }];
252
+ readonly stateMutability: "view";
253
+ readonly type: "function";
254
+ }];
255
+ static createInterface(): ILPPriceFeedInterface;
256
+ static connect(address: string, signerOrProvider: Signer | Provider): ILPPriceFeed;
257
+ }
@@ -0,0 +1,339 @@
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.ILPPriceFeed__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "ExchangeRateOutOfBoundsException",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [],
16
+ name: "ReserveFeedMustNotBeSelfException",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [],
21
+ name: "UpdateBoundsBeforeCooldownException",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [],
26
+ name: "UpdateBoundsNotAllowedException",
27
+ type: "error",
28
+ },
29
+ {
30
+ anonymous: false,
31
+ inputs: [
32
+ {
33
+ indexed: false,
34
+ internalType: "uint256",
35
+ name: "lowerBound",
36
+ type: "uint256",
37
+ },
38
+ {
39
+ indexed: false,
40
+ internalType: "uint256",
41
+ name: "upperBound",
42
+ type: "uint256",
43
+ },
44
+ ],
45
+ name: "SetBounds",
46
+ type: "event",
47
+ },
48
+ {
49
+ anonymous: false,
50
+ inputs: [
51
+ {
52
+ indexed: false,
53
+ internalType: "bool",
54
+ name: "allowed",
55
+ type: "bool",
56
+ },
57
+ ],
58
+ name: "SetUpdateBoundsAllowed",
59
+ type: "event",
60
+ },
61
+ {
62
+ inputs: [],
63
+ name: "allowBoundsUpdate",
64
+ outputs: [],
65
+ stateMutability: "nonpayable",
66
+ type: "function",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "decimals",
71
+ outputs: [
72
+ {
73
+ internalType: "uint8",
74
+ name: "",
75
+ type: "uint8",
76
+ },
77
+ ],
78
+ stateMutability: "view",
79
+ type: "function",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "description",
84
+ outputs: [
85
+ {
86
+ internalType: "string",
87
+ name: "",
88
+ type: "string",
89
+ },
90
+ ],
91
+ stateMutability: "view",
92
+ type: "function",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "forbidBoundsUpdate",
97
+ outputs: [],
98
+ stateMutability: "nonpayable",
99
+ type: "function",
100
+ },
101
+ {
102
+ inputs: [],
103
+ name: "getAggregatePrice",
104
+ outputs: [
105
+ {
106
+ internalType: "int256",
107
+ name: "answer",
108
+ type: "int256",
109
+ },
110
+ ],
111
+ stateMutability: "view",
112
+ type: "function",
113
+ },
114
+ {
115
+ inputs: [],
116
+ name: "getLPExchangeRate",
117
+ outputs: [
118
+ {
119
+ internalType: "uint256",
120
+ name: "exchangeRate",
121
+ type: "uint256",
122
+ },
123
+ ],
124
+ stateMutability: "view",
125
+ type: "function",
126
+ },
127
+ {
128
+ inputs: [],
129
+ name: "getScale",
130
+ outputs: [
131
+ {
132
+ internalType: "uint256",
133
+ name: "scale",
134
+ type: "uint256",
135
+ },
136
+ ],
137
+ stateMutability: "view",
138
+ type: "function",
139
+ },
140
+ {
141
+ inputs: [],
142
+ name: "lastBoundsUpdate",
143
+ outputs: [
144
+ {
145
+ internalType: "uint40",
146
+ name: "",
147
+ type: "uint40",
148
+ },
149
+ ],
150
+ stateMutability: "view",
151
+ type: "function",
152
+ },
153
+ {
154
+ inputs: [],
155
+ name: "latestRoundData",
156
+ outputs: [
157
+ {
158
+ internalType: "uint80",
159
+ name: "",
160
+ type: "uint80",
161
+ },
162
+ {
163
+ internalType: "int256",
164
+ name: "answer",
165
+ type: "int256",
166
+ },
167
+ {
168
+ internalType: "uint256",
169
+ name: "",
170
+ type: "uint256",
171
+ },
172
+ {
173
+ internalType: "uint256",
174
+ name: "updatedAt",
175
+ type: "uint256",
176
+ },
177
+ {
178
+ internalType: "uint80",
179
+ name: "",
180
+ type: "uint80",
181
+ },
182
+ ],
183
+ stateMutability: "view",
184
+ type: "function",
185
+ },
186
+ {
187
+ inputs: [],
188
+ name: "lowerBound",
189
+ outputs: [
190
+ {
191
+ internalType: "uint256",
192
+ name: "",
193
+ type: "uint256",
194
+ },
195
+ ],
196
+ stateMutability: "view",
197
+ type: "function",
198
+ },
199
+ {
200
+ inputs: [],
201
+ name: "lpContract",
202
+ outputs: [
203
+ {
204
+ internalType: "address",
205
+ name: "",
206
+ type: "address",
207
+ },
208
+ ],
209
+ stateMutability: "view",
210
+ type: "function",
211
+ },
212
+ {
213
+ inputs: [],
214
+ name: "lpToken",
215
+ outputs: [
216
+ {
217
+ internalType: "address",
218
+ name: "",
219
+ type: "address",
220
+ },
221
+ ],
222
+ stateMutability: "view",
223
+ type: "function",
224
+ },
225
+ {
226
+ inputs: [],
227
+ name: "priceFeedType",
228
+ outputs: [
229
+ {
230
+ internalType: "enum PriceFeedType",
231
+ name: "",
232
+ type: "uint8",
233
+ },
234
+ ],
235
+ stateMutability: "view",
236
+ type: "function",
237
+ },
238
+ {
239
+ inputs: [],
240
+ name: "priceOracle",
241
+ outputs: [
242
+ {
243
+ internalType: "address",
244
+ name: "",
245
+ type: "address",
246
+ },
247
+ ],
248
+ stateMutability: "view",
249
+ type: "function",
250
+ },
251
+ {
252
+ inputs: [
253
+ {
254
+ internalType: "uint256",
255
+ name: "newLowerBound",
256
+ type: "uint256",
257
+ },
258
+ ],
259
+ name: "setLimiter",
260
+ outputs: [],
261
+ stateMutability: "nonpayable",
262
+ type: "function",
263
+ },
264
+ {
265
+ inputs: [],
266
+ name: "skipPriceCheck",
267
+ outputs: [
268
+ {
269
+ internalType: "bool",
270
+ name: "",
271
+ type: "bool",
272
+ },
273
+ ],
274
+ stateMutability: "view",
275
+ type: "function",
276
+ },
277
+ {
278
+ inputs: [
279
+ {
280
+ internalType: "bytes",
281
+ name: "updateData",
282
+ type: "bytes",
283
+ },
284
+ ],
285
+ name: "updateBounds",
286
+ outputs: [],
287
+ stateMutability: "nonpayable",
288
+ type: "function",
289
+ },
290
+ {
291
+ inputs: [],
292
+ name: "updateBoundsAllowed",
293
+ outputs: [
294
+ {
295
+ internalType: "bool",
296
+ name: "",
297
+ type: "bool",
298
+ },
299
+ ],
300
+ stateMutability: "view",
301
+ type: "function",
302
+ },
303
+ {
304
+ inputs: [],
305
+ name: "upperBound",
306
+ outputs: [
307
+ {
308
+ internalType: "uint256",
309
+ name: "",
310
+ type: "uint256",
311
+ },
312
+ ],
313
+ stateMutability: "view",
314
+ type: "function",
315
+ },
316
+ {
317
+ inputs: [],
318
+ name: "version",
319
+ outputs: [
320
+ {
321
+ internalType: "uint256",
322
+ name: "",
323
+ type: "uint256",
324
+ },
325
+ ],
326
+ stateMutability: "view",
327
+ type: "function",
328
+ },
329
+ ];
330
+ class ILPPriceFeed__factory {
331
+ static abi = _abi;
332
+ static createInterface() {
333
+ return new ethers_1.utils.Interface(_abi);
334
+ }
335
+ static connect(address, signerOrProvider) {
336
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
337
+ }
338
+ }
339
+ exports.ILPPriceFeed__factory = ILPPriceFeed__factory;
@@ -0,0 +1,3 @@
1
+ export { ILPPriceFeed__factory } from "./ILPPriceFeed__factory";
2
+ export { ILPPriceFeedEvents__factory } from "./ILPPriceFeedEvents__factory";
3
+ export { ILPPriceFeedExceptions__factory } from "./ILPPriceFeedExceptions__factory";
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = exports.ILPPriceFeed__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var ILPPriceFeed__factory_1 = require("./ILPPriceFeed__factory");
8
+ Object.defineProperty(exports, "ILPPriceFeed__factory", { enumerable: true, get: function () { return ILPPriceFeed__factory_1.ILPPriceFeed__factory; } });
9
+ var ILPPriceFeedEvents__factory_1 = require("./ILPPriceFeedEvents__factory");
10
+ Object.defineProperty(exports, "ILPPriceFeedEvents__factory", { enumerable: true, get: function () { return ILPPriceFeedEvents__factory_1.ILPPriceFeedEvents__factory; } });
11
+ var ILPPriceFeedExceptions__factory_1 = require("./ILPPriceFeedExceptions__factory");
12
+ Object.defineProperty(exports, "ILPPriceFeedExceptions__factory", { enumerable: true, get: function () { return ILPPriceFeedExceptions__factory_1.ILPPriceFeedExceptions__factory; } });
@@ -20,6 +20,7 @@ export * as iDegenDistributorSol from "./IDegenDistributor.sol";
20
20
  export * as iDegenNftv2Sol from "./IDegenNFTV2.sol";
21
21
  export * as iGaugeV3Sol from "./IGaugeV3.sol";
22
22
  export * as iGearStakingV3Sol from "./IGearStakingV3.sol";
23
+ export * as ilpPriceFeedSol from "./ILPPriceFeed.sol";
23
24
  export * as iPoolQuotaKeeperV3Sol from "./IPoolQuotaKeeperV3.sol";
24
25
  export * as iPoolServiceSol from "./IPoolService.sol";
25
26
  export * as iPoolV3Sol from "./IPoolV3.sol";
@@ -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.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;
26
+ 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.ilpPriceFeedSol = 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 = exports.ICurveV1_4AssetsAdapter__factory = void 0;
28
28
  /* Autogenerated file. Do not edit manually. */
29
29
  /* tslint:disable */
30
30
  /* eslint-disable */
@@ -50,6 +50,7 @@ exports.iDegenDistributorSol = __importStar(require("./IDegenDistributor.sol"));
50
50
  exports.iDegenNftv2Sol = __importStar(require("./IDegenNFTV2.sol"));
51
51
  exports.iGaugeV3Sol = __importStar(require("./IGaugeV3.sol"));
52
52
  exports.iGearStakingV3Sol = __importStar(require("./IGearStakingV3.sol"));
53
+ exports.ilpPriceFeedSol = __importStar(require("./ILPPriceFeed.sol"));
53
54
  exports.iPoolQuotaKeeperV3Sol = __importStar(require("./IPoolQuotaKeeperV3.sol"));
54
55
  exports.iPoolServiceSol = __importStar(require("./IPoolService.sol"));
55
56
  exports.iPoolV3Sol = __importStar(require("./IPoolV3.sol"));
@@ -42,6 +42,8 @@ import type * as iGaugeV3Sol from "./IGaugeV3.sol";
42
42
  export type { iGaugeV3Sol };
43
43
  import type * as iGearStakingV3Sol from "./IGearStakingV3.sol";
44
44
  export type { iGearStakingV3Sol };
45
+ import type * as ilpPriceFeedSol from "./ILPPriceFeed.sol";
46
+ export type { ilpPriceFeedSol };
45
47
  import type * as iPoolQuotaKeeperV3Sol from "./IPoolQuotaKeeperV3.sol";
46
48
  export type { iPoolQuotaKeeperV3Sol };
47
49
  import type * as iPoolServiceSol from "./IPoolService.sol";
@@ -238,6 +240,12 @@ export { IGearStakingV3__factory } from "./factories/IGearStakingV3.sol/IGearSta
238
240
  export type { IGearStakingV3Events } from "./IGearStakingV3.sol/IGearStakingV3Events";
239
241
  export { IGearStakingV3Events__factory } from "./factories/IGearStakingV3.sol/IGearStakingV3Events__factory";
240
242
  export { IInterestRateModel__factory } from "./factories/IInterestRateModel__factory";
243
+ export type { ILPPriceFeed } from "./ILPPriceFeed.sol/ILPPriceFeed";
244
+ export { ILPPriceFeed__factory } from "./factories/ILPPriceFeed.sol/ILPPriceFeed__factory";
245
+ export type { ILPPriceFeedEvents } from "./ILPPriceFeed.sol/ILPPriceFeedEvents";
246
+ export { ILPPriceFeedEvents__factory } from "./factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory";
247
+ export type { ILPPriceFeedExceptions } from "./ILPPriceFeed.sol/ILPPriceFeedExceptions";
248
+ export { ILPPriceFeedExceptions__factory } from "./factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory";
241
249
  export { ILidoV1Adapter__factory } from "./factories/ILidoV1Adapter__factory";
242
250
  export { ILinearInterestRateModelV3__factory } from "./factories/ILinearInterestRateModelV3__factory";
243
251
  export type { IRouter } from "./interfaces/IRouter";
@@ -24,8 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
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;
27
+ 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.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = exports.ILPPriceFeed__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 = exports.IstETHGetters__factory = exports.IstETH__factory = exports.IPriceOracleV3Events__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; } });
@@ -181,6 +181,12 @@ var IGearStakingV3Events__factory_1 = require("./factories/IGearStakingV3.sol/IG
181
181
  Object.defineProperty(exports, "IGearStakingV3Events__factory", { enumerable: true, get: function () { return IGearStakingV3Events__factory_1.IGearStakingV3Events__factory; } });
182
182
  var IInterestRateModel__factory_1 = require("./factories/IInterestRateModel__factory");
183
183
  Object.defineProperty(exports, "IInterestRateModel__factory", { enumerable: true, get: function () { return IInterestRateModel__factory_1.IInterestRateModel__factory; } });
184
+ var ILPPriceFeed__factory_1 = require("./factories/ILPPriceFeed.sol/ILPPriceFeed__factory");
185
+ Object.defineProperty(exports, "ILPPriceFeed__factory", { enumerable: true, get: function () { return ILPPriceFeed__factory_1.ILPPriceFeed__factory; } });
186
+ var ILPPriceFeedEvents__factory_1 = require("./factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory");
187
+ Object.defineProperty(exports, "ILPPriceFeedEvents__factory", { enumerable: true, get: function () { return ILPPriceFeedEvents__factory_1.ILPPriceFeedEvents__factory; } });
188
+ var ILPPriceFeedExceptions__factory_1 = require("./factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory");
189
+ Object.defineProperty(exports, "ILPPriceFeedExceptions__factory", { enumerable: true, get: function () { return ILPPriceFeedExceptions__factory_1.ILPPriceFeedExceptions__factory; } });
184
190
  var ILidoV1Adapter__factory_1 = require("./factories/ILidoV1Adapter__factory");
185
191
  Object.defineProperty(exports, "ILidoV1Adapter__factory", { enumerable: true, get: function () { return ILidoV1Adapter__factory_1.ILidoV1Adapter__factory; } });
186
192
  var ILinearInterestRateModelV3__factory_1 = require("./factories/ILinearInterestRateModelV3__factory");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.61",
3
+ "version": "3.0.0-next.62",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",