@dcentralab/d402-client 0.2.3 → 0.2.4

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/dist/index.mjs CHANGED
@@ -5232,7 +5232,7 @@ init_constants();
5232
5232
 
5233
5233
  // src/settlement.ts
5234
5234
  async function getLockedBalanceForProvider(params) {
5235
- const { publicClient, settlementLayerAddress, providerAddress, network = "sepolia" } = params;
5235
+ const { publicClient, settlementLayerAddress, providerAddress, tokenAddress, network = "sepolia" } = params;
5236
5236
  const settlementConfig = getContractConfig("IATPSettlementLayer" /* IATP_SETTLEMENT_LAYER */, network);
5237
5237
  if (!settlementConfig) {
5238
5238
  throw new Error(`IATPSettlementLayer contract not found for network: ${network}`);
@@ -5241,12 +5241,12 @@ async function getLockedBalanceForProvider(params) {
5241
5241
  address: settlementLayerAddress,
5242
5242
  abi: settlementConfig.abi,
5243
5243
  functionName: "getLockedBalanceForProvider",
5244
- args: [providerAddress]
5244
+ args: [providerAddress, tokenAddress]
5245
5245
  });
5246
5246
  return balance;
5247
5247
  }
5248
5248
  async function getUnlockedBalanceForProvider(params) {
5249
- const { publicClient, settlementLayerAddress, providerAddress, network = "sepolia" } = params;
5249
+ const { publicClient, settlementLayerAddress, providerAddress, tokenAddress, network = "sepolia" } = params;
5250
5250
  const settlementConfig = getContractConfig("IATPSettlementLayer" /* IATP_SETTLEMENT_LAYER */, network);
5251
5251
  if (!settlementConfig) {
5252
5252
  throw new Error(`IATPSettlementLayer contract not found for network: ${network}`);
@@ -5255,7 +5255,7 @@ async function getUnlockedBalanceForProvider(params) {
5255
5255
  address: settlementLayerAddress,
5256
5256
  abi: settlementConfig.abi,
5257
5257
  functionName: "getUnlockedBalanceForProvider",
5258
- args: [providerAddress]
5258
+ args: [providerAddress, tokenAddress]
5259
5259
  });
5260
5260
  return balance;
5261
5261
  }