@volr/react 0.1.94 → 0.1.96

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.cjs CHANGED
@@ -18555,6 +18555,10 @@ function useVolr() {
18555
18555
  return { publicClient, extendedRpcClient };
18556
18556
  };
18557
18557
  return {
18558
+ getBalance: async (address) => {
18559
+ const { publicClient: client2 } = await ensureRpcClient();
18560
+ return client2.getBalance({ address });
18561
+ },
18558
18562
  readContract: async (args) => {
18559
18563
  const { publicClient: client2 } = await ensureRpcClient();
18560
18564
  return client2.readContract(args);
@@ -18708,6 +18712,7 @@ function useVolrLogin() {
18708
18712
  email: u.email,
18709
18713
  accountId: u.accountId ?? void 0,
18710
18714
  evmAddress: u.evmAddress,
18715
+ authWalletAddress: u.authWalletAddress ?? void 0,
18711
18716
  keyStorageType: u.keyStorageType ?? void 0,
18712
18717
  signerType: u.signerType ?? void 0,
18713
18718
  walletConnector: u.walletConnector ?? void 0,
@@ -19622,7 +19627,7 @@ async function uploadBlobViaPresign(params) {
19622
19627
  }
19623
19628
  var POLL_INTERVAL_MS = 2e3;
19624
19629
  var MAX_POLL_ATTEMPTS = 180;
19625
- function useVolrPay() {
19630
+ function useVolrPaymentApi() {
19626
19631
  const { client } = useInternalAuth();
19627
19632
  const [isLoading, setIsLoading] = react.useState(false);
19628
19633
  const createPayment = react.useCallback(
@@ -19657,7 +19662,7 @@ function useVolrPay() {
19657
19662
  if (options.skip) params.append("skip", String(options.skip));
19658
19663
  if (options.status) params.append("status", options.status);
19659
19664
  const queryString = params.toString();
19660
- const url = queryString ? `/payments?${queryString}` : "/payments";
19665
+ const url = queryString ? `/payments/history?${queryString}` : "/payments/history";
19661
19666
  return client.get(url);
19662
19667
  },
19663
19668
  [client]
@@ -20376,6 +20381,6 @@ exports.useVolr = useVolr;
20376
20381
  exports.useVolrAuthCallback = useVolrAuthCallback;
20377
20382
  exports.useVolrContext = useVolrContext;
20378
20383
  exports.useVolrLogin = useVolrLogin;
20379
- exports.useVolrPay = useVolrPay;
20384
+ exports.useVolrPaymentApi = useVolrPaymentApi;
20380
20385
  //# sourceMappingURL=index.cjs.map
20381
20386
  //# sourceMappingURL=index.cjs.map