@nucypher/taco 0.7.0-alpha.3 → 0.7.0-alpha.4

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.
Files changed (75) hide show
  1. package/dist/cjs/conditions/condition.d.ts +1 -0
  2. package/dist/cjs/conditions/condition.js +4 -3
  3. package/dist/cjs/conditions/condition.js.map +1 -1
  4. package/dist/cjs/conditions/predefined/address-allowlist.d.ts +11 -0
  5. package/dist/cjs/conditions/predefined/address-allowlist.js +31 -0
  6. package/dist/cjs/conditions/predefined/address-allowlist.js.map +1 -0
  7. package/dist/cjs/conditions/predefined/index.d.ts +1 -0
  8. package/dist/cjs/conditions/predefined/index.js +2 -1
  9. package/dist/cjs/conditions/predefined/index.js.map +1 -1
  10. package/dist/cjs/conditions/schemas/address-allowlist.d.ts +3 -0
  11. package/dist/cjs/conditions/schemas/address-allowlist.js +11 -0
  12. package/dist/cjs/conditions/schemas/address-allowlist.js.map +1 -0
  13. package/dist/cjs/conditions/schemas/context-variable.d.ts +46 -0
  14. package/dist/cjs/conditions/schemas/contract.d.ts +54 -0
  15. package/dist/cjs/conditions/schemas/export-for-zod-doc-gen.d.ts +2 -0
  16. package/dist/cjs/conditions/schemas/export-for-zod-doc-gen.js +3 -0
  17. package/dist/cjs/conditions/schemas/export-for-zod-doc-gen.js.map +1 -1
  18. package/dist/cjs/conditions/schemas/json-api.d.ts +54 -0
  19. package/dist/cjs/conditions/schemas/json-rpc.d.ts +54 -0
  20. package/dist/cjs/conditions/schemas/json.d.ts +46 -0
  21. package/dist/cjs/conditions/schemas/return-value-test.d.ts +76 -0
  22. package/dist/cjs/conditions/schemas/return-value-test.js +2 -0
  23. package/dist/cjs/conditions/schemas/return-value-test.js.map +1 -1
  24. package/dist/cjs/conditions/schemas/rpc.d.ts +46 -0
  25. package/dist/cjs/conditions/schemas/sequential.js +6 -2
  26. package/dist/cjs/conditions/schemas/sequential.js.map +1 -1
  27. package/dist/cjs/conditions/schemas/time.d.ts +46 -0
  28. package/dist/cjs/conditions/schemas/utils.js +0 -2
  29. package/dist/cjs/conditions/schemas/utils.js.map +1 -1
  30. package/dist/cjs/conditions/schemas/variable-operation.d.ts +48 -0
  31. package/dist/cjs/conditions/schemas/variable-operation.js +81 -0
  32. package/dist/cjs/conditions/schemas/variable-operation.js.map +1 -0
  33. package/dist/cjs/sign.d.ts +2 -2
  34. package/dist/cjs/sign.js +73 -38
  35. package/dist/cjs/sign.js.map +1 -1
  36. package/dist/cjs/types.d.ts +1 -1
  37. package/dist/es/conditions/condition.d.ts +1 -0
  38. package/dist/es/conditions/condition.js +1 -1
  39. package/dist/es/conditions/condition.js.map +1 -1
  40. package/dist/es/conditions/predefined/address-allowlist.d.ts +11 -0
  41. package/dist/es/conditions/predefined/address-allowlist.js +27 -0
  42. package/dist/es/conditions/predefined/address-allowlist.js.map +1 -0
  43. package/dist/es/conditions/predefined/index.d.ts +1 -0
  44. package/dist/es/conditions/predefined/index.js +1 -0
  45. package/dist/es/conditions/predefined/index.js.map +1 -1
  46. package/dist/es/conditions/schemas/address-allowlist.d.ts +3 -0
  47. package/dist/es/conditions/schemas/address-allowlist.js +8 -0
  48. package/dist/es/conditions/schemas/address-allowlist.js.map +1 -0
  49. package/dist/es/conditions/schemas/context-variable.d.ts +46 -0
  50. package/dist/es/conditions/schemas/contract.d.ts +54 -0
  51. package/dist/es/conditions/schemas/export-for-zod-doc-gen.d.ts +2 -0
  52. package/dist/es/conditions/schemas/export-for-zod-doc-gen.js +3 -0
  53. package/dist/es/conditions/schemas/export-for-zod-doc-gen.js.map +1 -1
  54. package/dist/es/conditions/schemas/json-api.d.ts +54 -0
  55. package/dist/es/conditions/schemas/json-rpc.d.ts +54 -0
  56. package/dist/es/conditions/schemas/json.d.ts +46 -0
  57. package/dist/es/conditions/schemas/return-value-test.d.ts +76 -0
  58. package/dist/es/conditions/schemas/return-value-test.js +2 -0
  59. package/dist/es/conditions/schemas/return-value-test.js.map +1 -1
  60. package/dist/es/conditions/schemas/rpc.d.ts +46 -0
  61. package/dist/es/conditions/schemas/sequential.js +6 -2
  62. package/dist/es/conditions/schemas/sequential.js.map +1 -1
  63. package/dist/es/conditions/schemas/time.d.ts +46 -0
  64. package/dist/es/conditions/schemas/utils.js +0 -2
  65. package/dist/es/conditions/schemas/utils.js.map +1 -1
  66. package/dist/es/conditions/schemas/variable-operation.d.ts +48 -0
  67. package/dist/es/conditions/schemas/variable-operation.js +78 -0
  68. package/dist/es/conditions/schemas/variable-operation.js.map +1 -0
  69. package/dist/es/sign.d.ts +2 -2
  70. package/dist/es/sign.js +74 -39
  71. package/dist/es/sign.js.map +1 -1
  72. package/dist/es/types.d.ts +1 -1
  73. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  74. package/dist/tsconfig.es.tsbuildinfo +1 -1
  75. package/package.json +4 -4
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export { baseConditionSchema } from './schemas/common';
3
3
  type ConditionSchema = z.ZodSchema;
