@hyperbridge/sdk 1.9.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@ pnpm add @hyperbridge/sdk
17
17
  ### Initialize Client
18
18
 
19
19
  ```ts
20
- import { IndexerClient, createQueryClient, EvmChain, SubstrateChain } from "@hyperbridge/sdk"
20
+ import { IsmpClient, createQueryClient, EvmChain, SubstrateChain } from "@hyperbridge/sdk"
21
21
 
22
22
  const queryClient = createQueryClient({
23
23
  url: "http://localhost:3000", // URL of the Hyperbridge indexer API
@@ -48,8 +48,8 @@ const hyperbridgeChain = new SubstrateChain({
48
48
  // Connect to Substrate chain
49
49
  await hyperbridgeChain.connect()
50
50
 
51
- // Create the IndexerClient
52
- const indexer = new IndexerClient({
51
+ // Create the IsmpClient
52
+ const indexer = new IsmpClient({
53
53
  queryClient: queryClient,
54
54
  pollInterval: 1_000, // Every second
55
55
  source: sourceChain,
@@ -267,7 +267,9 @@ The plugin automatically copies the necessary WebAssembly files to the correct l
267
267
 
268
268
  ### Classes
269
269
 
270
- - **IndexerClient** - Main client for interacting with the indexer
270
+ - **IsmpClient** - Main client for tracking ISMP requests via the indexer
271
+ - **IntentGateway** - Cross-chain intent order placement and status tracking (pair with `withQueryClient(queryClient)` for indexer-backed order status)
272
+ - **TokenGateway** - Cross-chain token transfers and teleport status tracking (pair with `withQueryClient(queryClient)` for indexer-backed teleport status)
271
273
  - **EvmChain** - Utilities for EVM chain interaction
272
274
  - **SubstrateChain** - Utilities for Substrate chain interaction
273
275
  - **TokenGateway** - Utilities for cross-chain token transfers and fee estimation