anymal-protocol 1.0.30 → 1.0.31

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) {
@@ -403,7 +405,7 @@ function useFetchNotifications() {
403
405
  };
404
406
  const order = [
405
407
  {
406
- timeAddedUtc: "ASC"
408
+ timeAddedUtc: "DESC"
407
409
  }
408
410
  ];
409
411
  const groupBy = ["anymalTxId", "title"];
@@ -469,7 +471,9 @@ function useMintAnymalNFT() {
469
471
  maxFeePerGas: (0, import_viem2.parseGwei)("5.599")
470
472
  });
471
473
  await bundlerClient.waitForUserOperationReceipt({
472
- hash: userOpHash
474
+ hash: userOpHash,
475
+ timeout: 3e4,
476
+ retryCount: 10
473
477
  });
474
478
  return { success: true, message: "Pet Passport Created!" };
475
479
  },
@@ -823,7 +827,9 @@ function useProcessPartialKibblePayment() {
823
827
  maxFeePerGas: (0, import_viem3.parseGwei)("0.01")
824
828
  });
825
829
  await bundlerClient.waitForUserOperationReceipt({
826
- hash: userOpHash
830
+ hash: userOpHash,
831
+ timeout: 3e4,
832
+ retryCount: 10
827
833
  });
828
834
  return { success: true, message: "Partial Kibble Payment Processed!" };
829
835
  } catch (error) {
@@ -867,12 +873,20 @@ function useApproveKibbleToken() {
867
873
  maxFeePerGas: (0, import_viem4.parseGwei)("0.01")
868
874
  });
869
875
  await bundlerClient.waitForUserOperationReceipt({
870
- hash: userOpHash
876
+ hash: userOpHash,
877
+ timeout: 3e4,
878
+ retryCount: 10
871
879
  });
872
- return { success: true, message: "Approval transaction completed successfully." };
880
+ return {
881
+ success: true,
882
+ message: "Approval transaction completed successfully."
883
+ };
873
884
  } catch (error) {
874
885
  const errorMessage = error instanceof Error ? error.message : "An unknown error occurred";
875
- return { success: false, message: `Error processing approval: ${errorMessage}` };
886
+ return {
887
+ success: false,
888
+ message: `Error processing approval: ${errorMessage}`
889
+ };
876
890
  }
877
891
  },
878
892
  []
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) {
@@ -358,7 +360,7 @@ function useFetchNotifications() {
358
360
  };
359
361
  const order = [
360
362
  {
361
- timeAddedUtc: "ASC"
363
+ timeAddedUtc: "DESC"
362
364
  }
363
365
  ];
364
366
  const groupBy = ["anymalTxId", "title"];
@@ -424,7 +426,9 @@ function useMintAnymalNFT() {
424
426
  maxFeePerGas: parseGwei2("5.599")
425
427
  });
426
428
  await bundlerClient.waitForUserOperationReceipt({
427
- hash: userOpHash
429
+ hash: userOpHash,
430
+ timeout: 3e4,
431
+ retryCount: 10
428
432
  });
429
433
  return { success: true, message: "Pet Passport Created!" };
430
434
  },
@@ -778,7 +782,9 @@ function useProcessPartialKibblePayment() {
778
782
  maxFeePerGas: parseGwei3("0.01")
779
783
  });
780
784
  await bundlerClient.waitForUserOperationReceipt({
781
- hash: userOpHash
785
+ hash: userOpHash,
786
+ timeout: 3e4,
787
+ retryCount: 10
782
788
  });
783
789
  return { success: true, message: "Partial Kibble Payment Processed!" };
784
790
  } catch (error) {
@@ -822,12 +828,20 @@ function useApproveKibbleToken() {
822
828
  maxFeePerGas: parseGwei4("0.01")
823
829
  });
824
830
  await bundlerClient.waitForUserOperationReceipt({
825
- hash: userOpHash
831
+ hash: userOpHash,
832
+ timeout: 3e4,
833
+ retryCount: 10
826
834
  });
827
- return { success: true, message: "Approval transaction completed successfully." };
835
+ return {
836
+ success: true,
837
+ message: "Approval transaction completed successfully."
838
+ };
828
839
  } catch (error) {
829
840
  const errorMessage = error instanceof Error ? error.message : "An unknown error occurred";
830
- return { success: false, message: `Error processing approval: ${errorMessage}` };
841
+ return {
842
+ success: false,
843
+ message: `Error processing approval: ${errorMessage}`
844
+ };
831
845
  }
832
846
  },
833
847
  []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
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",