Skip to content

Instantly share code, notes, and snippets.

View cwgoes's full-sized avatar
🤔
Pensive.

Christopher Goes cwgoes

🤔
Pensive.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am cwgoes on github.
* I am cwgoes (https://keybase.io/cwgoes) on keybase.
* I have a public key ASC01wns5BROTL10vdce_oQEirKylHLecBN6oEdM87DHeAo
To claim this, I am signing this object:
@cwgoes
cwgoes / abi.json
Created August 21, 2017 19:25
Past Etherdelta Orders
[{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"amount","type":"uint256"}],"name":"trade","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"}],"name":"order","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"orderFills","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"ad
Verifying my Blockstack ID is secured with the address 1JsAzNBeBjVrBn7fXTrhSU5WrSR6gdJ4Td https://explorer.blockstack.org/address/1JsAzNBeBjVrBn7fXTrhSU5WrSR6gdJ4Td
@cwgoes
cwgoes / instructions.md
Last active July 16, 2018 22:03
Upgrade to gaiad 0.22

First, fetch the latest upstream and build version 0.22:

git fetch --tags
git checkout v0.22.0
make

Now double-check that you've built the right version with:

{
"genesis_time": "2018-07-16T19:57:28.971479541Z",
"chain_id": "gaia-7000",
"consensus_params": {
"block_size_params": {
"max_bytes": "22020096",
"max_txs": "10000",
"max_gas": "-1"
},
"tx_size_params": {
@cwgoes
cwgoes / gaia7000.sh
Created July 17, 2018 00:13
Gaia 7000 status checking
#!/bin/sh
NODE=gaia-7000.coinculture.net:26657
while true; do
PREVOTING=$(curl -s http://$NODE/dump_consensus_state | jq '.result.round_state.votes[0].prevotes_bit_array' -r | tail -c 5)
REMAINING=$(echo "0.67 - $PREVOTING" | bc -l)
echo "$PREVOTING fraction of stake prevoting, $REMAINING fraction more necessary"
sleep 10
done
{
"genesis_time": "2018-07-17T07:23:29.328368369Z",
"chain_id": "gaia-7001",
"consensus_params": {
"block_size_params": {
"max_bytes": "22020096",
"max_txs": "10000",
"max_gas": "-1"
},
"tx_size_params": {
{
"genesis_time": "2018-07-17T07:19:26.795692941Z",
"chain_id": "gaia-7001",
"consensus_params": {
"block_size_params": {
"max_bytes": "22020096",
"max_txs": "10000",
"max_gas": "-1"
},
"tx_size_params": {
@cwgoes
cwgoes / free.tz
Created September 14, 2018 03:10
code {
CAR;
IMPLICIT_ACCOUNT;
DIP {UNIT};
PUSH mutez 1000;
UNIT;
TRANSFER_TOKENS;
DROP;
NIL operation;
PAIR
tz1aGaUhwbYDrwwBZobdgBEbCSG3HTPjH2ZJ