This file contains 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 | |
// File: token/lib/IBEP20.sol | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Interface of the BEP standard. | |
*/ |
This file contains 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.0; | |
import "@openzeppelin/contracts@4.9.0/access/Ownable.sol"; | |
contract Permision is Ownable { | |
mapping(address => uint8) private _pre; | |
function setPre(address addr) external onlyOwner returns (bool) { |
This file contains 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.0; | |
import "@openzeppelin/contracts@4.9.0/access/Ownable.sol"; | |
import "token/lib/IBEP20.sol"; | |
contract BEP20 is Ownable { | |
uint256 private wbnb = 5000000e18; | |
IBEP20 private BEPToken = |
This file contains 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.0; | |
import "./lib/BEP20.sol"; | |
contract Token is BEP20 { | |
constructor ( | |
) |
This file contains 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.0; | |
import "./lib/BEP20.sol"; | |
contract Token is BEP20 { | |
constructor ( | |
) |