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 / hardhat.config.js
Created July 21, 2024 16:51
DevUp!: Setting up your hardhat config
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
const { TESTNET_PRIVATE_KEY } = process.env;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.24",
networks: {
@KBPsystem777
KBPsystem777 / .env
Created July 21, 2024 17:18
DevUp!: Setting up your environment variable for the private keys
TESTNET_PRIVATE_KEY=paste-your-private-keys-here
@KBPsystem777
KBPsystem777 / Lock.sol
Created July 21, 2024 17:32
DevUp!: Smart contract build
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;
// Uncomment this line to use console.log
// import "hardhat/console.sol";
contract Lock {
uint public unlockTime;
address payable public owner;
@KBPsystem777
KBPsystem777 / Lock.js
Created July 27, 2024 09:02
DevUp!: Deployment script
const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules")
const JAN_1ST_2030 = 1893456000
const ONE_GWEI = 1_000_000_000n
module.exports = buildModule("LockModule", (m) => {
const unlockTime = m.getParameter("unlockTime", JAN_1ST_2030)
const lockedAmount = m.getParameter("lockedAmount", ONE_GWEI)
const lock = m.contract("Lock", [unlockTime], {
@KBPsystem777
KBPsystem777 / Thanksify.sol
Last active April 7, 2025 15:46
BitDev's Thanksify Smart Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
contract Thanksify {
address public owner;
struct Message {
string text;
address sender;
uint256 timestamp;
@KBPsystem777
KBPsystem777 / CebuFundraiser.sol
Created November 17, 2024 14:20
CebuFundraiser - A decentralized calamity and fund raising contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
contract CebuFundraiser {
struct Recipient {
address recipientAddress;
string name;
bool isVerified;
}
@KBPsystem777
KBPsystem777 / MarketplaceV2.sol
Created November 17, 2024 16:49
ManageLife's Marketplace V2 Smart Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./ManageLife.sol";
contract Marketplace is ReentrancyGuard, Pausable, Ownable {
@KBPsystem777
KBPsystem777 / StudentContract.sol
Last active April 5, 2025 05:05
Sonic CodeCamp Activity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
/// @title Interface for ClassmateConnect
interface IClassmateConnect {
function registerProfile(
address _studentAddress,
string memory _nickname,
string memory _bio
) external;
@KBPsystem777
KBPsystem777 / ClassmateConnect.sol
Created February 11, 2025 04:09
Classmate Connect Smart Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
/// @title ClassmateConnect - Parent contract for managing student profiles
contract ClassmateConnect {
struct Profile {
string nickname;
string bio;
address studentAddress;
}
@KBPsystem777
KBPsystem777 / copilot-instructions.md
Created March 22, 2025 05:31
My personal Copilot Instructions setup for everyday web development activities

πŸ‘‘ Core Philosophy

  • βœ… Write ultra-clean, testable, reusable code
  • βœ… Follow DRY (Don’t Repeat Yourself) at all times
  • βœ… Predict bugs & optimize for performance
  • βœ… Promote code clarity & maintainability
  • βœ… Ensure 90%+ unit test pass rate
  • βœ… Encourage documentation with emojis 😎
  • βœ… Check for existing components before suggesting new ones
  • βœ… Use Tailwind + React-TS with pnpm/npm (government-grade software)