This file contains 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} |
This file contains 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 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 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.5.1; | |
contract ColorToken{ | |
BondContract public bondContract; | |
ResolveContract public resolveContract; | |
address lastGateway; | |
address communityResolve; | |
string public name = "Color Token"; | |
string public symbol = "RGB"; | |
uint8 constant public decimals = 18; |
This file contains 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.5.1; | |
contract ColorToken{ | |
BondContract public bondContract; | |
ResolveContract public resolveContract; | |
address lastGateway; | |
address communityResolve; | |
address THIS = address(this); | |
string public name = "Color Token"; | |
string public symbol = "RGB"; |
This file contains 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.5.1; | |
contract PoWHr{ | |
// scaleFactor is used to convert Ether into bonds and vice-versa: they're of different | |
// orders of magnitude, hence the need to bridge between the two. | |
uint256 constant scaleFactor = 0x10000000000000000; | |
int constant crr_n = 1; | |
int constant crr_d = 2; | |
int constant public price_coeff = -0x1337FA66607BADA55; |
This file contains 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.5.1; | |
contract PoWHr{ | |
// scaleFactor is used to convert Ether into bonds and vice-versa: they're of different | |
// orders of magnitude, hence the need to bridge between the two. | |
uint256 constant scaleFactor = 0x10000000000000000; | |
int constant crr_n = 1; | |
int constant crr_d = 2; | |
int constant public price_coeff = -0x1337FA66607BADA55; |
This file contains 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.5.1; | |
contract ColorToken{ | |
BondContract public bondContract; | |
ResolveContract public resolveContract; | |
address lastGateway; | |
address communityResolve; | |
address THIS = address(this); | |
string public name = "Color Token"; | |
string public symbol = "RGB"; |
This file contains 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.5.12; | |
contract ColorToken{ | |
address THIS = address(this); | |
address constant nulf = 0x0000000000000000000000000000000000000000; | |
string public name = "Color Token"; | |
string public symbol = "RGB"; | |
uint8 constant public decimals = 18; | |
uint _totalSupply/*===*/; |
This file contains 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.5.12; | |
contract Pyramid{ | |
// scaleFactor is used to convert Ether into bonds and vice-versa: they're of different | |
// orders of magnitude, hence the need to bridge between the two. | |
uint256 constant scaleFactor = 0x10000000000000000; | |
int constant crr_n = 1; | |
int constant crr_d = 2; | |
int constant public price_coeff = -0x1337FA66607BADA55; |
OlderNewer