anymal-protocol 1.0.18 → 1.0.20

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.d.mts CHANGED
@@ -63,7 +63,7 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
63
63
  declare function useCreateUserAppData(): (appId: string, pid: string, dbAuthToken: string, endpoint: string) => Promise<{
64
64
  success: boolean;
65
65
  data: any;
66
- }>;
66
+ } | undefined>;
67
67
 
68
68
  declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
69
69
 
package/dist/index.d.ts CHANGED
@@ -63,7 +63,7 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
63
63
  declare function useCreateUserAppData(): (appId: string, pid: string, dbAuthToken: string, endpoint: string) => Promise<{
64
64
  success: boolean;
65
65
  data: any;
66
- }>;
66
+ } | undefined>;
67
67
 
68
68
  declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
69
69
 
package/dist/index.js CHANGED
@@ -624,8 +624,8 @@ function useVerifyAccount() {
624
624
  data: callData
625
625
  }
626
626
  ],
627
- maxPriorityFeePerGas: (0, import_viem.parseGwei)("0.099"),
628
- maxFeePerGas: (0, import_viem.parseGwei)("0.099")
627
+ maxPriorityFeePerGas: (0, import_viem.parseGwei)("0.599"),
628
+ maxFeePerGas: (0, import_viem.parseGwei)("0.599")
629
629
  });
630
630
  await bundlerClient.waitForUserOperationReceipt({
631
631
  hash: userOpHash
@@ -927,8 +927,8 @@ function useMintAnymalNFT() {
927
927
  data: callData
928
928
  }
929
929
  ],
930
- maxPriorityFeePerGas: (0, import_viem2.parseGwei)("0.099"),
931
- maxFeePerGas: (0, import_viem2.parseGwei)("0.099")
930
+ maxPriorityFeePerGas: (0, import_viem2.parseGwei)("0.599"),
931
+ maxFeePerGas: (0, import_viem2.parseGwei)("0.599")
932
932
  });
933
933
  await bundlerClient.waitForUserOperationReceipt({
934
934
  hash: userOpHash
@@ -1242,11 +1242,7 @@ var import_uuid = require("uuid");
1242
1242
  function useCreateUserAppData() {
1243
1243
  return (0, import_react15.useCallback)(
1244
1244
  async (appId, pid, dbAuthToken, endpoint) => {
1245
- if (!dbAuthToken || !pid || !dbAuthToken || !endpoint)
1246
- return {
1247
- success: false,
1248
- data: null
1249
- };
1245
+ if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
1250
1246
  const appValues = {
1251
1247
  id: (0, import_uuid.v4)(),
1252
1248
  userPid: pid,
@@ -1277,7 +1273,7 @@ function useCreateUserAppData() {
1277
1273
  body: JSON.stringify({ query: mutation, variables })
1278
1274
  });
1279
1275
  if (!response.ok) {
1280
- throw new Error(`HTTP error! Status: ${response.status}`);
1276
+ return { success: false, data: null };
1281
1277
  }
1282
1278
  const { data, errors } = await response.json();
1283
1279
  if (errors) {
package/dist/index.mjs CHANGED
@@ -583,8 +583,8 @@ function useVerifyAccount() {
583
583
  data: callData
584
584
  }
585
585
  ],
586
- maxPriorityFeePerGas: parseGwei("0.099"),
587
- maxFeePerGas: parseGwei("0.099")
586
+ maxPriorityFeePerGas: parseGwei("0.599"),
587
+ maxFeePerGas: parseGwei("0.599")
588
588
  });
589
589
  await bundlerClient.waitForUserOperationReceipt({
590
590
  hash: userOpHash
@@ -886,8 +886,8 @@ function useMintAnymalNFT() {
886
886
  data: callData
887
887
  }
888
888
  ],
889
- maxPriorityFeePerGas: parseGwei2("0.099"),
890
- maxFeePerGas: parseGwei2("0.099")
889
+ maxPriorityFeePerGas: parseGwei2("0.599"),
890
+ maxFeePerGas: parseGwei2("0.599")
891
891
  });
892
892
  await bundlerClient.waitForUserOperationReceipt({
893
893
  hash: userOpHash
@@ -1201,11 +1201,7 @@ import { v4 as uuid } from "uuid";
1201
1201
  function useCreateUserAppData() {
1202
1202
  return useCallback15(
1203
1203
  async (appId, pid, dbAuthToken, endpoint) => {
1204
- if (!dbAuthToken || !pid || !dbAuthToken || !endpoint)
1205
- return {
1206
- success: false,
1207
- data: null
1208
- };
1204
+ if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
1209
1205
  const appValues = {
1210
1206
  id: uuid(),
1211
1207
  userPid: pid,
@@ -1236,7 +1232,7 @@ function useCreateUserAppData() {
1236
1232
  body: JSON.stringify({ query: mutation, variables })
1237
1233
  });
1238
1234
  if (!response.ok) {
1239
- throw new Error(`HTTP error! Status: ${response.status}`);
1235
+ return { success: false, data: null };
1240
1236
  }
1241
1237
  const { data, errors } = await response.json();
1242
1238
  if (errors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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",