Skip to content

Commit

Permalink
feat: add inscription transfer destination schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Nov 1, 2023
1 parent 0fbfc76 commit 526de7a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/client/typescript/package-lock.json

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

2 changes: 1 addition & 1 deletion components/client/typescript/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 8 additions & 1 deletion components/client/typescript/src/schemas/bitcoin/payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ export const BitcoinInscriptionRevealedSchema = Type.Object({
export type BitcoinInscriptionRevealed = Static<typeof BitcoinInscriptionRevealedSchema>;

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()),
Expand Down

0 comments on commit 526de7a

Please sign in to comment.