Skip to content

Instantly share code, notes, and snippets.

View KBPsystem777's full-sized avatar
💭
BTC @100k again!

Koleen BP KBPsystem777

💭
BTC @100k again!
View GitHub Profile
@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 - [email protected], 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);
@KBPsystem777
KBPsystem777 / KBPsystemNFT.sol
Last active May 22, 2022 15:33
This contract implement ERC721 for KBPsystem's NFT collection. This includes several functions like setting the URI, withdrawal of contract funds and checking if available contract funds
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
/***
@KBPsystem777
KBPsystem777 / KBP-PunkNFT.sol
Last active May 22, 2022 04:33
Smart contract in building a NFT collection. This contract handles payment in minting and has the contract deployer has the capability to withdraw all the minting fees sent.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract KBPPunk is ERC721, ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
@KBPsystem777
KBPsystem777 / Metadata.json
Created May 21, 2022 16:10
Sample NFT metadata for OpenSea
{"description":"It's actually a bison?","external_url":"https://austingriffith.com/portfolio/paintings/","image":"https://austingriffith.com/images/paintings/buffalo.jpg","name":"Buffalo","attributes":[{"trait_type":"BackgroundColor","value":"green"},{"trait_type":"Eyes","value":"googly"},{"trait_type":"Stamina","value":42}]}
@KBPsystem777
KBPsystem777 / BlockShotsToken.sol
Created May 5, 2022 14:28
Token contract for BLST token
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract BlockShots is ERC20 {
constructor () ERC20("BlockShots Metaverse", "BLST") {
_mint(msg.sender, 270000000 * (10 ** uint256(decimals())));
}
}
@KBPsystem777
KBPsystem777 / EtherWallet.sol
Created May 4, 2022 15:53
EtherWallet - Accepts ethers and only owner can withdraw
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
/***
* @title EtherWallet
* @author Koleen Baes Paunon
* @dev This contract accepts ether like a bank and users can withdraw thier ethers
*/
contract EtherWallet {