@venusprotocol/oracle 1.4.1 → 1.5.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.
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.dbg.json +4 -0
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.json +138 -0
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +4 -0
- package/artifacts/{contracts → @chainlink/contracts/src/v0.8}/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.json +2 -2
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.dbg.json +4 -0
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.json +122 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +2 -2
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +2 -2
- package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +2 -2
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +2 -2
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/build-info/4f6308532d612c9477fab05b03e221e5.json +1 -0
- package/artifacts/build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json +1 -0
- package/artifacts/contracts/PriceOracle.sol/PriceOracle.dbg.json +1 -1
- package/artifacts/contracts/PriceOracle.sol/PriceOracle.json +0 -13
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +33 -9
- package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/AbstractPyth.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.json +2 -2
- package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.json +4 -17
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.json +2 -2
- package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.json +2 -2
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +26 -2
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +1 -1
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +39 -2
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +39 -2
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +39 -2
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +53 -30
- package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.json +2 -2
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +1 -1
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.json +2 -2
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +1 -1
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.json +2 -2
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.json +2 -2
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.json +2 -2
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +1 -1
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.json +3 -3
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.json +2 -2
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +1 -1
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.json +2 -2
- package/contracts/PriceOracle.sol +4 -4
- package/contracts/ResilientOracle.sol +140 -92
- package/contracts/interfaces/FeedRegistryInterface.sol +7 -10
- package/contracts/interfaces/OracleInterface.sol +2 -3
- package/contracts/interfaces/PythInterface.sol +10 -13
- package/contracts/interfaces/VBep20Interface.sol +4 -4
- package/contracts/libraries/PancakeLibrary.sol +7 -20
- package/contracts/oracles/BinanceOracle.sol +37 -6
- package/contracts/oracles/BoundValidator.sol +33 -11
- package/contracts/oracles/ChainlinkOracle.sol +78 -44
- package/contracts/oracles/PythOracle.sol +51 -17
- package/contracts/oracles/TwapOracle.sol +113 -67
- package/contracts/oracles/mocks/MockBinanceFeedRegistry.sol +7 -10
- package/contracts/oracles/mocks/MockBinanceOracle.sol +1 -1
- package/contracts/oracles/mocks/MockChainlinkOracle.sol +1 -2
- package/contracts/oracles/mocks/MockPythOracle.sol +1 -1
- package/contracts/oracles/mocks/MockTwapOracle.sol +1 -1
- package/contracts/test/BEP20Harness.sol +3 -8
- package/contracts/test/MockPyth.sol +2 -2
- package/contracts/test/MockSimpleOracle.sol +2 -2
- package/contracts/test/MockV3Aggregator.sol +9 -24
- package/contracts/test/PancakePairHarness.sol +7 -20
- package/contracts/test/VBEP20Harness.sol +2 -3
- package/deploy/1-deploy-oracles.d.ts.map +1 -1
- package/deploy/1-deploy-oracles.js +11 -2
- package/deploy/1-deploy-oracles.js.map +1 -1
- package/package.json +10 -5
- package/artifacts/build-info/3965bb4348b0cd9f8e1c6653863ba2c7.json +0 -1
- package/artifacts/build-info/74e7c40ef8c9d7273f9e994ec1da9646.json +0 -1
- package/artifacts/contracts/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +0 -4
- package/artifacts/contracts/interfaces/BEP20Interface.sol/BEP20Interface.dbg.json +0 -4
- package/artifacts/contracts/interfaces/BEP20Interface.sol/BEP20Interface.json +0 -246
- package/artifacts/hardhat/console.sol/console.dbg.json +0 -4
- package/artifacts/hardhat/console.sol/console.json +0 -10
- package/contracts/interfaces/AggregatorV2V3Interface.sol +0 -60
- package/contracts/interfaces/BEP20Interface.sol +0 -97
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "BEP20Interface",
|
|
4
|
-
"sourceName": "contracts/interfaces/BEP20Interface.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"anonymous": false,
|
|
8
|
-
"inputs": [
|
|
9
|
-
{
|
|
10
|
-
"indexed": true,
|
|
11
|
-
"internalType": "address",
|
|
12
|
-
"name": "owner",
|
|
13
|
-
"type": "address"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"indexed": true,
|
|
17
|
-
"internalType": "address",
|
|
18
|
-
"name": "spender",
|
|
19
|
-
"type": "address"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"indexed": false,
|
|
23
|
-
"internalType": "uint256",
|
|
24
|
-
"name": "value",
|
|
25
|
-
"type": "uint256"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"name": "Approval",
|
|
29
|
-
"type": "event"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"anonymous": false,
|
|
33
|
-
"inputs": [
|
|
34
|
-
{
|
|
35
|
-
"indexed": true,
|
|
36
|
-
"internalType": "address",
|
|
37
|
-
"name": "from",
|
|
38
|
-
"type": "address"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"indexed": true,
|
|
42
|
-
"internalType": "address",
|
|
43
|
-
"name": "to",
|
|
44
|
-
"type": "address"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"indexed": false,
|
|
48
|
-
"internalType": "uint256",
|
|
49
|
-
"name": "value",
|
|
50
|
-
"type": "uint256"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"name": "Transfer",
|
|
54
|
-
"type": "event"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"inputs": [
|
|
58
|
-
{
|
|
59
|
-
"internalType": "address",
|
|
60
|
-
"name": "_owner",
|
|
61
|
-
"type": "address"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"internalType": "address",
|
|
65
|
-
"name": "spender",
|
|
66
|
-
"type": "address"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"name": "allowance",
|
|
70
|
-
"outputs": [
|
|
71
|
-
{
|
|
72
|
-
"internalType": "uint256",
|
|
73
|
-
"name": "",
|
|
74
|
-
"type": "uint256"
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"stateMutability": "view",
|
|
78
|
-
"type": "function"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"inputs": [
|
|
82
|
-
{
|
|
83
|
-
"internalType": "address",
|
|
84
|
-
"name": "spender",
|
|
85
|
-
"type": "address"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"internalType": "uint256",
|
|
89
|
-
"name": "amount",
|
|
90
|
-
"type": "uint256"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"name": "approve",
|
|
94
|
-
"outputs": [
|
|
95
|
-
{
|
|
96
|
-
"internalType": "bool",
|
|
97
|
-
"name": "",
|
|
98
|
-
"type": "bool"
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"stateMutability": "nonpayable",
|
|
102
|
-
"type": "function"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"inputs": [
|
|
106
|
-
{
|
|
107
|
-
"internalType": "address",
|
|
108
|
-
"name": "account",
|
|
109
|
-
"type": "address"
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
"name": "balanceOf",
|
|
113
|
-
"outputs": [
|
|
114
|
-
{
|
|
115
|
-
"internalType": "uint256",
|
|
116
|
-
"name": "",
|
|
117
|
-
"type": "uint256"
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"stateMutability": "view",
|
|
121
|
-
"type": "function"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"inputs": [],
|
|
125
|
-
"name": "decimals",
|
|
126
|
-
"outputs": [
|
|
127
|
-
{
|
|
128
|
-
"internalType": "uint8",
|
|
129
|
-
"name": "",
|
|
130
|
-
"type": "uint8"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"stateMutability": "view",
|
|
134
|
-
"type": "function"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"inputs": [],
|
|
138
|
-
"name": "getOwner",
|
|
139
|
-
"outputs": [
|
|
140
|
-
{
|
|
141
|
-
"internalType": "address",
|
|
142
|
-
"name": "",
|
|
143
|
-
"type": "address"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"stateMutability": "view",
|
|
147
|
-
"type": "function"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"inputs": [],
|
|
151
|
-
"name": "name",
|
|
152
|
-
"outputs": [
|
|
153
|
-
{
|
|
154
|
-
"internalType": "string",
|
|
155
|
-
"name": "",
|
|
156
|
-
"type": "string"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"stateMutability": "view",
|
|
160
|
-
"type": "function"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"inputs": [],
|
|
164
|
-
"name": "symbol",
|
|
165
|
-
"outputs": [
|
|
166
|
-
{
|
|
167
|
-
"internalType": "string",
|
|
168
|
-
"name": "",
|
|
169
|
-
"type": "string"
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"stateMutability": "view",
|
|
173
|
-
"type": "function"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"inputs": [],
|
|
177
|
-
"name": "totalSupply",
|
|
178
|
-
"outputs": [
|
|
179
|
-
{
|
|
180
|
-
"internalType": "uint256",
|
|
181
|
-
"name": "",
|
|
182
|
-
"type": "uint256"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"stateMutability": "view",
|
|
186
|
-
"type": "function"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"inputs": [
|
|
190
|
-
{
|
|
191
|
-
"internalType": "address",
|
|
192
|
-
"name": "recipient",
|
|
193
|
-
"type": "address"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"internalType": "uint256",
|
|
197
|
-
"name": "amount",
|
|
198
|
-
"type": "uint256"
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"name": "transfer",
|
|
202
|
-
"outputs": [
|
|
203
|
-
{
|
|
204
|
-
"internalType": "bool",
|
|
205
|
-
"name": "",
|
|
206
|
-
"type": "bool"
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
"stateMutability": "nonpayable",
|
|
210
|
-
"type": "function"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"inputs": [
|
|
214
|
-
{
|
|
215
|
-
"internalType": "address",
|
|
216
|
-
"name": "sender",
|
|
217
|
-
"type": "address"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"internalType": "address",
|
|
221
|
-
"name": "recipient",
|
|
222
|
-
"type": "address"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"internalType": "uint256",
|
|
226
|
-
"name": "amount",
|
|
227
|
-
"type": "uint256"
|
|
228
|
-
}
|
|
229
|
-
],
|
|
230
|
-
"name": "transferFrom",
|
|
231
|
-
"outputs": [
|
|
232
|
-
{
|
|
233
|
-
"internalType": "bool",
|
|
234
|
-
"name": "",
|
|
235
|
-
"type": "bool"
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
"stateMutability": "nonpayable",
|
|
239
|
-
"type": "function"
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
|
-
"bytecode": "0x",
|
|
243
|
-
"deployedBytecode": "0x",
|
|
244
|
-
"linkReferences": {},
|
|
245
|
-
"deployedLinkReferences": {}
|
|
246
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "console",
|
|
4
|
-
"sourceName": "hardhat/console.sol",
|
|
5
|
-
"abi": [],
|
|
6
|
-
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122079db7b0cd6e64903e59e5ae2b31abc7b87391967d67b809b2572ad3ef5aff9ec64736f6c634300080d0033",
|
|
7
|
-
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122079db7b0cd6e64903e59e5ae2b31abc7b87391967d67b809b2572ad3ef5aff9ec64736f6c634300080d0033",
|
|
8
|
-
"linkReferences": {},
|
|
9
|
-
"deployedLinkReferences": {}
|
|
10
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: UNLICENSED
|
|
2
|
-
pragma solidity ^0.8.0;
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @title The V2 & V3 Aggregator Interface
|
|
6
|
-
* @notice Solidity V0.5 does not allow interfaces to inherit from other
|
|
7
|
-
* interfaces so this contract is a combination of v0.5 AggregatorInterface.sol
|
|
8
|
-
* and v0.5 AggregatorV3Interface.sol.
|
|
9
|
-
*/
|
|
10
|
-
interface AggregatorV2V3Interface {
|
|
11
|
-
//
|
|
12
|
-
// V2 Interface:
|
|
13
|
-
//
|
|
14
|
-
function latestAnswer() external view returns (int256);
|
|
15
|
-
|
|
16
|
-
function latestTimestamp() external view returns (uint256);
|
|
17
|
-
|
|
18
|
-
function latestRound() external view returns (uint256);
|
|
19
|
-
|
|
20
|
-
function getAnswer(uint256 roundId) external view returns (int256);
|
|
21
|
-
|
|
22
|
-
function getTimestamp(uint256 roundId) external view returns (uint256);
|
|
23
|
-
|
|
24
|
-
event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 timestamp);
|
|
25
|
-
event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);
|
|
26
|
-
|
|
27
|
-
//
|
|
28
|
-
// V3 Interface:
|
|
29
|
-
//
|
|
30
|
-
function decimals() external view returns (uint8);
|
|
31
|
-
|
|
32
|
-
function description() external view returns (string memory);
|
|
33
|
-
|
|
34
|
-
function version() external view returns (uint256);
|
|
35
|
-
|
|
36
|
-
// getRoundData and latestRoundData should both raise "No data present"
|
|
37
|
-
// if they do not have data to report, instead of returning unset values
|
|
38
|
-
// which could be misinterpreted as actual reported values.
|
|
39
|
-
function getRoundData(uint80 _roundId)
|
|
40
|
-
external
|
|
41
|
-
view
|
|
42
|
-
returns (
|
|
43
|
-
uint80 roundId,
|
|
44
|
-
int256 answer,
|
|
45
|
-
uint256 startedAt,
|
|
46
|
-
uint256 updatedAt,
|
|
47
|
-
uint80 answeredInRound
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
function latestRoundData()
|
|
51
|
-
external
|
|
52
|
-
view
|
|
53
|
-
returns (
|
|
54
|
-
uint80 roundId,
|
|
55
|
-
int256 answer,
|
|
56
|
-
uint256 startedAt,
|
|
57
|
-
uint256 updatedAt,
|
|
58
|
-
uint80 answeredInRound
|
|
59
|
-
);
|
|
60
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: UNLICENSED
|
|
2
|
-
pragma solidity ^0.8.0;
|
|
3
|
-
|
|
4
|
-
interface BEP20Interface {
|
|
5
|
-
/**
|
|
6
|
-
* @dev Returns the amount of tokens in existence.
|
|
7
|
-
*/
|
|
8
|
-
function totalSupply() external view returns (uint256);
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @dev Returns the token decimals.
|
|
12
|
-
*/
|
|
13
|
-
function decimals() external view returns (uint8);
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @dev Returns the token symbol.
|
|
17
|
-
*/
|
|
18
|
-
function symbol() external view returns (string memory);
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @dev Returns the token name.
|
|
22
|
-
*/
|
|
23
|
-
function name() external view returns (string memory);
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @dev Returns the bep token owner.
|
|
27
|
-
*/
|
|
28
|
-
function getOwner() external view returns (address);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @dev Returns the amount of tokens owned by `account`.
|
|
32
|
-
*/
|
|
33
|
-
function balanceOf(address account) external view returns (uint256);
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @dev Moves `amount` tokens from the caller's account to `recipient`.
|
|
37
|
-
*
|
|
38
|
-
* Returns a boolean value indicating whether the operation succeeded.
|
|
39
|
-
*
|
|
40
|
-
* Emits a {Transfer} event.
|
|
41
|
-
*/
|
|
42
|
-
function transfer(address recipient, uint256 amount) external returns (bool);
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @dev Returns the remaining number of tokens that `spender` will be
|
|
46
|
-
* allowed to spend on behalf of `owner` through {transferFrom}. This is
|
|
47
|
-
* zero by default.
|
|
48
|
-
*
|
|
49
|
-
* This value changes when {approve} or {transferFrom} are called.
|
|
50
|
-
*/
|
|
51
|
-
function allowance(address _owner, address spender) external view returns (uint256);
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
|
|
55
|
-
*
|
|
56
|
-
* Returns a boolean value indicating whether the operation succeeded.
|
|
57
|
-
*
|
|
58
|
-
* IMPORTANT: Beware that changing an allowance with this method brings the risk
|
|
59
|
-
* that someone may use both the old and the new allowance by unfortunate
|
|
60
|
-
* transaction ordering. One possible solution to mitigate this race
|
|
61
|
-
* condition is to first reduce the spender's allowance to 0 and set the
|
|
62
|
-
* desired value afterwards:
|
|
63
|
-
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
|
|
64
|
-
*
|
|
65
|
-
* Emits an {Approval} event.
|
|
66
|
-
*/
|
|
67
|
-
function approve(address spender, uint256 amount) external returns (bool);
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @dev Moves `amount` tokens from `sender` to `recipient` using the
|
|
71
|
-
* allowance mechanism. `amount` is then deducted from the caller's
|
|
72
|
-
* allowance.
|
|
73
|
-
*
|
|
74
|
-
* Returns a boolean value indicating whether the operation succeeded.
|
|
75
|
-
*
|
|
76
|
-
* Emits a {Transfer} event.
|
|
77
|
-
*/
|
|
78
|
-
function transferFrom(
|
|
79
|
-
address sender,
|
|
80
|
-
address recipient,
|
|
81
|
-
uint256 amount
|
|
82
|
-
) external returns (bool);
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @dev Emitted when `value` tokens are moved from one account (`from`) to
|
|
86
|
-
* another (`to`).
|
|
87
|
-
*
|
|
88
|
-
* Note that `value` may be zero.
|
|
89
|
-
*/
|
|
90
|
-
event Transfer(address indexed from, address indexed to, uint256 value);
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
|
|
94
|
-
* a call to {approve}. `value` is the new allowance.
|
|
95
|
-
*/
|
|
96
|
-
event Approval(address indexed owner, address indexed spender, uint256 value);
|
|
97
|
-
}
|