@nucypher/taco 0.7.0-alpha.10 → 0.7.0-alpha.12
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/cjs/conditions/const.d.ts +1 -0
- package/dist/cjs/conditions/const.js +2 -1
- package/dist/cjs/conditions/const.js.map +1 -1
- package/dist/cjs/conditions/context/context.js +2 -0
- package/dist/cjs/conditions/context/context.js.map +1 -1
- package/dist/cjs/conditions/schemas/context-variable.d.ts +93 -33
- package/dist/cjs/conditions/schemas/contract.d.ts +121 -49
- package/dist/cjs/conditions/schemas/json-api.d.ts +121 -49
- package/dist/cjs/conditions/schemas/json-rpc.d.ts +121 -49
- package/dist/cjs/conditions/schemas/json.d.ts +95 -35
- package/dist/cjs/conditions/schemas/return-value-test.d.ts +156 -60
- package/dist/cjs/conditions/schemas/rpc.d.ts +97 -37
- package/dist/cjs/conditions/schemas/signing.js +60 -31
- package/dist/cjs/conditions/schemas/signing.js.map +1 -1
- package/dist/cjs/conditions/schemas/time.d.ts +94 -34
- package/dist/cjs/conditions/schemas/variable-operation.d.ts +67 -19
- package/dist/cjs/conditions/schemas/variable-operation.js +27 -3
- package/dist/cjs/conditions/schemas/variable-operation.js.map +1 -1
- package/dist/es/conditions/const.d.ts +1 -0
- package/dist/es/conditions/const.js +1 -0
- package/dist/es/conditions/const.js.map +1 -1
- package/dist/es/conditions/context/context.js +3 -1
- package/dist/es/conditions/context/context.js.map +1 -1
- package/dist/es/conditions/schemas/context-variable.d.ts +95 -35
- package/dist/es/conditions/schemas/contract.d.ts +121 -49
- package/dist/es/conditions/schemas/json-api.d.ts +121 -49
- package/dist/es/conditions/schemas/json-rpc.d.ts +121 -49
- package/dist/es/conditions/schemas/json.d.ts +95 -35
- package/dist/es/conditions/schemas/return-value-test.d.ts +156 -60
- package/dist/es/conditions/schemas/rpc.d.ts +97 -37
- package/dist/es/conditions/schemas/signing.js +60 -31
- package/dist/es/conditions/schemas/signing.js.map +1 -1
- package/dist/es/conditions/schemas/time.d.ts +94 -34
- package/dist/es/conditions/schemas/variable-operation.d.ts +67 -19
- package/dist/es/conditions/schemas/variable-operation.js +28 -4
- package/dist/es/conditions/schemas/variable-operation.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,48 +1,96 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const OPERATOR_FUNCTIONS: readonly ["+=", "-=", "*=", "/=", "%=", "toTokenBaseUnits", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"];
|
|
2
|
+
export declare const OPERATOR_FUNCTIONS: readonly ["+=", "-=", "*=", "/=", "%=", "toTokenBaseUnits", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak", "create2"];
|
|
3
3
|
export declare const UNARY_OPERATOR_FUNCTIONS: string[];
|
|
4
|
-
export declare const variableOperationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5
|
-
operation: z.ZodEnum<[
|
|
4
|
+
export declare const variableOperationSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
|
|
5
|
+
operation: z.ZodEnum<[string, ...string[]]>;
|
|
6
6
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
operation:
|
|
8
|
+
operation: string;
|
|
9
9
|
value?: any;
|
|
10
10
|
}, {
|
|
11
|
-
operation:
|
|
11
|
+
operation: string;
|
|
12
12
|
value?: any;
|
|
13
13
|
}>, {
|
|
14
|
-
operation:
|
|
14
|
+
operation: string;
|
|
15
15
|
value?: any;
|
|
16
16
|
}, {
|
|
17
|
-
operation:
|
|
17
|
+
operation: string;
|
|
18
18
|
value?: any;
|
|
19
19
|
}>, {
|
|
20
|
-
operation:
|
|
20
|
+
operation: string;
|
|
21
21
|
value?: any;
|
|
22
22
|
}, {
|
|
23
|
-
operation:
|
|
23
|
+
operation: string;
|
|
24
24
|
value?: any;
|
|
25
|
-
}
|
|
25
|
+
}>, z.ZodObject<{} & {
|
|
26
|
+
operation: z.ZodLiteral<"create2">;
|
|
27
|
+
value: z.ZodObject<{
|
|
28
|
+
deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
29
|
+
bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
deployerAddress: string;
|
|
32
|
+
bytecodeHash: string;
|
|
33
|
+
}, {
|
|
34
|
+
deployerAddress: string;
|
|
35
|
+
bytecodeHash: string;
|
|
36
|
+
}>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
value: {
|
|
39
|
+
deployerAddress: string;
|
|
40
|
+
bytecodeHash: string;
|
|
41
|
+
};
|
|
42
|
+
operation: "create2";
|
|
43
|
+
}, {
|
|
44
|
+
value: {
|
|
45
|
+
deployerAddress: string;
|
|
46
|
+
bytecodeHash: string;
|
|
47
|
+
};
|
|
48
|
+
operation: "create2";
|
|
49
|
+
}>]>;
|
|
26
50
|
export declare const MAX_VARIABLE_OPERATIONS = 5;
|
|
27
|
-
export declare const variableOperationsArraySchema: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
28
|
-
operation: z.ZodEnum<[
|
|
51
|
+
export declare const variableOperationsArraySchema: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
|
|
52
|
+
operation: z.ZodEnum<[string, ...string[]]>;
|
|
29
53
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
30
54
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
operation:
|
|
55
|
+
operation: string;
|
|
32
56
|
value?: any;
|
|
33
57
|
}, {
|
|
34
|
-
operation:
|
|
58
|
+
operation: string;
|
|
35
59
|
value?: any;
|
|
36
60
|
}>, {
|
|
37
|
-
operation:
|
|
61
|
+
operation: string;
|
|
38
62
|
value?: any;
|
|
39
63
|
}, {
|
|
40
|
-
operation:
|
|
64
|
+
operation: string;
|
|
41
65
|
value?: any;
|
|
42
66
|
}>, {
|
|
43
|
-
operation:
|
|
67
|
+
operation: string;
|
|
44
68
|
value?: any;
|
|
45
69
|
}, {
|
|
46
|
-
operation:
|
|
70
|
+
operation: string;
|
|
47
71
|
value?: any;
|
|
48
|
-
}>,
|
|
72
|
+
}>, z.ZodObject<{} & {
|
|
73
|
+
operation: z.ZodLiteral<"create2">;
|
|
74
|
+
value: z.ZodObject<{
|
|
75
|
+
deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
76
|
+
bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
deployerAddress: string;
|
|
79
|
+
bytecodeHash: string;
|
|
80
|
+
}, {
|
|
81
|
+
deployerAddress: string;
|
|
82
|
+
bytecodeHash: string;
|
|
83
|
+
}>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
value: {
|
|
86
|
+
deployerAddress: string;
|
|
87
|
+
bytecodeHash: string;
|
|
88
|
+
};
|
|
89
|
+
operation: "create2";
|
|
90
|
+
}, {
|
|
91
|
+
value: {
|
|
92
|
+
deployerAddress: string;
|
|
93
|
+
bytecodeHash: string;
|
|
94
|
+
};
|
|
95
|
+
operation: "create2";
|
|
96
|
+
}>]>, "many">>;
|
|
@@ -3,6 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.variableOperationsArraySchema = exports.MAX_VARIABLE_OPERATIONS = exports.variableOperationSchema = exports.UNARY_OPERATOR_FUNCTIONS = exports.OPERATOR_FUNCTIONS = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const context_1 = require("./context");
|
|
6
|
+
const hexPrefixedStringSchema = zod_1.z
|
|
7
|
+
.string()
|
|
8
|
+
.regex(/^0x[0-9a-fA-F]+$/, 'Must be a 0x-prefixed hex string');
|
|
9
|
+
const create2ValueSchema = zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
deployerAddress: zod_1.z.union([hexPrefixedStringSchema, context_1.contextParamSchema]),
|
|
12
|
+
bytecodeHash: zod_1.z.union([hexPrefixedStringSchema, context_1.contextParamSchema]),
|
|
13
|
+
}, {
|
|
14
|
+
required_error: 'Value must be defined for operation',
|
|
15
|
+
invalid_type_error: 'create2 operation requires an object with deployerAddress and bytecodeHash',
|
|
16
|
+
})
|
|
17
|
+
.describe('Value for create2 operation containing deployerAddress and bytecodeHash for computing CREATE2 addresses locally.');
|
|
6
18
|
exports.OPERATOR_FUNCTIONS = [
|
|
7
19
|
'+=',
|
|
8
20
|
'-=',
|
|
@@ -36,6 +48,8 @@ exports.OPERATOR_FUNCTIONS = [
|
|
|
36
48
|
'toHex',
|
|
37
49
|
// hashing
|
|
38
50
|
'keccak',
|
|
51
|
+
// address computation
|
|
52
|
+
'create2',
|
|
39
53
|
];
|
|
40
54
|
exports.UNARY_OPERATOR_FUNCTIONS = [
|
|
41
55
|
'abs',
|
|
@@ -62,9 +76,13 @@ exports.UNARY_OPERATOR_FUNCTIONS = [
|
|
|
62
76
|
// hashing
|
|
63
77
|
'keccak',
|
|
64
78
|
];
|
|
65
|
-
|
|
66
|
-
.object({
|
|
79
|
+
const baseVariableOperationSchema = zod_1.z.object({
|
|
67
80
|
operation: zod_1.z.enum(exports.OPERATOR_FUNCTIONS),
|
|
81
|
+
value: zod_1.z.any().optional(),
|
|
82
|
+
});
|
|
83
|
+
const commonVariableOperationSchema = baseVariableOperationSchema
|
|
84
|
+
.extend({
|
|
85
|
+
operation: zod_1.z.enum(exports.OPERATOR_FUNCTIONS.filter((op) => op !== 'create2')),
|
|
68
86
|
value: context_1.paramOrContextParamSchema.optional(),
|
|
69
87
|
})
|
|
70
88
|
.refine((data) => {
|
|
@@ -86,7 +104,13 @@ exports.variableOperationSchema = zod_1.z
|
|
|
86
104
|
}, {
|
|
87
105
|
message: 'Value must be defined for operation',
|
|
88
106
|
path: ['value'],
|
|
89
|
-
})
|
|
107
|
+
});
|
|
108
|
+
const create2VariableOperationSchema = baseVariableOperationSchema.extend({
|
|
109
|
+
operation: zod_1.z.literal('create2'),
|
|
110
|
+
value: create2ValueSchema,
|
|
111
|
+
});
|
|
112
|
+
exports.variableOperationSchema = zod_1.z
|
|
113
|
+
.union([commonVariableOperationSchema, create2VariableOperationSchema])
|
|
90
114
|
.describe('An operation that can be performed on an obtained result.');
|
|
91
115
|
exports.MAX_VARIABLE_OPERATIONS = 5;
|
|
92
116
|
exports.variableOperationsArraySchema = zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable-operation.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/variable-operation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"variable-operation.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/variable-operation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uCAA0E;AAE1E,MAAM,uBAAuB,GAAG,OAAC;KAC9B,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,kCAAkC,CAAC,CAAC;AAEjE,MAAM,kBAAkB,GAAG,OAAC;KACzB,MAAM,CACL;IACE,eAAe,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,4BAAkB,CAAC,CAAC;IACvE,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,4BAAkB,CAAC,CAAC;CACrE,EACD;IACE,cAAc,EAAE,qCAAqC;IACrD,kBAAkB,EAChB,4E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
3
3
|
export declare const CONTEXT_PARAM_PREFIX = ":";
|
|
4
|
+
export declare const NULL_ADDRESS_CONTEXT_VAR = ":nullAddress";
|
|
4
5
|
export declare const USER_ADDRESS_PARAMS: string[];
|
|
@@ -5,6 +5,7 @@ export const CONTEXT_PARAM_REGEXP = new RegExp(contextParamRegexString);
|
|
|
5
5
|
// Entire string is context param
|
|
6
6
|
export const CONTEXT_PARAM_FULL_MATCH_REGEXP = new RegExp(`^${contextParamRegexString}$`);
|
|
7
7
|
export const CONTEXT_PARAM_PREFIX = ':';
|
|
8
|
+
export const NULL_ADDRESS_CONTEXT_VAR = ':nullAddress';
|
|
8
9
|
export const USER_ADDRESS_PARAMS = [
|
|
9
10
|
// Ordering matters, this should always be last
|
|
10
11
|
USER_ADDRESS_PARAM_DEFAULT,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../src/conditions/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAEjE,qDAAqD;AACrD,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAExE,iCAAiC;AACjC,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,MAAM,CACvD,IAAI,uBAAuB,GAAG,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,+CAA+C;IAC/C,0BAA0B;CAC3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"const.js","sourceRoot":"","sources":["../../../src/conditions/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAEjE,qDAAqD;AACrD,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAExE,iCAAiC;AACjC,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,MAAM,CACvD,IAAI,uBAAuB,GAAG,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,MAAM,CAAC,MAAM,wBAAwB,GAAG,cAAc,CAAC;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,+CAA+C;IAC/C,0BAA0B;CAC3B,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { ethers } from 'ethers';
|
|
|
4
4
|
import { CoreConditions, CoreContext } from '../../types';
|
|
5
5
|
import { toJSON } from '../../utils';
|
|
6
6
|
import { ConditionExpression } from '../condition-expr';
|
|
7
|
-
import { CONTEXT_PARAM_FULL_MATCH_REGEXP, CONTEXT_PARAM_PREFIX, CONTEXT_PARAM_REGEXP, USER_ADDRESS_PARAMS, } from '../const';
|
|
7
|
+
import { CONTEXT_PARAM_FULL_MATCH_REGEXP, CONTEXT_PARAM_PREFIX, CONTEXT_PARAM_REGEXP, NULL_ADDRESS_CONTEXT_VAR, USER_ADDRESS_PARAMS, } from '../const';
|
|
8
8
|
import { SIGNING_CONDITION_OBJECT_CONTEXT_VAR } from '../schemas/signing';
|
|
9
9
|
import { SequentialConditionType, } from '../sequential';
|
|
10
10
|
const ERR_RESERVED_PARAM = (key) => `Cannot use reserved parameter name ${key} as custom parameter`;
|
|
@@ -25,10 +25,12 @@ const EXPECTED_AUTH_PROVIDER_TYPES = {
|
|
|
25
25
|
export const AUTOMATICALLY_INJECTED_CONTEXT_PARAMS = [
|
|
26
26
|
// These context parameters are automatically injected on the node side.
|
|
27
27
|
SIGNING_CONDITION_OBJECT_CONTEXT_VAR,
|
|
28
|
+
NULL_ADDRESS_CONTEXT_VAR,
|
|
28
29
|
];
|
|
29
30
|
export const RESERVED_CONTEXT_PARAMS = [
|
|
30
31
|
USER_ADDRESS_PARAM_DEFAULT,
|
|
31
32
|
SIGNING_CONDITION_OBJECT_CONTEXT_VAR,
|
|
33
|
+
NULL_ADDRESS_CONTEXT_VAR,
|
|
32
34
|
];
|
|
33
35
|
export class ConditionContext {
|
|
34
36
|
requestedContextParameters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/conditions/context/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAGL,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,oCAAoC,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAEL,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAUvB,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAE,EAAE,CACzC,sCAAsC,GAAG,sBAAsB,CAAC;AAClE,MAAM,wBAAwB,GAAG,CAAC,GAAW,EAAE,EAAE,CAC/C,oBAAoB,GAAG,oBAAoB,oBAAoB,EAAE,CAAC;AACpE,MAAM,0BAA0B,GAAG,CAAC,GAAW,EAAE,EAAE,CACjD,kDAAkD,GAAG,gCAAgC,CAAC;AACxF,MAAM,0BAA0B,GAAG,CAAC,MAAgB,EAAE,EAAE,CACtD,wCAAwC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC9D,MAAM,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mB,GAAG,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;QAE1E,MAAM,eAAe,GAAG,IAAI,cAAc,CAAC,mBAAmB,CAAC,CAAC;QAChE,MAAM,aAAa,GACjB,mBAAmB,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;QAC1D,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF"}
|
|
@@ -6,86 +6,146 @@ 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<[
|
|
9
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObject<{} & {
|
|
10
|
+
operation: z.ZodEnum<[string, ...string[]]>;
|
|
11
11
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
operation:
|
|
13
|
+
operation: string;
|
|
14
14
|
value?: any;
|
|
15
15
|
}, {
|
|
16
|
-
operation:
|
|
16
|
+
operation: string;
|
|
17
17
|
value?: any;
|
|
18
18
|
}>, {
|
|
19
|
-
operation:
|
|
19
|
+
operation: string;
|
|
20
20
|
value?: any;
|
|
21
21
|
}, {
|
|
22
|
-
operation:
|
|
22
|
+
operation: string;
|
|
23
23
|
value?: any;
|
|
24
24
|
}>, {
|
|
25
|
-
operation:
|
|
25
|
+
operation: string;
|
|
26
26
|
value?: any;
|
|
27
27
|
}, {
|
|
28
|
-
operation:
|
|
28
|
+
operation: string;
|
|
29
29
|
value?: any;
|
|
30
|
-
}>,
|
|
30
|
+
}>, z.ZodObject<{} & {
|
|
31
|
+
operation: z.ZodLiteral<"create2">;
|
|
32
|
+
value: z.ZodObject<{
|
|
33
|
+
deployerAddress: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
34
|
+
bytecodeHash: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
deployerAddress: string;
|
|
37
|
+
bytecodeHash: string;
|
|
38
|
+
}, {
|
|
39
|
+
deployerAddress: string;
|
|
40
|
+
bytecodeHash: string;
|
|
41
|
+
}>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
value: {
|
|
44
|
+
deployerAddress: string;
|
|
45
|
+
bytecodeHash: string;
|
|
46
|
+
};
|
|
47
|
+
operation: "create2";
|
|
48
|
+
}, {
|
|
49
|
+
value: {
|
|
50
|
+
deployerAddress: string;
|
|
51
|
+
bytecodeHash: string;
|
|
52
|
+
};
|
|
53
|
+
operation: "create2";
|
|
54
|
+
}>]>, "many">>;
|
|
31
55
|
} & {
|
|
32
56
|
value: z.ZodType<any, z.ZodTypeDef, any>;
|
|
33
57
|
}, "strip", z.ZodTypeAny, {
|
|
34
58
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
35
|
-
index?: number | undefined;
|
|
36
59
|
value?: any;
|
|
37
|
-
|
|
38
|
-
|
|
60
|
+
index?: number | undefined;
|
|
61
|
+
operations?: ({
|
|
62
|
+
operation: string;
|
|
39
63
|
value?: any;
|
|
40
|
-
}
|
|
64
|
+
} | {
|
|
65
|
+
value: {
|
|
66
|
+
deployerAddress: string;
|
|
67
|
+
bytecodeHash: string;
|
|
68
|
+
};
|
|
69
|
+
operation: "create2";
|
|
70
|
+
})[] | undefined;
|
|
41
71
|
}, {
|
|
42
72
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
43
|
-
index?: number | undefined;
|
|
44
73
|
value?: any;
|
|
45
|
-
|
|
46
|
-
|
|
74
|
+
index?: number | undefined;
|
|
75
|
+
operations?: ({
|
|
76
|
+
operation: string;
|
|
47
77
|
value?: any;
|
|
48
|
-
}
|
|
78
|
+
} | {
|
|
79
|
+
value: {
|
|
80
|
+
deployerAddress: string;
|
|
81
|
+
bytecodeHash: string;
|
|
82
|
+
};
|
|
83
|
+
operation: "create2";
|
|
84
|
+
})[] | undefined;
|
|
49
85
|
}>, {
|
|
50
86
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
51
|
-
index?: number | undefined;
|
|
52
87
|
value?: any;
|
|
53
|
-
|
|
54
|
-
|
|
88
|
+
index?: number | undefined;
|
|
89
|
+
operations?: ({
|
|
90
|
+
operation: string;
|
|
55
91
|
value?: any;
|
|
56
|
-
}
|
|
92
|
+
} | {
|
|
93
|
+
value: {
|
|
94
|
+
deployerAddress: string;
|
|
95
|
+
bytecodeHash: string;
|
|
96
|
+
};
|
|
97
|
+
operation: "create2";
|
|
98
|
+
})[] | undefined;
|
|
57
99
|
}, {
|
|
58
100
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
59
|
-
index?: number | undefined;
|
|
60
101
|
value?: any;
|
|
61
|
-
|
|
62
|
-
|
|
102
|
+
index?: number | undefined;
|
|
103
|
+
operations?: ({
|
|
104
|
+
operation: string;
|
|
63
105
|
value?: any;
|
|
64
|
-
}
|
|
106
|
+
} | {
|
|
107
|
+
value: {
|
|
108
|
+
deployerAddress: string;
|
|
109
|
+
bytecodeHash: string;
|
|
110
|
+
};
|
|
111
|
+
operation: "create2";
|
|
112
|
+
})[] | undefined;
|
|
65
113
|
}>;
|
|
66
114
|
}, "strict", z.ZodTypeAny, {
|
|
67
115
|
conditionType: "context-variable";
|
|
116
|
+
contextVariable: string;
|
|
68
117
|
returnValueTest: {
|
|
69
118
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
70
|
-
index?: number | undefined;
|
|
71
119
|
value?: any;
|
|
72
|
-
|
|
73
|
-
|
|
120
|
+
index?: number | undefined;
|
|
121
|
+
operations?: ({
|
|
122
|
+
operation: string;
|
|
74
123
|
value?: any;
|
|
75
|
-
}
|
|
124
|
+
} | {
|
|
125
|
+
value: {
|
|
126
|
+
deployerAddress: string;
|
|
127
|
+
bytecodeHash: string;
|
|
128
|
+
};
|
|
129
|
+
operation: "create2";
|
|
130
|
+
})[] | undefined;
|
|
76
131
|
};
|
|
77
|
-
contextVariable: string;
|
|
78
132
|
}, {
|
|
79
133
|
conditionType: "context-variable";
|
|
134
|
+
contextVariable: string;
|
|
80
135
|
returnValueTest: {
|
|
81
136
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
82
|
-
index?: number | undefined;
|
|
83
137
|
value?: any;
|
|
84
|
-
|
|
85
|
-
|
|
138
|
+
index?: number | undefined;
|
|
139
|
+
operations?: ({
|
|
140
|
+
operation: string;
|
|
86
141
|
value?: any;
|
|
87
|
-
}
|
|
142
|
+
} | {
|
|
143
|
+
value: {
|
|
144
|
+
deployerAddress: string;
|
|
145
|
+
bytecodeHash: string;
|
|
146
|
+
};
|
|
147
|
+
operation: "create2";
|
|
148
|
+
})[] | undefined;
|
|
88
149
|
};
|
|
89
|
-
contextVariable: string;
|
|
90
150
|
}>;
|
|
91
151
|
export type ContextVariableConditionProps = z.infer<typeof contextVariableConditionSchema>;
|