Skip to content

Instantly share code, notes, and snippets.

Andreas Brekken abrkn

Block or report user

Report or block abrkn

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
View Sweep.ts
import pMap from 'p-map';
import pRetry from 'p-retry';
import { safePromise } from 'safep';
import { chain, values, chunk, flatten } from 'lodash';
import { fromEnv as configFromEnv, SlpDepositConfig } from './config';
import { slpTokens } from '../shared/slp-tokens';
import { runWorkerUntilShutdown } from '../shared/utils-node';
import { getBitcoinRpc } from '../shared/rpcs';
import {
toBchAddress,
View liquid-asset-proof-d5a8a7af573c0bfa59584a0553f8899dfbcde9f7d839db85d187909fb70e2876
Authorize linking the domain name sideshift.ai to the Liquid asset d5a8a7af573c0bfa59584a0553f8899dfbcde9f7d839db85d187909fb70e2876
@abrkn
abrkn / index.js
Created Oct 13, 2017
kraken-minimal-trader
View index.js
#!/usr/bin/env node
const assert = require('assert');
const { delay } = require('bluebird');
const BigNumber = require('bignumber.js');
const kraken = require('./kraken');
const {
fetchMyOpenOrders,
fetchOrderBook,
placeOrder,
View how-to-lightning.ts
import { fromEnv as configFromEnv } from './config';
import { getRpc } from '../shared/rpcs';
import { n, runWorkerUntilShutdown } from '../shared/utils';
import { createDeposit, getConnection, Deposit, Quote } from '../shared/orm';
import { safePromise } from 'safep';
import { AxiosError } from 'axios';
const config = configFromEnv();
const depositMethod = config.depositMethod!;
const { node, asset } = depositMethod!;
@abrkn
abrkn / shifty-output.log
Last active Jan 31, 2019
Example Shifty output log
View shifty-output.log
Jan 31 11:41:14am info app worker.1 assert(amount)
Jan 31 11:41:14am info app worker.1 at fetchDepositAddress (/app/src/web/backend/utils/address.js:146:5)
Jan 31 11:41:14am info app worker.1 at shift (/app/src/worker-shifty/start.js:72:32)
Jan 31 11:41:14am info app worker.1 at process._tickCallback (internal/process/next_tick.js:68:7)
Time gap of 5 minutes • Thursday, January 31st at 11:46 am
Jan 31 11:46:19am info app worker.1 19 deposit methods can send $5
Jan 31 11:46:19am info app worker.1 16 deposit methods are possible to send automatically
Jan 31 11:46:19am info app worker.1 Picked the deposit method ltc (asset LTC) by random
Jan 31 11:46:19am info app worker.1 Picked the settle method bch (asset BCH) by random
Jan 31 11:46:19am info app worker.1 Creating quote...
@abrkn
abrkn / shifty.js
Created Jan 31, 2019
Shifty, the automated ShapeShift AI testing robot
View shifty.js
const { delayUnlessShutdown } = require('shutin');
const { depositMethods, settleMethods } = require('../shared/facts');
const { n } = require('../shared/utils');
const { fetchRate, convert } = require('../shared/rates');
const { sample, values, chain, keys } = require('lodash');
const { fetchInventorySnapshot } = require('../shared/db');
const pReduce = require('p-reduce');
const { fetchDepositAddress } = require('../web/backend/utils/address');
const payWith = require('../shared/pay');
const { safePromise } = require('safep');
View zaddr-settle.js
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) {
View sai.md

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
View liquidd.service
[Unit]
Description=Liquid Daemon
After=bitcoind.service
[Service]
User=ubuntu
Group=ubuntu
ExecStart=/usr/local/bin/liquidd -datadir=/opt/liquid
[Install]
You can’t perform that action at this time.