Skip to content

Instantly share code, notes, and snippets.

@ColinPlatt
ColinPlatt / Token.sol
Created June 20, 2024 09:14
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.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: VPL
pragma solidity 0.8.26;
contract Token {
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed from, address indexed to, uint256 amount);
event OwnershipTransferred(address indexed from, address indexed to);
bytes32 internal immutable name_;
bytes32 internal immutable symbol_;
@ColinPlatt
ColinPlatt / Token.sol
Created June 20, 2024 09:09
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.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: VPL
pragma solidity 0.8.26;
contract Token {
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed from, address indexed to, uint256 amount);
event OwnershipTransferred(address indexed from, address indexed to);
bytes32 internal immutable name_;
bytes32 internal immutable symbol_;
@ColinPlatt
ColinPlatt / Token.sol
Created June 20, 2024 08:56
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.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: VPL
pragma solidity 0.8.26;
contract Token {
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed from, address indexed to, uint256 amount);
event OwnershipTransferred(address indexed from, address indexed to);
bytes32 internal immutable name_;
bytes32 internal immutable symbol_;
<!DOCTYPE html><html><head><title>test_simple_APNG</title></head><body><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAMAAADXEh96AAAACGFjVEwAAAAEAAAAAHzNZtAAAAMAUExURQAAACZXtlKtvbLEwtBViA1KKRobGiYoJgQEBq+9tRNNexRzMMje3O20mEGbZrXBug0VKkZMUOGKajWjYKNiLu2gfEUQFwkNDppqLo0nLOaSceaDsKmalU+yaitizF/H2iGQOZGLiP79/Y/HrNpwe//dXqZmMdHg119WUwkmE1EmXarjkDiJvicKDXyHk9h9YqaMZdp3WFU9LBBUkNJNVCUtNLrMyHR0epZ8WuAcGzScXeHy9vTw1cl2Yl9laczAuj65bi7ic3kcHHtiSY0IDsm+trx4ODk6ONPW09djk2a15cDS1d6EZLivr++Lj9qIbgF0jPrk5RIVDkqe2EarWN5pJSjZcih5tU1aY+zmiVW5yiI2cIUfIejIofmoSf7BR0n/lKrGnVxJRClsoDbroxAqJqWu5ZcqLMCkc9Xr6CWGSvreqKQKCRqLw60iHfK3420VFaM7DOWu2IhTm9/rarWENsB1ONNQIGx5hn9jHIwyCklxtWX8jvVYOcZvWhs1IPWriP7leeGwienp6kBDSTI5Qa7R8fyPMy55SoHwy+2buyvCwP6uNeN8gboyOaDatiqRRpqpp3XO+aCxsOrtsibcSgqXkOJ4pqwyNxKthqMpXK51Ob9kTirGibAvM/7iaZXx8JnY4qxYMdDLzOHpe0ONmFUWIPx7J1PszsGXUPbV7qMpLhIhP5qfpVyv9dLXpQf6mYv8ojTvz9qcfOini33jpbFYWQgYCx1zQ6JlVzJDl//DOCU1Kuuvk//TSMat0AoCOjftkMjiqax5WsQ9Q3rGwv7Zc3AcM5ZHNS0xMrr9/8XTy3Pi+umJSctwVos+Lt+GcRwsW
{
"type": "object",
"properties": {
"block": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"number": {
@ColinPlatt
ColinPlatt / MatrixPowah.sol
Created August 29, 2022 13:50
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=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IMasterChefUserInfo {
function userInfo(uint256 pid, address account) external view returns (uint256, uint256);
}
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function totalSupply() external view returns (uint256);
@ColinPlatt
ColinPlatt / contracts...Enso721.sol
Created January 19, 2022 13:36
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.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.10;
import {ERC721, ERC721TokenReceiver} from "@rari-capital/solmate/src/tokens/ERC721.sol";
contract Enso721 is ERC721, ERC721TokenReceiver {
// An ensō 円相 is a circle that is hand-drawn in one or two uninhibited brushstrokes to express a moment when the mind is free to let the body create.
//
@ColinPlatt
ColinPlatt / contracts...ClownWTF.sol
Created January 14, 2022 13:41
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.10+commit.fc410830.js&optimize=false&runs=200&gist=
// this line is added to create a gist. Empty file is not allowed.
@ColinPlatt
ColinPlatt / contracts...ClownWTF.sol
Last active January 14, 2022 18: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=soljson-v0.8.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IUniswapV2Router {
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
@ColinPlatt
ColinPlatt / contracts...ClownWTF.sol
Created January 14, 2022 13:24
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.10+commit.fc410830.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IUniswapV2Router {
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,