@dcentralab/d402-client 0.3.16 → 0.3.17

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
@@ -11069,6 +11069,20 @@ async function getUnlockedBalanceForProvider(params) {
11069
11069
  });
11070
11070
  return balance;
11071
11071
  }
11072
+ async function getProviderTotalDisputeInProgress(params) {
11073
+ const { publicClient, providerAddress, tokenAddress, network = "sepolia" } = params;
11074
+ const settlementConfig = getContractConfig("IATPSettlementLayer" /* IATP_SETTLEMENT_LAYER */, network);
11075
+ if (!settlementConfig) {
11076
+ throw new Error(`IATPSettlementLayer contract not found for network: ${network}`);
11077
+ }
11078
+ const amount = await publicClient.readContract({
11079
+ address: settlementConfig.address,
11080
+ abi: settlementConfig.abi,
11081
+ functionName: "providerTotalDisputeInProgress",
11082
+ args: [providerAddress, tokenAddress]
11083
+ });
11084
+ return amount;
11085
+ }
11072
11086
 
11073
11087
  // src/settlement/operations.ts
11074
11088
  async function withdrawAllAvailableEpochs(params) {
@@ -11112,6 +11126,6 @@ async function withdrawAllAvailableEpochs(params) {
11112
11126
  init_utils();
11113
11127
  init_errors();
11114
11128
 
11115
- export { ContractName, D402Client, Invalid402ResponseError, MissingRequestConfigError, PaymentAlreadyAttemptedError, PaymentAmountExceededError, PaymentError, PaymentVerificationError, UnsupportedNetworkError, UnsupportedSchemeError, buildMcpHeaders, buildToolCallPayload, createIATPWallet, createPaymentSelector, decodePayment, decodePaymentResponse, encodePayment, executeWithdrawal, extractToolResult, findMatchingPaymentRequirement, formatMoney, generateNonce, getAvailableBalance, getChain, getChainId, getContractAbi, getContractAddress, getContractConfig, getCurrentTimestamp, getLockedBalanceForProvider, getUnlockedBalanceForProvider, getUsdcAddress, getWalletEIP712Domain, getWalletInfo, getWalletsByOwner, getWithdrawalRequest, initMcpSession, isValidAddress, normalizeAddress, parseAllPaymentRequirements, parseMcpResponse, parseMoney, parsePaymentRequirement, requestWithdrawal, selectPaymentRequirement, signD402Payment, sortPaymentRequirements, usdToUsdc, validateConsumerSignature, withdrawAllAvailableEpochs, withdrawAllFromSettlement };
11129
+ export { ContractName, D402Client, Invalid402ResponseError, MissingRequestConfigError, PaymentAlreadyAttemptedError, PaymentAmountExceededError, PaymentError, PaymentVerificationError, UnsupportedNetworkError, UnsupportedSchemeError, buildMcpHeaders, buildToolCallPayload, createIATPWallet, createPaymentSelector, decodePayment, decodePaymentResponse, encodePayment, executeWithdrawal, extractToolResult, findMatchingPaymentRequirement, formatMoney, generateNonce, getAvailableBalance, getChain, getChainId, getContractAbi, getContractAddress, getContractConfig, getCurrentTimestamp, getLockedBalanceForProvider, getProviderTotalDisputeInProgress, getUnlockedBalanceForProvider, getUsdcAddress, getWalletEIP712Domain, getWalletInfo, getWalletsByOwner, getWithdrawalRequest, initMcpSession, isValidAddress, normalizeAddress, parseAllPaymentRequirements, parseMcpResponse, parseMoney, parsePaymentRequirement, requestWithdrawal, selectPaymentRequirement, signD402Payment, sortPaymentRequirements, usdToUsdc, validateConsumerSignature, withdrawAllAvailableEpochs, withdrawAllFromSettlement };
11116
11130
  //# sourceMappingURL=index.mjs.map
11117
11131
  //# sourceMappingURL=index.mjs.map