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
contract ERC223ReceivingContract{ | |
function tokenFallback(address _from, uint _value, bytes calldata _data) external; | |
} | |
contract ResolveToken{ | |
address pyramid; | |
constructor(address _pyramid) public{ | |
pyramid = _pyramid; | |
} |
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
{ | |
"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": "", |
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 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} |
NewerOlder