4
4
  export type ConditionProps = z.infer<ConditionSchema>;
5
+ export declare const ERR_INVALID_CONDITION: (error: z.ZodError) => string;
5
6
  export declare class Condition {
6
7
  readonly schema: ConditionSchema;
7
8
  readonly value: ConditionProps;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Condition = exports.baseConditionSchema = void 0;
3
+ exports.Condition = exports.ERR_INVALID_CONDITION = exports.baseConditionSchema = void 0;
4
4
  const shared_1 = require("@nucypher/shared");
5
5
  const utils_1 = require("../utils");
6
6
  const const_1 = require("./const");
7
7
  var common_1 = require("./schemas/common");
8
8
  Object.defineProperty(exports, "baseConditionSchema", { enumerable: true, get: function () { return common_1.baseConditionSchema; } });
9
9
  const ERR_INVALID_CONDITION = (error) => `Invalid condition: ${JSON.stringify(error.issues)}`;
10
+ exports.ERR_INVALID_CONDITION = ERR_INVALID_CONDITION;
10
11
  class Condition {
11
12
  schema;
12
13
  value;
@@ -15,7 +16,7 @@ class Condition {
15
16
  this.value = value;
16
17
  const { data, error } = Condition.validate(schema, value);
17
18
  if (error) {
18
- throw new Error(ERR_INVALID_CONDITION(error));
19
+ throw new Error((0, exports.ERR_INVALID_CONDITION)(error));
19
20
  }
20
21
  this.value = data;
21
22
  }
@@ -42,7 +43,7 @@ class Condition {
42
43
  toObj() {
43
44
  const { data, error } = Condition.validate(this.schema, this.value);
44
45
  if (error) {
45
- throw new Error(ERR_INVALID_CONDITION(error));
46
+ throw new Error((0, exports.ERR_INVALID_CONDITION)(error));
46
47
  }
47
48
  return data;
48
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"condition.js","sourceRoot":"","sources":["../../../src/conditions/condition.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAGhD,oCAAkC;AAElC,mCAA8C;AAE9C,2CAAuD;AAA9C,6GAAA,mBAAmB,OAAA;AAK5B,MAAM,qBAAqB,GAAG,CAAC,KAAiB,EAAE,EAAE,CAClD,sBAAsB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;AAEvD,MAAa,SAAS;IAEF;IACA;IAFlB,YACkB,MAAuB,EACvB,KAAqB;QADrB,WAAM,GAAN,MAAM,CAAiB;QACvB,UAAK,GAAL,KAAK,CAAgB;QAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;QAChD,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,QAAQ,CACpB,MAAuB,EACvB,KAAqB;QAKrB,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACvC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;IAED,8CAA8C;IACvC,2BAA2B;QAChC,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,KAAK,MAAM,KAAK,IAAI,2BAAmB,EAAE,CAAC;YACxC,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC/B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,sBAAsB;QAC3B,OAAO,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,CAAC;IACrD,CAAC;IAEM,KAAK;QACV,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACpE,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,KAAgB;QAC5B,OAAO,IAAA,qBAAY,EAAC,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IACnD,CAAC;CACF;AApDD,8BAoDC"}
1
+ {"version":3,"file":"condition.js","sourceRoot":"","sources":["../../../src/conditions/condition.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAGhD,oCAAkC;AAElC,mCAA8C;AAE9C,2CAAuD;AAA9C,6GAAA,mBAAmB,OAAA;AAKrB,MAAM,qBAAqB,GAAG,CAAC,KAAiB,EAAE,EAAE,CACzD,sBAAsB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;AAD1C,QAAA,qBAAqB,yBACqB;AAEvD,MAAa,SAAS;IAEF;IACA;IAFlB,YACkB,MAAuB,EACvB,KAAqB;QADrB,WAAM,GAAN,MAAM,CAAiB;QACvB,UAAK,GAAL,KAAK,CAAgB;QAErC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,IAAA,6BAAqB,EAAC,KAAK,CAAC,CAAC,CAAC;QAChD,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,QAAQ,CACpB,MAAuB,EACvB,KAAqB;QAKrB,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACvC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;IAED,8CAA8C;IACvC,2BAA2B;QAChC,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,KAAK,MAAM,KAAK,IAAI,2BAAmB,EAAE,CAAC;YACxC,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC/B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,sBAAsB;QAC3B,OAAO,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,CAAC;IACrD,CAAC;IAEM,KAAK;QACV,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACpE,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,IAAA,6BAAqB,EAAC,KAAK,CAAC,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,KAAgB;QAC5B,OAAO,IAAA,qBAAY,EAAC,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IACnD,CAAC;CACF;AApDD,8BAoDC"}
@@ -0,0 +1,11 @@
1
+ import { ContextVariableCondition } from '../base/context-variable';
2
+ import { AddressAllowlistConditionProps } from '../schemas/address-allowlist';
3
+ export { AddressAllowlistConditionProps } from '../schemas/address-allowlist';
4
+ /**
5
+ * A Client-side condition that checks if a user's address is in an allowlist and transforms the object into `ContextVariableCondition`.
6
+ * The nodes process this as a standard context variable that checks if the user's address is in the allowlist.
7
+ * @remark This condition doesn’t have a unique type of its own; it is simply a wrapper for creating a `ContextVariableCondition`.
8
+ */
9
+ export declare class AddressAllowlistCondition extends ContextVariableCondition {
10
+ constructor(value: AddressAllowlistConditionProps);
11
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddressAllowlistCondition = void 0;
4
+ const taco_auth_1 = require("@nucypher/taco-auth");
5
+ const context_variable_1 = require("../base/context-variable");
6
+ const condition_1 = require("../condition");
7
+ const address_allowlist_1 = require("../schemas/address-allowlist");
8
+ /**
9
+ * A Client-side condition that checks if a user's address is in an allowlist and transforms the object into `ContextVariableCondition`.
10
+ * The nodes process this as a standard context variable that checks if the user's address is in the allowlist.
11
+ * @remark This condition doesn’t have a unique type of its own; it is simply a wrapper for creating a `ContextVariableCondition`.
12
+ */
13
+ class AddressAllowlistCondition extends context_variable_1.ContextVariableCondition {
14
+ constructor(value) {
15
+ const { data, error } = AddressAllowlistCondition.validate(address_allowlist_1.addressAllowlistConditionSchema, value);
16
+ if (error) {
17
+ throw new Error((0, condition_1.ERR_INVALID_CONDITION)(error));
18
+ }
19
+ const contextVariableConditionProps = {
20
+ conditionType: context_variable_1.ContextVariableConditionType,
21
+ contextVariable: taco_auth_1.USER_ADDRESS_PARAM_DEFAULT,
22
+ returnValueTest: {
23
+ comparator: 'in',
24
+ value: data,
25
+ },
26
+ };
27
+ super(contextVariableConditionProps);
28
+ }
29
+ }
30
+ exports.AddressAllowlistCondition = AddressAllowlistCondition;
31
+ //# sourceMappingURL=address-allowlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-allowlist.js","sourceRoot":"","sources":["../../../../src/conditions/predefined/address-allowlist.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AAEjE,+DAIkC;AAClC,4CAAqD;AACrD,oEAGsC;AAItC;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,2CAAwB;IACrE,YAAY,KAAqC;QAC/C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,yBAAyB,CAAC,QAAQ,CACxD,mDAA+B,EAC/B,KAAK,CACN,CAAC;QACF,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,IAAA,iCAAqB,EAAC,KAAK,CAAC,CAAC,CAAC;QAChD,CAAC;QAED,MAAM,6BAA6B,GAAkC;YACnE,aAAa,EAAE,+CAA4B;YAC3C,eAAe,EAAE,sCAA0B;YAC3C,eAAe,EAAE;gBACf,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,IAAI;aACZ;SACF,CAAC;QAEF,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACvC,CAAC;CACF;AArBD,8DAqBC"}
@@ -1,2 +1,3 @@
1
+ export * as addressAllowlist from './address-allowlist';
1
2
  export * as erc20 from './erc20';
2
3
  export * as erc721 from './erc721';
@@ -33,7 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.erc721 = exports.erc20 = void 0;
36
+ exports.erc721 = exports.erc20 = exports.addressAllowlist = void 0;
37
+ exports.addressAllowlist = __importStar(require("./address-allowlist"));
37
38
  exports.erc20 = __importStar(require("./erc20"));
38
39
  exports.erc721 = __importStar(require("./erc721"));
39
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/conditions/predefined/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiC;AACjC,mDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/conditions/predefined/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wEAAwD;AACxD,iDAAiC;AACjC,mDAAmC"}
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const addressAllowlistConditionSchema: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3
+ export type AddressAllowlistConditionProps = z.infer<typeof addressAllowlistConditionSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addressAllowlistConditionSchema = void 0;
4
+ const shared_1 = require("@nucypher/shared");
5
+ const zod_1 = require("zod");
6
+ exports.addressAllowlistConditionSchema = zod_1.z
7
+ .array(shared_1.EthAddressSchemaStrict)
8
+ .min(1, 'At least one address must be provided')
9
+ .max(25, 'A maximum of 25 addresses is allowed')
10
+ .describe('List of allowed wallet addresses. Addresses should be provided in checksummed form.');
11
+ //# sourceMappingURL=address-allowlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-allowlist.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/address-allowlist.ts"],"names":[],"mappings":";;;AAAA,6CAA0D;AAC1D,6BAAwB;AAEX,QAAA,+BAA+B,GAAG,OAAC;KAC7C,KAAK,CAAC,+BAAsB,CAAC;KAC7B,GAAG,CAAC,CAAC,EAAE,uCAAuC,CAAC;KAC/C,GAAG,CAAC,EAAE,EAAE,sCAAsC,CAAC;KAC/C,QAAQ,CACP,qFAAqF,CACtF,CAAC"}
@@ -6,24 +6,62 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
6
6
  returnValueTest: z.ZodEffects<z.ZodObject<{
7
7
  index: z.ZodOptional<z.ZodNumber>;
8
8
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
9
+ operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
10
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
11
+ value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
14
+ value?: any;
15
+ }, {
16
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
17
+ value?: any;
18
+ }>, {
19
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
20
+ value?: any;
21
+ }, {
22
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
23
+ value?: any;
24
+ }>, {
25
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
26
+ value?: any;
27
+ }, {
28
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
29
+ value?: any;
30
+ }>, "many">>;
9
31
  } & {
10
32
  value: z.ZodType<any, z.ZodTypeDef, any>;
11
33
  }, "strip", z.ZodTypeAny, {
12
34
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
13
35
  value?: any;
14
36
  index?: number | undefined;
37
+ operations?: {
38
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
39
+ value?: any;
40
+ }[] | undefined;
15
41
  }, {
16
42
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
17
43
  value?: any;
18
44
  index?: number | undefined;
45
+ operations?: {
46
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
47
+ value?: any;
48
+ }[] | undefined;
19
49
  }>, {
20
50
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
21
51
  value?: any;
22
52
  index?: number | undefined;
53
+ operations?: {
54
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
55
+ value?: any;
56
+ }[] | undefined;
23
57
  }, {
24
58
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
25
59
  value?: any;
26
60
  index?: number | undefined;
61
+ operations?: {
62
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
63
+ value?: any;
64
+ }[] | undefined;
27
65
  }>;
28
66
  }, "strict", z.ZodTypeAny, {
29
67
  conditionType: "context-variable";
@@ -32,6 +70,10 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
32
70
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
33
71
  value?: any;
34
72
  index?: number | undefined;
73
+ operations?: {
74
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
75
+ value?: any;
76
+ }[] | undefined;
35
77
  };
36
78
  }, {
37
79
  conditionType: "context-variable";
@@ -40,6 +82,10 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
40
82
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
41
83
  value?: any;
42
84
  index?: number | undefined;
85
+ operations?: {
86
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
87
+ value?: any;
88
+ }[] | undefined;
43
89
  };
44
90
  }>;
45
91
  export type ContextVariableConditionProps = z.infer<typeof contextVariableConditionSchema>;
@@ -158,24 +158,62 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
158
158
  returnValueTest: z.ZodEffects<z.ZodObject<{
159
159
  index: z.ZodOptional<z.ZodNumber>;
160
160
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
161
+ operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
162
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
163
+ value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
166
+ value?: any;
167
+ }, {
168
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
169
+ value?: any;
170
+ }>, {
171
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
172
+ value?: any;
173
+ }, {
174
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
175
+ value?: any;
176
+ }>, {
177
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
178
+ value?: any;
179
+ }, {
180
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
181
+ value?: any;
182
+ }>, "many">>;
161
183
  } & {
162
184
  value: z.ZodType<any, z.ZodTypeDef, any>;
163
185
  }, "strip", z.ZodTypeAny, {
164
186
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
165
187
  value?: any;
166
188
  index?: number | undefined;
189
+ operations?: {
190
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
191
+ value?: any;
192
+ }[] | undefined;
167
193
  }, {
168
194
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
169
195
  value?: any;
170
196
  index?: number | undefined;
197
+ operations?: {
198
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
199
+ value?: any;
200
+ }[] | undefined;
171
201
  }>, {
172
202
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
173
203
  value?: any;
174
204
  index?: number | undefined;
205
+ operations?: {
206
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
207
+ value?: any;
208
+ }[] | undefined;
175
209
  }, {
176
210
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
177
211
  value?: any;
178
212
  index?: number | undefined;
213
+ operations?: {
214
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
215
+ value?: any;
216
+ }[] | undefined;
179
217
  }>;
180
218
  } & {
181
219
  conditionType: z.ZodDefault<z.ZodLiteral<"contract">>;
@@ -328,6 +366,10 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
328
366
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
329
367
  value?: any;
330
368
  index?: number | undefined;
369
+ operations?: {
370
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
371
+ value?: any;
372
+ }[] | undefined;
331
373
  };
