Skip to content

Instantly share code, notes, and snippets.

🔬
Cryptoconditions = Fun

TonyL tonymorony

🔬
Cryptoconditions = Fun
  • Komodo Platform
  • Homeless
Block or report user

Report or block tonymorony

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tonymorony
tonymorony / all_prices_test.py
Last active Sep 3, 2019
comparison of coingecko API prices with makerbot coinpaprika all prices
View all_prices_test.py
import requests
import json
api_coins = {"BTC":"bitcoin","BCH":"bitcoin-cash","DGB":"digibyte","DASH":"dash",
"QTUM":"qtum","DOGE":"dogecoin","KMD":"komodo",
"ETH":"ethereum", "BAT":"basic-attention-token",
"USDC":"usd-coin", "LTC":"litecoin", "VRSC":"verus-coin","OMG":"omisego",
"RVN":"ravencoin","RFOX":"redfox-labs","ZILLA":"chainzilla"}
def get_prices_in_usd(coins_dict):
View mm2_coins.py
coins = [
# {
# 'tag': 'RICK',
# 'min_swap': 1,
# 'activate_with':'native',
# 'electrum': [{"url":"electrum1.cipig.net:10017"},
# {"url":"electrum2.cipig.net:10017"},
# {"url":"electrum3.cipig.net:10017"}]
# },
{
View bot_trade.py
from mm2_coins import coins
import requests
import random
import time
import json
import calendar
import threading
trading_nodes = [
View komodod compile on CentOS-7-x86_64-DVD-1503-01
# insalling deps
yum update
yum groupinstall 'Development Tools'
yum install git pkgconfig automake autoconf ncurses-devel python wget gtest-devel gcc gcc-c++ libtool patch lbzip2
# by default centos7 have gcc without C11 support, so lets compile fresher gcc
curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O
tar -xvf gcc-5.4.0.tar.bz2
View requests_rpc_proxy
#!/usr/bin/env python3
import re
import os
import requests
import json
import platform
import configparser
import sys
def config(filename, section):
View musig_guide_draft
Wikipedia: Multisignature (often called multisig) is a form of technology used to add additional security for cryptocurrency transactions. Multisignature addresses require another user or users sign a transaction before it can be broadcast onto the block chain.
In this short guide will be demonstrated 2of2 multisignature wallet creation and usage. I'll use 2 nodes and Komodo assetchain. On KMD main chain steps will be same, just not use `-ac_name` param.
Step 1
At first lets get addresses on two nodes which we will combine the into single mutlisig address. Also we will need pubkey and privkey (wif) for each address:
# Node 1:
@tonymorony
tonymorony / Dockerfile
Last active Apr 1, 2019
mm2 container build image
View Dockerfile
FROM ubuntu:18.04
RUN apt-get update
# installing build tools
RUN apt-get install -y build-essential wget
# installing cmake
RUN wget -qO- "https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
View gateways test 1of1
.70:
037defd3c07a5ab2ced41d73c0d53c87b18447b50d5b89097f08f2d4de3e6948e6
.122:
03a1bdf4419502e0159f2d5f9c0a175d4f65fbb8990b16393b8d82aa4b5890cb54
Token creation transaction broadcasted: 92aa3cca7ffec26a09d3b91896c63e4b10882bbdf2c9799ac09797f2242616f2
Oracle creation transaction broadcasted: 2c5948a24d1415efe3dc3f0a343f9f1e66f535274d5376a5ef68a82c49dd8167
Oracle registration transaction broadcasted: 434d4b6e801bc458e63be364a6db6726c6875ebc56116ca8e9d17f7e5e096fa9
Gateway bind transaction broadcasted: 9dfd9c2f0124d11e4b2a9428dce9b8e7f3707651dcef081a235eebbe4511f3fe
View New token creation on each bailout
Step 1
***
Started new singpleplayer game without playertxid argument of register.
First game txid: 12354a32af8f782735c1059767c72ce510e1d560dad56be29a3ef48c8c2474f1
Played a little and quit on lvl2
First game bailout txid: 5c062790ddb4bfd9efde13e85548c1d4696bf486ae7c1e0a5ba3755e4611eaa9
View Preparing node to work as gateway node
#!/usr/bin/env python3
"""
Node preparation for gateway binding:
1) Starting and syncing KMD
2) Starting gw testing assetchain with valid pubkey
3) Import privkey from assetchain to KMD chain
4) Save pubkey on assetchain, wallet address and IP as output in text file
5) Mine until balance >0, to have some coins for oracle subscribe, then stop mining
5) Register as oracle publisher and subscribe X times, wait until these transactions mined
You can’t perform that action at this time.