Skip to content

Instantly share code, notes, and snippets.

View Ro5s's full-sized avatar
💭
👨🏻‍🍲 Thinking lowkey pizza

Ross Campbell Ro5s

💭
👨🏻‍🍲 Thinking lowkey pizza
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol";
/**
* @title ERC721Mock
* This mock just provides a public safeMint, mint, and burn functions for testing purposes
*/
/**
*Submitted for verification at Etherscan.io on 2021-09-05
*/
/**
*Submitted for verification at Etherscan.io on 2021-08-27
*/
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.7;
/*
d888888b d888888b
d888 8888b d888888 888b
d88 88 898888b d8888 888 88b
d8P 88888888b d88888888888 b8b
88 8888888888 88888888888 88
88 88888888888 8888888888 88
@Ro5s
Ro5s / Mochi.sol
Created September 21, 2021 06:24
Moloch on BentoBox
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.12;
/*
███ ███ ██████ ██████ ██ ██ ██
████ ████ ██ ██ ██ ██ ██ ██
██ ████ ██ ██ ██ ██ ███████ ██
██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██████ ██████ ██ ██ ██
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.0 <0.9.0;
/// @notice Bilateral escrow for ETH and ERC-20/721 tokens.
/// @author LexDAO LLC.
contract LexLocker {
uint256 lockerCount;
mapping(uint256 => Locker) public lockers;
mapping(address => Resolver) public resolvers;
@Ro5s
Ro5s / LexLockerV2.sol
Created September 25, 2021 04:20
Bilateral escrow for ETH and ERC-20/721 tokens.
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.0 <0.9.0;
/// @notice Bilateral escrow for ETH and ERC-20/721 tokens.
/// @author LexDAO LLC.
contract LexLocker {
uint256 lockerCount;
mapping(uint256 => Locker) public lockers;
mapping(address => Resolver) public resolvers;