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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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"] = "
|
|
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 ||
|
|
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 ||
|
|
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"] = "
|
|
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 ||
|
|
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 ||
|
|
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