We're looking to add a column to the table user
called admin
(boolean
) in an existing database.
migrations
[Unit] | |
Description=Liquid Daemon | |
After=bitcoind.service | |
[Service] | |
User=ubuntu | |
Group=ubuntu | |
ExecStart=/usr/local/bin/liquidd -datadir=/opt/liquid | |
[Install] |
import { middleware as whitelistMiddleware } from './utils/introspecton-whitelist'; | |
import { whitelist as introspectionWhitelist } from './utils/introspecton-whitelist/whitelist'; | |
// Your express app | |
// Whitelist GraphQL introspection responses | |
app.use(whitelistMiddleware(introspectionWhitelist)); | |
// Apollo middleware must be below whitelisting middleware |
heroku logs -a YOUR_APP_NAME -t | sed 's/[^{]*//' | npx pino-pretty |
#!/usr/bin/env bash | |
# | |
# Run database migrations with the power of bash | |
# | |
set -eu -o pipefail | |
cd "$(dirname "$0")/.." | |
if [ "$#" -lt 2 ]; then | |
1>&2 echo "Usage: $0 postgres://url/db <migration dir>" | |
exit 1 |
import * as Conseil from 'conseiljs'; | |
import { SoftSigner } from 'conseiljs-softsigner'; | |
import { ns } from '@sideshift/shared'; | |
import { | |
initializeConseil, | |
TezosRpcClient, | |
getTezosKeyStoreFromSecret, | |
createLogger, | |
} from '@sideshift/shared-node'; |
using System; | |
using System.Drawing; | |
using System.Runtime.InteropServices; | |
public static class ScreenCapture | |
{ | |
class NativeMethods | |
{ | |
[DllImport("user32.dll")] | |
internal static extern IntPtr GetWindowDC(IntPtr hWnd); |
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, |
Authorize linking the domain name sideshift.ai to the Liquid asset d5a8a7af573c0bfa59584a0553f8899dfbcde9f7d839db85d187909fb70e2876 |
#!/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, |