@pendle/core-v2 4.5.1-beta-2 → 4.5.1-beta-4
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/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.json +1049 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.json +1039 -0
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +46 -2
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +46 -2
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.json +60 -0
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +25 -0
- package/build/artifacts/contracts/interfaces/IPPtLpOracle.sol/IPPtLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.json +30 -0
- package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.json +207 -0
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +401 -0
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +48 -4
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +4 -0
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +34 -0
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol +6 -1
- package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol +56 -0
- package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol +111 -0
- package/contracts/interfaces/IPActionMiscV3.sol +9 -2
- package/contracts/interfaces/IPGovernanceProxy.sol +14 -0
- package/contracts/interfaces/IPPausingInterface.sol +8 -0
- package/contracts/interfaces/IPReflector.sol +6 -0
- package/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol +66 -0
- package/contracts/offchain-helpers/PendleGovernanceProxy.sol +84 -0
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +12 -4
- package/contracts/router/ActionMiscV3.sol +31 -5
- package/contracts/router/Reflector.sol +69 -0
- package/contracts/router/base/ActionBase.sol +0 -16
- package/deployments/1-markets/EZETH-MAINNET-SEP2024.json +11 -0
- package/deployments/1-markets/PUFETH-MAINNET-SEP2024.json +11 -0
- package/deployments/1-markets/RSETH-MAINNET-SEP2024.json +11 -0
- package/deployments/1-markets/RSWETH-SWELL-STAKING-MAINNET-JUL2024.json +11 -0
- package/deployments/1-markets/SUSDE-MAINNET-SEP2024.json +13 -0
- package/deployments/1-markets/UNIETH-MAINNET-SEP2024.json +13 -0
- package/deployments/1-markets/WEETH-MAINNET-SEP2024.json +11 -0
- package/deployments/42161-core.json +1 -1
- package/deployments/42161-markets/EZETH-ARB-SEP2024.json +11 -0
- package/deployments/42161-markets/RSETH-ARBITRUM-SEP2024.json +11 -0
- package/deployments/42161-markets/SILO-PTEETH-ARBITRUM-JUNE2024.json +11 -0
- package/deployments/42161-markets/SILO-PTEZETH-ARBITRUM-JUNE2024.json +11 -0
- package/deployments/42161-markets/WEETH-ARB-SEP2024.json +11 -0
- package/deployments/56-markets/WEETH-BSC-SEP2024.json +11 -0
- package/package.json +1 -1
- package/typechain-types/ActionMiscV3.ts +61 -6
- package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
- package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
- package/typechain-types/IPActionMiscV3.ts +61 -6
- package/typechain-types/IPAllActionV3.ts +61 -6
- package/typechain-types/IPGovernanceProxy.ts +142 -0
- package/typechain-types/IPPYLpOracle.ts +379 -0
- package/typechain-types/IPPausingInterface.ts +112 -0
- package/typechain-types/IPReflector.ts +95 -0
- package/typechain-types/IPossibleSupplyCapInterface.ts +142 -0
- package/typechain-types/PendleGovernanceProxy.ts +603 -0
- package/typechain-types/PendlePYLpOracle.ts +612 -0
- package/typechain-types/Reflector.ts +95 -0
- package/typechain-types/SupplyCapReader.ts +105 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +47 -3
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
- package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
- package/typechain-types/factories/IPActionMiscV3__factory.ts +46 -2
- package/typechain-types/factories/IPAllActionV3__factory.ts +46 -2
- package/typechain-types/factories/IPGovernanceProxy__factory.ts +75 -0
- package/typechain-types/factories/IPPYLpOracle__factory.ts +214 -0
- package/typechain-types/factories/IPPausingInterface__factory.ts +40 -0
- package/typechain-types/factories/IPReflector__factory.ts +42 -0
- package/typechain-types/factories/IPossibleSupplyCapInterface__factory.ts +82 -0
- package/typechain-types/factories/PendleERC20WithSupplyCapSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
- package/typechain-types/factories/PendlePYLpOracle__factory.ts +487 -0
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1 -1
- package/typechain-types/factories/Reflector__factory.ts +84 -0
- package/typechain-types/factories/SupplyCapReader__factory.ts +88 -0
- package/typechain-types/hardhat.d.ts +72 -0
- package/typechain-types/index.ts +16 -0
- /package/deployments/1-markets/{EZETH-JUNE2024.json → EZETH-APR2024.json} +0 -0
- /package/deployments/42161-markets/{RSETH-MAY2024.json → RSETH-JUNE2024.json} +0 -0
- /package/deployments/42161-markets/{WEETH-MAY2024.json → WEETH-JUNE2024.json} +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
BoringPYUsdChainlinkSYOracle,
|
|
15
|
+
BoringPYUsdChainlinkSYOracleInterface,
|
|
16
|
+
} from "../BoringPYUsdChainlinkSYOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint32",
|
|
23
|
+
name: "_twapDuration",
|
|
24
|
+
type: "uint32",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_market",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_feed",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "_pyLpOracle",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint32",
|
|
49
|
+
name: "duration",
|
|
50
|
+
type: "uint32",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
name: "AdditionalWaitRequired",
|
|
54
|
+
type: "error",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint16",
|
|
60
|
+
name: "cardinalityRequired",
|
|
61
|
+
type: "uint16",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: "IncreaseCardinalityRequired",
|
|
65
|
+
type: "error",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [],
|
|
69
|
+
name: "checkOracleState",
|
|
70
|
+
outputs: [],
|
|
71
|
+
stateMutability: "view",
|
|
72
|
+
type: "function",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: "feed",
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
stateMutability: "view",
|
|
85
|
+
type: "function",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "feedDecimals",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint8",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "uint8",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
type: "function",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "getPtPriceSample1",
|
|
103
|
+
outputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint256",
|
|
106
|
+
name: "",
|
|
107
|
+
type: "uint256",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
stateMutability: "view",
|
|
111
|
+
type: "function",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
inputs: [],
|
|
115
|
+
name: "getPtPriceSample2",
|
|
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: "getYtPriceSample1",
|
|
129
|
+
outputs: [
|
|
130
|
+
{
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
stateMutability: "view",
|
|
137
|
+
type: "function",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
inputs: [],
|
|
141
|
+
name: "getYtPriceSample2",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint256",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "uint256",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [],
|
|
154
|
+
name: "market",
|
|
155
|
+
outputs: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
stateMutability: "view",
|
|
163
|
+
type: "function",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
inputs: [],
|
|
167
|
+
name: "pyLpOracle",
|
|
168
|
+
outputs: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "address",
|
|
171
|
+
name: "",
|
|
172
|
+
type: "address",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
stateMutability: "view",
|
|
176
|
+
type: "function",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [],
|
|
180
|
+
name: "twapDuration",
|
|
181
|
+
outputs: [
|
|
182
|
+
{
|
|
183
|
+
internalType: "uint32",
|
|
184
|
+
name: "",
|
|
185
|
+
type: "uint32",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
stateMutability: "view",
|
|
189
|
+
type: "function",
|
|
190
|
+
},
|
|
191
|
+
];
|
|
192
|
+
|
|
193
|
+
const _bytecode =
|
|
194
|
+
"0x6101206040523480156200001257600080fd5b50604051620016fc380380620016fc8339810160408190526200003591620000f0565b63ffffffff84166080526001600160a01b0380841660a052821660c08190526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa15801562000090573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b6919062000157565b60ff1660e0526001600160a01b0316610100525062000183915050565b80516001600160a01b0381168114620000eb57600080fd5b919050565b600080600080608085870312156200010757600080fd5b845163ffffffff811681146200011c57600080fd5b93506200012c60208601620000d3565b92506200013c60408601620000d3565b91506200014c60608601620000d3565b905092959194509250565b6000602082840312156200016a57600080fd5b815160ff811681146200017c57600080fd5b9392505050565b60805160a05160c05160e051610100516114b8620002446000396000818161015d0152818161025f01528181610387015261041a01526000818161018c015281816106370152818161066501526106a801526000818160f701526105b1015260008181610136015281816101e20152818161028e0152818161033c015281816103b6015261044901526000818160b301528181610204015281816102af0152818161035e015281816103d70152818161046a015261053001526114b86000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c8063223a3b261461009357806326d89545146100ae5780632f467dab146100ea57806337a7b7d8146100f257806380f55605146101315780638ca06ea614610158578063addccbb31461017f578063c23953d014610187578063e710b82f146101c0578063f9294d8b146101c8575b600080fd5b61009b6101d2565b6040519081526020015b60405180910390f35b6100d57f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020016100a5565b61009b61025a565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100a5565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b61009b61032c565b6101ae7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016100a5565b61009b610382565b6101d0610413565b005b6000806102286001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000610562565b905060006102346105ac565b9050670de0b6b3a76400006102498383611049565b6102539190611076565b9250505090565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ffec44077f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016102eb92919061108a565b602060405180830381865afa158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022891906110a9565b6000806102286001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006106e9565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a31426d17f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016102eb92919061108a565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663873e96007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016104a692919061108a565b606060405180830381865afa1580156104c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e791906110d7565b9250925092508215610517576040516333b3ceb360e01b815261ffff831660048201526024015b60405180910390fd5b8061055d57604051631229555360e01b815263ffffffff7f000000000000000000000000000000000000000000000000000000000000000016600482015260240161050e565b505050565b60008060006105708561071e565b915091508082106105985761058f82610589878761094e565b90610973565b925050506105a6565b61058f81610589878761094e565b92915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561060d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063191906110a9565b905060127f000000000000000000000000000000000000000000000000000000000000000060ff16106106a35761068960127f0000000000000000000000000000000000000000000000000000000000000000611123565b61069490600a611220565b61069e9082611076565b6106e3565b6106ce7f00000000000000000000000000000000000000000000000000000000000000006012611123565b6106d990600a611220565b6106e39082611049565b91505090565b60008060006106f78561071e565b915091508082106107105761058f8261058987876109a2565b61058f8161058987876109a2565b600080600080846001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610762573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107869190611247565b9250509150816001600160a01b0316633ba0b9a96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed91906110a9565b93506000816001600160a01b031663d2a3584e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561082f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085391906110a9565b9050816001600160a01b031663516399df6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b79190611294565b801561092c575043826001600160a01b03166360e0a9e16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092191906112af565b6001600160801b0316145b1561093957809350610946565b6109438582610a77565b93505b505050915091565b600061095a83836109a2565b61096c90670de0b6b3a76400006112d8565b9392505050565b600080610988670de0b6b3a764000085611049565b905082818161099957610999611060565b04949350505050565b600080836001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0791906110a9565b9050428111610a2157670de0b6b3a76400009150506105a6565b6000610a2d8585610a8d565b90506000610a3b42846112d8565b90506000610a51610a4c8484610bb4565b610bf5565b9050610a65670de0b6b3a764000082610973565b9450505050506105a6565b5092915050565b6000818311610a86578161096c565b5090919050565b604080516002808252606082018352600092839291906020830190803683370190505090508281600081518110610ac657610ac6611301565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b0386169063883bdbfd90610b0a908590600401611317565b600060405180830381865afa158015610b27573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b4f9190810190611378565b90508363ffffffff1681600081518110610b6b57610b6b611301565b602002602001015182600181518110610b8657610b86611301565b6020026020010151610b98919061143c565b610ba2919061145c565b6001600160d81b031695945050505050565b600080610bc66201518061016d611049565b610bd08486611049565b610bda9190611076565b9050610bed610be882610c08565b610c1e565b949350505050565b600080821215610c0457600080fd5b5090565b60006001600160ff1b03821115610c0457600080fd5b6000680238fd42c5cf03ffff198212158015610c43575068070c1cc73b00c800008213155b610c825760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640161050e565b6000821215610cba57610c9782600003610c1e565b6a0c097ce7bc90715b34b9f160241b81610cb357610cb3611060565b0592915050565b60006806f05b59d3b20000008312610cf857506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b610d2e565b6803782dace9d90000008312610d2a57506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380610d2e565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac620000008412610d7e5768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412610dba576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b188000008412610df457682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412610e2e576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac62000008412610e6757680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d631000008412610ea05768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412610ed9576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c400008412610f125768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105a6576105a6611033565b634e487b7160e01b600052601260045260246000fd5b60008261108557611085611060565b500490565b6001600160a01b0392909216825263ffffffff16602082015260400190565b6000602082840312156110bb57600080fd5b5051919050565b805180151581146110d257600080fd5b919050565b6000806000606084860312156110ec57600080fd5b6110f5846110c2565b9250602084015161ffff8116811461110c57600080fd5b915061111a604085016110c2565b90509250925092565b60ff82811682821603908111156105a6576105a6611033565b600181815b8085111561117757816000190482111561115d5761115d611033565b8085161561116a57918102915b93841c9390800290611141565b509250929050565b60008261118e575060016105a6565b8161119b575060006105a6565b81600181146111b157600281146111bb576111d7565b60019150506105a6565b60ff8411156111cc576111cc611033565b50506001821b6105a6565b5060208310610133831016604e8410600b84101617156111fa575081810a6105a6565b611204838361113c565b806000190482111561121857611218611033565b029392505050565b600061096c60ff84168361117f565b6001600160a01b038116811461124457600080fd5b50565b60008060006060848603121561125c57600080fd5b83516112678161122f565b60208501519093506112788161122f565b60408501519092506112898161122f565b809150509250925092565b6000602082840312156112a657600080fd5b61096c826110c2565b6000602082840312156112c157600080fd5b81516001600160801b038116811461096c57600080fd5b818103818111156105a6576105a6611033565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561135557835163ffffffff1683529284019291840191600101611333565b50909695505050505050565b80516001600160d81b03811681146110d257600080fd5b6000602080838503121561138b57600080fd5b82516001600160401b03808211156113a257600080fd5b818501915085601f8301126113b657600080fd5b8151818111156113c8576113c86112eb565b8060051b604051601f19603f830116810181811085821117156113ed576113ed6112eb565b60405291825284820192508381018501918883111561140b57600080fd5b938501935b828510156114305761142185611361565b84529385019392850192611410565b98975050505050505050565b6001600160d81b03828116828216039080821115610a7057610a70611033565b60006001600160d81b038381168061147657611476611060565b9216919091049291505056fea26469706673582212207edce4b0f198cd00968b46daf175bf47b33ef5f572378401881d8e73365a0e6864736f6c63430008170033";
|
|
195
|
+
|
|
196
|
+
type BoringPYUsdChainlinkSYOracleConstructorParams =
|
|
197
|
+
| [signer?: Signer]
|
|
198
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
199
|
+
|
|
200
|
+
const isSuperArgs = (
|
|
201
|
+
xs: BoringPYUsdChainlinkSYOracleConstructorParams
|
|
202
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
203
|
+
|
|
204
|
+
export class BoringPYUsdChainlinkSYOracle__factory extends ContractFactory {
|
|
205
|
+
constructor(...args: BoringPYUsdChainlinkSYOracleConstructorParams) {
|
|
206
|
+
if (isSuperArgs(args)) {
|
|
207
|
+
super(...args);
|
|
208
|
+
} else {
|
|
209
|
+
super(_abi, _bytecode, args[0]);
|
|
210
|
+
}
|
|
211
|
+
this.contractName = "BoringPYUsdChainlinkSYOracle";
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
deploy(
|
|
215
|
+
_twapDuration: BigNumberish,
|
|
216
|
+
_market: string,
|
|
217
|
+
_feed: string,
|
|
218
|
+
_pyLpOracle: string,
|
|
219
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
220
|
+
): Promise<BoringPYUsdChainlinkSYOracle> {
|
|
221
|
+
return super.deploy(
|
|
222
|
+
_twapDuration,
|
|
223
|
+
_market,
|
|
224
|
+
_feed,
|
|
225
|
+
_pyLpOracle,
|
|
226
|
+
overrides || {}
|
|
227
|
+
) as Promise<BoringPYUsdChainlinkSYOracle>;
|
|
228
|
+
}
|
|
229
|
+
getDeployTransaction(
|
|
230
|
+
_twapDuration: BigNumberish,
|
|
231
|
+
_market: string,
|
|
232
|
+
_feed: string,
|
|
233
|
+
_pyLpOracle: string,
|
|
234
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
235
|
+
): TransactionRequest {
|
|
236
|
+
return super.getDeployTransaction(
|
|
237
|
+
_twapDuration,
|
|
238
|
+
_market,
|
|
239
|
+
_feed,
|
|
240
|
+
_pyLpOracle,
|
|
241
|
+
overrides || {}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
attach(address: string): BoringPYUsdChainlinkSYOracle {
|
|
245
|
+
return super.attach(address) as BoringPYUsdChainlinkSYOracle;
|
|
246
|
+
}
|
|
247
|
+
connect(signer: Signer): BoringPYUsdChainlinkSYOracle__factory {
|
|
248
|
+
return super.connect(signer) as BoringPYUsdChainlinkSYOracle__factory;
|
|
249
|
+
}
|
|
250
|
+
static readonly contractName: "BoringPYUsdChainlinkSYOracle";
|
|
251
|
+
public readonly contractName: "BoringPYUsdChainlinkSYOracle";
|
|
252
|
+
static readonly bytecode = _bytecode;
|
|
253
|
+
static readonly abi = _abi;
|
|
254
|
+
static createInterface(): BoringPYUsdChainlinkSYOracleInterface {
|
|
255
|
+
return new utils.Interface(_abi) as BoringPYUsdChainlinkSYOracleInterface;
|
|
256
|
+
}
|
|
257
|
+
static connect(
|
|
258
|
+
address: string,
|
|
259
|
+
signerOrProvider: Signer | Provider
|
|
260
|
+
): BoringPYUsdChainlinkSYOracle {
|
|
261
|
+
return new Contract(
|
|
262
|
+
address,
|
|
263
|
+
_abi,
|
|
264
|
+
signerOrProvider
|
|
265
|
+
) as BoringPYUsdChainlinkSYOracle;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -174,7 +174,7 @@ const _abi = [
|
|
|
174
174
|
{
|
|
175
175
|
indexed: false,
|
|
176
176
|
internalType: "uint256",
|
|
177
|
-
name: "
|
|
177
|
+
name: "netLpIn",
|
|
178
178
|
type: "uint256",
|
|
179
179
|
},
|
|
180
180
|
{
|
|
@@ -264,7 +264,7 @@ const _abi = [
|
|
|
264
264
|
{
|
|
265
265
|
indexed: false,
|
|
266
266
|
internalType: "uint256",
|
|
267
|
-
name: "
|
|
267
|
+
name: "netLpIn",
|
|
268
268
|
type: "uint256",
|
|
269
269
|
},
|
|
270
270
|
{
|
|
@@ -601,6 +601,50 @@ const _abi = [
|
|
|
601
601
|
stateMutability: "nonpayable",
|
|
602
602
|
type: "function",
|
|
603
603
|
},
|
|
604
|
+
{
|
|
605
|
+
inputs: [
|
|
606
|
+
{
|
|
607
|
+
internalType: "address payable",
|
|
608
|
+
name: "reflector",
|
|
609
|
+
type: "address",
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
internalType: "bytes",
|
|
613
|
+
name: "selfCall1",
|
|
614
|
+
type: "bytes",
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
internalType: "bytes",
|
|
618
|
+
name: "selfCall2",
|
|
619
|
+
type: "bytes",
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
internalType: "bytes",
|
|
623
|
+
name: "reflectCall",
|
|
624
|
+
type: "bytes",
|
|
625
|
+
},
|
|
626
|
+
],
|
|
627
|
+
name: "callAndReflect",
|
|
628
|
+
outputs: [
|
|
629
|
+
{
|
|
630
|
+
internalType: "bytes",
|
|
631
|
+
name: "selfRes1",
|
|
632
|
+
type: "bytes",
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
internalType: "bytes",
|
|
636
|
+
name: "selfRes2",
|
|
637
|
+
type: "bytes",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
internalType: "bytes",
|
|
641
|
+
name: "reflectRes",
|
|
642
|
+
type: "bytes",
|
|
643
|
+
},
|
|
644
|
+
],
|
|
645
|
+
stateMutability: "payable",
|
|
646
|
+
type: "function",
|
|
647
|
+
},
|
|
604
648
|
{
|
|
605
649
|
inputs: [
|
|
606
650
|
{
|
|
@@ -502,7 +502,7 @@ const _abi = [
|
|
|
502
502
|
{
|
|
503
503
|
indexed: false,
|
|
504
504
|
internalType: "uint256",
|
|
505
|
-
name: "
|
|
505
|
+
name: "netLpIn",
|
|
506
506
|
type: "uint256",
|
|
507
507
|
},
|
|
508
508
|
{
|
|
@@ -592,7 +592,7 @@ const _abi = [
|
|
|
592
592
|
{
|
|
593
593
|
indexed: false,
|
|
594
594
|
internalType: "uint256",
|
|
595
|
-
name: "
|
|
595
|
+
name: "netLpIn",
|
|
596
596
|
type: "uint256",
|
|
597
597
|
},
|
|
598
598
|
{
|
|
@@ -2533,6 +2533,50 @@ const _abi = [
|
|
|
2533
2533
|
stateMutability: "nonpayable",
|
|
2534
2534
|
type: "function",
|
|
2535
2535
|
},
|
|
2536
|
+
{
|
|
2537
|
+
inputs: [
|
|
2538
|
+
{
|
|
2539
|
+
internalType: "address payable",
|
|
2540
|
+
name: "reflector",
|
|
2541
|
+
type: "address",
|
|
2542
|
+
},
|
|
2543
|
+
{
|
|
2544
|
+
internalType: "bytes",
|
|
2545
|
+
name: "selfCall1",
|
|
2546
|
+
type: "bytes",
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
internalType: "bytes",
|
|
2550
|
+
name: "selfCall2",
|
|
2551
|
+
type: "bytes",
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
internalType: "bytes",
|
|
2555
|
+
name: "reflectCall",
|
|
2556
|
+
type: "bytes",
|
|
2557
|
+
},
|
|
2558
|
+
],
|
|
2559
|
+
name: "callAndReflect",
|
|
2560
|
+
outputs: [
|
|
2561
|
+
{
|
|
2562
|
+
internalType: "bytes",
|
|
2563
|
+
name: "selfRes1",
|
|
2564
|
+
type: "bytes",
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
internalType: "bytes",
|
|
2568
|
+
name: "selfRes2",
|
|
2569
|
+
type: "bytes",
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
internalType: "bytes",
|
|
2573
|
+
name: "reflectRes",
|
|
2574
|
+
type: "bytes",
|
|
2575
|
+
},
|
|
2576
|
+
],
|
|
2577
|
+
stateMutability: "payable",
|
|
2578
|
+
type: "function",
|
|
2579
|
+
},
|
|
2536
2580
|
{
|
|
2537
2581
|
inputs: [],
|
|
2538
2582
|
name: "claimOwnership",
|
|
@@ -0,0 +1,75 @@
|
|
|
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 {
|
|
8
|
+
IPGovernanceProxy,
|
|
9
|
+
IPGovernanceProxyInterface,
|
|
10
|
+
} from "../IPGovernanceProxy";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
components: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "target",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
internalType: "uint256",
|
|
24
|
+
name: "value",
|
|
25
|
+
type: "uint256",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
internalType: "bytes",
|
|
29
|
+
name: "callData",
|
|
30
|
+
type: "bytes",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
internalType: "struct IPGovernanceProxy.Call[]",
|
|
34
|
+
name: "calls",
|
|
35
|
+
type: "tuple[]",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: "aggregate",
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "bytes[]",
|
|
42
|
+
name: "rtnData",
|
|
43
|
+
type: "bytes[]",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
stateMutability: "payable",
|
|
47
|
+
type: "function",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [
|
|
51
|
+
{
|
|
52
|
+
internalType: "address[]",
|
|
53
|
+
name: "addrs",
|
|
54
|
+
type: "address[]",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "pause",
|
|
58
|
+
outputs: [],
|
|
59
|
+
stateMutability: "nonpayable",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
export class IPGovernanceProxy__factory {
|
|
65
|
+
static readonly abi = _abi;
|
|
66
|
+
static createInterface(): IPGovernanceProxyInterface {
|
|
67
|
+
return new utils.Interface(_abi) as IPGovernanceProxyInterface;
|
|
68
|
+
}
|
|
69
|
+
static connect(
|
|
70
|
+
address: string,
|
|
71
|
+
signerOrProvider: Signer | Provider
|
|
72
|
+
): IPGovernanceProxy {
|
|
73
|
+
return new Contract(address, _abi, signerOrProvider) as IPGovernanceProxy;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
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 { IPPYLpOracle, IPPYLpOracleInterface } from "../IPPYLpOracle";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: false,
|
|
15
|
+
internalType: "uint16",
|
|
16
|
+
name: "newBlockCycleNumerator",
|
|
17
|
+
type: "uint16",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
name: "SetBlockCycleNumerator",
|
|
21
|
+
type: "event",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "market",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint32",
|
|
32
|
+
name: "duration",
|
|
33
|
+
type: "uint32",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "getLpToAssetRate",
|
|
37
|
+
outputs: [
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
stateMutability: "view",
|
|
45
|
+
type: "function",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "market",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "uint32",
|
|
56
|
+
name: "duration",
|
|
57
|
+
type: "uint32",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "getLpToSyRate",
|
|
61
|
+
outputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "view",
|
|
69
|
+
type: "function",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
inputs: [
|
|
73
|
+
{
|
|
74
|
+
internalType: "address",
|
|
75
|
+
name: "market",
|
|
76
|
+
type: "address",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
internalType: "uint32",
|
|
80
|
+
name: "duration",
|
|
81
|
+
type: "uint32",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: "getOracleState",
|
|
85
|
+
outputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "bool",
|
|
88
|
+
name: "increaseCardinalityRequired",
|
|
89
|
+
type: "bool",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint16",
|
|
93
|
+
name: "cardinalityRequired",
|
|
94
|
+
type: "uint16",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "bool",
|
|
98
|
+
name: "oldestObservationSatisfied",
|
|
99
|
+
type: "bool",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [
|
|
107
|
+
{
|
|
108
|
+
internalType: "address",
|
|
109
|
+
name: "market",
|
|
110
|
+
type: "address",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint32",
|
|
114
|
+
name: "duration",
|
|
115
|
+
type: "uint32",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "getPtToAssetRate",
|
|
119
|
+
outputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "uint256",
|
|
122
|
+
name: "",
|
|
123
|
+
type: "uint256",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: "view",
|
|
127
|
+
type: "function",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "address",
|
|
133
|
+
name: "market",
|
|
134
|
+
type: "address",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint32",
|
|
138
|
+
name: "duration",
|
|
139
|
+
type: "uint32",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
name: "getPtToSyRate",
|
|
143
|
+
outputs: [
|
|
144
|
+
{
|
|
145
|
+
internalType: "uint256",
|
|
146
|
+
name: "",
|
|
147
|
+
type: "uint256",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
stateMutability: "view",
|
|
151
|
+
type: "function",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
inputs: [
|
|
155
|
+
{
|
|
156
|
+
internalType: "address",
|
|
157
|
+
name: "market",
|
|
158
|
+
type: "address",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint32",
|
|
162
|
+
name: "duration",
|
|
163
|
+
type: "uint32",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "getYtToAssetRate",
|
|
167
|
+
outputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "uint256",
|
|
170
|
+
name: "",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "address",
|
|
181
|
+
name: "market",
|
|
182
|
+
type: "address",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint32",
|
|
186
|
+
name: "duration",
|
|
187
|
+
type: "uint32",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
name: "getYtToSyRate",
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function",
|
|
200
|
+
},
|
|
201
|
+
];
|
|
202
|
+
|
|
203
|
+
export class IPPYLpOracle__factory {
|
|
204
|
+
static readonly abi = _abi;
|
|
205
|
+
static createInterface(): IPPYLpOracleInterface {
|
|
206
|
+
return new utils.Interface(_abi) as IPPYLpOracleInterface;
|
|
207
|
+
}
|
|
208
|
+
static connect(
|
|
209
|
+
address: string,
|
|
210
|
+
signerOrProvider: Signer | Provider
|
|
211
|
+
): IPPYLpOracle {
|
|
212
|
+
return new Contract(address, _abi, signerOrProvider) as IPPYLpOracle;
|
|
213
|
+
}
|
|
214
|
+
}
|