Skip to content

Instantly share code, notes, and snippets.

@mlegls
mlegls / contracts...Lootbox.sol
Created September 15, 2021 21:47
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=
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Lootbox
* @dev Matrix lootbox contract
*/
contract Lootbox {
// NULL is for depleted items; fungible tokens not yet implemented
@mlegls
mlegls / contracts...Lootbox.sol
Created September 15, 2021 21: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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Lootbox
* @dev Matrix lootbox contract
*/
contract Lootbox {
// NULL is for depleted items; fungible tokens not yet implemented
@mlegls
mlegls / contracts...Lootbox.sol
Created September 15, 2021 21: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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Lootbox
* @dev Matrix lootbox contract
*/
contract Lootbox {
// NULL is for depleted items; fungible tokens not yet implemented
@mlegls
mlegls / contracts...Lootbox.sol
Created September 14, 2021 06:06
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=
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Lootbox
* @dev Matrix lootbox contract
*/
contract Lootbox {
enum TokenType{ NULL, NONFUNGIBLE, SEMIFUNGIBLE, FUNGIBLE }