anymal-protocol 1.0.30 → 1.0.32

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.js CHANGED
@@ -95,7 +95,9 @@ function useVerifyAccount() {
95
95
  maxFeePerGas: (0, import_viem.parseGwei)("5.599")
96
96
  });
97
97
  await bundlerClient.waitForUserOperationReceipt({
98
- hash: userOpHash
98
+ hash: userOpHash,
99
+ timeout: 3e4,
100
+ retryCount: 10
99
101
  });
100
102
  return { success: true, message: "Registration kibble awarded" };
101
103
  } catch (error) {
@@ -378,6 +380,7 @@ function useFetchNotifications() {
378
380
  AnymalNotification(groupBy: $groupBy, filter: $filter, order: $order) {
379
381
  anymalTxId
380
382
  title
383
+ read
381
384
  _group {
382
385
  source
383
386
  action
@@ -403,7 +406,7 @@ function useFetchNotifications() {
403
406
  };
404
407
  const order = [
405
408
  {
406
- timeAddedUtc: "ASC"
409
+ timeAddedUtc: "DESC"
407
410
  }
408
411
  ];
409
412
  const groupBy = ["anymalTxId", "title"];
@@ -469,7 +472,9 @@ function useMintAnymalNFT() {
469
472
  maxFeePerGas: (0, import_viem2.parseGwei)("5.599")
470
473
  });
471
474
  await bundlerClient.waitForUserOperationReceipt({
472
- hash: userOpHash
475
+ hash: userOpHash,
476
+ timeout: 3e4,
477
+ retryCount: 10
473
478
  });
474
479
  return { success: true, message: "Pet Passport Created!" };
475
480
  },
@@ -823,7 +828,9 @@ function useProcessPartialKibblePayment() {
823
828
  maxFeePerGas: (0, import_viem3.parseGwei)("0.01")
824
829
  });
825
830
  await bundlerClient.waitForUserOperationReceipt({
826
- hash: userOpHash
831
+ hash: userOpHash,
832
+ timeout: 3e4,
833
+ retryCount: 10
827
834
  });
828
835
  return { success: true, message: "Partial Kibble Payment Processed!" };
829
836
  } catch (error) {
@@ -867,12 +874,20 @@ function useApproveKibbleToken() {
867
874
  maxFeePerGas: (0, import_viem4.parseGwei)("0.01")
868
875
  });
869
876
  await bundlerClient.waitForUserOperationReceipt({
870
- hash: userOpHash
877
+ hash: userOpHash,
878
+ timeout: 3e4,
879
+ retryCount: 10
871
880
  });
872
- return { success: true, message: "Approval transaction completed successfully." };
881
+ return {
882
+ success: true,
883
+ message: "Approval transaction completed successfully."
884
+ };
873
885
  } catch (error) {
874
886
  const errorMessage = error instanceof Error ? error.message : "An unknown error occurred";
875
- return { success: false, message: `Error processing approval: ${errorMessage}` };
887
+ return {
888
+ success: false,
889
+ message: `Error processing approval: ${errorMessage}`
890
+ };
876
891
  }
877
892
  },
878
893
  []
package/dist/index.mjs CHANGED
@@ -50,7 +50,9 @@ function useVerifyAccount() {
50
50
  maxFeePerGas: parseGwei("5.599")
51
51
  });
52
52
  await bundlerClient.waitForUserOperationReceipt({
53
- hash: userOpHash
53
+ hash: userOpHash,
54
+ timeout: 3e4,
55
+ retryCount: 10
54
56
  });
55
57
  return { success: true, message: "Registration kibble awarded" };
56
58
  } catch (error) {
@@ -333,6 +335,7 @@ function useFetchNotifications() {
333
335
  AnymalNotification(groupBy: $groupBy, filter: $filter, order: $order) {
334
336
  anymalTxId
335
337
  title
338
+ read
336
339
  _group {
337
340
  source
338
341
  action
@@ -358,7 +361,7 @@ function useFetchNotifications() {
358
361
  };
359
362
  const order = [
360
363
  {
361
- timeAddedUtc: "ASC"
364
+ timeAddedUtc: "DESC"
362
365
  }
363
366
  ];
364
367
  const groupBy = ["anymalTxId", "title"];
@@ -424,7 +427,9 @@ function useMintAnymalNFT() {
424
427
  maxFeePerGas: parseGwei2("5.599")
425
428
  });
426
429
  await bundlerClient.waitForUserOperationReceipt({
427
- hash: userOpHash
430
+ hash: userOpHash,
431
+ timeout: 3e4,
432
+ retryCount: 10
428
433
  });
429
434
  return { success: true, message: "Pet Passport Created!" };
430
435
  },
@@ -778,7 +783,9 @@ function useProcessPartialKibblePayment() {
778
783
  maxFeePerGas: parseGwei3("0.01")
779
784
  });
780
785
  await bundlerClient.waitForUserOperationReceipt({
781
- hash: userOpHash
786
+ hash: userOpHash,
787
+ timeout: 3e4,
788
+ retryCount: 10
782
789
  });
783
790
  return { success: true, message: "Partial Kibble Payment Processed!" };
784
791
  } catch (error) {
@@ -822,12 +829,20 @@ function useApproveKibbleToken() {
822
829
  maxFeePerGas: parseGwei4("0.01")
823
830
  });
824
831
  await bundlerClient.waitForUserOperationReceipt({
825
- hash: userOpHash
832
+ hash: userOpHash,
833
+ timeout: 3e4,
834
+ retryCount: 10
826
835
  });
827
- return { success: true, message: "Approval transaction completed successfully." };
836
+ return {
837
+ success: true,
838
+ message: "Approval transaction completed successfully."
839
+ };
828
840
  } catch (error) {
829
841
  const errorMessage = error instanceof Error ? error.message : "An unknown error occurred";
830
- return { success: false, message: `Error processing approval: ${errorMessage}` };
842
+ return {
843
+ success: false,
844
+ message: `Error processing approval: ${errorMessage}`
845
+ };
831
846
  }
832
847
  },
833
848
  []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "A React/TypeScript-based utility library for reusable functions and hooks inside of the Anymal Ecosystem.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",