332
374
  chain: number;
333
375
  method: string;
@@ -358,6 +400,10 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
358
400
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
359
401
  value?: any;
360
402
  index?: number | undefined;
403
+ operations?: {
404
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
405
+ value?: any;
406
+ }[] | undefined;
361
407
  };
362
408
  chain: number;
363
409
  method: string;
@@ -390,6 +436,10 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
390
436
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
391
437
  value?: any;
392
438
  index?: number | undefined;
439
+ operations?: {
440
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
441
+ value?: any;
442
+ }[] | undefined;
393
443
  };
394
444
  chain: number;
395
445
  method: string;
@@ -420,6 +470,10 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
420
470
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
421
471
  value?: any;
422
472
  index?: number | undefined;
473
+ operations?: {
474
+ operation: "float" | "index" | "+=" | "-=" | "*=" | "/=" | "%=" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
475
+ value?: any;
476
+ }[] | undefined;
423
477
  };
424
478
  chain: number;
425
479
  method: string;
@@ -20,3 +20,5 @@ export * from './rpc';
20
20
  export * from './sequential';
21
21
  export * from './signing';
22
22
  export * from './time';
23
+ export * from './variable-operation';
24
+ export * from './address-allowlist';
@@ -38,4 +38,7 @@ __exportStar(require("./rpc"), exports);
38
38
  __exportStar(require("./sequential"), exports);
