Skip to content

Instantly share code, notes, and snippets.

View abrkn's full-sized avatar

Andreas Brekken abrkn

View GitHub Profile
const assert = require('assert');
const delay = require('delay');
const { getRpc } = require('../rpcs');
const { n } = require('../utils');
const config = require('../config');
const debug = require('consol').debugger('sideshift:pay:zaddr');
const FEE = 0.0001;
module.exports = async function payWithZaddr(paymentMethod, paymentDetails) {
[Unit]
Description=Liquid Daemon
After=bitcoind.service
[Service]
User=ubuntu
Group=ubuntu
ExecStart=/usr/local/bin/liquidd -datadir=/opt/liquid
[Install]
[Unit]
Description=Bitcoin Daemon
[Service]
User=ubuntu
Group=ubuntu
ExecStart=/usr/local/bin/bitcoind -datadir=/opt/bitcoin
[Install]
WantedBy=multi-user.target
@abrkn
abrkn / GA8903.md
Last active January 13, 2019 08:25

GENERIC ANSWER [GA8903]

Thank you for evaluating the [technicals/econometrics/politics/game theory] of SideShift AI.

SideShift AI is currently in its TEST PILOT PHASE. The easiest way for you to give feedback, such as [insert user opinion], is to become a TEST PILOT by obtaining a TEST PILOT CODE.

See the form at https://sideshift.ai/pilot

Thank you CRLF

@abrkn
abrkn / sai.md
Last active January 29, 2019 09:28
Sai

SAI is the native token of SideShift AI. At this time, 1 SAI = $0.10 USD. This is a temporary promotion during the TEST PILOT PHASE and not a guarantee. Basically, SAI could be worth zero in the future.

Smart Contract

  • Type: ERC20
  • Network: Ethereum (mainnet)
  • Address: 0xf5b403abd806eff15b339909943e2c22ecbac54c
  • Decimals: 18
  • Symbol: SAI
  • Name: Sai
@abrkn
abrkn / move-bitcoin-unspent-to-default-account.sh
Created November 22, 2018 04:59
Bitcoin: Move all unspent funds to the default ("") account
bitcoin-cli listunspent | grep address | cut -d\" -f4 | xargs -L1 -I{} bitcoin-cli setaccount {} ""
@abrkn
abrkn / drivechain.ai.md
Created October 22, 2018 10:42
Drivechain.ai

Drivechain.ai

The following toolkit makes getting started with Drivechain TestDrive easier and more fun!

Services

@abrkn
abrkn / drivechain.ai.md
Created October 22, 2018 09:23
Welcome to Drivechain.ai

Drivechain.ai

Drivechain.ai is a toolkit created by Andreas Brekken to make getting started and using the Drivechain TestDrive easier and more fun.

Services

#!/usr/bin/env node -r panik -r dotenv/config
const assert = require('assert');
const { URL } = require('url');
const redis = require('redis');
const bitcoin = require('bitcoin');
const safync = require('./safync');
const { urlToBitcoinOptions } = require('./utils');
const Promise = require('bluebird');
const { pMemoize } = require('./pmr');
const pgp = require('pg-promise');
@abrkn
abrkn / drivechain-install-linux.sh
Last active October 31, 2018 04:10
Automatic installation of Drivechain TestDrive
#!/usr/bin/env bash
# AutoTestDrive v7
# Automation Drivechain TestDrive installation for Ubuntu
# Uses Drivenet-9, UTXO-7, Sidechain-8, Payment-1
#
# Changelog
#
# Revision 8
# - Do not restore wallet unless revision 8
# - Fix typo in wallet restore code (payment restored sidechain wallet)