Skip to content

Instantly share code, notes, and snippets.

View KBPsystem777's full-sized avatar
💭
Try getMedixAI.com

Koleen BP KBPsystem777

💭
Try getMedixAI.com
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Life.sol";
import "./Marketplace.sol";
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./ManageLife.sol";
import "./MLInvestorsNFT.sol";
/**
// Setting a unix lock date for ML
new Date("10/17/2024").getTime() / 1000; // Returns 1729094400
// Decoding a unix lock date
new Date(1729094400 * 1000); // Returns Sun Dec 25 2022 00:00:00 GMT+0800 (Philippine Standard Time)
@KBPsystem777
KBPsystem777 / UntouchableNFT_flat.sol
Created September 30, 2022 15:00
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.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
// File: @openzeppelin/contracts@4.7.3/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
@KBPsystem777
KBPsystem777 / UntouchableNFT.sol
Created September 30, 2022 14:49
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.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts@4.7.3/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.7.3/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts@4.7.3/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts@4.7.3/access/Ownable.sol";
import "@openzeppelin/contracts@4.7.3/utils/Counters.sol";
contract UntouchableNFT is ERC721, ERC721URIStorage, ERC721Burnable, Ownable {
@KBPsystem777
KBPsystem777 / MirrorBallNFT.sol
Last active September 28, 2022 07:46
MirrorBallNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract MirrorBallNFT is ERC721A, Ownable {
uint256 MAX_MINTS = 2000;
uint256 MAX_SUPPLY = 101714;
uint256 public mintRate = 0.000101714 ether;
@KBPsystem777
KBPsystem777 / AI-Art_flat.sol
Created July 12, 2022 01:04
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=undefined&optimize=false&runs=200&gist=
// File: erc721a/contracts/IERC721A.sol
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
@KBPsystem777
KBPsystem777 / contracts...AI-Art.sol
Created July 12, 2022 01:02
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=undefined&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// @author Koleen BP - koleen.bp@outlook.com, https://koleenbp.com
pragma solidity ^0.8.4;
import "erc721a/contracts/ERC721A.sol";
contract AIArtKBPsystem is ERC721A {
constructor() ERC721A("AI Images for KBPsystem", "KBP-AI") {}
@KBPsystem777
KBPsystem777 / GameNyxNFT.sol
Created June 11, 2022 13:47
GNX NFT Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
/*** @title GameNyx NFT Smart Contract
@KBPsystem777
KBPsystem777 / Counter.sol
Created May 23, 2022 15:26
Payable counter contract to increment/decrement. This accepts Ethers in order to run the functions and the owner has the capability to withdraw funds generated from running the increment/decrement function
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Counter {
uint public count;
address payable owner;
uint256 public FEE = 2 ether;
constructor() payable {
owner = payable(msg.sender);