39
39
  __exportStar(require("./signing"), exports);
40
40
  __exportStar(require("./time"), exports);
41
+ __exportStar(require("./variable-operation"), exports);
42
+ // ts-unused-exports:disable-next-line - this comment line is added to prevent lint from changing or objecting the export order.
43
+ __exportStar(require("./address-allowlist"), exports);
41
44
  //# sourceMappingURL=export-for-zod-doc-gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"export-for-zod-doc-gen.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/export-for-zod-doc-gen.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,gIAAgI;AAChI,2CAAyB;AACzB,4CAA0B;AAC1B,gIAAgI;AAChI,6CAA2B;AAC3B,qDAAmC;AACnC,6CAA2B;AAC3B,0CAAwB;AACxB,iDAA+B;AAC/B,yCAAuB;AACvB,6CAA2B;AAC3B,6CAA2B;AAC3B,wCAAsB;AACtB,sDAAoC;AACpC,wCAAsB;AACtB,+CAA6B;AAC7B,4CAA0B;AAC1B,yCAAuB"}
1
+ {"version":3,"file":"export-for-zod-doc-gen.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/export-for-zod-doc-gen.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,gIAAgI;AAChI,2CAAyB;AACzB,4CAA0B;AAC1B,gIAAgI;AAChI,6CAA2B;AAC3B,qDAAmC;AACnC,6CAA2B;AAC3B,0CAAwB;AACxB,iDAA+B;AAC/B,yCAAuB;AACvB,6CAA2B;AAC3B,6CAA2B;AAC3B,wCAAsB;AACtB,sDAAoC;AACpC,wCAAsB;AACtB,+CAA6B;AAC7B,4CAA0B;AAC1B,yCAAuB;AACvB,uDAAqC;AACrC,gIAAgI;AAChI,sDAAoC"}
@@ -10,24 +10,62 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
10
10
  returnValueTest: z.ZodEffects<z.ZodObject<{
11
11
  index: z.ZodOptional<z.ZodNumber>;
12
12
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
13
+ operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
14
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
15
+ value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
18
+ value?: any;
19
+ }, {
20
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
21
+ value?: any;
22
+ }>, {
23
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
24
+ value?: any;
25
+ }, {
26
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
27
+ value?: any;
28
+ }>, {
29
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
30
+ value?: any;
31
+ }, {
32
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
33
+ value?: any;
34
+ }>, "many">>;
13
35
  } & {
14
36
  value: z.ZodType<any, z.ZodTypeDef, any>;
15
37
  }, "strip", z.ZodTypeAny, {
16
38
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
17
39
  value?: any;
18
40
  index?: number | undefined;
41
+ operations?: {
42
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
43
+ value?: any;
44
+ }[] | undefined;
19
45
  }, {
20
46
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
21
47
  value?: any;
22
48
  index?: number | undefined;
49
+ operations?: {
50
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
51
+ value?: any;
52
+ }[] | undefined;
23
53
  }>, {
24
54
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
25
55
  value?: any;
26
56
  index?: number | undefined;
57
+ operations?: {
58
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
59
+ value?: any;
60
+ }[] | undefined;
27
61
  }, {
28
62
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
29
63
  value?: any;
30
64
  index?: number | undefined;
65
+ operations?: {
66
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
67
+ value?: any;
68
+ }[] | undefined;
31
69
  }>;
