This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |