Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hirosystems/chainhook-client

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hirosystems/chainhook-client - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

dist/index.d.ts

@@ -23,3 +23,3 @@ import { ServerOptions, ChainhookNodeOptions, ServerPredicate, OnEventCallback } from './server';

*/
start(predicates: [ServerPredicate], callback: OnEventCallback): Promise<void>;
start(predicates: ServerPredicate[], callback: OnEventCallback): Promise<void>;
/**

@@ -26,0 +26,0 @@ * Stop the Chainhook event server gracefully.

@@ -27,3 +27,34 @@ import { Static } from '@sinclair/typebox';

export type BitcoinInscriptionTransferred = Static<typeof BitcoinInscriptionTransferredSchema>;
export declare const BitcoinCursedInscriptionRevealedSchema: import("@sinclair/typebox").TObject<{
content_bytes: import("@sinclair/typebox").TString<string>;
content_type: import("@sinclair/typebox").TString<string>;
content_length: import("@sinclair/typebox").TInteger;
inscription_number: import("@sinclair/typebox").TInteger;
inscription_fee: import("@sinclair/typebox").TInteger;
inscription_id: import("@sinclair/typebox").TString<string>;
inscription_output_value: import("@sinclair/typebox").TInteger;
inscriber_address: import("@sinclair/typebox").TString<string>;
ordinal_number: import("@sinclair/typebox").TInteger;
ordinal_block_height: import("@sinclair/typebox").TInteger;
ordinal_offset: import("@sinclair/typebox").TInteger;
satpoint_post_inscription: import("@sinclair/typebox").TString<string>;
curse_type: import("@sinclair/typebox").TString<string>;
}>;
export type BitcoinCursedInscriptionRevealed = Static<typeof BitcoinCursedInscriptionRevealedSchema>;
export declare const BitcoinOrdinalOperationSchema: import("@sinclair/typebox").TObject<{
cursed_inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
content_bytes: import("@sinclair/typebox").TString<string>;
content_type: import("@sinclair/typebox").TString<string>;
content_length: import("@sinclair/typebox").TInteger;
inscription_number: import("@sinclair/typebox").TInteger;
inscription_fee: import("@sinclair/typebox").TInteger;
inscription_id: import("@sinclair/typebox").TString<string>;
inscription_output_value: import("@sinclair/typebox").TInteger;
inscriber_address: import("@sinclair/typebox").TString<string>;
ordinal_number: import("@sinclair/typebox").TInteger;
ordinal_block_height: import("@sinclair/typebox").TInteger;
ordinal_offset: import("@sinclair/typebox").TInteger;
satpoint_post_inscription: import("@sinclair/typebox").TString<string>;
curse_type: import("@sinclair/typebox").TString<string>;
}>>;
inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{

@@ -61,2 +92,17 @@ content_bytes: import("@sinclair/typebox").TString<string>;

ordinal_operations: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
cursed_inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
content_bytes: import("@sinclair/typebox").TString<string>;
content_type: import("@sinclair/typebox").TString<string>;
content_length: import("@sinclair/typebox").TInteger;
inscription_number: import("@sinclair/typebox").TInteger;
inscription_fee: import("@sinclair/typebox").TInteger;
inscription_id: import("@sinclair/typebox").TString<string>;
inscription_output_value: import("@sinclair/typebox").TInteger;
inscriber_address: import("@sinclair/typebox").TString<string>;
ordinal_number: import("@sinclair/typebox").TInteger;
ordinal_block_height: import("@sinclair/typebox").TInteger;
ordinal_offset: import("@sinclair/typebox").TInteger;
satpoint_post_inscription: import("@sinclair/typebox").TString<string>;
curse_type: import("@sinclair/typebox").TString<string>;
}>>;
inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{

@@ -136,2 +182,17 @@ content_bytes: import("@sinclair/typebox").TString<string>;

ordinal_operations: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
cursed_inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
content_bytes: import("@sinclair/typebox").TString<string>;
content_type: import("@sinclair/typebox").TString<string>;
content_length: import("@sinclair/typebox").TInteger;
inscription_number: import("@sinclair/typebox").TInteger;
inscription_fee: import("@sinclair/typebox").TInteger;
inscription_id: import("@sinclair/typebox").TString<string>;
inscription_output_value: import("@sinclair/typebox").TInteger;
inscriber_address: import("@sinclair/typebox").TString<string>;
ordinal_number: import("@sinclair/typebox").TInteger;
ordinal_block_height: import("@sinclair/typebox").TInteger;
ordinal_offset: import("@sinclair/typebox").TInteger;
satpoint_post_inscription: import("@sinclair/typebox").TString<string>;
curse_type: import("@sinclair/typebox").TString<string>;
}>>;
inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{

@@ -222,2 +283,17 @@ content_bytes: import("@sinclair/typebox").TString<string>;

ordinal_operations: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
cursed_inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
content_bytes: import("@sinclair/typebox").TString<string>;
content_type: import("@sinclair/typebox").TString<string>;
content_length: import("@sinclair/typebox").TInteger;
inscription_number: import("@sinclair/typebox").TInteger;
inscription_fee: import("@sinclair/typebox").TInteger;
inscription_id: import("@sinclair/typebox").TString<string>;
inscription_output_value: import("@sinclair/typebox").TInteger;
inscriber_address: import("@sinclair/typebox").TString<string>;
ordinal_number: import("@sinclair/typebox").TInteger;
ordinal_block_height: import("@sinclair/typebox").TInteger;
ordinal_offset: import("@sinclair/typebox").TInteger;
satpoint_post_inscription: import("@sinclair/typebox").TString<string>;
curse_type: import("@sinclair/typebox").TString<string>;
}>>;
inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{

@@ -224,0 +300,0 @@ content_bytes: import("@sinclair/typebox").TString<string>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BitcoinEventSchema = exports.BitcoinTransactionSchema = exports.BitcoinTransactionMetadataSchema = exports.BitcoinOutputSchema = exports.BitcoinOrdinalOperationSchema = exports.BitcoinInscriptionTransferredSchema = exports.BitcoinInscriptionRevealedSchema = void 0;
exports.BitcoinEventSchema = exports.BitcoinTransactionSchema = exports.BitcoinTransactionMetadataSchema = exports.BitcoinOutputSchema = exports.BitcoinOrdinalOperationSchema = exports.BitcoinCursedInscriptionRevealedSchema = exports.BitcoinInscriptionTransferredSchema = exports.BitcoinInscriptionRevealedSchema = void 0;
const typebox_1 = require("@sinclair/typebox");

@@ -29,3 +29,19 @@ const common_1 = require("../common");

});
exports.BitcoinCursedInscriptionRevealedSchema = typebox_1.Type.Object({
content_bytes: typebox_1.Type.String(),
content_type: typebox_1.Type.String(),
content_length: typebox_1.Type.Integer(),
inscription_number: typebox_1.Type.Integer(),
inscription_fee: typebox_1.Type.Integer(),
inscription_id: typebox_1.Type.String(),
inscription_output_value: typebox_1.Type.Integer(),
inscriber_address: typebox_1.Type.String(),
ordinal_number: typebox_1.Type.Integer(),
ordinal_block_height: typebox_1.Type.Integer(),
ordinal_offset: typebox_1.Type.Integer(),
satpoint_post_inscription: typebox_1.Type.String(),
curse_type: typebox_1.Type.String(),
});
exports.BitcoinOrdinalOperationSchema = typebox_1.Type.Object({
cursed_inscription_revealed: typebox_1.Type.Optional(exports.BitcoinCursedInscriptionRevealedSchema),
inscription_revealed: typebox_1.Type.Optional(exports.BitcoinInscriptionRevealedSchema),

@@ -32,0 +48,0 @@ inscription_transferred: typebox_1.Type.Optional(exports.BitcoinInscriptionTransferredSchema),

@@ -296,2 +296,17 @@ import { Static } from '@sinclair/typebox';

ordinal_operations: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
cursed_inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
content_bytes: import("@sinclair/typebox").TString<string>;
content_type: import("@sinclair/typebox").TString<string>;
content_length: import("@sinclair/typebox").TInteger;
inscription_number: import("@sinclair/typebox").TInteger;
inscription_fee: import("@sinclair/typebox").TInteger;
inscription_id: import("@sinclair/typebox").TString<string>;
inscription_output_value: import("@sinclair/typebox").TInteger;
inscriber_address: import("@sinclair/typebox").TString<string>;
ordinal_number: import("@sinclair/typebox").TInteger;
ordinal_block_height: import("@sinclair/typebox").TInteger;
ordinal_offset: import("@sinclair/typebox").TInteger;
satpoint_post_inscription: import("@sinclair/typebox").TString<string>;
curse_type: import("@sinclair/typebox").TString<string>;
}>>;
inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{

@@ -623,2 +638,17 @@ content_bytes: import("@sinclair/typebox").TString<string>;

ordinal_operations: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
cursed_inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
content_bytes: import("@sinclair/typebox").TString<string>;
content_type: import("@sinclair/typebox").TString<string>;
content_length: import("@sinclair/typebox").TInteger;
inscription_number: import("@sinclair/typebox").TInteger;
inscription_fee: import("@sinclair/typebox").TInteger;
inscription_id: import("@sinclair/typebox").TString<string>;
inscription_output_value: import("@sinclair/typebox").TInteger;
inscriber_address: import("@sinclair/typebox").TString<string>;
ordinal_number: import("@sinclair/typebox").TInteger;
ordinal_block_height: import("@sinclair/typebox").TInteger;
ordinal_offset: import("@sinclair/typebox").TInteger;
satpoint_post_inscription: import("@sinclair/typebox").TString<string>;
curse_type: import("@sinclair/typebox").TString<string>;
}>>;
inscription_revealed: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{

@@ -625,0 +655,0 @@ content_bytes: import("@sinclair/typebox").TString<string>;

@@ -231,3 +231,3 @@ /// <reference types="node" />

*/
export declare function buildServer(serverOpts: ServerOptions, chainhookOpts: ChainhookNodeOptions, predicates: [ServerPredicate], callback: OnEventCallback): Promise<FastifyInstance<Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, TypeBoxTypeProvider>>;
export declare function buildServer(serverOpts: ServerOptions, chainhookOpts: ChainhookNodeOptions, predicates: ServerPredicate[], callback: OnEventCallback): Promise<FastifyInstance<Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, TypeBoxTypeProvider>>;
export {};
{
"name": "@hirosystems/chainhook-client",
"version": "1.0.2",
"version": "1.0.3",
"description": "Chainhook TypeScript client",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc