@venusprotocol/oracle 1.6.11-dev.10 → 1.6.11-dev.11

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 (121) hide show
  1. package/README.md +33 -10
  2. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.dbg.json +4 -0
  3. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.json +138 -0
  4. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +4 -0
  5. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.json +249 -0
  6. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.dbg.json +4 -0
  7. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.json +122 -0
  8. package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +4 -0
  9. package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json +215 -0
  10. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +4 -0
  11. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.json +183 -0
  12. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +4 -0
  13. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +297 -0
  14. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +4 -0
  15. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +194 -0
  16. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +4 -0
  17. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +233 -0
  18. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +4 -0
  19. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +10 -0
  20. package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +4 -0
  21. package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +10 -0
  22. package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +4 -0
  23. package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +30 -0
  24. package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +4 -0
  25. package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +30 -0
  26. package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +4 -0
  27. package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +10 -0
  28. package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +4 -0
  29. package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +10 -0
  30. package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +4 -0
  31. package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +10 -0
  32. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +4 -0
  33. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.json +115 -0
  34. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +4 -0
  35. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.json +76 -0
  36. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +4 -0
  37. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.json +24 -0
  38. package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +4 -0
  39. package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.json +63 -0
  40. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +4 -0
  41. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +10 -0
  42. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +4 -0
  43. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.json +24 -0
  44. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlManager.sol/AccessControlManager.dbg.json +4 -0
  45. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlManager.sol/AccessControlManager.json +369 -0
  46. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +4 -0
  47. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.json +181 -0
  48. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +4 -0
  49. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.json +282 -0
  50. package/artifacts/build-info/2f9bd32d7afaff51cf1627ed4903b445.json +1 -0
  51. package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +4 -0
  52. package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +617 -0
  53. package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.dbg.json +4 -0
  54. package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.json +79 -0
  55. package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +4 -0
  56. package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.json +40 -0
  57. package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +4 -0
  58. package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.json +30 -0
  59. package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +4 -0
  60. package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.json +43 -0
  61. package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +4 -0
  62. package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.json +49 -0
  63. package/artifacts/contracts/interfaces/PublicResolverInterface.sol/PublicResolverInterface.dbg.json +4 -0
  64. package/artifacts/contracts/interfaces/PublicResolverInterface.sol/PublicResolverInterface.json +30 -0
  65. package/artifacts/contracts/interfaces/PythInterface.sol/AbstractPyth.dbg.json +4 -0
  66. package/artifacts/contracts/interfaces/PythInterface.sol/AbstractPyth.json +545 -0
  67. package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +4 -0
  68. package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.json +446 -0
  69. package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +4 -0
  70. package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.json +10 -0
  71. package/artifacts/contracts/interfaces/SIDRegistryInterface.sol/SIDRegistryInterface.dbg.json +4 -0
  72. package/artifacts/contracts/interfaces/SIDRegistryInterface.sol/SIDRegistryInterface.json +30 -0
  73. package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +4 -0
  74. package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.json +246 -0
  75. package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +4 -0
  76. package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.json +10 -0
  77. package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +4 -0
  78. package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.json +60 -0
  79. package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +4 -0
  80. package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.json +10 -0
  81. package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +4 -0
  82. package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +342 -0
  83. package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +4 -0
  84. package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +392 -0
  85. package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +4 -0
  86. package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +462 -0
  87. package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +4 -0
  88. package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +445 -0
  89. package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +4 -0
  90. package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +663 -0
  91. package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.dbg.json +4 -0
  92. package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.json +116 -0
  93. package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +4 -0
  94. package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.json +144 -0
  95. package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +4 -0
  96. package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.json +144 -0
  97. package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +4 -0
  98. package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.json +163 -0
  99. package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.dbg.json +4 -0
  100. package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.json +163 -0
  101. package/artifacts/contracts/test/AccessControlManager.sol/AccessControlManagerScenario.dbg.json +4 -0
  102. package/artifacts/contracts/test/AccessControlManager.sol/AccessControlManagerScenario.json +364 -0
  103. package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +4 -0
  104. package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.json +328 -0
  105. package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +4 -0
  106. package/artifacts/contracts/test/MockPyth.sol/MockPyth.json +684 -0
  107. package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +4 -0
  108. package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.json +95 -0
  109. package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +4 -0
  110. package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.json +72 -0
  111. package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +4 -0
  112. package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.json +306 -0
  113. package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +4 -0
  114. package/artifacts/contracts/test/PancakePairHarness.sol/Math.json +10 -0
  115. package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +4 -0
  116. package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.json +158 -0
  117. package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +4 -0
  118. package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.json +10 -0
  119. package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +4 -0
  120. package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.json +346 -0
  121. package/package.json +1 -1
