Removed unnecesary libs
This commit is contained in:
@@ -1,7 +1,37 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
pragma solidity ^0.8.20;
|
pragma solidity ^0.8.20;
|
||||||
|
|
||||||
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
|
interface AggregatorV3Interface {
|
||||||
|
function decimals() external view returns (uint8);
|
||||||
|
|
||||||
|
function description() external view returns (string memory);
|
||||||
|
|
||||||
|
function version() external view returns (uint256);
|
||||||
|
|
||||||
|
function getRoundData(
|
||||||
|
uint80 _roundId
|
||||||
|
)
|
||||||
|
external
|
||||||
|
view
|
||||||
|
returns (
|
||||||
|
uint80 roundId,
|
||||||
|
int256 answer,
|
||||||
|
uint256 startedAt,
|
||||||
|
uint256 updatedAt,
|
||||||
|
uint80 answeredInRound
|
||||||
|
);
|
||||||
|
|
||||||
|
function latestRoundData()
|
||||||
|
external
|
||||||
|
view
|
||||||
|
returns (
|
||||||
|
uint80 roundId,
|
||||||
|
int256 answer,
|
||||||
|
uint256 startedAt,
|
||||||
|
uint256 updatedAt,
|
||||||
|
uint80 answeredInRound
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
contract SargaTrxUsdPrice {
|
contract SargaTrxUsdPrice {
|
||||||
AggregatorV3Interface internal _priceFeed;
|
AggregatorV3Interface internal _priceFeed;
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chainlink/contracts": "1.4.0",
|
|
||||||
"@noble/secp256k1": "1.7.1",
|
"@noble/secp256k1": "1.7.1",
|
||||||
"dotenv": "16.4.7",
|
"dotenv": "16.4.7",
|
||||||
"solc": "0.8.20",
|
"solc": "0.8.20",
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
// test/SargaTrxUsdPrice.test.js
|
// test/SargaTrxUsdPrice.test.js
|
||||||
|
|
||||||
require('dotenv').config()
|
|
||||||
|
|
||||||
const TronWeb = require('tronweb')
|
const TronWeb = require('tronweb')
|
||||||
const HttpProvider = TronWeb.providers.HttpProvider
|
const HttpProvider = TronWeb.providers.HttpProvider
|
||||||
const API_URL = process.env.TRON_API
|
const API_URL = process.env.TRON_API
|
||||||
|
Reference in New Issue
Block a user