This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol"; | |
| contract FundMe{ | |
| // 1、创建一个收款函数 | |
| // 2、记录投资人并且查看 | |
| // 3、在锁定期内,没有达到目标值,投资人在锁定期以后退款 | |
| mapping(address=>uint256) public fundersToAmount; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol"; | |
| contract FundMe{ | |
| mapping(address=>uint256) public fundersToAmount; | |
| AggregatorV3Interface internal dataFeed; | |
| uint256 MINIMUM_VALUE = 100 *10 **18; | |
| constructor(){ | |
| dataFeed = AggregatorV3Interface(0x694AA1769357215DE4FAC081bf1f309aDC325306); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol"; | |
| contract FundMe{ | |
| mapping(address=>uint256) public fundersToAmount; | |
| AggregatorV3Interface internal dataFeed; | |
| uint256 MINIMUM_VALUE = 100 *10 **18; | |
| constructor(){ | |
| dataFeed = AggregatorV3Interface(0x694AA1769357215DE4FAC081bf1f309aDC325306); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| contract FundMe{ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; |