Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 5aecf38

Browse files
BarisSozenclaude
andcommitted
fix: HTLC query uses chainId not chainType, publish v0.1.1
GraphQL schema has chainId: Int on HTLC type, not chainType. Fixed all SDK queries to match actual schema. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c63e57f commit 5aecf38

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hashlock-tech/sdk",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "TypeScript SDK for HashLock OTC — HTLC atomic settlement, RFQ trading, and Bitcoin cross-chain swaps",
55
"license": "MIT",
66
"type": "module",

src/hashlock.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ export class HashLock {
351351
query HTLCStatus($tradeId: ID!) {
352352
htlcStatus(tradeId: $tradeId) {
353353
tradeId status
354-
initiatorHTLC { id tradeId role status contractAddress hashlock timelock amount txHash chainType }
355-
counterpartyHTLC { id tradeId role status contractAddress hashlock timelock amount txHash chainType }
354+
initiatorHTLC { id tradeId role status contractAddress hashlock timelock amount txHash chainId }
355+
counterpartyHTLC { id tradeId role status contractAddress hashlock timelock amount txHash chainId }
356356
}
357357
}
358358
`, { tradeId });

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export interface HTLC {
9393
timelock: number | null;
9494
amount: string | null;
9595
txHash: string | null;
96-
chainType: string | null;
96+
chainId: number | null;
9797
preimage: string | null;
9898
}
9999

0 commit comments

Comments
 (0)