Skip to content

Instantly share code, notes, and snippets.

View HOllarves's full-sized avatar
🎯
Focusing

Henry Ollarves HOllarves

🎯
Focusing
View GitHub Profile
/* eslint-disable complexity */
/* eslint-disable node/no-process-exit */
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable no-console */
import type { DatabasePoolConnection } from 'slonik';
import { createPool, sql } from "slonik";
import yargs from "yargs";
import { Logger } from "./Logger";
// import { createSlonikInterceptors } from "./factories";
@HOllarves
HOllarves / banks.json
Created February 20, 2019 15:29
Mismo archivo invertido
{
"0156": "100%BANCO",
"0196": "ABN-AMRO-BANK",
"0172": "BANCAMIGA-BANCO-MICROFINANCIERO",
"0171": "BANCO-ACTIVO-BANCO-COMERCIAL",
"0166": "BANCO-AGRICOLA",
"0175": "BANCO-BICENTENARIO",
"0128": "BANCO-CARONI-BANCO-UNIVERSAL",
"0164": "BANCO-DE-DESARROLLO-DEL-MICROEMPRESARIO",
"0102": "BANCO-DE-VENEZUELA",
@HOllarves
HOllarves / Bancos.json
Last active November 8, 2021 15:48
Bancos de venezuela
{
"100%BANCO": "0156",
"ABN-AMRO-BANK": "0196",
"BANCAMIGA-BANCO-MICROFINANCIERO": "0172",
"BANCO-ACTIVO-BANCO-COMERCIAL": "0171",
"BANCO-AGRICOLA": "0166",
"BANCO-BICENTENARIO": "0175",
"BANCO-CARONI-BANCO-UNIVERSAL": "0128",
"BANCO-DE-DESARROLLO-DEL-MICROEMPRESARIO": "0164",
"BANCO-DE-VENEZUELA": "0102",
const { Network } = require("bcoin")
const { WalletClient, NodeClient } = require("bclient")
const network = Network.get("testnet")
const walletOptions = {
network: network.type,
port: network.walletPort,
apiKey: process.env.BTC_API_KEY,
host: process.env.BTC_HOST
}
const nodeOptions = {
@HOllarves
HOllarves / bcoin-listeners.js
Last active February 6, 2019 10:06
BCOIN bitcoin handler
const eventListeners = async (walletClient, nodeClient) => {
const db = require("mongoose")
const IncomingTx = require("../models/IncomingTx")
await walletClient.open()
await nodeClient.open()
/**
* This event is fired everytime a new