anymal-protocol 1.0.94 → 1.0.96

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
@@ -240,10 +240,12 @@ declare enum ActionSourceType {
240
240
  }
241
241
  declare enum ActionStatus {
242
242
  PENDING = "PENDING",
243
+ PROCESSING = "PROCESSING",
243
244
  VALIDATED = "VALIDATED_ONCHAIN",
244
245
  CLAIMING = "CLAIMING",
245
246
  CLAIMED = "CLAIMED",
246
- REJECTED = "REJECTED"
247
+ REJECTED = "REJECTED",
248
+ ERROR = "ERROR"
247
249
  }
248
250
  /**
249
251
  * How the marketplace item can be verified, stripe transaction, anymal transaction, etc
@@ -307,6 +309,7 @@ declare const convertToMultipleActionDefinitions: (frs: ActionDefinition[]) => A
307
309
  * Base fields sent with every action
308
310
  */
309
311
  interface BaseActionPayload {
312
+ anymalTxId: string;
310
313
  multiplier?: number;
311
314
  campaign_id?: string;
312
315
  actionId: string;
package/dist/index.d.ts CHANGED
@@ -240,10 +240,12 @@ declare enum ActionSourceType {
240
240
  }
241
241
  declare enum ActionStatus {
242
242
  PENDING = "PENDING",
243
+ PROCESSING = "PROCESSING",
243
244
  VALIDATED = "VALIDATED_ONCHAIN",
244
245
  CLAIMING = "CLAIMING",
245
246
  CLAIMED = "CLAIMED",
246
- REJECTED = "REJECTED"
247
+ REJECTED = "REJECTED",
248
+ ERROR = "ERROR"
247
249
  }
248
250
  /**
249
251
  * How the marketplace item can be verified, stripe transaction, anymal transaction, etc
@@ -307,6 +309,7 @@ declare const convertToMultipleActionDefinitions: (frs: ActionDefinition[]) => A
307
309
  * Base fields sent with every action
308
310
  */
309
311
  interface BaseActionPayload {
312
+ anymalTxId: string;
310
313
  multiplier?: number;
311
314
  campaign_id?: string;
312
315
  actionId: string;
package/dist/index.js CHANGED
@@ -2196,10 +2196,12 @@ var ActionSourceType = /* @__PURE__ */ ((ActionSourceType3) => {
2196
2196
  })(ActionSourceType || {});
2197
2197
  var ActionStatus = /* @__PURE__ */ ((ActionStatus2) => {
2198
2198
  ActionStatus2["PENDING"] = "PENDING";
2199
+ ActionStatus2["PROCESSING"] = "PROCESSING";
2199
2200
  ActionStatus2["VALIDATED"] = "VALIDATED_ONCHAIN";
2200
2201
  ActionStatus2["CLAIMING"] = "CLAIMING";
2201
2202
  ActionStatus2["CLAIMED"] = "CLAIMED";
2202
2203
  ActionStatus2["REJECTED"] = "REJECTED";
2204
+ ActionStatus2["ERROR"] = "ERROR";
2203
2205
  return ActionStatus2;
2204
2206
  })(ActionStatus || {});
2205
2207
  var MarketplacePaymentType = /* @__PURE__ */ ((MarketplacePaymentType2) => {
@@ -2474,6 +2476,7 @@ function useSubmitContractAction() {
2474
2476
  if (!idToken || !pid || !source || !endpoint || !payload) return;
2475
2477
  let sourceTypePayload = {};
2476
2478
  const basisType = {
2479
+ anymalTxId: payload.anymalTxId,
2477
2480
  campaign_id: payload.campaign_id,
2478
2481
  multiplier: payload.multiplier,
2479
2482
  actionId: payload.actionId,
package/dist/index.mjs CHANGED
@@ -2053,10 +2053,12 @@ var ActionSourceType = /* @__PURE__ */ ((ActionSourceType3) => {
2053
2053
  })(ActionSourceType || {});
2054
2054
  var ActionStatus = /* @__PURE__ */ ((ActionStatus2) => {
2055
2055
  ActionStatus2["PENDING"] = "PENDING";
2056
+ ActionStatus2["PROCESSING"] = "PROCESSING";
2056
2057
  ActionStatus2["VALIDATED"] = "VALIDATED_ONCHAIN";
2057
2058
  ActionStatus2["CLAIMING"] = "CLAIMING";
2058
2059
  ActionStatus2["CLAIMED"] = "CLAIMED";
2059
2060
  ActionStatus2["REJECTED"] = "REJECTED";
2061
+ ActionStatus2["ERROR"] = "ERROR";
2060
2062
  return ActionStatus2;
2061
2063
  })(ActionStatus || {});
2062
2064
  var MarketplacePaymentType = /* @__PURE__ */ ((MarketplacePaymentType2) => {
@@ -2331,6 +2333,7 @@ function useSubmitContractAction() {
2331
2333
  if (!idToken || !pid || !source || !endpoint || !payload) return;
2332
2334
  let sourceTypePayload = {};
2333
2335
  const basisType = {
2336
+ anymalTxId: payload.anymalTxId,
2334
2337
  campaign_id: payload.campaign_id,
2335
2338
  multiplier: payload.multiplier,
2336
2339
  actionId: payload.actionId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
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": {