@gearbox-protocol/sdk 3.0.0-next.53 → 3.0.0-next.54

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.
@@ -44,6 +44,7 @@ import {IwstETH} from "@gearbox-protocol/integrations-v3/contracts/integrations/
44
44
  import {IPriceOracleBase} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracleBase.sol";
45
45
  import {IPriceOracleV2} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol";
46
46
  import {IPriceOracleV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IPriceOracleV3.sol";
47
+ import {IPriceFeed} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceFeed.sol";
47
48
 
48
49
  import {ICurveV1_2AssetsAdapter} from
49
50
  "@gearbox-protocol/integrations-v3/contracts/interfaces/curve/ICurveV1_2AssetsAdapter.sol";
@@ -0,0 +1,109 @@
1
+ import type { BaseContract, BigNumber, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
2
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../common";
5
+ export interface IPriceFeedInterface extends utils.Interface {
6
+ functions: {
7
+ "decimals()": FunctionFragment;
8
+ "description()": FunctionFragment;
9
+ "latestRoundData()": FunctionFragment;
10
+ "priceFeedType()": FunctionFragment;
11
+ "skipPriceCheck()": FunctionFragment;
12
+ "version()": FunctionFragment;
13
+ };
14
+ getFunction(nameOrSignatureOrTopic: "decimals" | "description" | "latestRoundData" | "priceFeedType" | "skipPriceCheck" | "version"): FunctionFragment;
15
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
16
+ encodeFunctionData(functionFragment: "description", values?: undefined): string;
17
+ encodeFunctionData(functionFragment: "latestRoundData", values?: undefined): string;
18
+ encodeFunctionData(functionFragment: "priceFeedType", values?: undefined): string;
19
+ encodeFunctionData(functionFragment: "skipPriceCheck", values?: undefined): string;
20
+ encodeFunctionData(functionFragment: "version", values?: undefined): string;
21
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
22
+ decodeFunctionResult(functionFragment: "description", data: BytesLike): Result;
23
+ decodeFunctionResult(functionFragment: "latestRoundData", data: BytesLike): Result;
24
+ decodeFunctionResult(functionFragment: "priceFeedType", data: BytesLike): Result;
25
+ decodeFunctionResult(functionFragment: "skipPriceCheck", data: BytesLike): Result;
26
+ decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
27
+ events: {};
28
+ }
29
+ export interface IPriceFeed extends BaseContract {
30
+ connect(signerOrProvider: Signer | Provider | string): this;
31
+ attach(addressOrName: string): this;
32
+ deployed(): Promise<this>;
33
+ interface: IPriceFeedInterface;
34
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
35
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
36
+ listeners(eventName?: string): Array<Listener>;
37
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
38
+ removeAllListeners(eventName?: string): this;
39
+ off: OnEvent<this>;
40
+ on: OnEvent<this>;
41
+ once: OnEvent<this>;
42
+ removeListener: OnEvent<this>;
43
+ functions: {
44
+ decimals(overrides?: CallOverrides): Promise<[number]>;
45
+ description(overrides?: CallOverrides): Promise<[string]>;
46
+ latestRoundData(overrides?: CallOverrides): Promise<[
47
+ BigNumber,
48
+ BigNumber,
49
+ BigNumber,
50
+ BigNumber,
51
+ BigNumber
52
+ ] & {
53
+ answer: BigNumber;
54
+ updatedAt: BigNumber;
55
+ }>;
56
+ priceFeedType(overrides?: CallOverrides): Promise<[number]>;
57
+ skipPriceCheck(overrides?: CallOverrides): Promise<[boolean]>;
58
+ version(overrides?: CallOverrides): Promise<[BigNumber]>;
59
+ };
60
+ decimals(overrides?: CallOverrides): Promise<number>;
61
+ description(overrides?: CallOverrides): Promise<string>;
62
+ latestRoundData(overrides?: CallOverrides): Promise<[
63
+ BigNumber,
64
+ BigNumber,
65
+ BigNumber,
66
+ BigNumber,
67
+ BigNumber
68
+ ] & {
69
+ answer: BigNumber;
70
+ updatedAt: BigNumber;
71
+ }>;
72
+ priceFeedType(overrides?: CallOverrides): Promise<number>;
73
+ skipPriceCheck(overrides?: CallOverrides): Promise<boolean>;
74
+ version(overrides?: CallOverrides): Promise<BigNumber>;
75
+ callStatic: {
76
+ decimals(overrides?: CallOverrides): Promise<number>;
77
+ description(overrides?: CallOverrides): Promise<string>;
78
+ latestRoundData(overrides?: CallOverrides): Promise<[
79
+ BigNumber,
80
+ BigNumber,
81
+ BigNumber,
82
+ BigNumber,
83
+ BigNumber
84
+ ] & {
85
+ answer: BigNumber;
86
+ updatedAt: BigNumber;
87
+ }>;
88
+ priceFeedType(overrides?: CallOverrides): Promise<number>;
89
+ skipPriceCheck(overrides?: CallOverrides): Promise<boolean>;
90
+ version(overrides?: CallOverrides): Promise<BigNumber>;
91
+ };
92
+ filters: {};
93
+ estimateGas: {
94
+ decimals(overrides?: CallOverrides): Promise<BigNumber>;
95
+ description(overrides?: CallOverrides): Promise<BigNumber>;
96
+ latestRoundData(overrides?: CallOverrides): Promise<BigNumber>;
97
+ priceFeedType(overrides?: CallOverrides): Promise<BigNumber>;
98
+ skipPriceCheck(overrides?: CallOverrides): Promise<BigNumber>;
99
+ version(overrides?: CallOverrides): Promise<BigNumber>;
100
+ };
101
+ populateTransaction: {
102
+ decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
103
+ description(overrides?: CallOverrides): Promise<PopulatedTransaction>;
104
+ latestRoundData(overrides?: CallOverrides): Promise<PopulatedTransaction>;
105
+ priceFeedType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
106
+ skipPriceCheck(overrides?: CallOverrides): Promise<PopulatedTransaction>;
107
+ version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
108
+ };
109
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,133 @@
1
+ import type { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
2
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../common";
5
+ export interface IUpdatablePriceFeedInterface extends utils.Interface {
6
+ functions: {
7
+ "decimals()": FunctionFragment;
8
+ "description()": FunctionFragment;
9
+ "latestRoundData()": FunctionFragment;
10
+ "priceFeedType()": FunctionFragment;
11
+ "skipPriceCheck()": FunctionFragment;
12
+ "updatable()": FunctionFragment;
13
+ "updatePrice(bytes)": FunctionFragment;
14
+ "version()": FunctionFragment;
15
+ };
16
+ getFunction(nameOrSignatureOrTopic: "decimals" | "description" | "latestRoundData" | "priceFeedType" | "skipPriceCheck" | "updatable" | "updatePrice" | "version"): FunctionFragment;
17
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
18
+ encodeFunctionData(functionFragment: "description", values?: undefined): string;
19
+ encodeFunctionData(functionFragment: "latestRoundData", values?: undefined): string;
20
+ encodeFunctionData(functionFragment: "priceFeedType", values?: undefined): string;
21
+ encodeFunctionData(functionFragment: "skipPriceCheck", values?: undefined): string;
22
+ encodeFunctionData(functionFragment: "updatable", values?: undefined): string;
23
+ encodeFunctionData(functionFragment: "updatePrice", values: [PromiseOrValue<BytesLike>]): string;
24
+ encodeFunctionData(functionFragment: "version", values?: undefined): string;
25
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
26
+ decodeFunctionResult(functionFragment: "description", data: BytesLike): Result;
27
+ decodeFunctionResult(functionFragment: "latestRoundData", data: BytesLike): Result;
28
+ decodeFunctionResult(functionFragment: "priceFeedType", data: BytesLike): Result;
29
+ decodeFunctionResult(functionFragment: "skipPriceCheck", data: BytesLike): Result;
30
+ decodeFunctionResult(functionFragment: "updatable", data: BytesLike): Result;
31
+ decodeFunctionResult(functionFragment: "updatePrice", data: BytesLike): Result;
32
+ decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
33
+ events: {};
34
+ }
35
+ export interface IUpdatablePriceFeed extends BaseContract {
36
+ connect(signerOrProvider: Signer | Provider | string): this;
37
+ attach(addressOrName: string): this;
38
+ deployed(): Promise<this>;
39
+ interface: IUpdatablePriceFeedInterface;
40
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
41
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
42
+ listeners(eventName?: string): Array<Listener>;
43
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
44
+ removeAllListeners(eventName?: string): this;
45
+ off: OnEvent<this>;
46
+ on: OnEvent<this>;
47
+ once: OnEvent<this>;
48
+ removeListener: OnEvent<this>;
49
+ functions: {
50
+ decimals(overrides?: CallOverrides): Promise<[number]>;
51
+ description(overrides?: CallOverrides): Promise<[string]>;
52
+ latestRoundData(overrides?: CallOverrides): Promise<[
53
+ BigNumber,
54
+ BigNumber,
55
+ BigNumber,
56
+ BigNumber,
57
+ BigNumber
58
+ ] & {
59
+ answer: BigNumber;
60
+ updatedAt: BigNumber;
61
+ }>;
62
+ priceFeedType(overrides?: CallOverrides): Promise<[number]>;
63
+ skipPriceCheck(overrides?: CallOverrides): Promise<[boolean]>;
64
+ updatable(overrides?: CallOverrides): Promise<[boolean]>;
65
+ updatePrice(data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
66
+ from?: PromiseOrValue<string>;
67
+ }): Promise<ContractTransaction>;
68
+ version(overrides?: CallOverrides): Promise<[BigNumber]>;
69
+ };
70
+ decimals(overrides?: CallOverrides): Promise<number>;
71
+ description(overrides?: CallOverrides): Promise<string>;
72
+ latestRoundData(overrides?: CallOverrides): Promise<[
73
+ BigNumber,
74
+ BigNumber,
75
+ BigNumber,
76
+ BigNumber,
77
+ BigNumber
78
+ ] & {
79
+ answer: BigNumber;
80
+ updatedAt: BigNumber;
81
+ }>;
82
+ priceFeedType(overrides?: CallOverrides): Promise<number>;
83
+ skipPriceCheck(overrides?: CallOverrides): Promise<boolean>;
84
+ updatable(overrides?: CallOverrides): Promise<boolean>;
85
+ updatePrice(data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
86
+ from?: PromiseOrValue<string>;
87
+ }): Promise<ContractTransaction>;
88
+ version(overrides?: CallOverrides): Promise<BigNumber>;
89
+ callStatic: {
90
+ decimals(overrides?: CallOverrides): Promise<number>;
91
+ description(overrides?: CallOverrides): Promise<string>;
92
+ latestRoundData(overrides?: CallOverrides): Promise<[
93
+ BigNumber,
94
+ BigNumber,
95
+ BigNumber,
96
+ BigNumber,
97
+ BigNumber
98
+ ] & {
99
+ answer: BigNumber;
100
+ updatedAt: BigNumber;
101
+ }>;
102
+ priceFeedType(overrides?: CallOverrides): Promise<number>;
103
+ skipPriceCheck(overrides?: CallOverrides): Promise<boolean>;
104
+ updatable(overrides?: CallOverrides): Promise<boolean>;
105
+ updatePrice(data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
106
+ version(overrides?: CallOverrides): Promise<BigNumber>;
107
+ };
108
+ filters: {};
109
+ estimateGas: {
110
+ decimals(overrides?: CallOverrides): Promise<BigNumber>;
111
+ description(overrides?: CallOverrides): Promise<BigNumber>;
112
+ latestRoundData(overrides?: CallOverrides): Promise<BigNumber>;
113
+ priceFeedType(overrides?: CallOverrides): Promise<BigNumber>;
114
+ skipPriceCheck(overrides?: CallOverrides): Promise<BigNumber>;
115
+ updatable(overrides?: CallOverrides): Promise<BigNumber>;
116
+ updatePrice(data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
117
+ from?: PromiseOrValue<string>;
118
+ }): Promise<BigNumber>;
119
+ version(overrides?: CallOverrides): Promise<BigNumber>;
120
+ };
121
+ populateTransaction: {
122
+ decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
123
+ description(overrides?: CallOverrides): Promise<PopulatedTransaction>;
124
+ latestRoundData(overrides?: CallOverrides): Promise<PopulatedTransaction>;
125
+ priceFeedType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
126
+ skipPriceCheck(overrides?: CallOverrides): Promise<PopulatedTransaction>;
127
+ updatable(overrides?: CallOverrides): Promise<PopulatedTransaction>;
128
+ updatePrice(data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
129
+ from?: PromiseOrValue<string>;
130
+ }): Promise<PopulatedTransaction>;
131
+ version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
132
+ };
133
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export type { IPriceFeed } from "./IPriceFeed";
2
+ export type { IUpdatablePriceFeed } from "./IUpdatablePriceFeed";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,84 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IPriceFeed, IPriceFeedInterface } from "../../IPriceFeed.sol/IPriceFeed";
4
+ export declare class IPriceFeed__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [];
7
+ readonly name: "decimals";
8
+ readonly outputs: readonly [{
9
+ readonly internalType: "uint8";
10
+ readonly name: "";
11
+ readonly type: "uint8";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly inputs: readonly [];
17
+ readonly name: "description";
18
+ readonly outputs: readonly [{
19
+ readonly internalType: "string";
20
+ readonly name: "";
21
+ readonly type: "string";
22
+ }];
23
+ readonly stateMutability: "view";
24
+ readonly type: "function";
25
+ }, {
26
+ readonly inputs: readonly [];
27
+ readonly name: "latestRoundData";
28
+ readonly outputs: readonly [{
29
+ readonly internalType: "uint80";
30
+ readonly name: "";
31
+ readonly type: "uint80";
32
+ }, {
33
+ readonly internalType: "int256";
34
+ readonly name: "answer";
35
+ readonly type: "int256";
36
+ }, {
37
+ readonly internalType: "uint256";
38
+ readonly name: "";
39
+ readonly type: "uint256";
40
+ }, {
41
+ readonly internalType: "uint256";
42
+ readonly name: "updatedAt";
43
+ readonly type: "uint256";
44
+ }, {
45
+ readonly internalType: "uint80";
46
+ readonly name: "";
47
+ readonly type: "uint80";
48
+ }];
49
+ readonly stateMutability: "view";
50
+ readonly type: "function";
51
+ }, {
52
+ readonly inputs: readonly [];
53
+ readonly name: "priceFeedType";
54
+ readonly outputs: readonly [{
55
+ readonly internalType: "enum PriceFeedType";
56
+ readonly name: "";
57
+ readonly type: "uint8";
58
+ }];
59
+ readonly stateMutability: "view";
60
+ readonly type: "function";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "skipPriceCheck";
64
+ readonly outputs: readonly [{
65
+ readonly internalType: "bool";
66
+ readonly name: "";
67
+ readonly type: "bool";
68
+ }];
69
+ readonly stateMutability: "view";
70
+ readonly type: "function";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "version";
74
+ readonly outputs: readonly [{
75
+ readonly internalType: "uint256";
76
+ readonly name: "";
77
+ readonly type: "uint256";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ readonly type: "function";
81
+ }];
82
+ static createInterface(): IPriceFeedInterface;
83
+ static connect(address: string, signerOrProvider: Signer | Provider): IPriceFeed;
84
+ }
@@ -0,0 +1,117 @@
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.IPriceFeed__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "decimals",
12
+ outputs: [
13
+ {
14
+ internalType: "uint8",
15
+ name: "",
16
+ type: "uint8",
17
+ },
18
+ ],
19
+ stateMutability: "view",
20
+ type: "function",
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: "description",
25
+ outputs: [
26
+ {
27
+ internalType: "string",
28
+ name: "",
29
+ type: "string",
30
+ },
31
+ ],
32
+ stateMutability: "view",
33
+ type: "function",
34
+ },
35
+ {
36
+ inputs: [],
37
+ name: "latestRoundData",
38
+ outputs: [
39
+ {
40
+ internalType: "uint80",
41
+ name: "",
42
+ type: "uint80",
43
+ },
44
+ {
45
+ internalType: "int256",
46
+ name: "answer",
47
+ type: "int256",
48
+ },
49
+ {
50
+ internalType: "uint256",
51
+ name: "",
52
+ type: "uint256",
53
+ },
54
+ {
55
+ internalType: "uint256",
56
+ name: "updatedAt",
57
+ type: "uint256",
58
+ },
59
+ {
60
+ internalType: "uint80",
61
+ name: "",
62
+ type: "uint80",
63
+ },
64
+ ],
65
+ stateMutability: "view",
66
+ type: "function",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "priceFeedType",
71
+ outputs: [
72
+ {
73
+ internalType: "enum PriceFeedType",
74
+ name: "",
75
+ type: "uint8",
76
+ },
77
+ ],
78
+ stateMutability: "view",
79
+ type: "function",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "skipPriceCheck",
84
+ outputs: [
85
+ {
86
+ internalType: "bool",
87
+ name: "",
88
+ type: "bool",
89
+ },
90
+ ],
91
+ stateMutability: "view",
92
+ type: "function",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "version",
97
+ outputs: [
98
+ {
99
+ internalType: "uint256",
100
+ name: "",
101
+ type: "uint256",
102
+ },
103
+ ],
104
+ stateMutability: "view",
105
+ type: "function",
106
+ },
107
+ ];
108
+ class IPriceFeed__factory {
109
+ static abi = _abi;
110
+ static createInterface() {
111
+ return new ethers_1.utils.Interface(_abi);
112
+ }
113
+ static connect(address, signerOrProvider) {
114
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
115
+ }
116
+ }
117
+ exports.IPriceFeed__factory = IPriceFeed__factory;
@@ -0,0 +1,104 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IUpdatablePriceFeed, IUpdatablePriceFeedInterface } from "../../IPriceFeed.sol/IUpdatablePriceFeed";
4
+ export declare class IUpdatablePriceFeed__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [];
7
+ readonly name: "decimals";
8
+ readonly outputs: readonly [{
9
+ readonly internalType: "uint8";
10
+ readonly name: "";
11
+ readonly type: "uint8";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly inputs: readonly [];
17
+ readonly name: "description";
18
+ readonly outputs: readonly [{
19
+ readonly internalType: "string";
20
+ readonly name: "";
21
+ readonly type: "string";
22
+ }];
23
+ readonly stateMutability: "view";
24
+ readonly type: "function";
25
+ }, {
26
+ readonly inputs: readonly [];
27
+ readonly name: "latestRoundData";
28
+ readonly outputs: readonly [{
29
+ readonly internalType: "uint80";
30
+ readonly name: "";
31
+ readonly type: "uint80";
32
+ }, {
33
+ readonly internalType: "int256";
34
+ readonly name: "answer";
35
+ readonly type: "int256";
36
+ }, {
37
+ readonly internalType: "uint256";
38
+ readonly name: "";
39
+ readonly type: "uint256";
40
+ }, {
41
+ readonly internalType: "uint256";
42
+ readonly name: "updatedAt";
43
+ readonly type: "uint256";
44
+ }, {
45
+ readonly internalType: "uint80";
46
+ readonly name: "";
47
+ readonly type: "uint80";
48
+ }];
49
+ readonly stateMutability: "view";
50
+ readonly type: "function";
51
+ }, {
52
+ readonly inputs: readonly [];
53
+ readonly name: "priceFeedType";
54
+ readonly outputs: readonly [{
55
+ readonly internalType: "enum PriceFeedType";
56
+ readonly name: "";
57
+ readonly type: "uint8";
58
+ }];
59
+ readonly stateMutability: "view";
60
+ readonly type: "function";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "skipPriceCheck";
64
+ readonly outputs: readonly [{
65
+ readonly internalType: "bool";
66
+ readonly name: "";
67
+ readonly type: "bool";
68
+ }];
69
+ readonly stateMutability: "view";
70
+ readonly type: "function";
71
+ }, {
72
+ readonly inputs: readonly [];
73
+ readonly name: "updatable";
74
+ readonly outputs: readonly [{
75
+ readonly internalType: "bool";
76
+ readonly name: "";
77
+ readonly type: "bool";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ readonly type: "function";
81
+ }, {
82
+ readonly inputs: readonly [{
83
+ readonly internalType: "bytes";
84
+ readonly name: "data";
85
+ readonly type: "bytes";
86
+ }];
87
+ readonly name: "updatePrice";
88
+ readonly outputs: readonly [];
89
+ readonly stateMutability: "nonpayable";
90
+ readonly type: "function";
91
+ }, {
92
+ readonly inputs: readonly [];
93
+ readonly name: "version";
94
+ readonly outputs: readonly [{
95
+ readonly internalType: "uint256";
96
+ readonly name: "";
97
+ readonly type: "uint256";
98
+ }];
99
+ readonly stateMutability: "view";
100
+ readonly type: "function";
101
+ }];
102
+ static createInterface(): IUpdatablePriceFeedInterface;
103
+ static connect(address: string, signerOrProvider: Signer | Provider): IUpdatablePriceFeed;
104
+ }
@@ -0,0 +1,143 @@
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.IUpdatablePriceFeed__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "decimals",
12
+ outputs: [
13
+ {
14
+ internalType: "uint8",
15
+ name: "",
16
+ type: "uint8",
17
+ },
18
+ ],
19
+ stateMutability: "view",
20
+ type: "function",
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: "description",
25
+ outputs: [
26
+ {
27
+ internalType: "string",
28
+ name: "",
29
+ type: "string",
30
+ },
31
+ ],
32
+ stateMutability: "view",
33
+ type: "function",
34
+ },
35
+ {
36
+ inputs: [],
37
+ name: "latestRoundData",
38
+ outputs: [
39
+ {
40
+ internalType: "uint80",
41
+ name: "",
42
+ type: "uint80",
43
+ },
44
+ {
45
+ internalType: "int256",
46
+ name: "answer",
47
+ type: "int256",
48
+ },
49
+ {
50
+ internalType: "uint256",
51
+ name: "",
52
+ type: "uint256",
53
+ },
54
+ {
55
+ internalType: "uint256",
56
+ name: "updatedAt",
57
+ type: "uint256",
58
+ },
59
+ {
60
+ internalType: "uint80",
61
+ name: "",
62
+ type: "uint80",
63
+ },
64
+ ],
65
+ stateMutability: "view",
66
+ type: "function",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "priceFeedType",
71
+ outputs: [
72
+ {
73
+ internalType: "enum PriceFeedType",
74
+ name: "",
75
+ type: "uint8",
76
+ },
77
+ ],
78
+ stateMutability: "view",
79
+ type: "function",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "skipPriceCheck",
84
+ outputs: [
85
+ {
86
+ internalType: "bool",
87
+ name: "",
88
+ type: "bool",
89
+ },
90
+ ],
91
+ stateMutability: "view",
92
+ type: "function",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "updatable",
97
+ outputs: [
98
+ {
99
+ internalType: "bool",
100
+ name: "",
101
+ type: "bool",
102
+ },
103
+ ],
104
+ stateMutability: "view",
105
+ type: "function",
106
+ },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: "bytes",
111
+ name: "data",
112
+ type: "bytes",
113
+ },
114
+ ],
115
+ name: "updatePrice",
116
+ outputs: [],
117
+ stateMutability: "nonpayable",
118
+ type: "function",
119
+ },
120
+ {
121
+ inputs: [],
122
+ name: "version",
123
+ outputs: [
124
+ {
125
+ internalType: "uint256",
126
+ name: "",
127
+ type: "uint256",
128
+ },
129
+ ],
130
+ stateMutability: "view",
131
+ type: "function",
132
+ },
133
+ ];
134
+ class IUpdatablePriceFeed__factory {
135
+ static abi = _abi;
136
+ static createInterface() {
137
+ return new ethers_1.utils.Interface(_abi);
138
+ }
139
+ static connect(address, signerOrProvider) {
140
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
141
+ }
142
+ }
143
+ exports.IUpdatablePriceFeed__factory = IUpdatablePriceFeed__factory;
@@ -0,0 +1,2 @@
1
+ export { IPriceFeed__factory } from "./IPriceFeed__factory";
2
+ export { IUpdatablePriceFeed__factory } from "./IUpdatablePriceFeed__factory";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IUpdatablePriceFeed__factory = exports.IPriceFeed__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var IPriceFeed__factory_1 = require("./IPriceFeed__factory");
8
+ Object.defineProperty(exports, "IPriceFeed__factory", { enumerable: true, get: function () { return IPriceFeed__factory_1.IPriceFeed__factory; } });
9
+ var IUpdatablePriceFeed__factory_1 = require("./IUpdatablePriceFeed__factory");
10
+ Object.defineProperty(exports, "IUpdatablePriceFeed__factory", { enumerable: true, get: function () { return IUpdatablePriceFeed__factory_1.IUpdatablePriceFeed__factory; } });
@@ -19,6 +19,7 @@ export * as iGearStakingV3Sol from "./IGearStakingV3.sol";
19
19
  export * as iPoolQuotaKeeperV3Sol from "./IPoolQuotaKeeperV3.sol";
