@gearbox-protocol/sdk 0.0.109 → 0.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/apy/convexAPY copy.d.ts +6 -0
- package/lib/apy/convexAPY copy.js +201 -0
- package/lib/apy/convexAPY.d.ts +9 -5
- package/lib/apy/convexAPY.js +29 -69
- package/lib/apy/curveAPY.d.ts +4 -0
- package/lib/apy/curveAPY.js +94 -0
- package/lib/apy/index.d.ts +6 -0
- package/lib/apy/index.js +20 -0
- package/lib/apy/lidoAPY.d.ts +1 -1
- package/lib/apy/lidoAPY.js +3 -3
- package/lib/apy/yearnAPY.d.ts +4 -0
- package/lib/apy/yearnAPY.js +90 -0
- package/lib/contracts/contractsRegister.js +2 -1
- package/lib/core/creditAccount.d.ts +2 -1
- package/lib/core/creditAccount.js +19 -12
- package/lib/core/creditManager.d.ts +3 -1
- package/lib/core/creditManager.js +22 -8
- package/lib/core/errors.d.ts +1 -1
- package/lib/core/pool.js +4 -4
- package/lib/core/strategy.d.ts +5 -3
- package/lib/core/strategy.js +6 -4
- package/lib/index.d.ts +4 -4
- package/lib/index.js +7 -6
- package/lib/tokens/convex.d.ts +3 -0
- package/lib/tokens/convex.js +44 -18
- package/lib/tokens/curveLP.d.ts +1 -0
- package/lib/tokens/curveLP.js +11 -7
- package/lib/tokens/normal.d.ts +1 -0
- package/lib/tokens/normal.js +5 -1
- package/lib/tokens/token.d.ts +7 -2
- package/lib/tokens/token.js +10 -1
- package/lib/tokens/tokenData.js +2 -3
- package/lib/tokens/yearn.d.ts +1 -0
- package/lib/tokens/yearn.js +11 -7
- package/lib/utils/extracter.d.ts +11 -0
- package/lib/utils/extracter.js +19 -0
- package/lib/utils/mappers.d.ts +2 -2
- package/lib/utils/price.d.ts +8 -0
- package/lib/utils/price.js +26 -0
- package/package.json +1 -1
- package/src/apy/convexAPY.ts +47 -96
- package/src/apy/curveAPY.ts +68 -0
- package/src/apy/index.ts +8 -0
- package/src/apy/lidoAPY.ts +1 -1
- package/src/apy/yearnAPY.ts +66 -0
- package/src/contracts/contractsRegister.ts +2 -1
- package/src/core/creditAccount.ts +20 -12
- package/src/core/creditManager.ts +35 -10
- package/src/core/errors.ts +1 -0
- package/src/core/pool.ts +4 -4
- package/src/core/strategy.ts +16 -10
- package/src/index.ts +4 -4
- package/src/tokens/convex.ts +43 -20
- package/src/tokens/curveLP.ts +9 -6
- package/src/tokens/normal.ts +3 -0
- package/src/tokens/token.ts +24 -6
- package/src/tokens/tokenData.ts +2 -4
- package/src/tokens/yearn.ts +9 -6
- package/src/utils/extracter.ts +30 -0
- package/src/utils/mappers.ts +2 -2
- package/src/utils/price.ts +33 -0
- package/lib/core/price.d.ts +0 -2
- package/lib/core/price.js +0 -14
- package/lib/types/@chainlink/contracts/src/v0.6/index.d.ts +0 -2
- package/lib/types/@chainlink/contracts/src/v0.6/index.js +0 -2
- package/lib/types/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.d.ts +0 -146
- package/lib/types/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.js +0 -2
- package/lib/types/@chainlink/contracts/src/v0.6/interfaces/index.d.ts +0 -1
- package/lib/types/@chainlink/contracts/src/v0.6/interfaces/index.js +0 -2
- package/lib/types/contracts/integrations/lido/IstETH.d.ts +0 -154
- package/lib/types/contracts/integrations/lido/IstETH.js +0 -2
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker.d.ts +0 -50
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker.js +0 -2
- package/lib/types/contracts/pathfinder/Balances.sol/BalanceOps.d.ts +0 -27
- package/lib/types/contracts/pathfinder/Balances.sol/BalanceOps.js +0 -2
- package/lib/types/contracts/pathfinder/Balances.sol/index.d.ts +0 -1
- package/lib/types/contracts/pathfinder/Balances.sol/index.js +0 -2
- package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder.d.ts +0 -269
- package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder.js +0 -2
- package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/index.d.ts +0 -1
- package/lib/types/contracts/pathfinder/NormalTokenPathFinder.sol/index.js +0 -2
- package/lib/types/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper.d.ts +0 -58
- package/lib/types/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper.js +0 -2
- package/lib/types/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest.d.ts +0 -528
- package/lib/types/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest.js +0 -2
- package/lib/types/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest.d.ts +0 -528
- package/lib/types/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest.js +0 -2
- package/lib/types/factories/@chainlink/contracts/src/v0.6/index.d.ts +0 -1
- package/lib/types/factories/@chainlink/contracts/src/v0.6/index.js +0 -30
- package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface__factory.d.ts +0 -22
- package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface__factory.js +0 -133
- package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/index.d.ts +0 -1
- package/lib/types/factories/@chainlink/contracts/src/v0.6/interfaces/index.js +0 -8
- package/lib/types/factories/contracts/integrations/lido/IstETH__factory.d.ts +0 -35
- package/lib/types/factories/contracts/integrations/lido/IstETH__factory.js +0 -224
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker__factory.d.ts +0 -18
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeBalanceChecker__factory.js +0 -40
- package/lib/types/factories/contracts/pathfinder/Balances.sol/BalanceOps__factory.d.ts +0 -28
- package/lib/types/factories/contracts/pathfinder/Balances.sol/BalanceOps__factory.js +0 -76
- package/lib/types/factories/contracts/pathfinder/Balances.sol/index.d.ts +0 -1
- package/lib/types/factories/contracts/pathfinder/Balances.sol/index.js +0 -8
- package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder__factory.d.ts +0 -144
- package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/PathFinder__factory.js +0 -522
- package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/index.d.ts +0 -1
- package/lib/types/factories/contracts/pathfinder/NormalTokenPathFinder.sol/index.js +0 -8
- package/lib/types/factories/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper__factory.d.ts +0 -34
- package/lib/types/factories/contracts/test/mocks/integrations/ConvexTokenRewardContractMock.sol/VirtualBalanceWrapper__factory.js +0 -110
- package/lib/types/factories/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest__factory.d.ts +0 -65
- package/lib/types/factories/contracts/test/pathfinder/UniswapV2PathFinder.t.sol/UniswapV2PathFinderAdapterTest__factory.js +0 -775
- package/lib/types/factories/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest__factory.d.ts +0 -65
- package/lib/types/factories/contracts/test/pathfinder/UniswapV3PathFinder.t.sol/UniswapV3PathFinderAdapterTest__factory.js +0 -775
- package/src/core/price.ts +0 -13
|
@@ -1,269 +0,0 @@
|
|
|
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 } from "../../../common";
|
|
5
|
-
export declare type BalanceStruct = {
|
|
6
|
-
token: string;
|
|
7
|
-
balance: BigNumberish;
|
|
8
|
-
};
|
|
9
|
-
export declare type BalanceStructOutput = [string, BigNumber] & {
|
|
10
|
-
token: string;
|
|
11
|
-
balance: BigNumber;
|
|
12
|
-
};
|
|
13
|
-
export declare type ClosePathTaskStruct = {
|
|
14
|
-
balances: BalanceStruct[];
|
|
15
|
-
underlying: string;
|
|
16
|
-
connectors: string[];
|
|
17
|
-
adapters: string[];
|
|
18
|
-
gasPriceUnderlyingRAY: BigNumberish;
|
|
19
|
-
slippageFactor: BigNumberish;
|
|
20
|
-
};
|
|
21
|
-
export declare type ClosePathTaskStructOutput = [
|
|
22
|
-
BalanceStructOutput[],
|
|
23
|
-
string,
|
|
24
|
-
string[],
|
|
25
|
-
string[],
|
|
26
|
-
BigNumber,
|
|
27
|
-
BigNumber
|
|
28
|
-
] & {
|
|
29
|
-
balances: BalanceStructOutput[];
|
|
30
|
-
underlying: string;
|
|
31
|
-
connectors: string[];
|
|
32
|
-
adapters: string[];
|
|
33
|
-
gasPriceUnderlyingRAY: BigNumber;
|
|
34
|
-
slippageFactor: BigNumber;
|
|
35
|
-
};
|
|
36
|
-
export declare type MultiCallStruct = {
|
|
37
|
-
target: string;
|
|
38
|
-
callData: BytesLike;
|
|
39
|
-
};
|
|
40
|
-
export declare type MultiCallStructOutput = [string, string] & {
|
|
41
|
-
target: string;
|
|
42
|
-
callData: string;
|
|
43
|
-
};
|
|
44
|
-
export declare type ClosePathResultStruct = {
|
|
45
|
-
calls: MultiCallStruct[];
|
|
46
|
-
underlyingBalance: BigNumberish;
|
|
47
|
-
gasUsage: BigNumberish;
|
|
48
|
-
};
|
|
49
|
-
export declare type ClosePathResultStructOutput = [
|
|
50
|
-
MultiCallStructOutput[],
|
|
51
|
-
BigNumber,
|
|
52
|
-
BigNumber
|
|
53
|
-
] & {
|
|
54
|
-
calls: MultiCallStructOutput[];
|
|
55
|
-
underlyingBalance: BigNumber;
|
|
56
|
-
gasUsage: BigNumber;
|
|
57
|
-
};
|
|
58
|
-
export declare type SwapQuoteStruct = {
|
|
59
|
-
multiCall: MultiCallStruct;
|
|
60
|
-
amount: BigNumberish;
|
|
61
|
-
found: boolean;
|
|
62
|
-
gasUsage: BigNumberish;
|
|
63
|
-
};
|
|
64
|
-
export declare type SwapQuoteStructOutput = [
|
|
65
|
-
MultiCallStructOutput,
|
|
66
|
-
BigNumber,
|
|
67
|
-
boolean,
|
|
68
|
-
BigNumber
|
|
69
|
-
] & {
|
|
70
|
-
multiCall: MultiCallStructOutput;
|
|
71
|
-
amount: BigNumber;
|
|
72
|
-
found: boolean;
|
|
73
|
-
gasUsage: BigNumber;
|
|
74
|
-
};
|
|
75
|
-
export interface PathFinderInterface extends utils.Interface {
|
|
76
|
-
functions: {
|
|
77
|
-
"curvePathFinder()": FunctionFragment;
|
|
78
|
-
"findBestPath(((address,uint256)[],address,address[],address[],uint256,uint256))": FunctionFragment;
|
|
79
|
-
"findBestPathIndex(tuple[][],address,address[],address[],uint256)": FunctionFragment;
|
|
80
|
-
"getBestPairSwap(address,address,uint256,uint256,address[])": FunctionFragment;
|
|
81
|
-
"getGasPriceUnderlyingRAY(address)": FunctionFragment;
|
|
82
|
-
"owner()": FunctionFragment;
|
|
83
|
-
"priceOracle()": FunctionFragment;
|
|
84
|
-
"renounceOwnership()": FunctionFragment;
|
|
85
|
-
"transferOwnership(address)": FunctionFragment;
|
|
86
|
-
"uniV2PathFinder()": FunctionFragment;
|
|
87
|
-
"uniV3PathFinder()": FunctionFragment;
|
|
88
|
-
"version()": FunctionFragment;
|
|
89
|
-
"wethToken()": FunctionFragment;
|
|
90
|
-
};
|
|
91
|
-
getFunction(nameOrSignatureOrTopic: "curvePathFinder" | "findBestPath" | "findBestPathIndex" | "getBestPairSwap" | "getGasPriceUnderlyingRAY" | "owner" | "priceOracle" | "renounceOwnership" | "transferOwnership" | "uniV2PathFinder" | "uniV3PathFinder" | "version" | "wethToken"): FunctionFragment;
|
|
92
|
-
encodeFunctionData(functionFragment: "curvePathFinder", values?: undefined): string;
|
|
93
|
-
encodeFunctionData(functionFragment: "findBestPath", values: [ClosePathTaskStruct]): string;
|
|
94
|
-
encodeFunctionData(functionFragment: "findBestPathIndex", values: [BalanceStruct[][], string, string[], string[], BigNumberish]): string;
|
|
95
|
-
encodeFunctionData(functionFragment: "getBestPairSwap", values: [string, string, BigNumberish, BigNumberish, string[]]): string;
|
|
96
|
-
encodeFunctionData(functionFragment: "getGasPriceUnderlyingRAY", values: [string]): string;
|
|
97
|
-
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
98
|
-
encodeFunctionData(functionFragment: "priceOracle", values?: undefined): string;
|
|
99
|
-
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
100
|
-
encodeFunctionData(functionFragment: "transferOwnership", values: [string]): string;
|
|
101
|
-
encodeFunctionData(functionFragment: "uniV2PathFinder", values?: undefined): string;
|
|
102
|
-
encodeFunctionData(functionFragment: "uniV3PathFinder", values?: undefined): string;
|
|
103
|
-
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
104
|
-
encodeFunctionData(functionFragment: "wethToken", values?: undefined): string;
|
|
105
|
-
decodeFunctionResult(functionFragment: "curvePathFinder", data: BytesLike): Result;
|
|
106
|
-
decodeFunctionResult(functionFragment: "findBestPath", data: BytesLike): Result;
|
|
107
|
-
decodeFunctionResult(functionFragment: "findBestPathIndex", data: BytesLike): Result;
|
|
108
|
-
decodeFunctionResult(functionFragment: "getBestPairSwap", data: BytesLike): Result;
|
|
109
|
-
decodeFunctionResult(functionFragment: "getGasPriceUnderlyingRAY", data: BytesLike): Result;
|
|
110
|
-
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
111
|
-
decodeFunctionResult(functionFragment: "priceOracle", data: BytesLike): Result;
|
|
112
|
-
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
113
|
-
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
114
|
-
decodeFunctionResult(functionFragment: "uniV2PathFinder", data: BytesLike): Result;
|
|
115
|
-
decodeFunctionResult(functionFragment: "uniV3PathFinder", data: BytesLike): Result;
|
|
116
|
-
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
117
|
-
decodeFunctionResult(functionFragment: "wethToken", data: BytesLike): Result;
|
|
118
|
-
events: {
|
|
119
|
-
"OwnershipTransferred(address,address)": EventFragment;
|
|
120
|
-
};
|
|
121
|
-
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
122
|
-
}
|
|
123
|
-
export interface OwnershipTransferredEventObject {
|
|
124
|
-
previousOwner: string;
|
|
125
|
-
newOwner: string;
|
|
126
|
-
}
|
|
127
|
-
export declare type OwnershipTransferredEvent = TypedEvent<[
|
|
128
|
-
string,
|
|
129
|
-
string
|
|
130
|
-
], OwnershipTransferredEventObject>;
|
|
131
|
-
export declare type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
132
|
-
export interface PathFinder extends BaseContract {
|
|
133
|
-
connect(signerOrProvider: Signer | Provider | string): this;
|
|
134
|
-
attach(addressOrName: string): this;
|
|
135
|
-
deployed(): Promise<this>;
|
|
136
|
-
interface: PathFinderInterface;
|
|
137
|
-
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
138
|
-
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
139
|
-
listeners(eventName?: string): Array<Listener>;
|
|
140
|
-
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
141
|
-
removeAllListeners(eventName?: string): this;
|
|
142
|
-
off: OnEvent<this>;
|
|
143
|
-
on: OnEvent<this>;
|
|
144
|
-
once: OnEvent<this>;
|
|
145
|
-
removeListener: OnEvent<this>;
|
|
146
|
-
functions: {
|
|
147
|
-
curvePathFinder(overrides?: CallOverrides): Promise<[string]>;
|
|
148
|
-
findBestPath(task: ClosePathTaskStruct, overrides?: Overrides & {
|
|
149
|
-
from?: string | Promise<string>;
|
|
150
|
-
}): Promise<ContractTransaction>;
|
|
151
|
-
findBestPathIndex(balances: BalanceStruct[][], underlying: string, connectors: string[], adapters: string[], slippageFactor: BigNumberish, overrides?: Overrides & {
|
|
152
|
-
from?: string | Promise<string>;
|
|
153
|
-
}): Promise<ContractTransaction>;
|
|
154
|
-
getBestPairSwap(tokenIn: string, tokenOut: string, amount: BigNumberish, slippageFactor: BigNumberish, adapters: string[], overrides?: Overrides & {
|
|
155
|
-
from?: string | Promise<string>;
|
|
156
|
-
}): Promise<ContractTransaction>;
|
|
157
|
-
getGasPriceUnderlyingRAY(underlying: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
158
|
-
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
159
|
-
priceOracle(overrides?: CallOverrides): Promise<[string]>;
|
|
160
|
-
renounceOwnership(overrides?: Overrides & {
|
|
161
|
-
from?: string | Promise<string>;
|
|
162
|
-
}): Promise<ContractTransaction>;
|
|
163
|
-
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
164
|
-
from?: string | Promise<string>;
|
|
165
|
-
}): Promise<ContractTransaction>;
|
|
166
|
-
uniV2PathFinder(overrides?: CallOverrides): Promise<[string]>;
|
|
167
|
-
uniV3PathFinder(overrides?: CallOverrides): Promise<[string]>;
|
|
168
|
-
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
169
|
-
wethToken(overrides?: CallOverrides): Promise<[string]>;
|
|
170
|
-
};
|
|
171
|
-
curvePathFinder(overrides?: CallOverrides): Promise<string>;
|
|
172
|
-
findBestPath(task: ClosePathTaskStruct, overrides?: Overrides & {
|
|
173
|
-
from?: string | Promise<string>;
|
|
174
|
-
}): Promise<ContractTransaction>;
|
|
175
|
-
findBestPathIndex(balances: BalanceStruct[][], underlying: string, connectors: string[], adapters: string[], slippageFactor: BigNumberish, overrides?: Overrides & {
|
|
176
|
-
from?: string | Promise<string>;
|
|
177
|
-
}): Promise<ContractTransaction>;
|
|
178
|
-
getBestPairSwap(tokenIn: string, tokenOut: string, amount: BigNumberish, slippageFactor: BigNumberish, adapters: string[], overrides?: Overrides & {
|
|
179
|
-
from?: string | Promise<string>;
|
|
180
|
-
}): Promise<ContractTransaction>;
|
|
181
|
-
getGasPriceUnderlyingRAY(underlying: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
182
|
-
owner(overrides?: CallOverrides): Promise<string>;
|
|
183
|
-
priceOracle(overrides?: CallOverrides): Promise<string>;
|
|
184
|
-
renounceOwnership(overrides?: Overrides & {
|
|
185
|
-
from?: string | Promise<string>;
|
|
186
|
-
}): Promise<ContractTransaction>;
|
|
187
|
-
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
188
|
-
from?: string | Promise<string>;
|
|
189
|
-
}): Promise<ContractTransaction>;
|
|
190
|
-
uniV2PathFinder(overrides?: CallOverrides): Promise<string>;
|
|
191
|
-
uniV3PathFinder(overrides?: CallOverrides): Promise<string>;
|
|
192
|
-
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
193
|
-
wethToken(overrides?: CallOverrides): Promise<string>;
|
|
194
|
-
callStatic: {
|
|
195
|
-
curvePathFinder(overrides?: CallOverrides): Promise<string>;
|
|
196
|
-
findBestPath(task: ClosePathTaskStruct, overrides?: CallOverrides): Promise<ClosePathResultStructOutput>;
|
|
197
|
-
findBestPathIndex(balances: BalanceStruct[][], underlying: string, connectors: string[], adapters: string[], slippageFactor: BigNumberish, overrides?: CallOverrides): Promise<[
|
|
198
|
-
ClosePathResultStructOutput,
|
|
199
|
-
BigNumber
|
|
200
|
-
] & {
|
|
201
|
-
result: ClosePathResultStructOutput;
|
|
202
|
-
bestIndex: BigNumber;
|
|
203
|
-
}>;
|
|
204
|
-
getBestPairSwap(tokenIn: string, tokenOut: string, amount: BigNumberish, slippageFactor: BigNumberish, adapters: string[], overrides?: CallOverrides): Promise<SwapQuoteStructOutput>;
|
|
205
|
-
getGasPriceUnderlyingRAY(underlying: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
206
|
-
owner(overrides?: CallOverrides): Promise<string>;
|
|
207
|
-
priceOracle(overrides?: CallOverrides): Promise<string>;
|
|
208
|
-
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
209
|
-
transferOwnership(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
|
210
|
-
uniV2PathFinder(overrides?: CallOverrides): Promise<string>;
|
|
211
|
-
uniV3PathFinder(overrides?: CallOverrides): Promise<string>;
|
|
212
|
-
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
213
|
-
wethToken(overrides?: CallOverrides): Promise<string>;
|
|
214
|
-
};
|
|
215
|
-
filters: {
|
|
216
|
-
"OwnershipTransferred(address,address)"(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
217
|
-
OwnershipTransferred(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
218
|
-
};
|
|
219
|
-
estimateGas: {
|
|
220
|
-
curvePathFinder(overrides?: CallOverrides): Promise<BigNumber>;
|
|
221
|
-
findBestPath(task: ClosePathTaskStruct, overrides?: Overrides & {
|
|
222
|
-
from?: string | Promise<string>;
|
|
223
|
-
}): Promise<BigNumber>;
|
|
224
|
-
findBestPathIndex(balances: BalanceStruct[][], underlying: string, connectors: string[], adapters: string[], slippageFactor: BigNumberish, overrides?: Overrides & {
|
|
225
|
-
from?: string | Promise<string>;
|
|
226
|
-
}): Promise<BigNumber>;
|
|
227
|
-
getBestPairSwap(tokenIn: string, tokenOut: string, amount: BigNumberish, slippageFactor: BigNumberish, adapters: string[], overrides?: Overrides & {
|
|
228
|
-
from?: string | Promise<string>;
|
|
229
|
-
}): Promise<BigNumber>;
|
|
230
|
-
getGasPriceUnderlyingRAY(underlying: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
231
|
-
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
232
|
-
priceOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
|
233
|
-
renounceOwnership(overrides?: Overrides & {
|
|
234
|
-
from?: string | Promise<string>;
|
|
235
|
-
}): Promise<BigNumber>;
|
|
236
|
-
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
237
|
-
from?: string | Promise<string>;
|
|
238
|
-
}): Promise<BigNumber>;
|
|
239
|
-
uniV2PathFinder(overrides?: CallOverrides): Promise<BigNumber>;
|
|
240
|
-
uniV3PathFinder(overrides?: CallOverrides): Promise<BigNumber>;
|
|
241
|
-
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
242
|
-
wethToken(overrides?: CallOverrides): Promise<BigNumber>;
|
|
243
|
-
};
|
|
244
|
-
populateTransaction: {
|
|
245
|
-
curvePathFinder(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
246
|
-
findBestPath(task: ClosePathTaskStruct, overrides?: Overrides & {
|
|
247
|
-
from?: string | Promise<string>;
|
|
248
|
-
}): Promise<PopulatedTransaction>;
|
|
249
|
-
findBestPathIndex(balances: BalanceStruct[][], underlying: string, connectors: string[], adapters: string[], slippageFactor: BigNumberish, overrides?: Overrides & {
|
|
250
|
-
from?: string | Promise<string>;
|
|
251
|
-
}): Promise<PopulatedTransaction>;
|
|
252
|
-
getBestPairSwap(tokenIn: string, tokenOut: string, amount: BigNumberish, slippageFactor: BigNumberish, adapters: string[], overrides?: Overrides & {
|
|
253
|
-
from?: string | Promise<string>;
|
|
254
|
-
}): Promise<PopulatedTransaction>;
|
|
255
|
-
getGasPriceUnderlyingRAY(underlying: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
256
|
-
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
257
|
-
priceOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
258
|
-
renounceOwnership(overrides?: Overrides & {
|
|
259
|
-
from?: string | Promise<string>;
|
|
260
|
-
}): Promise<PopulatedTransaction>;
|
|
261
|
-
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
262
|
-
from?: string | Promise<string>;
|
|
263
|
-
}): Promise<PopulatedTransaction>;
|
|
264
|
-
uniV2PathFinder(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
265
|
-
uniV3PathFinder(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
266
|
-
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
267
|
-
wethToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
268
|
-
};
|
|
269
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { PathFinder } from "./PathFinder";
|
|
@@ -1,58 +0,0 @@
|
|
|
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 VirtualBalanceWrapperInterface extends utils.Interface {
|
|
6
|
-
functions: {
|
|
7
|
-
"balanceOf(address)": FunctionFragment;
|
|
8
|
-
"deposits()": FunctionFragment;
|
|
9
|
-
"totalSupply()": FunctionFragment;
|
|
10
|
-
};
|
|
11
|
-
getFunction(nameOrSignatureOrTopic: "balanceOf" | "deposits" | "totalSupply"): FunctionFragment;
|
|
12
|
-
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
|
|
13
|
-
encodeFunctionData(functionFragment: "deposits", values?: undefined): string;
|
|
14
|
-
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
15
|
-
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
16
|
-
decodeFunctionResult(functionFragment: "deposits", data: BytesLike): Result;
|
|
17
|
-
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
18
|
-
events: {};
|
|
19
|
-
}
|
|
20
|
-
export interface VirtualBalanceWrapper extends BaseContract {
|
|
21
|
-
connect(signerOrProvider: Signer | Provider | string): this;
|
|
22
|
-
attach(addressOrName: string): this;
|
|
23
|
-
deployed(): Promise<this>;
|
|
24
|
-
interface: VirtualBalanceWrapperInterface;
|
|
25
|
-
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
26
|
-
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
27
|
-
listeners(eventName?: string): Array<Listener>;
|
|
28
|
-
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
29
|
-
removeAllListeners(eventName?: string): this;
|
|
30
|
-
off: OnEvent<this>;
|
|
31
|
-
on: OnEvent<this>;
|
|
32
|
-
once: OnEvent<this>;
|
|
33
|
-
removeListener: OnEvent<this>;
|
|
34
|
-
functions: {
|
|
35
|
-
balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
36
|
-
deposits(overrides?: CallOverrides): Promise<[string]>;
|
|
37
|
-
totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
38
|
-
};
|
|
39
|
-
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
40
|
-
deposits(overrides?: CallOverrides): Promise<string>;
|
|
41
|
-
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
|
42
|
-
callStatic: {
|
|
43
|
-
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
44
|
-
deposits(overrides?: CallOverrides): Promise<string>;
|
|
45
|
-
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
|
46
|
-
};
|
|
47
|
-
filters: {};
|
|
48
|
-
estimateGas: {
|
|
49
|
-
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
50
|
-
deposits(overrides?: CallOverrides): Promise<BigNumber>;
|
|
51
|
-
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
|
|
52
|
-
};
|
|
53
|
-
populateTransaction: {
|
|
54
|
-
balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
55
|
-
deposits(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
56
|
-
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
57
|
-
};
|
|
58
|
-
}
|