@gearbox-protocol/sdk 1.7.12 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/lib/apy/convexAPY.d.ts +1 -0
  2. package/lib/apy/convexAPY.js +2 -1
  3. package/lib/contracts/adapters.d.ts +2 -1
  4. package/lib/contracts/adapters.js +1 -0
  5. package/lib/core/constants.d.ts +3 -0
  6. package/lib/core/constants.js +4 -1
  7. package/lib/core/rewardClaimer.d.ts +19 -0
  8. package/lib/core/rewardClaimer.js +53 -0
  9. package/lib/core/rewardConvex.d.ts +26 -0
  10. package/lib/core/rewardConvex.js +161 -0
  11. package/lib/core/rewardConvex.spec.d.ts +1 -0
  12. package/lib/core/rewardConvex.spec.js +140 -0
  13. package/lib/oracles/oracles.d.ts +5 -1
  14. package/lib/oracles/oracles.js +1 -0
  15. package/lib/oracles/priceFeeds.js +6 -0
  16. package/lib/tokens/decimals.js +1 -0
  17. package/lib/tokens/normal.d.ts +1 -1
  18. package/lib/tokens/normal.js +25 -0
  19. package/lib/tokens/token.js +2 -0
  20. package/lib/types/contracts/integrations/lido/IwstETH.sol/IwstETH.d.ts +234 -0
  21. package/lib/types/contracts/{test/suites/mainnet/ITokenTestSuite.js → integrations/lido/IwstETH.sol/IwstETH.js} +0 -0
  22. package/lib/types/contracts/integrations/lido/IwstETH.sol/IwstETHGetters.d.ts +202 -0
  23. package/lib/types/contracts/{test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.js → integrations/lido/IwstETH.sol/IwstETHGetters.js} +0 -0
  24. package/lib/types/contracts/integrations/lido/IwstETH.sol/index.d.ts +2 -0
  25. package/lib/types/contracts/{test/suites/mainnet/SupportedContracts.sol → integrations/lido/IwstETH.sol}/index.js +0 -0
  26. package/lib/types/contracts/integrations/lido/index.d.ts +2 -0
  27. package/lib/types/contracts/interfaces/IACL.sol/IACL.d.ts +9 -1
  28. package/lib/types/contracts/interfaces/adapters/lido/IwstETHV1Adapter.d.ts +218 -0
  29. package/lib/types/contracts/{test/suites/mainnet/Tokens.sol/IToken.js → interfaces/adapters/lido/IwstETHV1Adapter.js} +0 -0
  30. package/lib/types/contracts/interfaces/adapters/lido/index.d.ts +1 -0
  31. package/lib/types/contracts/test/suites/index.d.ts +2 -2
  32. package/lib/types/contracts/test/suites/{mainnet → live}/ITokenTestSuite.d.ts +0 -0
  33. package/lib/types/contracts/test/suites/{mainnet/Tokens.sol/index.js → live/ITokenTestSuite.js} +0 -0
  34. package/lib/types/contracts/test/suites/{mainnet → live}/SupportedContracts.sol/ISupportedContracts.d.ts +9 -1
  35. package/lib/types/contracts/test/suites/{mainnet/index.js → live/SupportedContracts.sol/ISupportedContracts.js} +0 -0
  36. package/lib/types/contracts/test/suites/{mainnet → live}/SupportedContracts.sol/index.d.ts +0 -0
  37. package/lib/types/contracts/test/suites/live/SupportedContracts.sol/index.js +2 -0
  38. package/lib/types/contracts/test/suites/{mainnet → live}/Tokens.sol/IToken.d.ts +0 -0
  39. package/lib/types/contracts/test/suites/live/Tokens.sol/IToken.js +2 -0
  40. package/lib/types/contracts/test/suites/{mainnet → live}/Tokens.sol/index.d.ts +0 -0
  41. package/lib/types/contracts/test/suites/live/Tokens.sol/index.js +2 -0
  42. package/lib/types/contracts/test/suites/{mainnet → live}/index.d.ts +0 -0
  43. package/lib/types/contracts/test/suites/live/index.js +2 -0
  44. package/lib/types/factories/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory.d.ts +35 -0
  45. package/lib/types/factories/contracts/integrations/lido/IwstETH.sol/IwstETHGetters__factory.js +321 -0
  46. package/lib/types/factories/contracts/integrations/lido/IwstETH.sol/IwstETH__factory.d.ts +35 -0
  47. package/lib/types/factories/contracts/integrations/lido/IwstETH.sol/IwstETH__factory.js +359 -0
  48. package/lib/types/factories/contracts/integrations/lido/IwstETH.sol/index.d.ts +2 -0
  49. package/lib/types/factories/contracts/integrations/lido/IwstETH.sol/index.js +10 -0
  50. package/lib/types/factories/contracts/integrations/lido/index.d.ts +1 -0
  51. package/lib/types/factories/contracts/integrations/lido/index.js +2 -1
  52. package/lib/types/factories/contracts/interfaces/IACL.sol/IACL__factory.js +13 -0
  53. package/lib/types/factories/contracts/interfaces/adapters/lido/IwstETHV1Adapter__factory.d.ts +32 -0
  54. package/lib/types/factories/contracts/interfaces/adapters/lido/IwstETHV1Adapter__factory.js +321 -0
  55. package/lib/types/factories/contracts/interfaces/adapters/lido/index.d.ts +1 -0
  56. package/lib/types/factories/contracts/interfaces/adapters/lido/index.js +3 -1
  57. package/lib/types/factories/contracts/test/suites/index.d.ts +1 -1
  58. package/lib/types/factories/contracts/test/suites/index.js +2 -2
  59. package/lib/types/factories/contracts/test/suites/{mainnet → live}/ITokenTestSuite__factory.d.ts +1 -1
  60. package/lib/types/factories/contracts/test/suites/{mainnet → live}/ITokenTestSuite__factory.js +0 -0
  61. package/lib/types/factories/contracts/test/suites/{mainnet → live}/SupportedContracts.sol/ISupportedContracts__factory.d.ts +1 -1
  62. package/lib/types/factories/contracts/test/suites/{mainnet → live}/SupportedContracts.sol/ISupportedContracts__factory.js +19 -0
  63. package/lib/types/factories/contracts/test/suites/{mainnet → live}/SupportedContracts.sol/index.d.ts +0 -0
  64. package/lib/types/factories/contracts/test/suites/{mainnet → live}/SupportedContracts.sol/index.js +0 -0
  65. package/lib/types/factories/contracts/test/suites/{mainnet → live}/Tokens.sol/IToken__factory.d.ts +1 -1
  66. package/lib/types/factories/contracts/test/suites/{mainnet → live}/Tokens.sol/IToken__factory.js +0 -0
  67. package/lib/types/factories/contracts/test/suites/{mainnet → live}/Tokens.sol/index.d.ts +0 -0
  68. package/lib/types/factories/contracts/test/suites/{mainnet → live}/Tokens.sol/index.js +0 -0
  69. package/lib/types/factories/contracts/test/suites/{mainnet → live}/index.d.ts +0 -0
  70. package/lib/types/factories/contracts/test/suites/{mainnet → live}/index.js +0 -0
  71. package/lib/types/index.d.ts +12 -6
  72. package/lib/types/index.js +12 -6
  73. package/package.json +1 -1
@@ -0,0 +1,218 @@
1
+ import type { BaseContract, BigNumber, BigNumberish, 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 } from "../../../../common";
5
+ export interface IwstETHV1AdapterInterface extends utils.Interface {
6
+ functions: {
7
+ "_gearboxAdapterType()": FunctionFragment;
8
+ "_gearboxAdapterVersion()": FunctionFragment;
9
+ "allowance(address,address)": FunctionFragment;
10
+ "balanceOf(address)": FunctionFragment;
11
+ "creditFacade()": FunctionFragment;
12
+ "creditManager()": FunctionFragment;
13
+ "decimals()": FunctionFragment;
14
+ "getStETHByWstETH(uint256)": FunctionFragment;
15
+ "getWstETHByStETH(uint256)": FunctionFragment;
16
+ "name()": FunctionFragment;
17
+ "stEthPerToken()": FunctionFragment;
18
+ "symbol()": FunctionFragment;
19
+ "targetContract()": FunctionFragment;
20
+ "tokensPerStEth()": FunctionFragment;
21
+ "totalSupply()": FunctionFragment;
22
+ "unwrap(uint256)": FunctionFragment;
23
+ "unwrapAll()": FunctionFragment;
24
+ "wrap(uint256)": FunctionFragment;
25
+ "wrapAll()": FunctionFragment;
26
+ };
27
+ getFunction(nameOrSignatureOrTopic: "_gearboxAdapterType" | "_gearboxAdapterVersion" | "allowance" | "balanceOf" | "creditFacade" | "creditManager" | "decimals" | "getStETHByWstETH" | "getWstETHByStETH" | "name" | "stEthPerToken" | "symbol" | "targetContract" | "tokensPerStEth" | "totalSupply" | "unwrap" | "unwrapAll" | "wrap" | "wrapAll"): FunctionFragment;
28
+ encodeFunctionData(functionFragment: "_gearboxAdapterType", values?: undefined): string;
29
+ encodeFunctionData(functionFragment: "_gearboxAdapterVersion", values?: undefined): string;
30
+ encodeFunctionData(functionFragment: "allowance", values: [string, string]): string;
31
+ encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
32
+ encodeFunctionData(functionFragment: "creditFacade", values?: undefined): string;
33
+ encodeFunctionData(functionFragment: "creditManager", values?: undefined): string;
34
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
35
+ encodeFunctionData(functionFragment: "getStETHByWstETH", values: [BigNumberish]): string;
36
+ encodeFunctionData(functionFragment: "getWstETHByStETH", values: [BigNumberish]): string;
37
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
38
+ encodeFunctionData(functionFragment: "stEthPerToken", values?: undefined): string;
39
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
40
+ encodeFunctionData(functionFragment: "targetContract", values?: undefined): string;
41
+ encodeFunctionData(functionFragment: "tokensPerStEth", values?: undefined): string;
42
+ encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
43
+ encodeFunctionData(functionFragment: "unwrap", values: [BigNumberish]): string;
44
+ encodeFunctionData(functionFragment: "unwrapAll", values?: undefined): string;
45
+ encodeFunctionData(functionFragment: "wrap", values: [BigNumberish]): string;
46
+ encodeFunctionData(functionFragment: "wrapAll", values?: undefined): string;
47
+ decodeFunctionResult(functionFragment: "_gearboxAdapterType", data: BytesLike): Result;
48
+ decodeFunctionResult(functionFragment: "_gearboxAdapterVersion", data: BytesLike): Result;
49
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
50
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
51
+ decodeFunctionResult(functionFragment: "creditFacade", data: BytesLike): Result;
52
+ decodeFunctionResult(functionFragment: "creditManager", data: BytesLike): Result;
53
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
54
+ decodeFunctionResult(functionFragment: "getStETHByWstETH", data: BytesLike): Result;
55
+ decodeFunctionResult(functionFragment: "getWstETHByStETH", data: BytesLike): Result;
56
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
57
+ decodeFunctionResult(functionFragment: "stEthPerToken", data: BytesLike): Result;
58
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
59
+ decodeFunctionResult(functionFragment: "targetContract", data: BytesLike): Result;
60
+ decodeFunctionResult(functionFragment: "tokensPerStEth", data: BytesLike): Result;
61
+ decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
62
+ decodeFunctionResult(functionFragment: "unwrap", data: BytesLike): Result;
63
+ decodeFunctionResult(functionFragment: "unwrapAll", data: BytesLike): Result;
64
+ decodeFunctionResult(functionFragment: "wrap", data: BytesLike): Result;
65
+ decodeFunctionResult(functionFragment: "wrapAll", data: BytesLike): Result;
66
+ events: {};
67
+ }
68
+ export interface IwstETHV1Adapter extends BaseContract {
69
+ connect(signerOrProvider: Signer | Provider | string): this;
70
+ attach(addressOrName: string): this;
71
+ deployed(): Promise<this>;
72
+ interface: IwstETHV1AdapterInterface;
73
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
74
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
75
+ listeners(eventName?: string): Array<Listener>;
76
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
77
+ removeAllListeners(eventName?: string): this;
78
+ off: OnEvent<this>;
79
+ on: OnEvent<this>;
80
+ once: OnEvent<this>;
81
+ removeListener: OnEvent<this>;
82
+ functions: {
83
+ _gearboxAdapterType(overrides?: CallOverrides): Promise<[number]>;
84
+ _gearboxAdapterVersion(overrides?: CallOverrides): Promise<[number]>;
85
+ allowance(_owner: string, _spender: string, overrides?: CallOverrides): Promise<[BigNumber]>;
86
+ balanceOf(_account: string, overrides?: CallOverrides): Promise<[BigNumber]>;
87
+ creditFacade(overrides?: CallOverrides): Promise<[string]>;
88
+ creditManager(overrides?: CallOverrides): Promise<[string]>;
89
+ decimals(overrides?: CallOverrides): Promise<[number]>;
90
+ getStETHByWstETH(_wstETHAmount: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>;
91
+ getWstETHByStETH(_stETHAmount: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>;
92
+ name(overrides?: CallOverrides): Promise<[string]>;
93
+ stEthPerToken(overrides?: CallOverrides): Promise<[BigNumber]>;
94
+ symbol(overrides?: CallOverrides): Promise<[string]>;
95
+ targetContract(overrides?: CallOverrides): Promise<[string]>;
96
+ tokensPerStEth(overrides?: CallOverrides): Promise<[BigNumber]>;
97
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
98
+ unwrap(_wstETHAmount: BigNumberish, overrides?: Overrides & {
99
+ from?: string | Promise<string>;
100
+ }): Promise<ContractTransaction>;
101
+ unwrapAll(overrides?: Overrides & {
102
+ from?: string | Promise<string>;
103
+ }): Promise<ContractTransaction>;
104
+ wrap(_stETHAmount: BigNumberish, overrides?: Overrides & {
105
+ from?: string | Promise<string>;
106
+ }): Promise<ContractTransaction>;
107
+ wrapAll(overrides?: Overrides & {
108
+ from?: string | Promise<string>;
109
+ }): Promise<ContractTransaction>;
110
+ };
111
+ _gearboxAdapterType(overrides?: CallOverrides): Promise<number>;
112
+ _gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
113
+ allowance(_owner: string, _spender: string, overrides?: CallOverrides): Promise<BigNumber>;
114
+ balanceOf(_account: string, overrides?: CallOverrides): Promise<BigNumber>;
115
+ creditFacade(overrides?: CallOverrides): Promise<string>;
116
+ creditManager(overrides?: CallOverrides): Promise<string>;
117
+ decimals(overrides?: CallOverrides): Promise<number>;
118
+ getStETHByWstETH(_wstETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
119
+ getWstETHByStETH(_stETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
120
+ name(overrides?: CallOverrides): Promise<string>;
121
+ stEthPerToken(overrides?: CallOverrides): Promise<BigNumber>;
122
+ symbol(overrides?: CallOverrides): Promise<string>;
123
+ targetContract(overrides?: CallOverrides): Promise<string>;
124
+ tokensPerStEth(overrides?: CallOverrides): Promise<BigNumber>;
125
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
126
+ unwrap(_wstETHAmount: BigNumberish, overrides?: Overrides & {
127
+ from?: string | Promise<string>;
128
+ }): Promise<ContractTransaction>;
129
+ unwrapAll(overrides?: Overrides & {
130
+ from?: string | Promise<string>;
131
+ }): Promise<ContractTransaction>;
132
+ wrap(_stETHAmount: BigNumberish, overrides?: Overrides & {
133
+ from?: string | Promise<string>;
134
+ }): Promise<ContractTransaction>;
135
+ wrapAll(overrides?: Overrides & {
136
+ from?: string | Promise<string>;
137
+ }): Promise<ContractTransaction>;
138
+ callStatic: {
139
+ _gearboxAdapterType(overrides?: CallOverrides): Promise<number>;
140
+ _gearboxAdapterVersion(overrides?: CallOverrides): Promise<number>;
141
+ allowance(_owner: string, _spender: string, overrides?: CallOverrides): Promise<BigNumber>;
142
+ balanceOf(_account: string, overrides?: CallOverrides): Promise<BigNumber>;
143
+ creditFacade(overrides?: CallOverrides): Promise<string>;
144
+ creditManager(overrides?: CallOverrides): Promise<string>;
145
+ decimals(overrides?: CallOverrides): Promise<number>;
146
+ getStETHByWstETH(_wstETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
147
+ getWstETHByStETH(_stETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
148
+ name(overrides?: CallOverrides): Promise<string>;
149
+ stEthPerToken(overrides?: CallOverrides): Promise<BigNumber>;
150
+ symbol(overrides?: CallOverrides): Promise<string>;
151
+ targetContract(overrides?: CallOverrides): Promise<string>;
152
+ tokensPerStEth(overrides?: CallOverrides): Promise<BigNumber>;
153
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
154
+ unwrap(_wstETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
155
+ unwrapAll(overrides?: CallOverrides): Promise<BigNumber>;
156
+ wrap(_stETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
157
+ wrapAll(overrides?: CallOverrides): Promise<BigNumber>;
158
+ };
159
+ filters: {};
160
+ estimateGas: {
161
+ _gearboxAdapterType(overrides?: CallOverrides): Promise<BigNumber>;
162
+ _gearboxAdapterVersion(overrides?: CallOverrides): Promise<BigNumber>;
163
+ allowance(_owner: string, _spender: string, overrides?: CallOverrides): Promise<BigNumber>;
164
+ balanceOf(_account: string, overrides?: CallOverrides): Promise<BigNumber>;
165
+ creditFacade(overrides?: CallOverrides): Promise<BigNumber>;
166
+ creditManager(overrides?: CallOverrides): Promise<BigNumber>;
167
+ decimals(overrides?: CallOverrides): Promise<BigNumber>;
168
+ getStETHByWstETH(_wstETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
169
+ getWstETHByStETH(_stETHAmount: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
170
+ name(overrides?: CallOverrides): Promise<BigNumber>;
171
+ stEthPerToken(overrides?: CallOverrides): Promise<BigNumber>;
172
+ symbol(overrides?: CallOverrides): Promise<BigNumber>;
173
+ targetContract(overrides?: CallOverrides): Promise<BigNumber>;
174
+ tokensPerStEth(overrides?: CallOverrides): Promise<BigNumber>;
175
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
176
+ unwrap(_wstETHAmount: BigNumberish, overrides?: Overrides & {
177
+ from?: string | Promise<string>;
178
+ }): Promise<BigNumber>;
179
+ unwrapAll(overrides?: Overrides & {
180
+ from?: string | Promise<string>;
181
+ }): Promise<BigNumber>;
182
+ wrap(_stETHAmount: BigNumberish, overrides?: Overrides & {
183
+ from?: string | Promise<string>;
184
+ }): Promise<BigNumber>;
185
+ wrapAll(overrides?: Overrides & {
186
+ from?: string | Promise<string>;
187
+ }): Promise<BigNumber>;
188
+ };
189
+ populateTransaction: {
190
+ _gearboxAdapterType(overrides?: CallOverrides): Promise<PopulatedTransaction>;
191
+ _gearboxAdapterVersion(overrides?: CallOverrides): Promise<PopulatedTransaction>;
192
+ allowance(_owner: string, _spender: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
193
+ balanceOf(_account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
194
+ creditFacade(overrides?: CallOverrides): Promise<PopulatedTransaction>;
195
+ creditManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
196
+ decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
197
+ getStETHByWstETH(_wstETHAmount: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
198
+ getWstETHByStETH(_stETHAmount: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
199
+ name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
200
+ stEthPerToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
201
+ symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
202
+ targetContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
203
+ tokensPerStEth(overrides?: CallOverrides): Promise<PopulatedTransaction>;
204
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
205
+ unwrap(_wstETHAmount: BigNumberish, overrides?: Overrides & {
206
+ from?: string | Promise<string>;
207
+ }): Promise<PopulatedTransaction>;
208
+ unwrapAll(overrides?: Overrides & {
209
+ from?: string | Promise<string>;
210
+ }): Promise<PopulatedTransaction>;
211
+ wrap(_stETHAmount: BigNumberish, overrides?: Overrides & {
212
+ from?: string | Promise<string>;
213
+ }): Promise<PopulatedTransaction>;
214
+ wrapAll(overrides?: Overrides & {
215
+ from?: string | Promise<string>;
216
+ }): Promise<PopulatedTransaction>;
217
+ };
218
+ }
@@ -1,2 +1,3 @@
1
1
  import type * as iLidoV1AdapterSol from "./ILidoV1Adapter.sol";
2
2
  export type { iLidoV1AdapterSol };
3
+ export type { IwstETHV1Adapter } from "./IwstETHV1Adapter";
@@ -1,2 +1,2 @@
1
- import type * as mainnet from "./mainnet";
2
- export type { mainnet };
1
+ import type * as live from "./live";
2
+ export type { live };
@@ -6,14 +6,17 @@ export interface ISupportedContractsInterface extends utils.Interface {
6
6
  functions: {
7
7
  "addressOf(uint8)": FunctionFragment;
8
8
  "contractCount()": FunctionFragment;
9
+ "contractIndex(address)": FunctionFragment;
9
10
  "nameOf(uint8)": FunctionFragment;
10
11
  };
11
- getFunction(nameOrSignatureOrTopic: "addressOf" | "contractCount" | "nameOf"): FunctionFragment;
12
+ getFunction(nameOrSignatureOrTopic: "addressOf" | "contractCount" | "contractIndex" | "nameOf"): FunctionFragment;
12
13
  encodeFunctionData(functionFragment: "addressOf", values: [BigNumberish]): string;
13
14
  encodeFunctionData(functionFragment: "contractCount", values?: undefined): string;
15
+ encodeFunctionData(functionFragment: "contractIndex", values: [string]): string;
14
16
  encodeFunctionData(functionFragment: "nameOf", values: [BigNumberish]): string;
15
17
  decodeFunctionResult(functionFragment: "addressOf", data: BytesLike): Result;
16
18
  decodeFunctionResult(functionFragment: "contractCount", data: BytesLike): Result;
19
+ decodeFunctionResult(functionFragment: "contractIndex", data: BytesLike): Result;
17
20
  decodeFunctionResult(functionFragment: "nameOf", data: BytesLike): Result;
18
21
  events: {};
19
22
  }
@@ -34,25 +37,30 @@ export interface ISupportedContracts extends BaseContract {
34
37
  functions: {
35
38
  addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
36
39
  contractCount(overrides?: CallOverrides): Promise<[BigNumber]>;
40
+ contractIndex(arg0: string, overrides?: CallOverrides): Promise<[number]>;
37
41
  nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
38
42
  };
39
43
  addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
40
44
  contractCount(overrides?: CallOverrides): Promise<BigNumber>;
45
+ contractIndex(arg0: string, overrides?: CallOverrides): Promise<number>;
41
46
  nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
42
47
  callStatic: {
43
48
  addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
44
49
  contractCount(overrides?: CallOverrides): Promise<BigNumber>;
50
+ contractIndex(arg0: string, overrides?: CallOverrides): Promise<number>;
45
51
  nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<string>;
46
52
  };
47
53
  filters: {};
48
54
  estimateGas: {
49
55
  addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
50
56
  contractCount(overrides?: CallOverrides): Promise<BigNumber>;
57
+ contractIndex(arg0: string, overrides?: CallOverrides): Promise<BigNumber>;
51
58
  nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
52
59
  };
53
60
  populateTransaction: {
54
61
  addressOf(c: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
55
62
  contractCount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
63
+ contractIndex(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
56
64
  nameOf(c: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
57
65
  };
58
66
  }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,35 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IwstETHGetters, IwstETHGettersInterface } from "../../../../../contracts/integrations/lido/IwstETH.sol/IwstETHGetters";
4
+ export declare class IwstETHGetters__factory {
5
+ static readonly abi: ({
6
+ anonymous: boolean;
7
+ inputs: {
8
+ indexed: boolean;
9
+ internalType: string;
10
+ name: string;
11
+ type: string;
12
+ }[];
13
+ name: string;
14
+ type: string;
15
+ outputs?: undefined;
16
+ stateMutability?: undefined;
17
+ } | {
18
+ inputs: {
19
+ internalType: string;
20
+ name: string;
21
+ type: string;
22
+ }[];
23
+ name: string;
24
+ outputs: {
25
+ internalType: string;
26
+ name: string;
27
+ type: string;
28
+ }[];
29
+ stateMutability: string;
30
+ type: string;
31
+ anonymous?: undefined;
32
+ })[];
33
+ static createInterface(): IwstETHGettersInterface;
34
+ static connect(address: string, signerOrProvider: Signer | Provider): IwstETHGetters;
35
+ }
@@ -0,0 +1,321 @@
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.IwstETHGetters__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "owner",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: true,
20
+ internalType: "address",
21
+ name: "spender",
22
+ type: "address",
23
+ },
24
+ {
25
+ indexed: false,
26
+ internalType: "uint256",
27
+ name: "value",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "Approval",
32
+ type: "event",
33
+ },
34
+ {
35
+ anonymous: false,
36
+ inputs: [
37
+ {
38
+ indexed: true,
39
+ internalType: "address",
40
+ name: "from",
41
+ type: "address",
42
+ },
43
+ {
44
+ indexed: true,
45
+ internalType: "address",
46
+ name: "to",
47
+ type: "address",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "uint256",
52
+ name: "value",
53
+ type: "uint256",
54
+ },
55
+ ],
56
+ name: "Transfer",
57
+ type: "event",
58
+ },
59
+ {
60
+ inputs: [
61
+ {
62
+ internalType: "address",
63
+ name: "owner",
64
+ type: "address",
65
+ },
66
+ {
67
+ internalType: "address",
68
+ name: "spender",
69
+ type: "address",
70
+ },
71
+ ],
72
+ name: "allowance",
73
+ outputs: [
74
+ {
75
+ internalType: "uint256",
76
+ name: "",
77
+ type: "uint256",
78
+ },
79
+ ],
80
+ stateMutability: "view",
81
+ type: "function",
82
+ },
83
+ {
84
+ inputs: [
85
+ {
86
+ internalType: "address",
87
+ name: "spender",
88
+ type: "address",
89
+ },
90
+ {
91
+ internalType: "uint256",
92
+ name: "amount",
93
+ type: "uint256",
94
+ },
95
+ ],
96
+ name: "approve",
97
+ outputs: [
98
+ {
99
+ internalType: "bool",
100
+ name: "",
101
+ type: "bool",
102
+ },
103
+ ],
104
+ stateMutability: "nonpayable",
105
+ type: "function",
106
+ },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: "address",
111
+ name: "account",
112
+ type: "address",
113
+ },
114
+ ],
115
+ name: "balanceOf",
116
+ outputs: [
117
+ {
118
+ internalType: "uint256",
119
+ name: "",
120
+ type: "uint256",
121
+ },
122
+ ],
123
+ stateMutability: "view",
124
+ type: "function",
125
+ },
126
+ {
127
+ inputs: [],
128
+ name: "decimals",
129
+ outputs: [
130
+ {
131
+ internalType: "uint8",
132
+ name: "",
133
+ type: "uint8",
134
+ },
135
+ ],
136
+ stateMutability: "view",
137
+ type: "function",
138
+ },
139
+ {
140
+ inputs: [
141
+ {
142
+ internalType: "uint256",
143
+ name: "_wstETHAmount",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ name: "getStETHByWstETH",
148
+ outputs: [
149
+ {
150
+ internalType: "uint256",
151
+ name: "",
152
+ type: "uint256",
153
+ },
154
+ ],
155
+ stateMutability: "view",
156
+ type: "function",
157
+ },
158
+ {
159
+ inputs: [
160
+ {
161
+ internalType: "uint256",
162
+ name: "_stETHAmount",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ name: "getWstETHByStETH",
167
+ outputs: [
168
+ {
169
+ internalType: "uint256",
170
+ name: "",
171
+ type: "uint256",
172
+ },
173
+ ],
174
+ stateMutability: "view",
175
+ type: "function",
176
+ },
177
+ {
178
+ inputs: [],
179
+ name: "name",
180
+ outputs: [
181
+ {
182
+ internalType: "string",
183
+ name: "",
184
+ type: "string",
185
+ },
186
+ ],
187
+ stateMutability: "view",
188
+ type: "function",
189
+ },
190
+ {
191
+ inputs: [],
192
+ name: "stETH",
193
+ outputs: [
194
+ {
195
+ internalType: "address",
196
+ name: "",
197
+ type: "address",
198
+ },
199
+ ],
200
+ stateMutability: "view",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [],
205
+ name: "stEthPerToken",
206
+ outputs: [
207
+ {
208
+ internalType: "uint256",
209
+ name: "",
210
+ type: "uint256",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [],
218
+ name: "symbol",
219
+ outputs: [
220
+ {
221
+ internalType: "string",
222
+ name: "",
223
+ type: "string",
224
+ },
225
+ ],
226
+ stateMutability: "view",
227
+ type: "function",
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: "tokensPerStEth",
232
+ outputs: [
233
+ {
234
+ internalType: "uint256",
235
+ name: "",
236
+ type: "uint256",
237
+ },
238
+ ],
239
+ stateMutability: "view",
240
+ type: "function",
241
+ },
242
+ {
243
+ inputs: [],
244
+ name: "totalSupply",
245
+ outputs: [
246
+ {
247
+ internalType: "uint256",
248
+ name: "",
249
+ type: "uint256",
250
+ },
251
+ ],
252
+ stateMutability: "view",
253
+ type: "function",
254
+ },
255
+ {
256
+ inputs: [
257
+ {
258
+ internalType: "address",
259
+ name: "recipient",
260
+ type: "address",
261
+ },
262
+ {
263
+ internalType: "uint256",
264
+ name: "amount",
265
+ type: "uint256",
266
+ },
267
+ ],
268
+ name: "transfer",
269
+ outputs: [
270
+ {
271
+ internalType: "bool",
272
+ name: "",
273
+ type: "bool",
274
+ },
275
+ ],
276
+ stateMutability: "nonpayable",
277
+ type: "function",
278
+ },
279
+ {
280
+ inputs: [
281
+ {
282
+ internalType: "address",
283
+ name: "sender",
284
+ type: "address",
285
+ },
286
+ {
287
+ internalType: "address",
288
+ name: "recipient",
289
+ type: "address",
290
+ },
291
+ {
292
+ internalType: "uint256",
293
+ name: "amount",
294
+ type: "uint256",
295
+ },
296
+ ],
297
+ name: "transferFrom",
298
+ outputs: [
299
+ {
300
+ internalType: "bool",
301
+ name: "",
302
+ type: "bool",
303
+ },
304
+ ],
305
+ stateMutability: "nonpayable",
306
+ type: "function",
307
+ },
308
+ ];
309
+ var IwstETHGetters__factory = /** @class */ (function () {
310
+ function IwstETHGetters__factory() {
311
+ }
312
+ IwstETHGetters__factory.createInterface = function () {
313
+ return new ethers_1.utils.Interface(_abi);
314
+ };
315
+ IwstETHGetters__factory.connect = function (address, signerOrProvider) {
316
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
317
+ };
318
+ IwstETHGetters__factory.abi = _abi;
319
+ return IwstETHGetters__factory;
320
+ }());
321
+ exports.IwstETHGetters__factory = IwstETHGetters__factory;