anymal-protocol 1.0.71 → 1.0.73

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
@@ -233,7 +233,7 @@ declare enum ActionSourceType {
233
233
  }
234
234
  declare enum ActionStatus {
235
235
  PENDING = "PENDING",
236
- VALIDATED = "VALIDATED",
236
+ VALIDATED = "VALIDATED_ONCHAIN",
237
237
  CLAIMED = "CLAIMED"
238
238
  }
239
239
  /**
package/dist/index.d.ts CHANGED
@@ -233,7 +233,7 @@ declare enum ActionSourceType {
233
233
  }
234
234
  declare enum ActionStatus {
235
235
  PENDING = "PENDING",
236
- VALIDATED = "VALIDATED",
236
+ VALIDATED = "VALIDATED_ONCHAIN",
237
237
  CLAIMED = "CLAIMED"
238
238
  }
239
239
  /**
package/dist/index.js CHANGED
@@ -2205,7 +2205,7 @@ var ActionSourceType = /* @__PURE__ */ ((ActionSourceType2) => {
2205
2205
  })(ActionSourceType || {});
2206
2206
  var ActionStatus = /* @__PURE__ */ ((ActionStatus2) => {
2207
2207
  ActionStatus2["PENDING"] = "PENDING";
2208
- ActionStatus2["VALIDATED"] = "VALIDATED";
2208
+ ActionStatus2["VALIDATED"] = "VALIDATED_ONCHAIN";
2209
2209
  ActionStatus2["CLAIMED"] = "CLAIMED";
2210
2210
  return ActionStatus2;
2211
2211
  })(ActionStatus || {});
@@ -2353,7 +2353,7 @@ var import_react28 = require("react");
2353
2353
  function useClaimActionReward() {
2354
2354
  return (0, import_react28.useCallback)(
2355
2355
  async (actionId, claimIndex, rewardableActionContractAddress, smartAccount, bundlerClient) => {
2356
- if (!actionId || !claimIndex || !bundlerClient || !smartAccount || !rewardableActionContractAddress) {
2356
+ if (!actionId || claimIndex === void 0 || !bundlerClient || !smartAccount || !rewardableActionContractAddress) {
2357
2357
  return {
2358
2358
  success: false,
2359
2359
  message: "Missing web3auth account info or contract address."
@@ -2391,7 +2391,7 @@ var import_react29 = require("react");
2391
2391
  function useClaimOrgActionReward() {
2392
2392
  return (0, import_react29.useCallback)(
2393
2393
  async (orgContractAddress, actionId, claimIndex, smartAccount, bundlerClient) => {
2394
- if (!orgContractAddress || !actionId || !claimIndex || !bundlerClient || !smartAccount) {
2394
+ if (!orgContractAddress || !actionId || claimIndex === void 0 || !bundlerClient || !smartAccount) {
2395
2395
  return {
2396
2396
  success: false,
2397
2397
  message: "Missing web3auth account info or contract address."
package/dist/index.mjs CHANGED
@@ -2068,7 +2068,7 @@ var ActionSourceType = /* @__PURE__ */ ((ActionSourceType2) => {
2068
2068
  })(ActionSourceType || {});
2069
2069
  var ActionStatus = /* @__PURE__ */ ((ActionStatus2) => {
2070
2070
  ActionStatus2["PENDING"] = "PENDING";
2071
- ActionStatus2["VALIDATED"] = "VALIDATED";
2071
+ ActionStatus2["VALIDATED"] = "VALIDATED_ONCHAIN";
2072
2072
  ActionStatus2["CLAIMED"] = "CLAIMED";
2073
2073
  return ActionStatus2;
2074
2074
  })(ActionStatus || {});
@@ -2216,7 +2216,7 @@ import { useCallback as useCallback28 } from "react";
2216
2216
  function useClaimActionReward() {
2217
2217
  return useCallback28(
2218
2218
  async (actionId, claimIndex, rewardableActionContractAddress, smartAccount, bundlerClient) => {
2219
- if (!actionId || !claimIndex || !bundlerClient || !smartAccount || !rewardableActionContractAddress) {
2219
+ if (!actionId || claimIndex === void 0 || !bundlerClient || !smartAccount || !rewardableActionContractAddress) {
2220
2220
  return {
2221
2221
  success: false,
2222
2222
  message: "Missing web3auth account info or contract address."
@@ -2254,7 +2254,7 @@ import { useCallback as useCallback29 } from "react";
2254
2254
  function useClaimOrgActionReward() {
2255
2255
  return useCallback29(
2256
2256
  async (orgContractAddress, actionId, claimIndex, smartAccount, bundlerClient) => {
2257
- if (!orgContractAddress || !actionId || !claimIndex || !bundlerClient || !smartAccount) {
2257
+ if (!orgContractAddress || !actionId || claimIndex === void 0 || !bundlerClient || !smartAccount) {
2258
2258
  return {
2259
2259
  success: false,
2260
2260
  message: "Missing web3auth account info or contract address."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
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
  "bin": {