This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |