@zkp2p/sdk 0.0.2 → 0.0.3

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.
@@ -1361,6 +1361,26 @@ declare class Zkp2pClient {
1361
1361
  includeIntents?: boolean;
1362
1362
  intentStatuses?: IntentStatus[];
1363
1363
  }) => Promise<DepositWithRelations[]>;
1364
+ /**
1365
+ * Fetches deposits by their composite IDs.
1366
+ * @param ids - Array of composite IDs in format "chainId_escrowAddress_depositId"
1367
+ */
1368
+ getDepositsByIds: (ids: string[]) => Promise<DepositEntity[]>;
1369
+ /**
1370
+ * Fetches deposits by their composite IDs with all related data.
1371
+ * @param ids - Array of composite IDs in format "chainId_escrowAddress_depositId"
1372
+ */
1373
+ getDepositsByIdsWithRelations: (ids: string[], options?: {
1374
+ includeIntents?: boolean;
1375
+ intentStatuses?: IntentStatus[];
1376
+ }) => Promise<DepositWithRelations[]>;
1377
+ /**
1378
+ * Performs a raw GraphQL query against the indexer.
1379
+ */
1380
+ query: <T>(params: {
1381
+ query: string;
1382
+ variables?: Record<string, unknown>;
1383
+ }) => Promise<T>;
1364
1384
  };
1365
1385
  /**
1366
1386
  * Ensures ERC20 token allowance is sufficient for the Escrow contract.
@@ -1361,6 +1361,26 @@ declare class Zkp2pClient {
1361
1361
  includeIntents?: boolean;
1362
1362
  intentStatuses?: IntentStatus[];
1363
1363
  }) => Promise<DepositWithRelations[]>;
1364
+ /**
1365
+ * Fetches deposits by their composite IDs.
1366
+ * @param ids - Array of composite IDs in format "chainId_escrowAddress_depositId"
1367
+ */
1368
+ getDepositsByIds: (ids: string[]) => Promise<DepositEntity[]>;
1369
+ /**
1370
+ * Fetches deposits by their composite IDs with all related data.
1371
+ * @param ids - Array of composite IDs in format "chainId_escrowAddress_depositId"
1372
+ */
1373
+ getDepositsByIdsWithRelations: (ids: string[], options?: {
1374
+ includeIntents?: boolean;
1375
+ intentStatuses?: IntentStatus[];
1376
+ }) => Promise<DepositWithRelations[]>;
1377
+ /**
1378
+ * Performs a raw GraphQL query against the indexer.
1379
+ */
1380
+ query: <T>(params: {
1381
+ query: string;
1382
+ variables?: Record<string, unknown>;
1383
+ }) => Promise<T>;
1364
1384
  };
1365
1385
  /**
1366
1386
  * Ensures ERC20 token allowance is sufficient for the Escrow contract.
package/dist/index.cjs CHANGED
@@ -2025,6 +2025,26 @@ var Zkp2pClient = class {
2025
2025
  */
2026
2026
  getDepositsByPayeeHash: (payeeHash, options = {}) => {
2027
2027
  return service.fetchDepositsByPayeeHash(payeeHash, options);
2028
+ },
2029
+ /**
2030
+ * Fetches deposits by their composite IDs.
2031
+ * @param ids - Array of composite IDs in format "chainId_escrowAddress_depositId"
2032
+ */
2033
+ getDepositsByIds: (ids) => {
2034
+ return service.fetchDepositsByIds(ids);
2035
+ },
2036
+ /**
2037
+ * Fetches deposits by their composite IDs with all related data.
2038
+ * @param ids - Array of composite IDs in format "chainId_escrowAddress_depositId"
2039
+ */
2040
+ getDepositsByIdsWithRelations: (ids, options) => {
2041
+ return service.fetchDepositsByIdsWithRelations(ids, options);
2042
+ },
2043
+ /**
2044
+ * Performs a raw GraphQL query against the indexer.
2045
+ */
2046
+ query: (params) => {
2047
+ return client.query(params);
2028
2048
  }
2029
2049
  };
2030
2050
  }