Skip to content

Instantly share code, notes, and snippets.

/**
* Use this file to configure your truffle project. It's seeded with some
* common settings for different networks and features like migrations,
* compilation and testing. Uncomment the ones you need or modify
* them to suit your project as necessary.
*
* More information about configuration can be found at:
*
* trufflesuite.com/docs/advanced/configuration
*
@IntrepidShape
IntrepidShape / smashthelike.sol
Last active March 20, 2023 04:10
A simple mintable NFT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract SmashTheLikeNFT is ERC1155, Ownable {
uint256 constant tokenID = 0;
constructor() ERC1155("") {
_mint(msg.sender, tokenID, 1, "");
@IntrepidShape
IntrepidShape / contracts...myGame.sol
Last active August 23, 2021 10:23
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.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.9.0;
/*The whole point of this particular contract is to demonstrate time on the ethereum blockchain,
written in remix IDE by Jake Colson */
contract myGame {
uint public playerCount = 0;
mapping (address => Player) public players;
@IntrepidShape
IntrepidShape / contracts...myGame.sol
Created July 13, 2021 15:28
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.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.9.0;
contract myGame {
uint public playerCount = 0;
mapping (address => Player) public players;
enum Level {Novice, Intermediate, Advance}
struct Player {
@IntrepidShape
IntrepidShape / contracts...myGame.sol
Created July 13, 2021 15:20
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.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.9.0;
contract myGame {
uint public playerCount = 0;
mapping (address => Player) public players;
enum Level {Novice, Intermediate, Advance}
struct Player {