32
70
  }, "strip", z.ZodTypeAny, {
33
71
  conditionType: "json-api";
@@ -35,6 +73,10 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
35
73
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
36
74
  value?: any;
37
75
  index?: number | undefined;
76
+ operations?: {
77
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
78
+ value?: any;
79
+ }[] | undefined;
38
80
  };
39
81
  endpoint: string;
40
82
  parameters?: Record<string, unknown> | undefined;
@@ -46,6 +88,10 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
46
88
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
47
89
  value?: any;
48
90
  index?: number | undefined;
91
+ operations?: {
92
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
93
+ value?: any;
94
+ }[] | undefined;
49
95
  };
50
96
  endpoint: string;
51
97
  conditionType?: "json-api" | undefined;
@@ -59,6 +105,10 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
59
105
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
60
106
  value?: any;
61
107
  index?: number | undefined;
108
+ operations?: {
109
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
110
+ value?: any;
111
+ }[] | undefined;
62
112
  };
63
113
  endpoint: string;
64
114
  parameters?: Record<string, unknown> | undefined;
@@ -70,6 +120,10 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
70
120
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
71
121
  value?: any;
72
122
  index?: number | undefined;
123
+ operations?: {
124
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
125
+ value?: any;
126
+ }[] | undefined;
73
127
  };
