Skip to content

Instantly share code, notes, and snippets.

View cupOJoseph's full-sized avatar

Joseph Schiarizzi cupOJoseph

View GitHub Profile
@cupOJoseph
cupOJoseph / transactions.md
Last active April 13, 2025 03:49
Ethereum cross-chain agnostic transaction types

Standard transaction:

{
  from: "0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8",
  to: "0xac03bb73b6a9e108530aff4df5077c2b3d481e5a",
  gasLimit: "21000",
  maxFeePerGas: "300",
  maxPriorityFeePerGas: "10",
 nonce: "0",
@cupOJoseph
cupOJoseph / WilcatBackedSecurities.sol
Created July 24, 2024 13:59
Similar to mortgage backed securities: tradable loans implemented as NFTs for wildcat protocol. Trade your WBS to trade ownership of debt liability or deposits.
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
//import wildcat market interfaces
import "https://raw.githubusercontent.com/wildcat-finance/wildcat-protocol/main/src/interfaces/IWildcatMarketController.sol";
import "https://raw.githubusercontent.com/wildcat-finance/wildcat-protocol/488b30d08c73a93be3e4bf99128c774997411d3a/src/market/WildcatMarket.sol";
@cupOJoseph
cupOJoseph / whiteElephant.sol
Created December 14, 2023 03:38
white elephant gift exchange 30 minute coding challenge as a solidity smart contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Tickets is ERC721, Ownable {
uint ticketNumber = 0;
uint giftingTime = 1703462400;
@cupOJoseph
cupOJoseph / ponzi.sol
Created March 1, 2023 23:22
contract from our solidity 102 workshop at eth denver 2023
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract Farm{
//track time of last deposit
//block.timestamp
mapping(address user => uint timestamp) public timeOfLastDeposit;
//track how much deposited
@cupOJoseph
cupOJoseph / lossharvest.sol
Created December 3, 2022 04:28
a smart contract for loss harvesting. sell any NFT to it go 1 wei. Buy them back any time after 2023 for 0.001 eth
pragma solidity ^0.8.7;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol";
contract harvest {
// Mapping from user address to a nft address to a list of token ids
mapping(address => mapping(address => mapping(uint256 => bool))) public userTokens;
# emoji-sequences.txt
# Date: 2022-08-15, 23:13:41 GMT
# © 2022 Unicode®, Inc.
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
# For terms of use, see https://www.unicode.org/terms_of_use.html
#
# Emoji Sequence Data for UTS #51
# Version: 15.0
#
# For documentation and usage, see https://www.unicode.org/reports/tr51
@cupOJoseph
cupOJoseph / loot.sol
Created August 31, 2021 23:42
loot types
string[] private weapons = [
"Warhammer",
"Quarterstaff",
"Maul",
"Mace",
"Club",
"Katana",
"Falchion",
"Scimitar",
"Long Sword",