Skip to content

Instantly share code, notes, and snippets.

View PhABC's full-sized avatar
😈

Philippe Castonguay PhABC

😈
View GitHub Profile
{"setup":"{\"secrets\":[{\"secret\":{\"originalDeck\":[],\"filledDeck\":[\"17\",\"2083\",\"29\",\"70\",\"50\",\"2044\",\"2045\",\"111\",\"60\",\"2048\",\"2089\",\"101\",\"51\",\"2022\",\"41\",\"91\",\"2103\",\"2093\",\"58\",\"2107\",\"54\",\"71\",\"43\",\"106\",\"2066\",\"5\",\"110\",\"9\",\"46\",\"8\"],\"filledDeckInstances\":[5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63],\"singletonCardsPosessed\":[\"Dummy\",\"Hero\",\"1000\",\"1001\",\"1002\",\"1003\",\"1004\",\"1005\",\"1006\",\"1007\",\"1008\",\"1009\",\"1010\",\"1011\",\"1012\",\"1013\",\"1014\",\"1015\",\"1016\",\"1017\",\"1018\",\"1019\",\"1020\",\"1021\",\"1022\",\"1023\",\"1024\",\"1025\",\"1026\",\"1027\",\"1028\",\"1029\",\"1030\",\"1031\",\"1032\",\"1033\",\"1034\",\"1035\",\"1036\",\"1037\",\"1038\",\"1039\",\"1040\",\"1041\",\"1042\",\"1043\",\"1044\",\"1045\",\"1046\",\"1047\",\"1048\",\"1049\",\"1050\",\"1051\",\"1052\",\"1053\",\"1054\",\"1055\",\"1056\",\"1057\",\"1058\",\"1059\",\"1060\",\"1061\",\
Name ID Silver ID Gold ID
Ada's Valor 102 65638 131174
Aegis of Light 88 65624 131160
Air Rune 1072 66608 132144
Alight 4016 69552 135088
Allbane 3002 68538 134074
Amalgam 51 65587 131123
Amaruath 2051 67587 133123
Anchor Drop 4087 69623 135159
Ancients Rise 3063 68599 134135
@PhABC
PhABC / keybase.md
Last active November 12, 2019 16:45
keybase.md

Keybase proof

I hereby claim:

  • I am phabc on github.
  • I am phabc (https://keybase.io/phabc) on keybase.
  • I have a public key ASBTNxyRyB9ioSGfRWvatNtgEKSWGdj9QMD-HN6NZparFwo

To claim this, I am signing this object:

/*
Copyright 2018 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
/*
Calculate the total amount of transaction fee since January 1st 2017 (block 2912407), with weithed
average price of Ether as 492.
NOTE: Need to divide gas_price by 10 to prevent overflow in BigQuery.
*/
SELECT
SUM(gas_price/10 * receipt_gas_used) / POWER(10, 17) * 492
FROM
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
/**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale,
* allowing investors to purchase tokens with ether. This contract implements
pragma solidity ^0.4.21;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
//Imports
var Trie = require('merkle-patricia-tree');
var rlp = require('rlp');
var levelup = require('levelup');
var leveldown = require('leveldown');
var keccak256 = require('js-sha3').keccak256;
// Chains' path
var dbPathRinkeby = '/home/user/.ethereum/rinkeby/geth/chaindata';
var dbPathMainnet = '/home/user/.ethereum/geth/chaindata';
pragma solidity ^ 0.4.18;
import "../ownership/Ownable.sol";
/**
* @title DelayedDestructible
* @dev Contract that can be selfdestructed after a delay period.
*/
contract DelayedDestructible is Ownable {
pragma solidity ^ 0.4.18;
import "../../ownership/Ownable.sol";
/**
* @title WhitelistedCrowdsale
* @dev Crowdsale in which only whitelisted users can contribute.
*/
contract Whitelisted is Ownable {