From fe7ef7828ab54c902c1464324056f00e715425a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20C=C3=A1rdenas?= <4290054+vabanaerytk@users.noreply.github.com> Date: Fri, 2 Feb 2024 10:19:37 -0600 Subject: [PATCH] fix: adjust ordinal_number entry in ts client inscription transfer event, add new reveal data (#476) --- components/client/typescript/package-lock.json | 4 ++-- components/client/typescript/package.json | 2 +- .../client/typescript/src/schemas/bitcoin/payload.ts | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/client/typescript/package-lock.json b/components/client/typescript/package-lock.json index 1984638..ad87a89 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.5.0", + "version": "1.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hirosystems/chainhook-client", - "version": "1.5.0", + "version": "1.7.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 37d1d34..c2d24c7 100644 --- a/components/client/typescript/package.json +++ b/components/client/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@hirosystems/chainhook-client", - "version": "1.5.0", + "version": "1.7.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 51b09c9..74a1637 100644 --- a/components/client/typescript/src/schemas/bitcoin/payload.ts +++ b/components/client/typescript/src/schemas/bitcoin/payload.ts @@ -18,7 +18,12 @@ export const BitcoinInscriptionRevealedSchema = Type.Object({ inscription_id: Type.String(), inscription_input_index: Type.Integer(), inscription_output_value: Type.Integer(), + inscription_pointer: Nullable(Type.Integer()), inscriber_address: Nullable(Type.String()), + delegate: Nullable(Type.String()), + metaprotocol: Nullable(Type.String()), + metadata: Nullable(Type.Any()), + parent: Nullable(Type.String()), ordinal_number: Type.Integer(), ordinal_block_height: Type.Integer(), ordinal_offset: Type.Integer(), @@ -38,7 +43,7 @@ export const BitcoinInscriptionTransferredSchema = Type.Object({ ]), value: Type.Optional(Type.String()), }), - inscription_id: Type.String(), + ordinal_number: Type.Integer(), satpoint_pre_transfer: Type.String(), satpoint_post_transfer: Type.String(), post_transfer_output_value: Nullable(Type.Integer()),