Skip to content

Instantly share code, notes, and snippets.

View joeb000's full-sized avatar

Joe Bernitt joeb000

View GitHub Profile
@joeb000
joeb000 / TrumpBet.sol
Last active June 5, 2023 19:16
Bet Contract
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
contract TrumpBet {
mapping (address => uint) public bets;
mapping (address => bool) paid;
mapping (address => bool) oracles;
bytes32 public conditionsHash;
Raw Signed Transaction:
0xf90e81808509502f9000830a0bdc80880de0b6b3a7640000b90e26608060405260405162000dc638038062000dc6833981810160405281019062000029919062000204565b8060016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b81518160ff16101562000142576001600080848460ff1681518110620000d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080620001399062000318565b91505062000084565b505050620003d0565b6000620001626200015c8462000272565b62000249565b905080838252602082019050828560208602820111156200018257600080fd5b60005b85811015620001b657816200019b8882620001c0565b84526020840193506020830192505060018101905062000185565b5050509392505050565b600081519050620001d181620003b6565b92915050565
did:muport:QmNf2ZgvVkKx1rPi6fGYzztj1B89uBUYDvd1vVfiKiC229
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmTxeFHjzcF2AxztKe8y57CSjFJJobKYNbYed6Yt5gw4WR ✅
Create your profile today to start building social connection and trust online. https://3box.io/
did:muport:QmVE2uhZVDKTAcECxDtRdhStD3sJtcjq1h1m1VuJ43jjqx
@joeb000
joeb000 / SuperbowlSquares.sol
Last active February 2, 2018 20:05
Solidity contract for superbowl squares
pragma solidity ^0.4.15;
contract SuperbowlSquares {
address public owner;
bool public isLocked;
bool public isRefunded;
uint public squareCost = 0.05 ether;
mapping (address => uint8) public squareCount;
address[10][10] public squares;
uint pot;
@joeb000
joeb000 / Friends.sol
Created January 17, 2018 19:14
Friends Smart contract
contract Friends {
address public owner;
mapping (address => Friend) public friends;
uint defaultPayout = .1 ether;
struct Friend {
bool isFriend;
bool hasWithdrawn;
}
contract Hello {
mapping (address=>bool) hasBeenPaid;
function () payable {}
function sendMeMoney() {
if (!hasBeenPaid[msg.sender]){
if(msg.sender.send(.5 ether))
hasBeenPaid[msg.sender] = true;