Skip to content

Instantly share code, notes, and snippets.

@a102525417
a102525417 / token...Token_flattened.sol
Created April 27, 2024 07:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// File: token/lib/IBEP20.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the BEP standard.
*/
@a102525417
a102525417 / token...Permision.sol
Created April 27, 2024 07:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// 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) {
@a102525417
a102525417 / token...Pool.sol
Created April 19, 2024 09:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// 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 =
@a102525417
a102525417 / token...Token.sol
Created April 16, 2024 19:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./lib/BEP20.sol";
contract Token is BEP20 {
constructor (
)
@a102525417
a102525417 / token...Token.sol
Created April 16, 2024 19:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./lib/BEP20.sol";
contract Token is BEP20 {
constructor (
)