@pendle/core-v2 5.1.1-beta-2 → 5.2.0-beta-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 (168) hide show
  1. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/SYBaseUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDEMantleSY.sol/PendleSUSDEMantleSY.dbg.json +1 -1
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDEMantleSY.sol/PendleSUSDEMantleSY.json +2 -2
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDEL2SY.sol/PendleUSDEL2SY.dbg.json +1 -1
  7. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDEL2SY.sol/PendleUSDEL2SY.json +2 -2
  8. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleEBTCSY.sol/PendleEBTCSY.dbg.json +1 -1
  9. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleEBTCSY.sol/PendleEBTCSY.json +2 -2
  10. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleEEigenSYUpg.sol/PendleEEigenSYUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleEEigenSYUpg.sol/PendleEEigenSYUpg.json +2 -2
  12. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthkSY.sol/PendleWEEthkSY.dbg.json +1 -1
  13. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthkSY.sol/PendleWEEthkSY.json +2 -2
  14. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthsSY.sol/PendleWEEthsSY.dbg.json +1 -1
  15. package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthsSY.sol/PendleWEEthsSY.json +2 -2
  16. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  17. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20SYUpg.sol/PendleERC20SYUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20SYUpg.sol/PendleERC20SYUpg.json +2 -2
  19. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  20. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  22. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  23. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  26. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  29. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  31. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  32. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  33. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  34. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +4 -0
  35. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.json +122 -0
  36. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +4 -0
  37. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.json +91 -0
  38. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +4 -0
  39. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.json +262 -0
  40. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  41. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  42. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  43. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  44. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  45. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  46. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  47. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  48. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  49. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  50. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  51. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  52. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  53. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  54. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  55. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  56. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  57. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  58. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  59. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +4 -0
  60. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +274 -0
  61. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleBase.sol/PendleChainlinkOracleBase.dbg.json +4 -0
  62. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleBase.sol/PendleChainlinkOracleBase.json +253 -0
  63. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +4 -0
  64. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +289 -0
  65. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +4 -0
  66. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +305 -0
  67. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  69. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  71. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  73. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  75. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  77. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  78. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  79. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  80. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  81. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  82. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  83. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  84. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  86. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  87. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  88. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  89. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  90. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  91. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  92. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  93. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  94. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  95. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  96. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  97. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  99. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  100. package/contracts/core/StandardizedYield/implementations/EtherFi/PendleEEigenSYUpg.sol +6 -2
  101. package/contracts/core/StandardizedYield/implementations/PendleERC20SYUpg.sol +6 -1
  102. package/contracts/interfaces/IPChainlinkOracle.sol +15 -0
  103. package/contracts/interfaces/IPChainlinkOracleFactory.sol +22 -0
  104. package/contracts/interfaces/IPChainlinkOracleWithQuote.sol +8 -0
  105. package/contracts/oracles/factory/PendleChainlinkOracle.sol +21 -0
  106. package/contracts/oracles/factory/PendleChainlinkOracleBase.sol +138 -0
  107. package/contracts/oracles/factory/PendleChainlinkOracleFactory.sol +99 -0
  108. package/contracts/oracles/factory/PendleChainlinkOracleWithQuote.sol +46 -0
  109. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +1 -1
  110. package/contracts/router/swap-aggregator/PendleSwap.sol +0 -43
  111. package/deployments/1-core.json +1 -1
  112. package/deployments/10-core.json +1 -1
  113. package/deployments/42161-core.json +1 -1
  114. package/deployments/5000-core.json +1 -1
  115. package/deployments/56-core.json +1 -1
  116. package/package.json +1 -1
  117. package/typechain-types/IAaveStkGHO.ts +269 -0
  118. package/typechain-types/IAngleDistributor.ts +117 -0
  119. package/typechain-types/IPChainlinkOracle.ts +221 -0
  120. package/typechain-types/IPChainlinkOracleFactory.ts +123 -0
  121. package/typechain-types/IPChainlinkOracleWithQuote.ts +404 -0
  122. package/typechain-types/PendleCMETHSY.ts +1349 -0
  123. package/typechain-types/PendleChainlinkOracle.ts +299 -0
  124. package/typechain-types/PendleChainlinkOracleBase.ts +299 -0
  125. package/typechain-types/PendleChainlinkOracleFactory.ts +389 -0
  126. package/typechain-types/PendleChainlinkOracleWithQuote.ts +335 -0
  127. package/typechain-types/PendleStkGHOSY.ts +1522 -0
  128. package/typechain-types/SYBaseWithoutPermitUpg.ts +1101 -0
  129. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  130. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  131. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  132. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  133. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  134. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  135. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  136. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  137. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  138. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  139. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  140. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  141. package/typechain-types/factories/IAaveStkGHO__factory.ts +128 -0
  142. package/typechain-types/factories/IAngleDistributor__factory.ts +54 -0
  143. package/typechain-types/factories/IPChainlinkOracleFactory__factory.ts +110 -0
  144. package/typechain-types/factories/IPChainlinkOracleWithQuote__factory.ts +281 -0
  145. package/typechain-types/factories/IPChainlinkOracle__factory.ts +137 -0
  146. package/typechain-types/factories/PendleCMETHSY__factory.ts +1099 -0
  147. package/typechain-types/factories/PendleChainlinkOracleBase__factory.ts +272 -0
  148. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +351 -0
  149. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +389 -0
  150. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +354 -0
  151. package/typechain-types/factories/PendleEBTCSY__factory.ts +1 -1
  152. package/typechain-types/factories/PendleEEigenSYUpg__factory.ts +1 -1
  153. package/typechain-types/factories/PendleERC20SYUpg__factory.ts +1 -1
  154. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  155. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  156. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  157. package/typechain-types/factories/PendleSUSDEMantleSY__factory.ts +1 -1
  158. package/typechain-types/factories/PendleStkGHOSY__factory.ts +1213 -0
  159. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  160. package/typechain-types/factories/PendleUSDEL2SY__factory.ts +1 -1
  161. package/typechain-types/factories/PendleWEEthkSY__factory.ts +1 -1
  162. package/typechain-types/factories/PendleWEEthsSY__factory.ts +1 -1
  163. package/typechain-types/factories/Reflector__factory.ts +1 -1
  164. package/typechain-types/factories/SYBaseWithoutPermitUpg__factory.ts +871 -0
  165. package/typechain-types/hardhat.d.ts +108 -9
  166. package/typechain-types/index.ts +24 -2
  167. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +0 -4
  168. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.json +0 -82