20
20
  export * as iPoolServiceSol from "./IPoolService.sol";
21
21
  export * as iPoolV3Sol from "./IPoolV3.sol";
22
+ export * as iPriceFeedSol from "./IPriceFeed.sol";
22
23
  export * as iPriceOracleSol from "./IPriceOracle.sol";
23
24
  export * as iPriceOracleV3Sol from "./IPriceOracleV3.sol";
24
25
  export * as iUniswapV2AdapterSol from "./IUniswapV2Adapter.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.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = 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.Errors__factory = exports.Claimable__factory = exports.AddressProvider__factory = exports.iwstEthGatewaySol = exports.iwstEthSol = exports.istEthSol = exports.iWithdrawalManagerV3Sol = exports.iUniswapV3AdapterSol = exports.iUniswapV3Sol = exports.iUniswapV2AdapterSol = exports.iPriceOracleV3Sol = exports.iPriceOracleSol = exports.iPoolV3Sol = exports.iPoolServiceSol = exports.iPoolQuotaKeeperV3Sol = exports.iGearStakingV3Sol = exports.iGaugeV3Sol = 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.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.IRouter__factory = exports.IPriceOracleBase__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC4626__factory = void 0;
26
+ exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = 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.Errors__factory = exports.Claimable__factory = exports.AddressProvider__factory = exports.iwstEthGatewaySol = exports.iwstEthSol = exports.istEthSol = exports.iWithdrawalManagerV3Sol = exports.iUniswapV3AdapterSol = exports.iUniswapV3Sol = exports.iUniswapV2AdapterSol = exports.iPriceOracleV3Sol = exports.iPriceOracleSol = exports.iPriceFeedSol = exports.iPoolV3Sol = exports.iPoolServiceSol = exports.iPoolQuotaKeeperV3Sol = exports.iGearStakingV3Sol = exports.iGaugeV3Sol = 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.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.IRouter__factory = exports.IPriceOracleBase__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = void 0;
28
28
  /* Autogenerated file. Do not edit manually. */
