From 905f800671a7cd576dc8d19ecf9800b484963df3 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas <4290054+vabanaerytk@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:21:35 -0600 Subject: [PATCH] feat: add inscription transfer destination schema --- components/client/typescript/package-lock.json | 4 ++-- components/client/typescript/package.json | 2 +- .../client/typescript/src/schemas/bitcoin/payload.ts | 9 ++++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/components/client/typescript/package-lock.json b/components/client/typescript/package-lock.json index 3fe53ad..9a4ba98 100644 --- a/components/client/typescript/package-lock.json +++ b/components/client/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hirosystems/chainhook-client", - "version": "1.3.4", + "version": "1.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hirosystems/chainhook-client", - "version": "1.3.4", + "version": "1.4.0", "license": "Apache 2.0", "dependencies": { "@fastify/type-provider-typebox": "^3.2.0", diff --git a/components/client/typescript/package.json b/components/client/typescript/package.json index 7371cc1..32a1fb9 100644 --- a/components/client/typescript/package.json +++ b/components/client/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@hirosystems/chainhook-client", - "version": "1.3.4", + "version": "1.4.0", "description": "Chainhook TypeScript client", "main": "./dist/index.js", "typings": "./dist/index.d.ts", diff --git a/components/client/typescript/src/schemas/bitcoin/payload.ts b/components/client/typescript/src/schemas/bitcoin/payload.ts index 35f4cc9..bec3168 100644 --- a/components/client/typescript/src/schemas/bitcoin/payload.ts +++ b/components/client/typescript/src/schemas/bitcoin/payload.ts @@ -26,8 +26,15 @@ export const BitcoinInscriptionRevealedSchema = Type.Object({ export type BitcoinInscriptionRevealed = Static; export const BitcoinInscriptionTransferredSchema = Type.Object({ + destination: Type.Object({ + type: Type.Union([ + Type.Literal('transferred'), + Type.Literal('spent_in_fees'), + Type.Literal('burnt'), + ]), + value: Type.Optional(Type.String()), + }), inscription_id: Type.String(), - updated_address: Nullable(Type.String()), satpoint_pre_transfer: Type.String(), satpoint_post_transfer: Type.String(), post_transfer_output_value: Nullable(Type.Integer()),