Skip to content

Commit

Permalink
fix: build event server using chainhook client library (#105)
Browse files Browse the repository at this point in the history
* fix: pg 15 docker

* fix: use chainhook client to create event server

* fix: don't get coverage on types
  • Loading branch information
rafaelcr committed Jun 23, 2023
1 parent 7bf344b commit ab4c795
Show file tree
Hide file tree
Showing 14 changed files with 206 additions and 394 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.dev.postgres.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.7'
services:
postgres:
image: "postgres:14"
image: "postgres:15"
ports:
- "5432:5432"
environment:
Expand Down
7 changes: 4 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ module.exports = {
// coverageDirectory: undefined,

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
// "/node_modules/"
// ],
coveragePathIgnorePatterns: [
"/node_modules/",
"/src/@types/"
],

// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",
Expand Down
146 changes: 117 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
"@fastify/formbody": "^7.0.1",
"@fastify/multipart": "^7.1.0",
"@fastify/swagger": "^8.3.1",
"@fastify/type-provider-typebox": "^2.1.0",
"@sinclair/typebox": "^0.24.20",
"@fastify/type-provider-typebox": "^3.2.0",
"@hirosystems/chainhook-client": "^1.0.3",
"@sinclair/typebox": "^0.28.17",
"@types/node": "^18.13.0",
"bignumber.js": "^9.1.1",
"bitcoinjs-lib": "^6.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fastify from 'fastify';
import { PgStore } from '../../../pg/pg-store';
import { PgStore } from '../../pg/pg-store';

declare module 'fastify' {
export interface FastifyInstance<
Expand Down
17 changes: 0 additions & 17 deletions src/chainhook/helpers.ts

This file was deleted.

Loading

0 comments on commit ab4c795

Please sign in to comment.