@pendle/core-v2 4.0.6 → 4.1.0
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/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol/PendleWEEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol/PendleWEEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.json +20 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol/PendleL2LRTSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol/PendleL2LRTSY.json +1054 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol/PendleEzETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol/PendleEzETHSY.json +1141 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol/PendleRswETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol/PendleRswETHSY.json +1044 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.json +2 -2
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +0 -45
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +0 -69
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.json +0 -26
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -140
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoOracle.sol/IRenzoOracle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoOracle.sol/IRenzoOracle.json +64 -0
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoRestakeManager.sol/IRenzoRestakeManager.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoRestakeManager.sol/IRenzoRestakeManager.json +102 -0
- package/build/artifacts/contracts/interfaces/Swell/IRswETH.sol/IRswETH.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Swell/IRswETH.sol/IRswETH.json +44 -0
- package/build/artifacts/contracts/interfaces/Swell/ISwETH.sol/ISwETH.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{ISwETH.sol → Swell/ISwETH.sol}/ISwETH.json +8 -8
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +30 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +307 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +409 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +1352 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +247 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +202 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +93 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.json +10 -0
- package/build/artifacts/contracts/oracles/PendleRedStoneRateOracle.sol/PendleRedStoneRateOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/PendleRedStoneRateOracle.sol/PendleRedStoneRateOracle.json +66 -0
- package/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol +1 -1
- package/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol +1 -1
- package/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol +18 -9
- package/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol +93 -0
- package/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol +139 -0
- package/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol +101 -0
- package/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol +1 -1
- package/contracts/interfaces/IPActionMarketCoreStatic.sol +8 -17
- package/contracts/interfaces/IPActionMintRedeemStatic.sol +4 -16
- package/contracts/interfaces/IPActionStorageStatic.sol +0 -4
- package/contracts/interfaces/Renzo/IRenzoOracle.sol +8 -0
- package/contracts/interfaces/Renzo/IRenzoRestakeManager.sol +14 -0
- package/contracts/interfaces/Swell/IRswETH.sol +10 -0
- package/contracts/interfaces/{ISwETH.sol → Swell/ISwETH.sol} +2 -2
- package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +19 -0
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +109 -0
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +182 -0
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +672 -0
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +116 -0
- package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +64 -0
- package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +55 -0
- package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +20 -0
- package/contracts/oracles/PendleRedStoneRateOracle.sol +23 -0
- package/deployments/1-markets/EZETH-JUNE2024.json +11 -0
- package/deployments/1-markets/RSETH-KELP-JUNE2024.json +11 -0
- package/deployments/42161-markets/RSETH-APR2024-ARBITRUM.json +11 -0
- package/deployments/42161-markets/WEETH-APR2024.json +11 -0
- package/deployments/merkle-distribution/2024-01-25.json +9615 -0
- package/package.json +1 -1
- package/typechain-types/IPActionMarketCoreStatic.ts +18 -63
- package/typechain-types/IPActionMintRedeemStatic.ts +10 -102
- package/typechain-types/IPActionStorageStatic.ts +0 -55
- package/typechain-types/IPRouterStatic.ts +28 -220
- package/typechain-types/IRenzoOracle.ts +152 -0
- package/typechain-types/IRenzoRestakeManager.ts +219 -0
- package/typechain-types/IRswETH.ts +138 -0
- package/typechain-types/ISwETH.ts +24 -9
- package/typechain-types/PendleEzETHSY.ts +1471 -0
- package/typechain-types/PendleL2LRTSY.ts +1323 -0
- package/typechain-types/PendleRedStoneRateOracle.ts +113 -0
- package/typechain-types/PendleRsETHSY.ts +21 -0
- package/typechain-types/PendleRswETHSY.ts +1294 -0
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +0 -45
- package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +0 -69
- package/typechain-types/factories/IPActionStorageStatic__factory.ts +0 -26
- package/typechain-types/factories/IPRouterStatic__factory.ts +0 -140
- package/typechain-types/factories/IRenzoOracle__factory.ts +76 -0
- package/typechain-types/factories/IRenzoRestakeManager__factory.ts +121 -0
- package/typechain-types/factories/IRswETH__factory.ts +56 -0
- package/typechain-types/factories/ISwETH__factory.ts +7 -7
- package/typechain-types/factories/PendleAaveV3SY__factory.ts +1 -1
- package/typechain-types/factories/PendleEzETHSY__factory.ts +1218 -0
- package/typechain-types/factories/PendleL2LRTSY__factory.ts +1139 -0
- package/typechain-types/factories/PendleRedStoneRateOracle__factory.ts +142 -0
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRsETHSY__factory.ts +23 -1
- package/typechain-types/factories/PendleRswETHSY__factory.ts +1117 -0
- package/typechain-types/factories/PendleWEEthSY__factory.ts +1 -1
- package/typechain-types/factories/SwETHSY__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +135 -0
- package/typechain-types/index.ts +28 -0
- package/build/artifacts/contracts/interfaces/ISwETH.sol/ISwETH.dbg.json +0 -4
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
PopulatedTransaction,
|
|
11
|
+
Signer,
|
|
12
|
+
utils,
|
|
13
|
+
} from "ethers";
|
|
14
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
15
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
16
|
+
import type {
|
|
17
|
+
TypedEventFilter,
|
|
18
|
+
TypedEvent,
|
|
19
|
+
TypedListener,
|
|
20
|
+
OnEvent,
|
|
21
|
+
} from "./common";
|
|
22
|
+
|
|
23
|
+
export interface IRenzoOracleInterface extends utils.Interface {
|
|
24
|
+
contractName: "IRenzoOracle";
|
|
25
|
+
functions: {
|
|
26
|
+
"calculateMintAmount(uint256,uint256,uint256)": FunctionFragment;
|
|
27
|
+
"lookupTokenValue(address,uint256)": FunctionFragment;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
encodeFunctionData(
|
|
31
|
+
functionFragment: "calculateMintAmount",
|
|
32
|
+
values: [BigNumberish, BigNumberish, BigNumberish]
|
|
33
|
+
): string;
|
|
34
|
+
encodeFunctionData(
|
|
35
|
+
functionFragment: "lookupTokenValue",
|
|
36
|
+
values: [string, BigNumberish]
|
|
37
|
+
): string;
|
|
38
|
+
|
|
39
|
+
decodeFunctionResult(
|
|
40
|
+
functionFragment: "calculateMintAmount",
|
|
41
|
+
data: BytesLike
|
|
42
|
+
): Result;
|
|
43
|
+
decodeFunctionResult(
|
|
44
|
+
functionFragment: "lookupTokenValue",
|
|
45
|
+
data: BytesLike
|
|
46
|
+
): Result;
|
|
47
|
+
|
|
48
|
+
events: {};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface IRenzoOracle extends BaseContract {
|
|
52
|
+
contractName: "IRenzoOracle";
|
|
53
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
54
|
+
attach(addressOrName: string): this;
|
|
55
|
+
deployed(): Promise<this>;
|
|
56
|
+
|
|
57
|
+
interface: IRenzoOracleInterface;
|
|
58
|
+
|
|
59
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
60
|
+
event: TypedEventFilter<TEvent>,
|
|
61
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
62
|
+
toBlock?: string | number | undefined
|
|
63
|
+
): Promise<Array<TEvent>>;
|
|
64
|
+
|
|
65
|
+
listeners<TEvent extends TypedEvent>(
|
|
66
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
67
|
+
): Array<TypedListener<TEvent>>;
|
|
68
|
+
listeners(eventName?: string): Array<Listener>;
|
|
69
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
70
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
71
|
+
): this;
|
|
72
|
+
removeAllListeners(eventName?: string): this;
|
|
73
|
+
off: OnEvent<this>;
|
|
74
|
+
on: OnEvent<this>;
|
|
75
|
+
once: OnEvent<this>;
|
|
76
|
+
removeListener: OnEvent<this>;
|
|
77
|
+
|
|
78
|
+
functions: {
|
|
79
|
+
calculateMintAmount(
|
|
80
|
+
tvl: BigNumberish,
|
|
81
|
+
value: BigNumberish,
|
|
82
|
+
supply: BigNumberish,
|
|
83
|
+
overrides?: CallOverrides
|
|
84
|
+
): Promise<[BigNumber]>;
|
|
85
|
+
|
|
86
|
+
lookupTokenValue(
|
|
87
|
+
token: string,
|
|
88
|
+
amount: BigNumberish,
|
|
89
|
+
overrides?: CallOverrides
|
|
90
|
+
): Promise<[BigNumber]>;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
calculateMintAmount(
|
|
94
|
+
tvl: BigNumberish,
|
|
95
|
+
value: BigNumberish,
|
|
96
|
+
supply: BigNumberish,
|
|
97
|
+
overrides?: CallOverrides
|
|
98
|
+
): Promise<BigNumber>;
|
|
99
|
+
|
|
100
|
+
lookupTokenValue(
|
|
101
|
+
token: string,
|
|
102
|
+
amount: BigNumberish,
|
|
103
|
+
overrides?: CallOverrides
|
|
104
|
+
): Promise<BigNumber>;
|
|
105
|
+
|
|
106
|
+
callStatic: {
|
|
107
|
+
calculateMintAmount(
|
|
108
|
+
tvl: BigNumberish,
|
|
109
|
+
value: BigNumberish,
|
|
110
|
+
supply: BigNumberish,
|
|
111
|
+
overrides?: CallOverrides
|
|
112
|
+
): Promise<BigNumber>;
|
|
113
|
+
|
|
114
|
+
lookupTokenValue(
|
|
115
|
+
token: string,
|
|
116
|
+
amount: BigNumberish,
|
|
117
|
+
overrides?: CallOverrides
|
|
118
|
+
): Promise<BigNumber>;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
filters: {};
|
|
122
|
+
|
|
123
|
+
estimateGas: {
|
|
124
|
+
calculateMintAmount(
|
|
125
|
+
tvl: BigNumberish,
|
|
126
|
+
value: BigNumberish,
|
|
127
|
+
supply: BigNumberish,
|
|
128
|
+
overrides?: CallOverrides
|
|
129
|
+
): Promise<BigNumber>;
|
|
130
|
+
|
|
131
|
+
lookupTokenValue(
|
|
132
|
+
token: string,
|
|
133
|
+
amount: BigNumberish,
|
|
134
|
+
overrides?: CallOverrides
|
|
135
|
+
): Promise<BigNumber>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
populateTransaction: {
|
|
139
|
+
calculateMintAmount(
|
|
140
|
+
tvl: BigNumberish,
|
|
141
|
+
value: BigNumberish,
|
|
142
|
+
supply: BigNumberish,
|
|
143
|
+
overrides?: CallOverrides
|
|
144
|
+
): Promise<PopulatedTransaction>;
|
|
145
|
+
|
|
146
|
+
lookupTokenValue(
|
|
147
|
+
token: string,
|
|
148
|
+
amount: BigNumberish,
|
|
149
|
+
overrides?: CallOverrides
|
|
150
|
+
): Promise<PopulatedTransaction>;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PayableOverrides,
|
|
13
|
+
PopulatedTransaction,
|
|
14
|
+
Signer,
|
|
15
|
+
utils,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
18
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
19
|
+
import type {
|
|
20
|
+
TypedEventFilter,
|
|
21
|
+
TypedEvent,
|
|
22
|
+
TypedListener,
|
|
23
|
+
OnEvent,
|
|
24
|
+
} from "./common";
|
|
25
|
+
|
|
26
|
+
export interface IRenzoRestakeManagerInterface extends utils.Interface {
|
|
27
|
+
contractName: "IRenzoRestakeManager";
|
|
28
|
+
functions: {
|
|
29
|
+
"calculateTVLs()": FunctionFragment;
|
|
30
|
+
"collateralTokens(uint256)": FunctionFragment;
|
|
31
|
+
"deposit(address,uint256,uint256)": FunctionFragment;
|
|
32
|
+
"depositETH(uint256)": FunctionFragment;
|
|
33
|
+
"renzoOracle()": FunctionFragment;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
encodeFunctionData(
|
|
37
|
+
functionFragment: "calculateTVLs",
|
|
38
|
+
values?: undefined
|
|
39
|
+
): string;
|
|
40
|
+
encodeFunctionData(
|
|
41
|
+
functionFragment: "collateralTokens",
|
|
42
|
+
values: [BigNumberish]
|
|
43
|
+
): string;
|
|
44
|
+
encodeFunctionData(
|
|
45
|
+
functionFragment: "deposit",
|
|
46
|
+
values: [string, BigNumberish, BigNumberish]
|
|
47
|
+
): string;
|
|
48
|
+
encodeFunctionData(
|
|
49
|
+
functionFragment: "depositETH",
|
|
50
|
+
values: [BigNumberish]
|
|
51
|
+
): string;
|
|
52
|
+
encodeFunctionData(
|
|
53
|
+
functionFragment: "renzoOracle",
|
|
54
|
+
values?: undefined
|
|
55
|
+
): string;
|
|
56
|
+
|
|
57
|
+
decodeFunctionResult(
|
|
58
|
+
functionFragment: "calculateTVLs",
|
|
59
|
+
data: BytesLike
|
|
60
|
+
): Result;
|
|
61
|
+
decodeFunctionResult(
|
|
62
|
+
functionFragment: "collateralTokens",
|
|
63
|
+
data: BytesLike
|
|
64
|
+
): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "depositETH", data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(
|
|
68
|
+
functionFragment: "renzoOracle",
|
|
69
|
+
data: BytesLike
|
|
70
|
+
): Result;
|
|
71
|
+
|
|
72
|
+
events: {};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface IRenzoRestakeManager extends BaseContract {
|
|
76
|
+
contractName: "IRenzoRestakeManager";
|
|
77
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
78
|
+
attach(addressOrName: string): this;
|
|
79
|
+
deployed(): Promise<this>;
|
|
80
|
+
|
|
81
|
+
interface: IRenzoRestakeManagerInterface;
|
|
82
|
+
|
|
83
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
84
|
+
event: TypedEventFilter<TEvent>,
|
|
85
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
86
|
+
toBlock?: string | number | undefined
|
|
87
|
+
): Promise<Array<TEvent>>;
|
|
88
|
+
|
|
89
|
+
listeners<TEvent extends TypedEvent>(
|
|
90
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
91
|
+
): Array<TypedListener<TEvent>>;
|
|
92
|
+
listeners(eventName?: string): Array<Listener>;
|
|
93
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
94
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
95
|
+
): this;
|
|
96
|
+
removeAllListeners(eventName?: string): this;
|
|
97
|
+
off: OnEvent<this>;
|
|
98
|
+
on: OnEvent<this>;
|
|
99
|
+
once: OnEvent<this>;
|
|
100
|
+
removeListener: OnEvent<this>;
|
|
101
|
+
|
|
102
|
+
functions: {
|
|
103
|
+
calculateTVLs(
|
|
104
|
+
overrides?: CallOverrides
|
|
105
|
+
): Promise<[BigNumber[][], BigNumber[], BigNumber]>;
|
|
106
|
+
|
|
107
|
+
collateralTokens(
|
|
108
|
+
i: BigNumberish,
|
|
109
|
+
overrides?: CallOverrides
|
|
110
|
+
): Promise<[string]>;
|
|
111
|
+
|
|
112
|
+
deposit(
|
|
113
|
+
_collateralToken: string,
|
|
114
|
+
_amount: BigNumberish,
|
|
115
|
+
_referralId: BigNumberish,
|
|
116
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
117
|
+
): Promise<ContractTransaction>;
|
|
118
|
+
|
|
119
|
+
depositETH(
|
|
120
|
+
_referralId: BigNumberish,
|
|
121
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
122
|
+
): Promise<ContractTransaction>;
|
|
123
|
+
|
|
124
|
+
renzoOracle(overrides?: CallOverrides): Promise<[string]>;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
calculateTVLs(
|
|
128
|
+
overrides?: CallOverrides
|
|
129
|
+
): Promise<[BigNumber[][], BigNumber[], BigNumber]>;
|
|
130
|
+
|
|
131
|
+
collateralTokens(i: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
132
|
+
|
|
133
|
+
deposit(
|
|
134
|
+
_collateralToken: string,
|
|
135
|
+
_amount: BigNumberish,
|
|
136
|
+
_referralId: BigNumberish,
|
|
137
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
138
|
+
): Promise<ContractTransaction>;
|
|
139
|
+
|
|
140
|
+
depositETH(
|
|
141
|
+
_referralId: BigNumberish,
|
|
142
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
143
|
+
): Promise<ContractTransaction>;
|
|
144
|
+
|
|
145
|
+
renzoOracle(overrides?: CallOverrides): Promise<string>;
|
|
146
|
+
|
|
147
|
+
callStatic: {
|
|
148
|
+
calculateTVLs(
|
|
149
|
+
overrides?: CallOverrides
|
|
150
|
+
): Promise<[BigNumber[][], BigNumber[], BigNumber]>;
|
|
151
|
+
|
|
152
|
+
collateralTokens(
|
|
153
|
+
i: BigNumberish,
|
|
154
|
+
overrides?: CallOverrides
|
|
155
|
+
): Promise<string>;
|
|
156
|
+
|
|
157
|
+
deposit(
|
|
158
|
+
_collateralToken: string,
|
|
159
|
+
_amount: BigNumberish,
|
|
160
|
+
_referralId: BigNumberish,
|
|
161
|
+
overrides?: CallOverrides
|
|
162
|
+
): Promise<void>;
|
|
163
|
+
|
|
164
|
+
depositETH(
|
|
165
|
+
_referralId: BigNumberish,
|
|
166
|
+
overrides?: CallOverrides
|
|
167
|
+
): Promise<void>;
|
|
168
|
+
|
|
169
|
+
renzoOracle(overrides?: CallOverrides): Promise<string>;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
filters: {};
|
|
173
|
+
|
|
174
|
+
estimateGas: {
|
|
175
|
+
calculateTVLs(overrides?: CallOverrides): Promise<BigNumber>;
|
|
176
|
+
|
|
177
|
+
collateralTokens(
|
|
178
|
+
i: BigNumberish,
|
|
179
|
+
overrides?: CallOverrides
|
|
180
|
+
): Promise<BigNumber>;
|
|
181
|
+
|
|
182
|
+
deposit(
|
|
183
|
+
_collateralToken: string,
|
|
184
|
+
_amount: BigNumberish,
|
|
185
|
+
_referralId: BigNumberish,
|
|
186
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
187
|
+
): Promise<BigNumber>;
|
|
188
|
+
|
|
189
|
+
depositETH(
|
|
190
|
+
_referralId: BigNumberish,
|
|
191
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
192
|
+
): Promise<BigNumber>;
|
|
193
|
+
|
|
194
|
+
renzoOracle(overrides?: CallOverrides): Promise<BigNumber>;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
populateTransaction: {
|
|
198
|
+
calculateTVLs(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
199
|
+
|
|
200
|
+
collateralTokens(
|
|
201
|
+
i: BigNumberish,
|
|
202
|
+
overrides?: CallOverrides
|
|
203
|
+
): Promise<PopulatedTransaction>;
|
|
204
|
+
|
|
205
|
+
deposit(
|
|
206
|
+
_collateralToken: string,
|
|
207
|
+
_amount: BigNumberish,
|
|
208
|
+
_referralId: BigNumberish,
|
|
209
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
210
|
+
): Promise<PopulatedTransaction>;
|
|
211
|
+
|
|
212
|
+
depositETH(
|
|
213
|
+
_referralId: BigNumberish,
|
|
214
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
215
|
+
): Promise<PopulatedTransaction>;
|
|
216
|
+
|
|
217
|
+
renzoOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
ContractTransaction,
|
|
10
|
+
PayableOverrides,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
Signer,
|
|
13
|
+
utils,
|
|
14
|
+
} from "ethers";
|
|
15
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
16
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
17
|
+
import type {
|
|
18
|
+
TypedEventFilter,
|
|
19
|
+
TypedEvent,
|
|
20
|
+
TypedListener,
|
|
21
|
+
OnEvent,
|
|
22
|
+
} from "./common";
|
|
23
|
+
|
|
24
|
+
export interface IRswETHInterface extends utils.Interface {
|
|
25
|
+
contractName: "IRswETH";
|
|
26
|
+
functions: {
|
|
27
|
+
"deposit()": FunctionFragment;
|
|
28
|
+
"depositWithReferral(address)": FunctionFragment;
|
|
29
|
+
"getRate()": FunctionFragment;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(functionFragment: "deposit", values?: undefined): string;
|
|
33
|
+
encodeFunctionData(
|
|
34
|
+
functionFragment: "depositWithReferral",
|
|
35
|
+
values: [string]
|
|
36
|
+
): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "getRate", values?: undefined): string;
|
|
38
|
+
|
|
39
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
40
|
+
decodeFunctionResult(
|
|
41
|
+
functionFragment: "depositWithReferral",
|
|
42
|
+
data: BytesLike
|
|
43
|
+
): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "getRate", data: BytesLike): Result;
|
|
45
|
+
|
|
46
|
+
events: {};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface IRswETH extends BaseContract {
|
|
50
|
+
contractName: "IRswETH";
|
|
51
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
52
|
+
attach(addressOrName: string): this;
|
|
53
|
+
deployed(): Promise<this>;
|
|
54
|
+
|
|
55
|
+
interface: IRswETHInterface;
|
|
56
|
+
|
|
57
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
58
|
+
event: TypedEventFilter<TEvent>,
|
|
59
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
60
|
+
toBlock?: string | number | undefined
|
|
61
|
+
): Promise<Array<TEvent>>;
|
|
62
|
+
|
|
63
|
+
listeners<TEvent extends TypedEvent>(
|
|
64
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
65
|
+
): Array<TypedListener<TEvent>>;
|
|
66
|
+
listeners(eventName?: string): Array<Listener>;
|
|
67
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
68
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
69
|
+
): this;
|
|
70
|
+
removeAllListeners(eventName?: string): this;
|
|
71
|
+
off: OnEvent<this>;
|
|
72
|
+
on: OnEvent<this>;
|
|
73
|
+
once: OnEvent<this>;
|
|
74
|
+
removeListener: OnEvent<this>;
|
|
75
|
+
|
|
76
|
+
functions: {
|
|
77
|
+
deposit(
|
|
78
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
79
|
+
): Promise<ContractTransaction>;
|
|
80
|
+
|
|
81
|
+
depositWithReferral(
|
|
82
|
+
referral: string,
|
|
83
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
84
|
+
): Promise<ContractTransaction>;
|
|
85
|
+
|
|
86
|
+
getRate(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
deposit(
|
|
90
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
91
|
+
): Promise<ContractTransaction>;
|
|
92
|
+
|
|
93
|
+
depositWithReferral(
|
|
94
|
+
referral: string,
|
|
95
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
96
|
+
): Promise<ContractTransaction>;
|
|
97
|
+
|
|
98
|
+
getRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
99
|
+
|
|
100
|
+
callStatic: {
|
|
101
|
+
deposit(overrides?: CallOverrides): Promise<void>;
|
|
102
|
+
|
|
103
|
+
depositWithReferral(
|
|
104
|
+
referral: string,
|
|
105
|
+
overrides?: CallOverrides
|
|
106
|
+
): Promise<void>;
|
|
107
|
+
|
|
108
|
+
getRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
filters: {};
|
|
112
|
+
|
|
113
|
+
estimateGas: {
|
|
114
|
+
deposit(
|
|
115
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
116
|
+
): Promise<BigNumber>;
|
|
117
|
+
|
|
118
|
+
depositWithReferral(
|
|
119
|
+
referral: string,
|
|
120
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
121
|
+
): Promise<BigNumber>;
|
|
122
|
+
|
|
123
|
+
getRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
populateTransaction: {
|
|
127
|
+
deposit(
|
|
128
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
129
|
+
): Promise<PopulatedTransaction>;
|
|
130
|
+
|
|
131
|
+
depositWithReferral(
|
|
132
|
+
referral: string,
|
|
133
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
134
|
+
): Promise<PopulatedTransaction>;
|
|
135
|
+
|
|
136
|
+
getRate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
@@ -25,20 +25,20 @@ export interface ISwETHInterface extends utils.Interface {
|
|
|
25
25
|
contractName: "ISwETH";
|
|
26
26
|
functions: {
|
|
27
27
|
"deposit()": FunctionFragment;
|
|
28
|
-
"
|
|
28
|
+
"depositWithReferral(address)": FunctionFragment;
|
|
29
29
|
"getRate()": FunctionFragment;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
encodeFunctionData(functionFragment: "deposit", values?: undefined): string;
|
|
33
33
|
encodeFunctionData(
|
|
34
|
-
functionFragment: "
|
|
35
|
-
values
|
|
34
|
+
functionFragment: "depositWithReferral",
|
|
35
|
+
values: [string]
|
|
36
36
|
): string;
|
|
37
37
|
encodeFunctionData(functionFragment: "getRate", values?: undefined): string;
|
|
38
38
|
|
|
39
39
|
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
|
40
40
|
decodeFunctionResult(
|
|
41
|
-
functionFragment: "
|
|
41
|
+
functionFragment: "depositWithReferral",
|
|
42
42
|
data: BytesLike
|
|
43
43
|
): Result;
|
|
44
44
|
decodeFunctionResult(functionFragment: "getRate", data: BytesLike): Result;
|
|
@@ -78,7 +78,10 @@ export interface ISwETH extends BaseContract {
|
|
|
78
78
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
79
79
|
): Promise<ContractTransaction>;
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
depositWithReferral(
|
|
82
|
+
referral: string,
|
|
83
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
84
|
+
): Promise<ContractTransaction>;
|
|
82
85
|
|
|
83
86
|
getRate(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
84
87
|
};
|
|
@@ -87,14 +90,20 @@ export interface ISwETH extends BaseContract {
|
|
|
87
90
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
88
91
|
): Promise<ContractTransaction>;
|
|
89
92
|
|
|
90
|
-
|
|
93
|
+
depositWithReferral(
|
|
94
|
+
referral: string,
|
|
95
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
96
|
+
): Promise<ContractTransaction>;
|
|
91
97
|
|
|
92
98
|
getRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
93
99
|
|
|
94
100
|
callStatic: {
|
|
95
101
|
deposit(overrides?: CallOverrides): Promise<void>;
|
|
96
102
|
|
|
97
|
-
|
|
103
|
+
depositWithReferral(
|
|
104
|
+
referral: string,
|
|
105
|
+
overrides?: CallOverrides
|
|
106
|
+
): Promise<void>;
|
|
98
107
|
|
|
99
108
|
getRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
100
109
|
};
|
|
@@ -106,7 +115,10 @@ export interface ISwETH extends BaseContract {
|
|
|
106
115
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
107
116
|
): Promise<BigNumber>;
|
|
108
117
|
|
|
109
|
-
|
|
118
|
+
depositWithReferral(
|
|
119
|
+
referral: string,
|
|
120
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
121
|
+
): Promise<BigNumber>;
|
|
110
122
|
|
|
111
123
|
getRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
112
124
|
};
|
|
@@ -116,7 +128,10 @@ export interface ISwETH extends BaseContract {
|
|
|
116
128
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
117
129
|
): Promise<PopulatedTransaction>;
|
|
118
130
|
|
|
119
|
-
|
|
131
|
+
depositWithReferral(
|
|
132
|
+
referral: string,
|
|
133
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
134
|
+
): Promise<PopulatedTransaction>;
|
|
120
135
|
|
|
121
136
|
getRate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
122
137
|
};
|