This file contains hidden or 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
let messageBuffer = {} | |
module.exports = (web3)=>{ | |
let burnerWeb3 = web3 | |
var iframe = document.createElement('iframe') | |
iframe.style.opacity = 0.9 | |
iframe.style.position = "absolute" | |
iframe.style.width = "300px" |
This file contains hidden or 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
var ethers = require('ethers'); | |
var fs = require('fs'); | |
var Wallet = ethers.Wallet; | |
//usage: node craft.js ABI_FILE BYTECODE_FILE GAS_LIMIT GAS_PRICE [...CONSTRUCTOR ARGUMENTS] | |
//node craft.js "../Sweeper/Sweeper.abi" "../Sweeper/Sweeper.bytecode" 250000 100000000000 (cat ../Loan/Loan.address) (cat ../SomeCoin/SomeCoin.address) 1 | |
const wallet = ethers.Wallet.createRandom(); | |
let httpProvider = new ethers.providers.JsonRpcProvider(); | |
let abi = fs.readFileSync(process.argv[2]).toString() | |
let bytecode = fs.readFileSync(process.argv[3]).toString() | |
let factory = new ethers.ContractFactory(abi, bytecode, wallet); |
This file contains hidden or 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 strict"; | |
const express = require('express'); | |
const helmet = require('helmet'); | |
const app = express(); | |
const fs = require('fs'); | |
const ContractLoader = function(contractList,web3){ | |
let contracts = [] | |
for(let c in contractList){ | |
try{ | |
let abi = require("./src/contracts/"+contractList[c]+".abi.js") |
This file contains hidden or 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.4.24; | |
// adapted from https://github.com/austintgriffith/bouncer-proxy/blob/master/BouncerProxy/BouncerProxy.sol | |
// Blind proxy - forward everything | |
contract Proxy { | |
constructor() public {} | |
mapping(address => uint) public nonce; | |
function getHash(address signer, address destination, uint value, bytes data) public view returns(bytes32){ | |
return keccak256(abi.encodePacked(address(this), signer, destination, value, data, nonce[signer])); | |
} | |
function forward(bytes sig, address signer, address destination, uint value, bytes data) public { |
This file contains hidden or 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
Verifying my identity on Peepeth.com 0x34aa3f359a9d614239015126635ce7732c18fdf3 |
This file contains hidden or 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
/* | |
Takes a collection of pngs layers and joins them for | |
https://github.com/austintgriffith/nifties-vs-nfties | |
brew install imagemagick | |
brew install graphicsmagick | |
npm install --save gm | |
node index.js |
This file contains hidden or 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
/* | |
Takes a collection of pngs layers and joins them for | |
https://github.com/austintgriffith/nifties-vs-nfties | |
brew install imagemagick | |
brew install graphicsmagick | |
npm install --save gm | |
node index.js |
This file contains hidden or 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
//May the 4th be with you | |
//example usage | |
//?difficulty=5&input=helloworld3 | |
const express = require('express'); | |
const helmet = require('helmet'); | |
const fs = require('fs'); | |
//const md5 = require('md5'); | |
const crypto = require('crypto'); | |
const app = express(); | |
app.use(helmet()); |
This file contains hidden or 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
<?php | |
//May the 4th be with you | |
//example usage | |
//?difficulty=5&input=helloworld3 | |
if(!@$_GET["difficulty"] || !@$_GET["input"]){ | |
echo "May the 4th be with you!"; | |
}else{ | |
$difficulty = $_GET["difficulty"]; | |
$input = $_GET["input"]; | |
$seed = trim(file_get_contents("seed.txt")); |
This file contains hidden or 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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import './styles/App.css'; | |
import App from './App'; | |
//import registerServiceWorker from './registerServiceWorker'; | |
import { unregister } from './registerServiceWorker'; | |
unregister() | |
ReactDOM.render(<App />, document.getElementById('root')); | |
//registerServiceWorker(); |