Skip to content

Instantly share code, notes, and snippets.

View clemensgg's full-sized avatar

Claimens | CryptoCrew Validators clemensgg

View GitHub Profile
@clemensgg
clemensgg / rocksdb-install.sh
Last active August 11, 2022 09:17 — forked from srimaln91/rocksdb-install.sh
Install RocksDB on Ubuntu 20.04 (Focal Fossa)
# install dependencies, create temp dir
sudo apt-get install -y libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
pushd /tmp
# clone & checkout
git clone https://github.com/facebook/rocksdb.git && cd rocksdb
git checkout v7.4.5
# install production mode
export CXXFLAGS='-Wno-error=deprecated-copy -Wno-error=pessimizing-move -Wno-error=class-memaccess'
@clemensgg
clemensgg / gist:81307bded1b99d166c484049d0f5246c
Last active February 26, 2022 21:54
configure hermes relayer to use feegrant module for omniflix
# omniflix team are granting relayer accounts to pay fees from a specified 'granter' account
# fill out the relayer-coordination-sheet provided by the team to get your relayer account whitelisted (granted)
# works with hermes v0.11.0 and higher (https://github.com/informalsystems/ibc-rs)
# config.toml (set granter account, set your endpoints, comment out channels you don't relay)
[[chains]]
id = 'omniflixhub-1'
rpc_addr = 'http://...'
grpc_addr = 'http://...'
@clemensgg
clemensgg / keybase.md
Created April 27, 2022 13:14
Keybase proof

Keybase proof

I hereby claim:

  • I am clemensgg on github.
  • I am clemenscc (https://keybase.io/clemenscc) on keybase.
  • I have a public key ASA6Z2OtTwI809uBTIGo6SzvVtMG_UcJ-_SjK1tQQcMt8Qo

To claim this, I am signing this object:

CHAIN_ID="juno-1"
MODE="signer1"
NODE_HOME_DIR=$HOME/.juno
# horcrux version
VERSION="v2.0.0-rc3"
SIGNER_ONE="10.0.0.2"
SIGNER_TWO="10.0.0.3"
SIGNER_THREE="10.0.0.4"
@clemensgg
clemensgg / errors.grpc_conf
Created July 16, 2022 13:59 — forked from nginx-gists/errors.grpc_conf
Deploying NGINX Plus as an API Gateway, Part 3: Publishing gRPC Services
# Standard HTTP-to-gRPC status code mappings
# Ref: https://github.com/grpc/grpc/blob/master/doc/http-grpc-status-mapping.md
#
error_page 400 = @grpc_internal;
error_page 401 = @grpc_unauthenticated;
error_page 403 = @grpc_permission_denied;
error_page 404 = @grpc_unimplemented;
error_page 429 = @grpc_unavailable;
error_page 502 = @grpc_unavailable;
error_page 503 = @grpc_unavailable;
@clemensgg
clemensgg / CC_analyze_blocktime_signrate.sh
Last active September 14, 2022 10:48
scan tendermint rpc, analyze block time & sig rate for a specific validator
#!bin/bash
RPC="http://localhost:2002"
STARTBLOCK=5241330
ENDBLOCK=5250000
TOTAL_VALIDATORS=135
CCHEX="72B1489EFB57A680577A838A5BAAEBE162A7C802"
BLOCK=$STARTBLOCK
# hermes configuration:
# [[chains]]
# ...
# fee_granter = 'granteraddess'
#
# to revoke: $DAEMON_NAME tx feegrant revoke $GRANTER $grantee --home $DAEMON_HOME --from $GRANTER --chain-id $CHAIN_ID --node $RPC --gas auto --gas-adjustment 1.5 --gas-prices $GAS_PRICES -y
GRANTER="controller" # local granter key-name
LEDGER="true"
KEYRING_BACKEND="os" # os, file, test
@clemensgg
clemensgg / compare_valsets.js
Last active November 16, 2022 18:31
GOC_differing_valsets
// Gist depracted in favour of https://github.com/clemensgg/game-of-chains/
'use strict';
import axios from 'axios';
import { createHash } from 'crypto';
import fs from 'fs/promises';
/* ------------------------ CONFIG ------------------------ */
const provider = {
@clemensgg
clemensgg / gist:b796ed84a12dddfd415b9b8bd67f65bc
Last active November 19, 2022 11:07
monitor_kujira_oracle.sh
#!/bin/bash
VALIDATOR="<KUJIRAVALOPERADDRESS>"
LCD="<http://YOUR-ENDPOINT:1317>"
# create your slack integration: https://api.slack.com/apps
SLACK_WEBHOOK="<http://YOUR-SLACK-WEBHOOK-ENDPOINT>"
NOW=`date '+%F'`;
echo "$NOW Starting oracle-monitoring script..."
@clemensgg
clemensgg / query_slashed.sh
Last active December 20, 2022 15:36
persistence v5 slashed delegators
#!/bin/bash
# evidence for the 5 slashed validators at height "8647536":
# - '@type': /cosmos.evidence.v1beta1.Equivocation
# consensus_address: persistencevalcons1dmjc55ve2pe537hu8h8rjrjhp4r536g5jlnlk8
# height: "8647536"
# power: "1914227"
# time: "2022-11-06T12:39:19.628225786Z"
# - '@type': /cosmos.evidence.v1beta1.Equivocation