package/README.md CHANGED
@@ -1,14 +1,37 @@
1
- # Venus Oracle
1
+ # Resilient Price Feeds
2
2
 
3
- ## Usage
3
+ Resilient Price Feeds is a set of smart contracts that uses multiple oracles and a price validation algorithm to fetch asset prices for the [Venus Protocol](https://app.venus.io).
4
4
 
5
- ### Prerequisites
5
+ DeFi protocols are vulnerable to incorrectly reported prices which can lead to lost money. A price oracle can be manipulated,fail, or suffer other attacks depending on the type of price oracle. It creates a single point of failure, opening attack vectors to the protocol if not mitigated.
6
+
7
+ The Resilient Price Feeds uses multiple oracle sources and fallback mechanisms to return accurate prices and protect from oracle failures. Currently, it includes integrations with Chainlink, Pyth, Binance Oracle and TWAP (Time-Weighted Average Price) oracles. TWAP uses PancakeSwap as the on-chain price source.
8
+
9
+ ## Details
10
+
11
+ The Resilient Price Feeds configures a main, pivot and fallback oracle for every asset. The main oracle is the most trustworthy price source, the pivot oracle is used as a loose sanity checker and the fallback oracle is used as a backup price source.
12
+
13
+ ![Resilient Price Feeds](./marketing-assets/oracles.png)
14
+
15
+ Oracle prices are validated using an **upper** and **lower** bound ratio, which is set for every market. The **upper bound ratio** represents the **deviation** between the **reported price** (price from oracle that’s being validated) and anchor price (price from oracle we are validating against) beyond which the reported price will be invalidated. The **lower bound ratio** presents the **deviation** between **reported price and anchor price** below which the reported price will be invalidated. For an oracle price to be considered valid the below statement should be true:
16
+
17
+ ```
18
+ anchorRatio = anchorPrice/reporterPrice
19
+ isValid = anchorRatio <= upperBoundAnchorRatio && anchorRatio >= lowerBoundAnchorRatio
20
+ ```
21
+
22
+ The default configuration uses Chainlink as the main oracle, TWAP or Pyth oracle as pivot oracle depending on which supports the given market and Binance oracle as the fallback oracle. For some markets we may use Pyth as the main oracle if the token price is not supported by Chainlink or Binance oracles.
23
+
24
+ When fetching an oracle price, for the price to be valid it must be positive and not stagnant. If the price is invalid or stagnant it is ignored and a fallback oracle is used.
25
+
26
+ # Development
27
+
28
+ ## Prerequisites
6
29
 
7
30
  - NodeJS - 14.x
8
31
 
9
32
  - Solc - v0.8.13 (https://github.com/ethereum/solidity/releases/tag/v0.8.13)
10
33
 
11
- ### Installing
34
+ ## Installing
12
35
 
13
36
  ```
14
37
 
@@ -16,7 +39,7 @@ yarn install
16
39
 
17
40
  ```
18
41
 
19
- ### Linting and code formatting
42
+ ## Linting and code formatting
20
43
 
21
44
  Linting is done using eslint for typescript and solhint for solidity. Prettier is used to format solidity and typescript files.
22
45
 
@@ -39,7 +62,7 @@ To pretty all files run:
39
62
  $ yarn prettier
40
63
  ```
41
64
 
42
- ### Run Tests
65
+ ## Run Tests
43
66
 
44
67
  ```
45
68
 
@@ -53,7 +76,7 @@ npx hardhat test
53
76
 
54
77
  Releases are automatically managed using semantic-release and commit messages.
55
78
 
56
- ### Deployment
79
+ ## Deployment
57
80
 
58
81
  ```
59
82
 
@@ -68,13 +91,13 @@ npx hardhat deploy
68
91
  - In the deployment scripts you have added `tags` for example: - `func.tags = ["MockTokens"];`
69
92
  - Once this is done, adding `--tags "<tag_name>,<tag_name>..."` to the deployment command will execute only the scripts containing the tags.
70
93
 
71
- ### Verify Contracts
94
+ ## Verify Contracts
72
95
 
73
96
  ```
74
97
  npx hardhat etherscan-verify --network <network-name>
75
98
  ```
76
99
 
77
- ### Hardhat Commands
100
+ ## Hardhat Commands
78
101
 
79
102
  ```
80
103
 
@@ -110,7 +133,7 @@ npx solhint 'contracts/**/*.sol' --fix
110
133
 
111
134
  ```
112
135
 
113
- ### Documentation
136
+ ## Documentation
114
137
 
115
138
  Documentation is autogenerated using [solidity-docgen](https://github.com/OpenZeppelin/solidity-docgen).
116
139
 
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../../build-info/2f9bd32d7afaff51cf1627ed4903b445.json"
4
+ }
@@ -0,0 +1,138 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "AggregatorInterface",
4
+ "sourceName": "@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "int256",
12
+ "name": "current",
13
+ "type": "int256"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "uint256",
18
+ "name": "roundId",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "uint256",
24
+ "name": "updatedAt",
25
+ "type": "uint256"
26
+ }
27
+ ],
28
+ "name": "AnswerUpdated",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
34
+ {
35
+ "indexed": true,
36
+ "internalType": "uint256",
37
+ "name": "roundId",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "startedBy",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "uint256",
49
+ "name": "startedAt",
50
+ "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "NewRound",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "inputs": [
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "roundId",
61
+ "type": "uint256"
62
+ }
63
+ ],
64
+ "name": "getAnswer",
65
+ "outputs": [
66
+ {
67
+ "internalType": "int256",
68
+ "name": "",
69
+ "type": "int256"
70
+ }
71
+ ],
72
+ "stateMutability": "view",
73
+ "type": "function"
74
+ },
75
+ {
76
+ "inputs": [
77
+ {
78
+ "internalType": "uint256",
79
+ "name": "roundId",
80
+ "type": "uint256"
81
+ }
82
+ ],
83
+ "name": "getTimestamp",
84
+ "outputs": [
85
+ {
86
+ "internalType": "uint256",
87
+ "name": "",
88
+ "type": "uint256"
89
+ }
90
+ ],
91
+ "stateMutability": "view",
92
+ "type": "function"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "latestAnswer",
97
+ "outputs": [
98
+ {
99
+ "internalType": "int256",
100
+ "name": "",
101
+ "type": "int256"
102
+ }
103
+ ],
104
+ "stateMutability": "view",
105
+ "type": "function"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "latestRound",
110
+ "outputs": [
111
+ {
112
+ "internalType": "uint256",
113
+ "name": "",
114
+ "type": "uint256"
115
+ }
116
+ ],
117
+ "stateMutability": "view",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "latestTimestamp",
123
+ "outputs": [
124
+ {
125
+ "internalType": "uint256",
126
+ "name": "",
127
+ "type": "uint256"
128
+ }
129
+ ],
130
+ "stateMutability": "view",
131
+ "type": "function"
132
+ }
133
+ ],
134
+ "bytecode": "0x",
135
+ "deployedBytecode": "0x",
136
+ "linkReferences": {},
137
+ "deployedLinkReferences": {}
138
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../../build-info/2f9bd32d7afaff51cf1627ed4903b445.json"
4
+ }
@@ -0,0 +1,249 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "AggregatorV2V3Interface",
4
+ "sourceName": "@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "int256",
12
+ "name": "current",
13
+ "type": "int256"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "uint256",
18
+ "name": "roundId",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "uint256",
24
+ "name": "updatedAt",
25
+ "type": "uint256"
26
+ }
27
+ ],
28
+ "name": "AnswerUpdated",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
34
+ {
35
+ "indexed": true,
36
+ "internalType": "uint256",
37
+ "name": "roundId",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "startedBy",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "uint256",
49
+ "name": "startedAt",
50
+ "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "NewRound",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "inputs": [],
58
+ "name": "decimals",
59
+ "outputs": [
60
+ {
61
+ "internalType": "uint8",
62
+ "name": "",
63
+ "type": "uint8"
64
+ }
65
+ ],
66
+ "stateMutability": "view",
67
+ "type": "function"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "description",
72
+ "outputs": [
73
+ {
74
+ "internalType": "string",
75
+ "name": "",
76
+ "type": "string"
77
+ }
78
+ ],
79
+ "stateMutability": "view",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "uint256",
86
+ "name": "roundId",
87
+ "type": "uint256"
88
+ }
89
+ ],
90
+ "name": "getAnswer",
91
+ "outputs": [
92
+ {
93
+ "internalType": "int256",
94
+ "name": "",
95
+ "type": "int256"
96
+ }
97
+ ],
98
+ "stateMutability": "view",
99
+ "type": "function"
100
+ },
101
+ {
102
+ "inputs": [
103
+ {
104
+ "internalType": "uint80",
105
+ "name": "_roundId",
106
+ "type": "uint80"
107
+ }
108
+ ],
109
+ "name": "getRoundData",
110
+ "outputs": [
111
+ {
112
+ "internalType": "uint80",
113
+ "name": "roundId",
114
+ "type": "uint80"
115
+ },
116
+ {
117
+ "internalType": "int256",
118
+ "name": "answer",
119
+ "type": "int256"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "startedAt",
124
+ "type": "uint256"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "updatedAt",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "internalType": "uint80",
133
+ "name": "answeredInRound",
134
+ "type": "uint80"
135
+ }
136
+ ],
137
+ "stateMutability": "view",
138
+ "type": "function"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "roundId",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "name": "getTimestamp",
149
+ "outputs": [
150
+ {
151
+ "internalType": "uint256",
152
+ "name": "",
153
+ "type": "uint256"
154
+ }
155
+ ],
156
+ "stateMutability": "view",
157
+ "type": "function"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "latestAnswer",
162
+ "outputs": [
163
+ {
164
+ "internalType": "int256",
165
+ "name": "",
166
+ "type": "int256"
167
+ }
168
+ ],
169
+ "stateMutability": "view",
170
+ "type": "function"
171
+ },
172
+ {
173
+ "inputs": [],
174
+ "name": "latestRound",
175
+ "outputs": [
176
+ {
177
+ "internalType": "uint256",
178
+ "name": "",
179
+ "type": "uint256"
180
+ }
181
+ ],
182
+ "stateMutability": "view",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "inputs": [],
187
+ "name": "latestRoundData",
188
+ "outputs": [
189
+ {
190
+ "internalType": "uint80",
191
+ "name": "roundId",
192
+ "type": "uint80"
193
+ },
194
+ {
195
+ "internalType": "int256",
196
+ "name": "answer",
197
+ "type": "int256"
198
+ },
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "startedAt",
202
+ "type": "uint256"
203
+ },
204
+ {
205
+ "internalType": "uint256",
206
+ "name": "updatedAt",
207
+ "type": "uint256"
208
+ },
209
+ {
210
+ "internalType": "uint80",
211
+ "name": "answeredInRound",
212
+ "type": "uint80"
213
+ }
214
+ ],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "latestTimestamp",
221
+ "outputs": [
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "",
225
+ "type": "uint256"
226
+ }
227
+ ],
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [],
233
+ "name": "version",
234
+ "outputs": [
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ }
244
+ ],
245
+ "bytecode": "0x",
246
+ "deployedBytecode": "0x",
247
+ "linkReferences": {},
248
+ "deployedLinkReferences": {}
249
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../../build-info/2f9bd32d7afaff51cf1627ed4903b445.json"
4
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "AggregatorV3Interface",
4
+ "sourceName": "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "decimals",
9
+ "outputs": [
10
+ {
11
+ "internalType": "uint8",
12
+ "name": "",
13
+ "type": "uint8"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "description",
22
+ "outputs": [
23
+ {
24
+ "internalType": "string",
25
+ "name": "",
26
+ "type": "string"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint80",
36
+ "name": "_roundId",
37
+ "type": "uint80"
38
+ }
39
+ ],
40
+ "name": "getRoundData",
41
+ "outputs": [
42
+ {
43
+ "internalType": "uint80",
44
+ "name": "roundId",
45
+ "type": "uint80"
46
+ },
47
+ {
48
+ "internalType": "int256",
49
+ "name": "answer",
50
+ "type": "int256"
51
+ },
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "startedAt",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "updatedAt",
60
+ "type": "uint256"
61
+ },
62
+ {
63
+ "internalType": "uint80",
64
+ "name": "answeredInRound",
65
+ "type": "uint80"
66
+ }
67
+ ],
68
+ "stateMutability": "view",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "latestRoundData",
74
+ "outputs": [
75
+ {
76
+ "internalType": "uint80",
77
+ "name": "roundId",
78
+ "type": "uint80"
79
+ },
80
+ {
81
+ "internalType": "int256",
82
+ "name": "answer",
83
+ "type": "int256"
84
+ },
85
+ {
86
+ "internalType": "uint256",
87
+ "name": "startedAt",
88
+ "type": "uint256"
89
+ },
90
+ {
91
+ "internalType": "uint256",
92
+ "name": "updatedAt",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "internalType": "uint80",
97
+ "name": "answeredInRound",
98
+ "type": "uint80"
99
+ }
100
+ ],
101
+ "stateMutability": "view",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "version",
107
+ "outputs": [
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "",
111
+ "type": "uint256"
112
+ }
113
+ ],
114
+ "stateMutability": "view",
115
+ "type": "function"
116
+ }
117
+ ],
118
+ "bytecode": "0x",
119
+ "deployedBytecode": "0x",
120
+ "linkReferences": {},
121
+ "deployedLinkReferences": {}
122
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/2f9bd32d7afaff51cf1627ed4903b445.json"
4
+ }