29
29
  /* tslint:disable */
30
30
  /* eslint-disable */
@@ -49,6 +49,7 @@ exports.iGearStakingV3Sol = __importStar(require("./IGearStakingV3.sol"));
49
49
  exports.iPoolQuotaKeeperV3Sol = __importStar(require("./IPoolQuotaKeeperV3.sol"));
50
50
  exports.iPoolServiceSol = __importStar(require("./IPoolService.sol"));
51
51
  exports.iPoolV3Sol = __importStar(require("./IPoolV3.sol"));
52
+ exports.iPriceFeedSol = __importStar(require("./IPriceFeed.sol"));
52
53
  exports.iPriceOracleSol = __importStar(require("./IPriceOracle.sol"));
53
54
  exports.iPriceOracleV3Sol = __importStar(require("./IPriceOracleV3.sol"));
54
55
  exports.iUniswapV2AdapterSol = __importStar(require("./IUniswapV2Adapter.sol"));
@@ -40,6 +40,8 @@ import type * as iPoolServiceSol from "./IPoolService.sol";
40
40
  export type { iPoolServiceSol };
41
41
  import type * as iPoolV3Sol from "./IPoolV3.sol";
42
42
  export type { iPoolV3Sol };
43
+ import type * as iPriceFeedSol from "./IPriceFeed.sol";
44
+ export type { iPriceFeedSol };
43
45
  import type * as iPriceOracleSol from "./IPriceOracle.sol";