74
128
  endpoint: string;
75
129
  conditionType?: "json-api" | undefined;
@@ -11,24 +11,62 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
11
11
  returnValueTest: z.ZodEffects<z.ZodObject<{
12
12
  index: z.ZodOptional<z.ZodNumber>;
13
13
  comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
14
+ operations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
15
+ operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
16
+ value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
19
+ value?: any;
20
+ }, {
21
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
22
+ value?: any;
23
+ }>, {
24
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
25
+ value?: any;
26
+ }, {
27
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
28
+ value?: any;
29
+ }>, {
30
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
31
+ value?: any;
32
+ }, {
33
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
34
+ value?: any;
35
+ }>, "many">>;
14
36
  } & {
15
37
  value: z.ZodType<any, z.ZodTypeDef, any>;
16
38
  }, "strip", z.ZodTypeAny, {
17
39
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
18
40
  value?: any;
19
41
  index?: number | undefined;
42
+ operations?: {
43
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
44
+ value?: any;
45
+ }[] | undefined;
20
46
  }, {
21
47
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
22
48
  value?: any;
23
49
  index?: number | undefined;
50
+ operations?: {
51
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
52
+ value?: any;
53
+ }[] | undefined;
24
54
  }>, {
25
55
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
26
56
  value?: any;
27
57
  index?: number | undefined;
58
+ operations?: {
59
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
60
+ value?: any;
61
+ }[] | undefined;
28
62
  }, {
29
63
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
30
64
  value?: any;
31
65
  index?: number | undefined;
66
+ operations?: {
67
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
68
+ value?: any;
69
+ }[] | undefined;
32
70
  }>;
33
71
  }, "strip", z.ZodTypeAny, {
34
72
  conditionType: "json-rpc";
@@ -36,6 +74,10 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
36
74
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
37
75
  value?: any;
38
76
  index?: number | undefined;
77
+ operations?: {
78
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
79
+ value?: any;
80
+ }[] | undefined;
39
81
  };
40
82
  method: string;
41
83
  endpoint: string;
@@ -48,6 +90,10 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
48
90
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
49
91
  value?: any;
50
92
  index?: number | undefined;
93
+ operations?: {
94
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
95
+ value?: any;
96
+ }[] | undefined;
51
97
  };
52
98
  method: string;
53
99
  endpoint: string;
@@ -62,6 +108,10 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
62
108
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
63
109
  value?: any;
64
110
  index?: number | undefined;
111
+ operations?: {
112
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
113
+ value?: any;
114
+ }[] | undefined;
65
115
  };
66
116
  method: string;
67
117
  endpoint: string;
@@ -74,6 +124,10 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
74
124
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
75
125
  value?: any;
76
126
  index?: number | undefined;
127
+ operations?: {
128
+ operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
129
+ value?: any;
130
+ }[] | undefined;
77
131
  };
78
132
  method: string;
79
133
  endpoint: string;