@pendle/core-v2 6.8.1 → 6.10.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/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +244 -249
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +244 -249
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +2 -2
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +246 -251
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.json +615 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.json +280 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.json +30 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.json +322 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.json +398 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.json +651 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.json +298 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.json +959 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.json +30 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.json +53 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.json +933 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/interfaces/IPPTLooper.sol +2 -4
- package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +6 -6
- package/contracts/pt-looping/PendlePTLooper.sol +4 -2
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol +20 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol +85 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol +180 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol +12 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol +72 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol +88 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol +25 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol +104 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol +105 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol +432 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol +10 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol +26 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol +149 -0
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +6 -0
- package/deployments/1-offchain-helper.json +2 -1
- package/deployments/143-core.json +7 -1
- package/deployments/143-offchain-helper.json +2 -1
- package/deployments/196-core.json +49 -0
- package/deployments/196-offchain-helper.json +12 -0
- package/deployments/42161-core.json +4 -1
- package/deployments/42161-offchain-helper.json +2 -1
- package/deployments/4663-core.json +48 -0
- package/deployments/4663-offchain-helper.json +12 -0
- package/deployments/56-offchain-helper.json +2 -1
- package/deployments/8453-offchain-helper.json +2 -1
- package/deployments/9745-offchain-helper.json +2 -1
- package/deployments/999-offchain-helper.json +2 -1
- package/package.json +1 -1
- package/typechain-types/AaveV4MoneyMarket.ts +573 -0
- package/typechain-types/AaveV4MoneyMarketView.ts +362 -0
- package/typechain-types/EulerMoneyMarket.ts +599 -0
- package/typechain-types/EulerMoneyMarketView.ts +375 -0
- package/typechain-types/IAaveOracle.ts +17 -149
- package/typechain-types/IEVC.ts +1647 -0
- package/typechain-types/IEulerFactory.ts +94 -0
- package/typechain-types/IEulerPriceOracle.ts +123 -0
- package/typechain-types/IEulerVault.ts +1298 -0
- package/typechain-types/IHubBase.ts +452 -0
- package/typechain-types/IPPTLooper.ts +68 -68
- package/typechain-types/ISpoke.ts +577 -0
- package/typechain-types/PTLooperBase.ts +68 -68
- package/typechain-types/PendlePTLooper.ts +68 -68
- package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/AaveMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/AaveV4MoneyMarketView__factory.ts +349 -0
- package/typechain-types/factories/AaveV4MoneyMarket__factory.ts +673 -0
- package/typechain-types/factories/EulerMoneyMarketView__factory.ts +371 -0
- package/typechain-types/factories/EulerMoneyMarket__factory.ts +720 -0
- package/typechain-types/factories/IAaveOracle__factory.ts +3 -93
- package/typechain-types/factories/IEVC__factory.ts +968 -0
- package/typechain-types/factories/IEulerFactory__factory.ts +42 -0
- package/typechain-types/factories/IEulerPriceOracle__factory.ts +68 -0
- package/typechain-types/factories/IEulerVault__factory.ts +945 -0
- package/typechain-types/factories/IHubBase__factory.ts +334 -0
- package/typechain-types/factories/IPPTLooper__factory.ts +243 -248
- package/typechain-types/factories/ISpoke__factory.ts +407 -0
- package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/PTLooperBase__factory.ts +243 -248
- package/typechain-types/factories/PendlePTLooper__factory.ts +244 -249
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +99 -45
- package/typechain-types/index.ts +22 -12
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { IHubBase, IHubBaseInterface } from "../IHubBase";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "uint256",
|
|
14
|
+
name: "assetId",
|
|
15
|
+
type: "uint256",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
name: "getAddedAssets",
|
|
19
|
+
outputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "view",
|
|
27
|
+
type: "function",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint256",
|
|
33
|
+
name: "assetId",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
name: "getAsset",
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
components: [
|
|
41
|
+
{
|
|
42
|
+
internalType: "uint120",
|
|
43
|
+
name: "liquidity",
|
|
44
|
+
type: "uint120",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "uint120",
|
|
48
|
+
name: "realizedFees",
|
|
49
|
+
type: "uint120",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "uint8",
|
|
53
|
+
name: "decimals",
|
|
54
|
+
type: "uint8",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint120",
|
|
58
|
+
name: "addedShares",
|
|
59
|
+
type: "uint120",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "uint120",
|
|
63
|
+
name: "swept",
|
|
64
|
+
type: "uint120",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
internalType: "int200",
|
|
68
|
+
name: "premiumOffsetRay",
|
|
69
|
+
type: "int200",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
internalType: "uint120",
|
|
73
|
+
name: "drawnShares",
|
|
74
|
+
type: "uint120",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint120",
|
|
78
|
+
name: "premiumShares",
|
|
79
|
+
type: "uint120",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
internalType: "uint16",
|
|
83
|
+
name: "liquidityFee",
|
|
84
|
+
type: "uint16",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
internalType: "uint120",
|
|
88
|
+
name: "drawnIndex",
|
|
89
|
+
type: "uint120",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint96",
|
|
93
|
+
name: "drawnRate",
|
|
94
|
+
type: "uint96",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint40",
|
|
98
|
+
name: "lastUpdateTimestamp",
|
|
99
|
+
type: "uint40",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "underlying",
|
|
104
|
+
type: "address",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
internalType: "address",
|
|
108
|
+
name: "irStrategy",
|
|
109
|
+
type: "address",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
internalType: "address",
|
|
113
|
+
name: "reinvestmentController",
|
|
114
|
+
type: "address",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "feeReceiver",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
internalType: "uint200",
|
|
123
|
+
name: "deficitRay",
|
|
124
|
+
type: "uint200",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
internalType: "struct IHubBase.Asset",
|
|
128
|
+
name: "",
|
|
129
|
+
type: "tuple",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
stateMutability: "view",
|
|
133
|
+
type: "function",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
inputs: [
|
|
137
|
+
{
|
|
138
|
+
internalType: "uint256",
|
|
139
|
+
name: "assetId",
|
|
140
|
+
type: "uint256",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
name: "getAssetDrawnRate",
|
|
144
|
+
outputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint256",
|
|
147
|
+
name: "",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
stateMutability: "view",
|
|
152
|
+
type: "function",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
inputs: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "uint256",
|
|
158
|
+
name: "assetId",
|
|
159
|
+
type: "uint256",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
name: "getAssetTotalOwed",
|
|
163
|
+
outputs: [
|
|
164
|
+
{
|
|
165
|
+
internalType: "uint256",
|
|
166
|
+
name: "",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
stateMutability: "view",
|
|
171
|
+
type: "function",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [
|
|
175
|
+
{
|
|
176
|
+
internalType: "uint256",
|
|
177
|
+
name: "assetId",
|
|
178
|
+
type: "uint256",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
internalType: "address",
|
|
182
|
+
name: "spoke",
|
|
183
|
+
type: "address",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
name: "getSpoke",
|
|
187
|
+
outputs: [
|
|
188
|
+
{
|
|
189
|
+
components: [
|
|
190
|
+
{
|
|
191
|
+
internalType: "uint120",
|
|
192
|
+
name: "drawnShares",
|
|
193
|
+
type: "uint120",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
internalType: "uint120",
|
|
197
|
+
name: "premiumShares",
|
|
198
|
+
type: "uint120",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
internalType: "int200",
|
|
202
|
+
name: "premiumOffsetRay",
|
|
203
|
+
type: "int200",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
internalType: "uint120",
|
|
207
|
+
name: "addedShares",
|
|
208
|
+
type: "uint120",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
internalType: "uint40",
|
|
212
|
+
name: "addCap",
|
|
213
|
+
type: "uint40",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
internalType: "uint40",
|
|
217
|
+
name: "drawCap",
|
|
218
|
+
type: "uint40",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
internalType: "uint24",
|
|
222
|
+
name: "riskPremiumThreshold",
|
|
223
|
+
type: "uint24",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
internalType: "bool",
|
|
227
|
+
name: "active",
|
|
228
|
+
type: "bool",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
internalType: "bool",
|
|
232
|
+
name: "halted",
|
|
233
|
+
type: "bool",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
internalType: "uint200",
|
|
237
|
+
name: "deficitRay",
|
|
238
|
+
type: "uint200",
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
internalType: "struct IHubBase.SpokeData",
|
|
242
|
+
name: "",
|
|
243
|
+
type: "tuple",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
stateMutability: "view",
|
|
247
|
+
type: "function",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
inputs: [
|
|
251
|
+
{
|
|
252
|
+
internalType: "uint256",
|
|
253
|
+
name: "assetId",
|
|
254
|
+
type: "uint256",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
internalType: "address",
|
|
258
|
+
name: "spoke",
|
|
259
|
+
type: "address",
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
name: "getSpokeTotalOwed",
|
|
263
|
+
outputs: [
|
|
264
|
+
{
|
|
265
|
+
internalType: "uint256",
|
|
266
|
+
name: "",
|
|
267
|
+
type: "uint256",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
stateMutability: "view",
|
|
271
|
+
type: "function",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
inputs: [
|
|
275
|
+
{
|
|
276
|
+
internalType: "uint256",
|
|
277
|
+
name: "assetId",
|
|
278
|
+
type: "uint256",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
internalType: "uint256",
|
|
282
|
+
name: "shares",
|
|
283
|
+
type: "uint256",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
name: "previewRemoveByShares",
|
|
287
|
+
outputs: [
|
|
288
|
+
{
|
|
289
|
+
internalType: "uint256",
|
|
290
|
+
name: "",
|
|
291
|
+
type: "uint256",
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
stateMutability: "view",
|
|
295
|
+
type: "function",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
inputs: [
|
|
299
|
+
{
|
|
300
|
+
internalType: "uint256",
|
|
301
|
+
name: "assetId",
|
|
302
|
+
type: "uint256",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
internalType: "uint256",
|
|
306
|
+
name: "shares",
|
|
307
|
+
type: "uint256",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
name: "previewRestoreByShares",
|
|
311
|
+
outputs: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "uint256",
|
|
314
|
+
name: "",
|
|
315
|
+
type: "uint256",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
stateMutability: "view",
|
|
319
|
+
type: "function",
|
|
320
|
+
},
|
|
321
|
+
];
|
|
322
|
+
|
|
323
|
+
export class IHubBase__factory {
|
|
324
|
+
static readonly abi = _abi;
|
|
325
|
+
static createInterface(): IHubBaseInterface {
|
|
326
|
+
return new utils.Interface(_abi) as IHubBaseInterface;
|
|
327
|
+
}
|
|
328
|
+
static connect(
|
|
329
|
+
address: string,
|
|
330
|
+
signerOrProvider: Signer | Provider
|
|
331
|
+
): IHubBase {
|
|
332
|
+
return new Contract(address, _abi, signerOrProvider) as IHubBase;
|
|
333
|
+
}
|
|
334
|
+
}
|