44
46
  export type { iPriceOracleSol };
45
47
  import type * as iPriceOracleV3Sol from "./IPriceOracleV3.sol";
@@ -211,6 +213,10 @@ export type { IPoolV3 } from "./IPoolV3.sol/IPoolV3";
211
213
  export { IPoolV3__factory } from "./factories/IPoolV3.sol/IPoolV3__factory";
212
214
  export type { IPoolV3Events } from "./IPoolV3.sol/IPoolV3Events";
213
215
  export { IPoolV3Events__factory } from "./factories/IPoolV3.sol/IPoolV3Events__factory";
216
+ export type { IPriceFeed } from "./IPriceFeed.sol/IPriceFeed";
217
+ export { IPriceFeed__factory } from "./factories/IPriceFeed.sol/IPriceFeed__factory";
218
+ export type { IUpdatablePriceFeed } from "./IPriceFeed.sol/IUpdatablePriceFeed";
219
+ export { IUpdatablePriceFeed__factory } from "./factories/IPriceFeed.sol/IUpdatablePriceFeed__factory";
214
220
  export type { IPriceOracleV2 } from "./IPriceOracle.sol/IPriceOracleV2";
215
221
  export { IPriceOracleV2__factory } from "./factories/IPriceOracle.sol/IPriceOracleV2__factory";