@@ -0,0 +1,110 @@
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
+ IPChainlinkOracleFactory,
9
+ IPChainlinkOracleFactoryInterface,
10
+ } from "../IPChainlinkOracleFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "market",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: false,
24
+ internalType: "uint16",
25
+ name: "twapDuration",
26
+ type: "uint16",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "enum PendleOracleType",
31
+ name: "baseOracleType",
32
+ type: "uint8",
33
+ },
34
+ {
35
+ indexed: true,
36
+ internalType: "address",
37
+ name: "oracle",
38
+ type: "address",
39
+ },
40
+ {
41
+ indexed: false,
42
+ internalType: "bytes32",
43
+ name: "oracleId",
44
+ type: "bytes32",
45
+ },
46
+ ],
47
+ name: "OracleCreated",
48
+ type: "event",
49
+ },
50
+ {
51
+ anonymous: false,
52
+ inputs: [
53
+ {
54
+ indexed: true,
55
+ internalType: "address",
56
+ name: "market",
57
+ type: "address",
58
+ },
59
+ {
60
+ indexed: false,
61
+ internalType: "uint16",
62
+ name: "twapDuration",
63
+ type: "uint16",
64
+ },
65
+ {
66
+ indexed: false,
67
+ internalType: "enum PendleOracleType",
68
+ name: "baseOracleType",
69
+ type: "uint8",
70
+ },
71
+ {
72
+ indexed: true,
73
+ internalType: "address",
74
+ name: "quoteOracle",
75
+ type: "address",
76
+ },
77
+ {
78
+ indexed: true,
79
+ internalType: "address",
80
+ name: "oracle",
81
+ type: "address",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "bytes32",
86
+ name: "oracleId",
87
+ type: "bytes32",
88
+ },
89
+ ],
90
+ name: "OracleWithQuoteCreated",
91
+ type: "event",
92
+ },
93
+ ];
94
+
95
+ export class IPChainlinkOracleFactory__factory {
96
+ static readonly abi = _abi;
97
+ static createInterface(): IPChainlinkOracleFactoryInterface {
98
+ return new utils.Interface(_abi) as IPChainlinkOracleFactoryInterface;
99
+ }
100
+ static connect(
101
+ address: string,
102
+ signerOrProvider: Signer | Provider
103
+ ): IPChainlinkOracleFactory {
104
+ return new Contract(
105
+ address,
106
+ _abi,
107
+ signerOrProvider
108
+ ) as IPChainlinkOracleFactory;
109
+ }
110
+ }
@@ -0,0 +1,281 @@
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
+ IPChainlinkOracleWithQuote,
9
+ IPChainlinkOracleWithQuoteInterface,
10
+ } from "../IPChainlinkOracleWithQuote";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "int256",
19
+ name: "current",
20
+ type: "int256",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "uint256",
25
+ name: "roundId",
26
+ type: "uint256",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "updatedAt",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "AnswerUpdated",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: true,
43
+ internalType: "uint256",
44
+ name: "roundId",
45
+ type: "uint256",
46
+ },
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "startedBy",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256",
56
+ name: "startedAt",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ name: "NewRound",
61
+ type: "event",
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: "decimals",
66
+ outputs: [
67
+ {
68
+ internalType: "uint8",
69
+ name: "",
70
+ type: "uint8",
71
+ },
72
+ ],
73
+ stateMutability: "view",
74
+ type: "function",
75
+ },
76
+ {
77
+ inputs: [],
78
+ name: "description",
79
+ outputs: [
80
+ {
81
+ internalType: "string",
82
+ name: "",
83
+ type: "string",
84
+ },
85
+ ],
86
+ stateMutability: "view",
87
+ type: "function",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "uint256",
93
+ name: "roundId",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ name: "getAnswer",
98
+ outputs: [
99
+ {
100
+ internalType: "int256",
101
+ name: "",
102
+ type: "int256",
103
+ },
104
+ ],
105
+ stateMutability: "view",
106
+ type: "function",
107
+ },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: "uint80",
112
+ name: "_roundId",
113
+ type: "uint80",
114
+ },
115
+ ],
116
+ name: "getRoundData",
117
+ outputs: [
118
+ {
119
+ internalType: "uint80",
120
+ name: "roundId",
121
+ type: "uint80",
122
+ },
123
+ {
124
+ internalType: "int256",
125
+ name: "answer",
126
+ type: "int256",
127
+ },
128
+ {
129
+ internalType: "uint256",
130
+ name: "startedAt",
131
+ type: "uint256",
132
+ },
133
+ {
134
+ internalType: "uint256",
135
+ name: "updatedAt",
136
+ type: "uint256",
137
+ },
138
+ {
139
+ internalType: "uint80",
140
+ name: "answeredInRound",
141
+ type: "uint80",
142
+ },
143
+ ],
144
+ stateMutability: "view",
145
+ type: "function",
146
+ },
147
+ {
148
+ inputs: [
149
+ {
150
+ internalType: "uint256",
151
+ name: "roundId",
152
+ type: "uint256",
153
+ },
154
+ ],
155
+ name: "getTimestamp",
156
+ outputs: [
157
+ {
158
+ internalType: "uint256",
159
+ name: "",
160
+ type: "uint256",
161
+ },
162
+ ],
163
+ stateMutability: "view",
164
+ type: "function",
165
+ },
166
+ {
167
+ inputs: [],
168
+ name: "latestAnswer",
169
+ outputs: [
170
+ {
171
+ internalType: "int256",
172
+ name: "",
173
+ type: "int256",
174
+ },
175
+ ],
176
+ stateMutability: "view",
177
+ type: "function",
178
+ },
179
+ {
180
+ inputs: [],
181
+ name: "latestRound",
182
+ outputs: [
183
+ {
184
+ internalType: "uint256",
185
+ name: "",
186
+ type: "uint256",
187
+ },
188
+ ],
189
+ stateMutability: "view",
190
+ type: "function",
191
+ },
192
+ {
193
+ inputs: [],
194
+ name: "latestRoundData",
195
+ outputs: [
196
+ {
197
+ internalType: "uint80",
198
+ name: "roundId",
199
+ type: "uint80",
200
+ },
201
+ {
202
+ internalType: "int256",
203
+ name: "answer",
204
+ type: "int256",
205
+ },
206
+ {
207
+ internalType: "uint256",
208
+ name: "startedAt",
209
+ type: "uint256",
210
+ },
211
+ {
212
+ internalType: "uint256",
213
+ name: "updatedAt",
214
+ type: "uint256",
215
+ },
216
+ {
217
+ internalType: "uint80",
218
+ name: "answeredInRound",
219
+ type: "uint80",
220
+ },
221
+ ],
222
+ stateMutability: "view",
223
+ type: "function",
224
+ },
225
+ {
226
+ inputs: [],
227
+ name: "latestTimestamp",
228
+ outputs: [
229
+ {
230
+ internalType: "uint256",
231
+ name: "",
232
+ type: "uint256",
233
+ },
234
+ ],
235
+ stateMutability: "view",
236
+ type: "function",
237
+ },
238
+ {
239
+ inputs: [],
240
+ name: "quoteOracle",
241
+ outputs: [
242
+ {
243
+ internalType: "address",
244
+ name: "",
245
+ type: "address",
246
+ },
247
+ ],
248
+ stateMutability: "view",
249
+ type: "function",
250
+ },
251
+ {
252
+ inputs: [],
253
+ name: "version",
254
+ outputs: [
255
+ {
256
+ internalType: "uint256",
257
+ name: "",
258
+ type: "uint256",
259
+ },
260
+ ],
261
+ stateMutability: "view",
262
+ type: "function",
263
+ },
264
+ ];
265
+
266
+ export class IPChainlinkOracleWithQuote__factory {
267
+ static readonly abi = _abi;
268
+ static createInterface(): IPChainlinkOracleWithQuoteInterface {
269
+ return new utils.Interface(_abi) as IPChainlinkOracleWithQuoteInterface;
270
+ }
271
+ static connect(
272
+ address: string,
273
+ signerOrProvider: Signer | Provider
274
+ ): IPChainlinkOracleWithQuote {
275
+ return new Contract(
276
+ address,
277
+ _abi,
278
+ signerOrProvider
279
+ ) as IPChainlinkOracleWithQuote;
280
+ }
281
+ }
@@ -0,0 +1,137 @@
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
+ IPChainlinkOracle,
9
+ IPChainlinkOracleInterface,
10
+ } from "../IPChainlinkOracle";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "decimals",
16
+ outputs: [
17
+ {
18
+ internalType: "uint8",
19
+ name: "",
20
+ type: "uint8",
21
+ },
22
+ ],
23
+ stateMutability: "view",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [],
28
+ name: "description",
29
+ outputs: [
30
+ {
31
+ internalType: "string",
32
+ name: "",
33
+ type: "string",
34
+ },
35
+ ],
36
+ stateMutability: "view",
37
+ type: "function",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "uint80",
43
+ name: "_roundId",
44
+ type: "uint80",
45
+ },
46
+ ],
47
+ name: "getRoundData",
48
+ outputs: [
49
+ {
50
+ internalType: "uint80",
51
+ name: "roundId",
52
+ type: "uint80",
53
+ },
54
+ {
55
+ internalType: "int256",
56
+ name: "answer",
57
+ type: "int256",
58
+ },
59
+ {
60
+ internalType: "uint256",
61
+ name: "startedAt",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ internalType: "uint256",
66
+ name: "updatedAt",
67
+ type: "uint256",
68
+ },
69
+ {
70
+ internalType: "uint80",
71
+ name: "answeredInRound",
72
+ type: "uint80",
73
+ },
74
+ ],
75
+ stateMutability: "view",
76
+ type: "function",
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: "latestRoundData",
81
+ outputs: [
82
+ {
83
+ internalType: "uint80",
84
+ name: "roundId",
85
+ type: "uint80",
86
+ },
87
+ {
88
+ internalType: "int256",
89
+ name: "answer",
90
+ type: "int256",
91
+ },
92
+ {
93
+ internalType: "uint256",
94
+ name: "startedAt",
95
+ type: "uint256",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "updatedAt",
100
+ type: "uint256",
101
+ },
102
+ {
103
+ internalType: "uint80",
104
+ name: "answeredInRound",
105
+ type: "uint80",
106
+ },
107
+ ],
108
+ stateMutability: "view",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [],
113
+ name: "version",
114
+ outputs: [
115
+ {
116
+ internalType: "uint256",
117
+ name: "",
118
+ type: "uint256",
119
+ },
120
+ ],
121
+ stateMutability: "view",
122
+ type: "function",
123
+ },
124
+ ];
125
+
126
+ export class IPChainlinkOracle__factory {
127
+ static readonly abi = _abi;
128
+ static createInterface(): IPChainlinkOracleInterface {
129
+ return new utils.Interface(_abi) as IPChainlinkOracleInterface;
130
+ }
131
+ static connect(
132
+ address: string,
133
+ signerOrProvider: Signer | Provider
134
+ ): IPChainlinkOracle {
135
+ return new Contract(address, _abi, signerOrProvider) as IPChainlinkOracle;
136
+ }
137
+ }