Skip to content

Instantly share code, notes, and snippets.

View RossPfeiffer's full-sized avatar
💭
finishing up the Scaling Solution

Ross RossPfeiffer

💭
finishing up the Scaling Solution
View GitHub Profile
@RossPfeiffer
RossPfeiffer / token.sol
Created October 5, 2019 12:07
Token Code
contract ERC223ReceivingContract{
function tokenFallback(address _from, uint _value, bytes calldata _data) external;
}
contract ResolveToken{
address pyramid;
constructor(address _pyramid) public{
pyramid = _pyramid;
}
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "./node_modules/nodemon/bin/nodemon.js src/app.js --exec 'npm run node'"
},
"keywords": [],
"author": "",
@RossPfeiffer
RossPfeiffer / index.js
Created September 17, 2018 21:24
Partial Block Explorer
var Web3 = require('web3');
var web3 = new Web3('https://mainnet.infura.io/v3/bf5c3d819a0d4492a387eb40cdf82d6b');
var finalBlock = web3.eth.getBlockNumber().then(captureBlockRange);
//This will contain an ordered list of all transactions
var transactionList = new Array();
var ethTransferred = 0;
var addressRecords = [];//{address:"0x0",sent:0,received:0,contract:false}