216
222
  export type { IPriceOracleV2Events } from "./IPriceOracle.sol/IPriceOracleV2Events";
@@ -24,8 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.IDegenDistributorEvents__factory = exports.IDegenDistributor__factory = exports.IDataCompressorV3_00__factory = exports.IDataCompressorV2_10__factory = exports.IDaiLikePermit__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.ICurveV1Adapter__factory = exports.ICurvePool4Assets__factory = exports.ICurvePool3Assets__factory = exports.ICurvePool2Assets__factory = exports.ICurvePool__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.IBaseRewardPool__factory = exports.IAirdropDistributorEvents__factory = exports.IAirdropDistributor__factory = exports.IAddressProviderV3Events__factory = exports.IAddressProviderV3__factory = exports.IAddressProviderEvents__factory = exports.IAddressProvider__factory = exports.IAdapter__factory = exports.Errors__factory = exports.Claimable__factory = exports.BalanceOps__factory = exports.AddressProvider__factory = exports.factories = void 0;
27
- exports.IwstETHGateWay__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.IstETHGetters__factory = exports.IstETH__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWithdrawalManagerV3Events__factory = exports.IWithdrawalManagerV3__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.IRouter__factory = exports.IPriceOracleV3Events__factory = exports.IPriceOracleV3__factory = exports.IPriceOracleBase__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__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.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGearStakingV3Events__factory = exports.IGearStakingV3__factory = exports.IGaugeV3Events__factory = exports.IGaugeV3__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = void 0;
28
- exports.SafeERC20__factory = exports.Ownable__factory = exports.IwstETHV1Adapter__factory = void 0;
27
+ exports.IwstETH__factory = exports.IstETHGetters__factory = exports.IstETH__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWithdrawalManagerV3Events__factory = exports.IWithdrawalManagerV3__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.IRouter__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.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGearStakingV3Events__factory = exports.IGearStakingV3__factory = exports.IGaugeV3Events__factory = exports.IGaugeV3__factory = exports.IGasPricer__factory = exports.IETHZapperDeposits__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = void 0;
28
+ exports.SafeERC20__factory = exports.Ownable__factory = exports.IwstETHV1Adapter__factory = exports.IwstETHGateWay__factory = exports.IwstETHGetters__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; } });
@@ -167,6 +167,10 @@ var IPoolV3__factory_1 = require("./factories/IPoolV3.sol/IPoolV3__factory");
167
167
  Object.defineProperty(exports, "IPoolV3__factory", { enumerable: true, get: function () { return IPoolV3__factory_1.IPoolV3__factory; } });
