@gearbox-protocol/sdk 3.0.0-next.164 → 3.0.0-next.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/index.sol +3 -0
- package/lib/types/CompositePriceFeed.d.ts +162 -0
- package/lib/types/ContractsRegisterTrait.d.ts +42 -0
- package/lib/types/ContractsRegisterTrait.js +2 -0
- package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.d.ts +86 -0
- package/lib/types/ICreditAccountV3.sol/ICreditAccountBase.js +2 -0
- package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.d.ts +110 -0
- package/lib/types/ICreditAccountV3.sol/ICreditAccountV3.js +2 -0
- package/lib/types/ICreditAccountV3.sol/index.d.ts +2 -0
- package/lib/types/ICreditAccountV3.sol/index.js +2 -0
- package/lib/types/IPartialLiquidationBotV3.d.ts +163 -0
- package/lib/types/IPartialLiquidationBotV3.js +2 -0
- package/lib/types/PartialLiquidationBotV3.d.ts +171 -0
- package/lib/types/PartialLiquidationBotV3.js +2 -0
- package/lib/types/factories/CompositePriceFeed__factory.d.ts +202 -0
- package/lib/types/factories/CompositePriceFeed__factory.js +277 -0
- package/lib/types/factories/ContractsRegisterTrait__factory.d.ts +22 -0
- package/lib/types/factories/ContractsRegisterTrait__factory.js +37 -0
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.d.ts +64 -0
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountBase__factory.js +92 -0
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.d.ts +88 -0
- package/lib/types/factories/ICreditAccountV3.sol/ICreditAccountV3__factory.js +123 -0
- package/lib/types/factories/ICreditAccountV3.sol/index.d.ts +2 -0
- package/lib/types/factories/ICreditAccountV3.sol/index.js +10 -0
- package/lib/types/factories/IPartialLiquidationBotV3__factory.d.ts +217 -0
- package/lib/types/factories/IPartialLiquidationBotV3__factory.js +287 -0
- package/lib/types/factories/PartialLiquidationBotV3__factory.d.ts +284 -0
- package/lib/types/factories/PartialLiquidationBotV3__factory.js +379 -0
- package/lib/types/factories/index.d.ts +5 -1
- package/lib/types/factories/index.js +11 -4
- package/lib/types/index.d.ts +14 -2
- package/lib/types/index.js +15 -5
- package/package.json +2 -1
- package/lib/types/SafeERC20.d.ts +0 -27
- package/lib/types/factories/SafeERC20__factory.d.ts +0 -49
- package/lib/types/factories/SafeERC20__factory.js +0 -77
- /package/lib/types/{SafeERC20.js → CompositePriceFeed.js} +0 -0
|
@@ -0,0 +1,171 @@
|
|
|
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 declare namespace IPartialLiquidationBotV3 {
|
|
6
|
+
type PriceUpdateStruct = {
|
|
7
|
+
token: PromiseOrValue<string>;
|
|
8
|
+
reserve: PromiseOrValue<boolean>;
|
|
9
|
+
data: PromiseOrValue<BytesLike>;
|
|
10
|
+
};
|
|
11
|
+
type PriceUpdateStructOutput = [string, boolean, string] & {
|
|
12
|
+
token: string;
|
|
13
|
+
reserve: boolean;
|
|
14
|
+
data: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface PartialLiquidationBotV3Interface extends utils.Interface {
|
|
18
|
+
functions: {
|
|
19
|
+
"contractsRegister()": FunctionFragment;
|
|
20
|
+
"feeScaleFactor()": FunctionFragment;
|
|
21
|
+
"liquidateExactCollateral(address,address,uint256,uint256,address,(address,bool,bytes)[])": FunctionFragment;
|
|
22
|
+
"liquidateExactDebt(address,address,uint256,uint256,address,(address,bool,bytes)[])": FunctionFragment;
|
|
23
|
+
"maxHealthFactor()": FunctionFragment;
|
|
24
|
+
"minHealthFactor()": FunctionFragment;
|
|
25
|
+
"premiumScaleFactor()": FunctionFragment;
|
|
26
|
+
"treasury()": FunctionFragment;
|
|
27
|
+
"version()": FunctionFragment;
|
|
28
|
+
};
|
|
29
|
+
getFunction(nameOrSignatureOrTopic: "contractsRegister" | "feeScaleFactor" | "liquidateExactCollateral" | "liquidateExactDebt" | "maxHealthFactor" | "minHealthFactor" | "premiumScaleFactor" | "treasury" | "version"): FunctionFragment;
|
|
30
|
+
encodeFunctionData(functionFragment: "contractsRegister", values?: undefined): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "feeScaleFactor", values?: undefined): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "liquidateExactCollateral", values: [
|
|
33
|
+
PromiseOrValue<string>,
|
|
34
|
+
PromiseOrValue<string>,
|
|
35
|
+
PromiseOrValue<BigNumberish>,
|
|
36
|
+
PromiseOrValue<BigNumberish>,
|
|
37
|
+
PromiseOrValue<string>,
|
|
38
|
+
IPartialLiquidationBotV3.PriceUpdateStruct[]
|
|
39
|
+
]): string;
|
|
40
|
+
encodeFunctionData(functionFragment: "liquidateExactDebt", values: [
|
|
41
|
+
PromiseOrValue<string>,
|
|
42
|
+
PromiseOrValue<string>,
|
|
43
|
+
PromiseOrValue<BigNumberish>,
|
|
44
|
+
PromiseOrValue<BigNumberish>,
|
|
45
|
+
PromiseOrValue<string>,
|
|
46
|
+
IPartialLiquidationBotV3.PriceUpdateStruct[]
|
|
47
|
+
]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "maxHealthFactor", values?: undefined): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "minHealthFactor", values?: undefined): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "premiumScaleFactor", values?: undefined): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "treasury", values?: undefined): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
53
|
+
decodeFunctionResult(functionFragment: "contractsRegister", data: BytesLike): Result;
|
|
54
|
+
decodeFunctionResult(functionFragment: "feeScaleFactor", data: BytesLike): Result;
|
|
55
|
+
decodeFunctionResult(functionFragment: "liquidateExactCollateral", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "liquidateExactDebt", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(functionFragment: "maxHealthFactor", data: BytesLike): Result;
|
|
58
|
+
decodeFunctionResult(functionFragment: "minHealthFactor", data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "premiumScaleFactor", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "treasury", data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
62
|
+
events: {
|
|
63
|
+
"LiquidatePartial(address,address,address,uint256,uint256,uint256)": EventFragment;
|
|
64
|
+
};
|
|
65
|
+
getEvent(nameOrSignatureOrTopic: "LiquidatePartial"): EventFragment;
|
|
66
|
+
}
|
|
67
|
+
export interface LiquidatePartialEventObject {
|
|
68
|
+
creditManager: string;
|
|
69
|
+
creditAccount: string;
|
|
70
|
+
token: string;
|
|
71
|
+
repaidDebt: BigNumber;
|
|
72
|
+
seizedCollateral: BigNumber;
|
|
73
|
+
fee: BigNumber;
|
|
74
|
+
}
|
|
75
|
+
export type LiquidatePartialEvent = TypedEvent<[
|
|
76
|
+
string,
|
|
77
|
+
string,
|
|
78
|
+
string,
|
|
79
|
+
BigNumber,
|
|
80
|
+
BigNumber,
|
|
81
|
+
BigNumber
|
|
82
|
+
], LiquidatePartialEventObject>;
|
|
83
|
+
export type LiquidatePartialEventFilter = TypedEventFilter<LiquidatePartialEvent>;
|
|
84
|
+
export interface PartialLiquidationBotV3 extends BaseContract {
|
|
85
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
86
|
+
attach(addressOrName: string): this;
|
|
87
|
+
deployed(): Promise<this>;
|
|
88
|
+
interface: PartialLiquidationBotV3Interface;
|
|
89
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
90
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
91
|
+
listeners(eventName?: string): Array<Listener>;
|
|
92
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
93
|
+
removeAllListeners(eventName?: string): this;
|
|
94
|
+
off: OnEvent<this>;
|
|
95
|
+
on: OnEvent<this>;
|
|
96
|
+
once: OnEvent<this>;
|
|
97
|
+
removeListener: OnEvent<this>;
|
|
98
|
+
functions: {
|
|
99
|
+
contractsRegister(overrides?: CallOverrides): Promise<[string]>;
|
|
100
|
+
feeScaleFactor(overrides?: CallOverrides): Promise<[number]>;
|
|
101
|
+
liquidateExactCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, seizedAmount: PromiseOrValue<BigNumberish>, maxRepaidAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
102
|
+
from?: PromiseOrValue<string>;
|
|
103
|
+
}): Promise<ContractTransaction>;
|
|
104
|
+
liquidateExactDebt(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, repaidAmount: PromiseOrValue<BigNumberish>, minSeizedAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
105
|
+
from?: PromiseOrValue<string>;
|
|
106
|
+
}): Promise<ContractTransaction>;
|
|
107
|
+
maxHealthFactor(overrides?: CallOverrides): Promise<[number]>;
|
|
108
|
+
minHealthFactor(overrides?: CallOverrides): Promise<[number]>;
|
|
109
|
+
premiumScaleFactor(overrides?: CallOverrides): Promise<[number]>;
|
|
110
|
+
treasury(overrides?: CallOverrides): Promise<[string]>;
|
|
111
|
+
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
112
|
+
};
|
|
113
|
+
contractsRegister(overrides?: CallOverrides): Promise<string>;
|
|
114
|
+
feeScaleFactor(overrides?: CallOverrides): Promise<number>;
|
|
115
|
+
liquidateExactCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, seizedAmount: PromiseOrValue<BigNumberish>, maxRepaidAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
116
|
+
from?: PromiseOrValue<string>;
|
|
117
|
+
}): Promise<ContractTransaction>;
|
|
118
|
+
liquidateExactDebt(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, repaidAmount: PromiseOrValue<BigNumberish>, minSeizedAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
119
|
+
from?: PromiseOrValue<string>;
|
|
120
|
+
}): Promise<ContractTransaction>;
|
|
121
|
+
maxHealthFactor(overrides?: CallOverrides): Promise<number>;
|
|
122
|
+
minHealthFactor(overrides?: CallOverrides): Promise<number>;
|
|
123
|
+
premiumScaleFactor(overrides?: CallOverrides): Promise<number>;
|
|
124
|
+
treasury(overrides?: CallOverrides): Promise<string>;
|
|
125
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
126
|
+
callStatic: {
|
|
127
|
+
contractsRegister(overrides?: CallOverrides): Promise<string>;
|
|
128
|
+
feeScaleFactor(overrides?: CallOverrides): Promise<number>;
|
|
129
|
+
liquidateExactCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, seizedAmount: PromiseOrValue<BigNumberish>, maxRepaidAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: CallOverrides): Promise<BigNumber>;
|
|
130
|
+
liquidateExactDebt(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, repaidAmount: PromiseOrValue<BigNumberish>, minSeizedAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: CallOverrides): Promise<BigNumber>;
|
|
131
|
+
maxHealthFactor(overrides?: CallOverrides): Promise<number>;
|
|
132
|
+
minHealthFactor(overrides?: CallOverrides): Promise<number>;
|
|
133
|
+
premiumScaleFactor(overrides?: CallOverrides): Promise<number>;
|
|
134
|
+
treasury(overrides?: CallOverrides): Promise<string>;
|
|
135
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
136
|
+
};
|
|
137
|
+
filters: {
|
|
138
|
+
"LiquidatePartial(address,address,address,uint256,uint256,uint256)"(creditManager?: PromiseOrValue<string> | null, creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, repaidDebt?: null, seizedCollateral?: null, fee?: null): LiquidatePartialEventFilter;
|
|
139
|
+
LiquidatePartial(creditManager?: PromiseOrValue<string> | null, creditAccount?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, repaidDebt?: null, seizedCollateral?: null, fee?: null): LiquidatePartialEventFilter;
|
|
140
|
+
};
|
|
141
|
+
estimateGas: {
|
|
142
|
+
contractsRegister(overrides?: CallOverrides): Promise<BigNumber>;
|
|
143
|
+
feeScaleFactor(overrides?: CallOverrides): Promise<BigNumber>;
|
|
144
|
+
liquidateExactCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, seizedAmount: PromiseOrValue<BigNumberish>, maxRepaidAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
145
|
+
from?: PromiseOrValue<string>;
|
|
146
|
+
}): Promise<BigNumber>;
|
|
147
|
+
liquidateExactDebt(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, repaidAmount: PromiseOrValue<BigNumberish>, minSeizedAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
148
|
+
from?: PromiseOrValue<string>;
|
|
149
|
+
}): Promise<BigNumber>;
|
|
150
|
+
maxHealthFactor(overrides?: CallOverrides): Promise<BigNumber>;
|
|
151
|
+
minHealthFactor(overrides?: CallOverrides): Promise<BigNumber>;
|
|
152
|
+
premiumScaleFactor(overrides?: CallOverrides): Promise<BigNumber>;
|
|
153
|
+
treasury(overrides?: CallOverrides): Promise<BigNumber>;
|
|
154
|
+
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
155
|
+
};
|
|
156
|
+
populateTransaction: {
|
|
157
|
+
contractsRegister(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
158
|
+
feeScaleFactor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
159
|
+
liquidateExactCollateral(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, seizedAmount: PromiseOrValue<BigNumberish>, maxRepaidAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
160
|
+
from?: PromiseOrValue<string>;
|
|
161
|
+
}): Promise<PopulatedTransaction>;
|
|
162
|
+
liquidateExactDebt(creditAccount: PromiseOrValue<string>, token: PromiseOrValue<string>, repaidAmount: PromiseOrValue<BigNumberish>, minSeizedAmount: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, priceUpdates: IPartialLiquidationBotV3.PriceUpdateStruct[], overrides?: Overrides & {
|
|
163
|
+
from?: PromiseOrValue<string>;
|
|
164
|
+
}): Promise<PopulatedTransaction>;
|
|
165
|
+
maxHealthFactor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
166
|
+
minHealthFactor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
167
|
+
premiumScaleFactor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
168
|
+
treasury(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
169
|
+
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
2
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
+
import type { PromiseOrValue } from "../common";
|
|
4
|
+
import type { CompositePriceFeed, CompositePriceFeedInterface, PriceFeedParamsStruct } from "../CompositePriceFeed";
|
|
5
|
+
type CompositePriceFeedConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class CompositePriceFeed__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: CompositePriceFeedConstructorParams);
|
|
8
|
+
deploy(priceFeeds: [PriceFeedParamsStruct, PriceFeedParamsStruct], overrides?: Overrides & {
|
|
9
|
+
from?: PromiseOrValue<string>;
|
|
10
|
+
}): Promise<CompositePriceFeed>;
|
|
11
|
+
getDeployTransaction(priceFeeds: [PriceFeedParamsStruct, PriceFeedParamsStruct], overrides?: Overrides & {
|
|
12
|
+
from?: PromiseOrValue<string>;
|
|
13
|
+
}): TransactionRequest;
|
|
14
|
+
attach(address: string): CompositePriceFeed;
|
|
15
|
+
connect(signer: Signer): CompositePriceFeed__factory;
|
|
16
|
+
static readonly bytecode = "0x6101406040523480156200001257600080fd5b5060405162001265380380620012658339810160408190526200003591620004a9565b805151620000438162000121565b602082015151620000548162000121565b8251516001600160a01b039081166080819052602080860180515190931660c052855181015163ffffffff90811660a052925181015190921660e0526040805163313ce56760e01b81529051919263313ce567926004808401938290030181865afa158015620000c8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ee919062000565565b620000fb90600a620006a4565b6101205260c05160e0516200011191906200014c565b1515610100525062000761915050565b6001600160a01b0381166200014957604051635919af9760e11b815260040160405180910390fd5b50565b60006200016d836001600160a01b03166200040060201b6200054b1760201c565b6200019a5760405163df4c572d60e01b81526001600160a01b038416600482015260240160405180910390fd5b826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015620001f7575060408051601f3d908101601f19168201909252620001f49181019062000565565b60015b62000215576040516367a7cd4360e01b815260040160405180910390fd5b8060ff166008146200023a576040516367a7cd4360e01b815260040160405180910390fd5b50826001600160a01b031663d62ada116040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801562000298575060408051601f3d908101601f191682019092526200029591810190620006b5565b60015b15620002a15790505b826001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa925050508015620002fe575060408051601f3d908101601f19168201909252620002fb91810190620006f6565b60015b6200031c576040516367a7cd4360e01b815260040160405180910390fd5b85156200034f5763ffffffff87161562000349576040516347fbaa9760e01b815260040160405180910390fd5b620003f4565b8663ffffffff1660000362000377576040516347fbaa9760e01b815260040160405180910390fd5b6000886001600160a01b031663e75aeec86040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015620003d6575060408051601f3d908101601f19168201909252620003d391810190620006b5565b60015b15620003df5790505b80620003f257620003f285848a6200040f565b505b50505050505b92915050565b6001600160a01b03163b151590565b6000831362000431576040516329dbcc7160e11b815260040160405180910390fd5b6200044363ffffffff8216836200074b565b421062000463576040516316dd0ffb60e01b815260040160405180910390fd5b505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715620004a357620004a362000468565b60405290565b600060808284031215620004bc57600080fd5b82601f830112620004cc57600080fd5b620004d66200047e565b806080840185811115620004e957600080fd5b845b818110156200055a5760408188031215620005065760008081fd5b620005106200047e565b81516001600160a01b0381168114620005295760008081fd5b815260208281015163ffffffff81168114620005455760008081fd5b828201529085529390930192604001620004eb565b509095945050505050565b6000602082840312156200057857600080fd5b815160ff811681146200058a57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620005e8578160001904821115620005cc57620005cc62000591565b80851615620005da57918102915b93841c9390800290620005ac565b509250929050565b6000826200060157506001620003fa565b816200061057506000620003fa565b8160018114620006295760028114620006345762000654565b6001915050620003fa565b60ff84111562000648576200064862000591565b50506001821b620003fa565b5060208310610133831016604e8410600b841016171562000679575081810a620003fa565b620006858383620005a7565b80600019048211156200069c576200069c62000591565b029392505050565b60006200058a60ff841683620005f0565b600060208284031215620006c857600080fd5b815180151581146200058a57600080fd5b80516001600160501b0381168114620006f157600080fd5b919050565b600080600080600060a086880312156200070f57600080fd5b6200071a86620006d9565b94506020860151935060408601519250606086015191506200073f60808701620006d9565b90509295509295909350565b80820180821115620003fa57620003fa62000591565b60805160a05160c05160e0516101005161012051610a7d620007e86000396000818160de015261050401526000818161021401526104dc0152600081816101ba01526104bb01526000818161024b01528181610369015261049a015260008181610118015261046b01526000818161016e015281816102b8015261044a0152610a7d6000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806354fd4d5011610081578063ab0ca0e11161005b578063ab0ca0e114610246578063d62ada111461026d578063feaf968c1461027557600080fd5b806354fd4d50146101f15780637284e416146101fa5780637ff361ec1461020f57600080fd5b8063385aee1b116100b2578063385aee1b146101695780633e777fd2146101b55780633fd0875f146101dc57600080fd5b80630ff8bdd2146100d9578063178793e814610113578063313ce5671461014f575b600080fd5b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61013a7f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff909116815260200161010a565b610157600881565b60405160ff909116815260200161010a565b6101907f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010a565b61013a7f000000000000000000000000000000000000000000000000000000000000000081565b6101e4600881565b60405161010a9190610683565b61010061012c81565b6102026102b4565b60405161010a91906106e8565b6102367f000000000000000000000000000000000000000000000000000000000000000081565b604051901515815260200161010a565b6101907f000000000000000000000000000000000000000000000000000000000000000081565b610236600181565b61027d61043d565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161010a565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637284e4166040518163ffffffff1660e01b8152600401600060405180830381865afa158015610321573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526103679190810190610768565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637284e4166040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103d2573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526104189190810190610768565b604051602001610429929190610833565b604051602081830303815290604052905090565b60008060008060006104917f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006000610567565b935060006105007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610567565b90507f000000000000000000000000000000000000000000000000000000000000000061052d82876108e4565b6105379190610936565b600097909650879550859450849350915050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b6000808473ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d991906109e4565b509194509092508491506105f49050576105f48282866105fc565b509392505050565b60008313610636576040517f53b798e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61064663ffffffff821683610a34565b421061067e576040517f16dd0ffb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b60208101601383106106be577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60005b838110156106df5781810151838201526020016106c7565b50506000910152565b60208152600082518060208401526107078160408501602087016106c4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561077a57600080fd5b815167ffffffffffffffff8082111561079257600080fd5b818401915084601f8301126107a657600080fd5b8151818111156107b8576107b8610739565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156107fe576107fe610739565b8160405282815287602084870101111561081757600080fd5b6108288360208301602088016106c4565b979650505050505050565b600083516108458184602088016106c4565b7f202a200000000000000000000000000000000000000000000000000000000000908301908152835161087f8160038401602088016106c4565b7f20636f6d706f736974652070726963652066656564000000000000000000000060039290910191820152601801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808202600082127f80000000000000000000000000000000000000000000000000000000000000008414161561091c5761091c6108b5565b8181058314821517610930576109306108b5565b92915050565b60008261096c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83147f8000000000000000000000000000000000000000000000000000000000000000831416156109c0576109c06108b5565b500590565b805169ffffffffffffffffffff811681146109df57600080fd5b919050565b600080600080600060a086880312156109fc57600080fd5b610a05866109c5565b9450602086015193506040860151925060608601519150610a28608087016109c5565b90509295509295909350565b80820180821115610930576109306108b556fea264697066735822122017d09f3ba908f59cd4d31e27f918b97aebb6e7bbd9ff58813df49af79b13f50864736f6c63430008110033";
|
|
17
|
+
static readonly abi: readonly [{
|
|
18
|
+
readonly type: "constructor";
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly name: "priceFeeds";
|
|
21
|
+
readonly type: "tuple[2]";
|
|
22
|
+
readonly internalType: "struct PriceFeedParams[2]";
|
|
23
|
+
readonly components: readonly [{
|
|
24
|
+
readonly name: "priceFeed";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
readonly internalType: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "stalenessPeriod";
|
|
29
|
+
readonly type: "uint32";
|
|
30
|
+
readonly internalType: "uint32";
|
|
31
|
+
}];
|
|
32
|
+
}];
|
|
33
|
+
readonly stateMutability: "nonpayable";
|
|
34
|
+
}, {
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
readonly name: "decimals";
|
|
37
|
+
readonly inputs: readonly [];
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "uint8";
|
|
41
|
+
readonly internalType: "uint8";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly name: "description";
|
|
47
|
+
readonly inputs: readonly [];
|
|
48
|
+
readonly outputs: readonly [{
|
|
49
|
+
readonly name: "";
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly internalType: "string";
|
|
52
|
+
}];
|
|
53
|
+
readonly stateMutability: "view";
|
|
54
|
+
}, {
|
|
55
|
+
readonly type: "function";
|
|
56
|
+
readonly name: "latestRoundData";
|
|
57
|
+
readonly inputs: readonly [];
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "uint80";
|
|
61
|
+
readonly internalType: "uint80";
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "answer";
|
|
64
|
+
readonly type: "int256";
|
|
65
|
+
readonly internalType: "int256";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "";
|
|
76
|
+
readonly type: "uint80";
|
|
77
|
+
readonly internalType: "uint80";
|
|
78
|
+
}];
|
|
79
|
+
readonly stateMutability: "view";
|
|
80
|
+
}, {
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
readonly name: "priceFeed0";
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly name: "";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "view";
|
|
90
|
+
}, {
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
readonly name: "priceFeed1";
|
|
93
|
+
readonly inputs: readonly [];
|
|
94
|
+
readonly outputs: readonly [{
|
|
95
|
+
readonly name: "";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
}];
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
readonly name: "priceFeedType";
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly name: "";
|
|
106
|
+
readonly type: "uint8";
|
|
107
|
+
readonly internalType: "enum PriceFeedType";
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "view";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
readonly name: "skipCheck1";
|
|
113
|
+
readonly inputs: readonly [];
|
|
114
|
+
readonly outputs: readonly [{
|
|
115
|
+
readonly name: "";
|
|
116
|
+
readonly type: "bool";
|
|
117
|
+
readonly internalType: "bool";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "function";
|
|
122
|
+
readonly name: "skipPriceCheck";
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly outputs: readonly [{
|
|
125
|
+
readonly name: "";
|
|
126
|
+
readonly type: "bool";
|
|
127
|
+
readonly internalType: "bool";
|
|
128
|
+
}];
|
|
129
|
+
readonly stateMutability: "view";
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "function";
|
|
132
|
+
readonly name: "stalenessPeriod0";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly name: "";
|
|
136
|
+
readonly type: "uint32";
|
|
137
|
+
readonly internalType: "uint32";
|
|
138
|
+
}];
|
|
139
|
+
readonly stateMutability: "view";
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
readonly name: "stalenessPeriod1";
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly name: "";
|
|
146
|
+
readonly type: "uint32";
|
|
147
|
+
readonly internalType: "uint32";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
}, {
|
|
151
|
+
readonly type: "function";
|
|
152
|
+
readonly name: "targetFeedScale";
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly outputs: readonly [{
|
|
155
|
+
readonly name: "";
|
|
156
|
+
readonly type: "int256";
|
|
157
|
+
readonly internalType: "int256";
|
|
158
|
+
}];
|
|
159
|
+
readonly stateMutability: "view";
|
|
160
|
+
}, {
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
readonly name: "version";
|
|
163
|
+
readonly inputs: readonly [];
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "uint256";
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
}];
|
|
169
|
+
readonly stateMutability: "view";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "error";
|
|
172
|
+
readonly name: "AddressIsNotContractException";
|
|
173
|
+
readonly inputs: readonly [{
|
|
174
|
+
readonly name: "";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
readonly internalType: "address";
|
|
177
|
+
}];
|
|
178
|
+
}, {
|
|
179
|
+
readonly type: "error";
|
|
180
|
+
readonly name: "IncorrectParameterException";
|
|
181
|
+
readonly inputs: readonly [];
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "error";
|
|
184
|
+
readonly name: "IncorrectPriceException";
|
|
185
|
+
readonly inputs: readonly [];
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "error";
|
|
188
|
+
readonly name: "IncorrectPriceFeedException";
|
|
189
|
+
readonly inputs: readonly [];
|
|
190
|
+
}, {
|
|
191
|
+
readonly type: "error";
|
|
192
|
+
readonly name: "StalePriceException";
|
|
193
|
+
readonly inputs: readonly [];
|
|
194
|
+
}, {
|
|
195
|
+
readonly type: "error";
|
|
196
|
+
readonly name: "ZeroAddressException";
|
|
197
|
+
readonly inputs: readonly [];
|
|
198
|
+
}];
|
|
199
|
+
static createInterface(): CompositePriceFeedInterface;
|
|
200
|
+
static connect(address: string, signerOrProvider: Signer | Provider): CompositePriceFeed;
|
|
201
|
+
}
|
|
202
|
+
export {};
|