Skip to content

Instantly share code, notes, and snippets.

View skyfly200's full-sized avatar

Skyler Fly-Wilson skyfly200

View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract ERRORNFT is ERC721Burnable, ERC721Royalty, Ownable {
uint96 public royaltyPercent = 1000;
@skyfly200
skyfly200 / .deps...npm...@openzeppelin...contracts...token...ERC721...ERC721.sol
Created February 22, 2022 18:10
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.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
@skyfly200
skyfly200 / .deps...npm...@openzeppelin...contracts...token...ERC721...ERC721.sol
Created February 22, 2022 17:35
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.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
@skyfly200
skyfly200 / 1_Storage.sol
Created December 13, 2020 06:32
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.5.17+commit.d19bba13.js&optimize=false&runs=200&gist=
pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.3.0/contracts/math/SafeMath.sol";
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.8;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.1.0/contracts/utils/Strings.sol";
import "./libraries/Utils.sol";
import "./libraries/FixidityLib.sol";
import "./libraries/SVGBuffer.sol";
contract ColorTest {
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.4;
pragma experimental ABIEncoderV2;
// needed for upgradability
//import "@openzeppelin/upgrades/contracts/Initializable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
@skyfly200
skyfly200 / TinyBoxes-old.sol
Last active May 26, 2020 21:52
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.6.8+commit.0bbfe453.js&optimize=true&gist=6297ba752da637149c30bfcc969d7382
pragma solidity ^0.5.14;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
@skyfly200
skyfly200 / ChainFeeds.sol
Created May 19, 2020 00:57
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.5.17+commit.d19bba13.js&optimize=false&gist=
// contracts/ETH_RSS.sol
pragma solidity ^0.6.4;
// Import Ownable from the OpenZeppelin Contracts library
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract ChainFeeds is Ownable, ERC721 {
using Counters for Counters.Counter;
@skyfly200
skyfly200 / TinyBoxes.sol
Created May 13, 2020 16:35
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.4.24+commit.e67f0147.js&optimize=false&gist=
/**
*Submitted for verification at Etherscan.io on 2019-11-27
*/
pragma solidity ^0.4.24;
interface ERC721TokenReceiver
{
function onERC721Received(address _operator, address _from, uint256 _tokenId, bytes _data) external returns(bytes4);
@skyfly200
skyfly200 / ChainFaces.sol
Created April 9, 2020 19:42
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.5.17+commit.d19bba13.js&optimize=false&gist=
/**
*Submitted for verification at Etherscan.io on 2020-01-19
*/
/**
*Submitted for verification at Etherscan.io on 2020-01-18
*/
/**
*Submitted for verification at Etherscan.io on 2020-01-17