168
168
  var IPoolV3Events__factory_1 = require("./factories/IPoolV3.sol/IPoolV3Events__factory");
169
169
  Object.defineProperty(exports, "IPoolV3Events__factory", { enumerable: true, get: function () { return IPoolV3Events__factory_1.IPoolV3Events__factory; } });
170
+ var IPriceFeed__factory_1 = require("./factories/IPriceFeed.sol/IPriceFeed__factory");
171
+ Object.defineProperty(exports, "IPriceFeed__factory", { enumerable: true, get: function () { return IPriceFeed__factory_1.IPriceFeed__factory; } });
172
+ var IUpdatablePriceFeed__factory_1 = require("./factories/IPriceFeed.sol/IUpdatablePriceFeed__factory");
173
+ Object.defineProperty(exports, "IUpdatablePriceFeed__factory", { enumerable: true, get: function () { return IUpdatablePriceFeed__factory_1.IUpdatablePriceFeed__factory; } });
170
174
  var IPriceOracleV2__factory_1 = require("./factories/IPriceOracle.sol/IPriceOracleV2__factory");
171
175
  Object.defineProperty(exports, "IPriceOracleV2__factory", { enumerable: true, get: function () { return IPriceOracleV2__factory_1.IPriceOracleV2__factory; } });
172
176
  var IPriceOracleV2Events__factory_1 = require("./factories/IPriceOracle.sol/IPriceOracleV2Events__factory");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.53",
3
+ "version": "3.0.0-next.54",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",