Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
pragma solidity ^0.4.25; | |
contract ComputeContractAddress | |
{ | |
function addressFrom(address _origin, uint _nonce) public pure returns (address) { | |
bytes memory data; | |
if(_nonce == 0x00) data = abi.encodePacked(byte(0xd6), byte(0x94), _origin, byte(0x80)); | |
else if(_nonce <= 0x7f) data = abi.encodePacked(byte(0xd6), byte(0x94), _origin, byte(_nonce)); | |
else if(_nonce <= 0xff) data = abi.encodePacked(byte(0xd7), byte(0x94), _origin, byte(0x81), uint8(_nonce)); | |
else if(_nonce <= 0xffff) data = abi.encodePacked(byte(0xd8), byte(0x94), _origin, byte(0x82), uint16(_nonce)); |
/** | |
*Submitted for verification at Etherscan.io on 2020-08-22 | |
*/ | |
pragma solidity ^0.5.0; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". |
/** | |
*Submitted for verification at Etherscan.io on 2020-07-03 | |
*/ | |
pragma solidity ^0.5.0; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". |
Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
var Payroll = artifacts.require("./Payroll.sol"); | |
var BigNumber = require('bignumber.js'); | |
// Nodejs doesn't support import..from.. syntax now. | |
//import expectThrow from "zeppelin-solidity/test/helpers/expectThrow";; | |
var expectThrow = async function(promise) { | |
try { | |
await promise; | |
} catch (err) { | |
const revert_op = err.message.search('revert') >= 0; |
0x1738A04F8942489E68d39409bA9C5c7864C2D754 |
0x1738A04F8942489E68d39409bA9C5c7864C2D754 |
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md | |
contract ERC20 { | |
function totalSupply() constant returns (uint256 totalSupply); | |
function balanceOf(address _owner) constant returns (uint256 balance); | |
function transfer(address _to, uint256 _value) returns (bool success); | |
function transferFrom(address _from, address _to, uint256 _value) returns (bool success); | |
function approve(address _spender, uint256 _value) returns (bool success); | |
function allowance(address _owner, address _spender) constant returns (uint256 remaining); | |
event Transfer(address indexed _from, address indexed _to, uint256 _value); | |
event Approval(address indexed _owner, address indexed _spender, uint256 _value); |
// ==UserScript== | |
// @name Google Search Better Privacy | |
// @description Delete unnecessary params and add useful params on Google Search. | |
// @version 0.0.4 | |
// @include http://*.google.*/search* | |
// @include http://*.google.*/imgres* | |
// @include https://*.google.*/search* | |
// @include https://*.google.*/imgres* | |
// @exclude http://play.google.com/* | |
// @exclude http://mail.google.com/* |