@nucypher/taco 0.7.0-alpha.6 → 0.7.0-alpha.8
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/context/context.js +25 -2
- package/dist/cjs/conditions/context/context.js.map +1 -1
- package/dist/cjs/conditions/schemas/context-variable.d.ts +15 -15
- package/dist/cjs/conditions/schemas/contract.d.ts +31 -31
- package/dist/cjs/conditions/schemas/json-api.d.ts +15 -15
- package/dist/cjs/conditions/schemas/json-rpc.d.ts +19 -19
- package/dist/cjs/conditions/schemas/json.d.ts +14 -14
- package/dist/cjs/conditions/schemas/return-value-test.d.ts +22 -22
- package/dist/cjs/conditions/schemas/rpc.d.ts +17 -17
- package/dist/cjs/conditions/schemas/sequential.d.ts +2 -0
- package/dist/cjs/conditions/schemas/sequential.js +9 -8
- package/dist/cjs/conditions/schemas/sequential.js.map +1 -1
- package/dist/cjs/conditions/schemas/time.d.ts +16 -16
- package/dist/cjs/conditions/schemas/utils.js +2 -0
- package/dist/cjs/conditions/schemas/utils.js.map +1 -1
- package/dist/cjs/conditions/schemas/variable-operation.d.ts +15 -15
- package/dist/cjs/conditions/schemas/variable-operation.js +16 -0
- package/dist/cjs/conditions/schemas/variable-operation.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/sign.js +15 -10
- package/dist/cjs/sign.js.map +1 -1
- package/dist/es/conditions/context/context.js +25 -2
- package/dist/es/conditions/context/context.js.map +1 -1
- package/dist/es/conditions/schemas/context-variable.d.ts +15 -15
- package/dist/es/conditions/schemas/contract.d.ts +31 -31
- package/dist/es/conditions/schemas/json-api.d.ts +15 -15
- package/dist/es/conditions/schemas/json-rpc.d.ts +19 -19
- package/dist/es/conditions/schemas/json.d.ts +14 -14
- package/dist/es/conditions/schemas/return-value-test.d.ts +22 -22
- package/dist/es/conditions/schemas/rpc.d.ts +17 -17
- package/dist/es/conditions/schemas/sequential.d.ts +2 -0
- package/dist/es/conditions/schemas/sequential.js +2 -2
- package/dist/es/conditions/schemas/sequential.js.map +1 -1
- package/dist/es/conditions/schemas/time.d.ts +16 -16
- package/dist/es/conditions/schemas/utils.js +2 -0
- package/dist/es/conditions/schemas/utils.js.map +1 -1
- package/dist/es/conditions/schemas/variable-operation.d.ts +15 -15
- package/dist/es/conditions/schemas/variable-operation.js +16 -0
- package/dist/es/conditions/schemas/variable-operation.js.map +1 -1
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/sign.js +15 -10
- package/dist/es/sign.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@ const utils_1 = require("../../utils");
|
|
|
9
9
|
const condition_expr_1 = require("../condition-expr");
|
|
10
10
|
const const_1 = require("../const");
|
|
11
11
|
const signing_1 = require("../schemas/signing");
|
|
12
|
+
const sequential_1 = require("../sequential");
|
|
12
13
|
const ERR_RESERVED_PARAM = (key) => `Cannot use reserved parameter name ${key} as custom parameter`;
|
|
13
14
|
const ERR_INVALID_CUSTOM_PARAM = (key) => `Custom parameter ${key} must start with ${const_1.CONTEXT_PARAM_PREFIX}`;
|
|
14
15
|
const ERR_AUTH_PROVIDER_REQUIRED = (key) => `No matching authentication provider to satisfy ${key} context variable in condition`;
|
|
@@ -136,10 +137,22 @@ class ConditionContext {
|
|
|
136
137
|
}
|
|
137
138
|
else if (typeof value === 'object') {
|
|
138
139
|
// dictionary (Record<string, T> - complex object eg. Condition, ConditionVariable, ReturnValueTest etc.)
|
|
140
|
+
// Collect internally-defined variable names from sequential conditions
|
|
141
|
+
// These are scoped within the condition and should not be required as external context
|
|
142
|
+
const internalContextVariablesFromConditionVariables = new Set();
|
|
143
|
+
if ('conditionType' in value &&
|
|
144
|
+
value.conditionType === sequential_1.SequentialConditionType) {
|
|
145
|
+
value.conditionVariables.forEach((variable) => {
|
|
146
|
+
internalContextVariablesFromConditionVariables.add(`:${variable.varName}`);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
// iterate through all entries
|
|
139
150
|
for (const [, entry] of Object.entries(value)) {
|
|
140
151
|
const contextVarsForValue = this.findContextParameter(entry);
|
|
141
152
|
contextVarsForValue.forEach((contextVar) => {
|
|
142
|
-
|
|
153
|
+
if (!internalContextVariablesFromConditionVariables.has(contextVar)) {
|
|
154
|
+
includedContextVars.add(contextVar);
|
|
155
|
+
}
|
|
143
156
|
});
|
|
144
157
|
}
|
|
145
158
|
}
|
|
@@ -148,11 +161,21 @@ class ConditionContext {
|
|
|
148
161
|
static findContextParameters(condition) {
|
|
149
162
|
// find all the context variables we need
|
|
150
163
|
const requestedParameters = new Set();
|
|
164
|
+
// Collect internally-defined variable names from sequential conditions
|
|
165
|
+
// These are scoped within the condition and should not be required as external context
|
|
166
|
+
const internalContextVariablesFromConditionVariables = new Set();
|
|
167
|
+
if ('conditionType' in condition &&
|
|
168
|
+
condition.conditionType === sequential_1.SequentialConditionType) {
|
|
169
|
+
condition.conditionVariables.forEach((variable) => {
|
|
170
|
+
internalContextVariablesFromConditionVariables.add(`:${variable.varName}`);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
151
173
|
// iterate through all properties in ConditionProps
|
|
152
174
|
const properties = Object.keys(condition);
|
|
153
175
|
properties.forEach((prop) => {
|
|
154
176
|
this.findContextParameter(condition[prop]).forEach((contextVar) => {
|
|
155
|
-
if (!exports.AUTOMATICALLY_INJECTED_CONTEXT_PARAMS.includes(contextVar)
|
|
177
|
+
if (!exports.AUTOMATICALLY_INJECTED_CONTEXT_PARAMS.includes(contextVar) &&
|
|
178
|
+
!internalContextVariablesFromConditionVariables.has(contextVar)) {
|
|
156
179
|
requestedParameters.add(contextVar);
|
|
157
180
|
}
|
|
158
181
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/conditions/context/context.ts"],"names":[],"mappings":";;;AACA,6CAAmE;AACnE,mDAO6B;AAC7B,mCAAgC;AAEhC,uCAA0D;AAC1D,uCAAqC;AAErC,sDAAwD;AACxD,oCAKkB;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/conditions/context/context.ts"],"names":[],"mappings":";;;AACA,6CAAmE;AACnE,mDAO6B;AAC7B,mCAAgC;AAEhC,uCAA0D;AAC1D,uCAAqC;AAErC,sDAAwD;AACxD,oCAKkB;AAElB,gDAA0E;AAC1E,8CAGuB;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,4BAAoB,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,gCAAgC,GAAG,CAAC,KAAa,EAAE,EAAE,CACzD,qCAAqC,KAAK,EAAE,CAAC;AAC/C,MAAM,8BAA8B,GAAG,CAAC,KAAa,EAAE,QAAgB,EAAE,EAAE,CACzE,iCAAiC,KAAK,cAAc,QAAQ,EAAE,CAAC;AACjE,MAAM,8CAA8C,GAAG,CAAC,KAAa,EAAE,EAAE,CACvE,qDAAqD,KAAK,EAAE,CAAC;AAC/D,MAAM,+BAA+B,GAAG,CAAC,KAAa,EAAE,EAAE,CACxD,qBAAqB,KAAK,uDAAuD,CAAC;AAOpF,MAAM,4BAA4B,GAAuC;IACvE,CAAC,sCAA0B,CAAC,EAAE;QAC5B,+BAAmB;QACnB,+BAAmB;QACnB,2CAA+B;KAChC;CACF,CAAC;AAEW,QAAA,qC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,CAAC;QACF,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAClC,QAA0C,EAC1C,MAAc,EACd,QAAgB,EAChB,OAAe;QAEf,yDAAyD;QACzD,MAAM,kBAAkB,GACtB,MAAM,gCAAuB,CAAC,0BAA0B,CACtD,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,CACR,CAAC;QAEJ,0CAA0C;QAC1C,MAAM,mBAAmB,GAAG,eAAM,CAAC,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;QAE1E,MAAM,eAAe,GAAG,IAAI,sBAAc,CAAC,mBAAmB,CAAC,CAAC;QAChE,MAAM,aAAa,GACjB,oCAAmB,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;QAC1D,OAAO,IAAI,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF;AAjRD,4CAiRC"}
|
|
@@ -7,25 +7,25 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
|
|
|
7
7
|
index: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
|
|
9
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"]>;
|
|
10
|
+
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
|
|
11
11
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
operation: "float" | "
|
|
13
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
14
14
|
value?: any;
|
|
15
15
|
}, {
|
|
16
|
-
operation: "float" | "
|
|
16
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
17
17
|
value?: any;
|
|
18
18
|
}>, {
|
|
19
|
-
operation: "float" | "
|
|
19
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
20
20
|
value?: any;
|
|
21
21
|
}, {
|
|
22
|
-
operation: "float" | "
|
|
22
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
23
23
|
value?: any;
|
|
24
24
|
}>, {
|
|
25
|
-
operation: "float" | "
|
|
25
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
26
26
|
value?: any;
|
|
27
27
|
}, {
|
|
28
|
-
operation: "float" | "
|
|
28
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
29
29
|
value?: any;
|
|
30
30
|
}>, "many">>;
|
|
31
31
|
} & {
|
|
@@ -35,7 +35,7 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
|
|
|
35
35
|
value?: any;
|
|
36
36
|
index?: number | undefined;
|
|
37
37
|
operations?: {
|
|
38
|
-
operation: "float" | "
|
|
38
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
39
39
|
value?: any;
|
|
40
40
|
}[] | undefined;
|
|
41
41
|
}, {
|
|
@@ -43,7 +43,7 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
|
|
|
43
43
|
value?: any;
|
|
44
44
|
index?: number | undefined;
|
|
45
45
|
operations?: {
|
|
46
|
-
operation: "float" | "
|
|
46
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
47
47
|
value?: any;
|
|
48
48
|
}[] | undefined;
|
|
49
49
|
}>, {
|
|
@@ -51,7 +51,7 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
|
|
|
51
51
|
value?: any;
|
|
52
52
|
index?: number | undefined;
|
|
53
53
|
operations?: {
|
|
54
|
-
operation: "float" | "
|
|
54
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
55
55
|
value?: any;
|
|
56
56
|
}[] | undefined;
|
|
57
57
|
}, {
|
|
@@ -59,33 +59,33 @@ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
|
|
|
59
59
|
value?: any;
|
|
60
60
|
index?: number | undefined;
|
|
61
61
|
operations?: {
|
|
62
|
-
operation: "float" | "
|
|
62
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
63
63
|
value?: any;
|
|
64
64
|
}[] | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
}, "strict", z.ZodTypeAny, {
|
|
67
67
|
conditionType: "context-variable";
|
|
68
|
+
contextVariable: string;
|
|
68
69
|
returnValueTest: {
|
|
69
70
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
70
71
|
value?: any;
|
|
71
72
|
index?: number | undefined;
|
|
72
73
|
operations?: {
|
|
73
|
-
operation: "float" | "
|
|
74
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
74
75
|
value?: any;
|
|
75
76
|
}[] | undefined;
|
|
76
77
|
};
|
|
77
|
-
contextVariable: string;
|
|
78
78
|
}, {
|
|
79
79
|
conditionType: "context-variable";
|
|
80
|
+
contextVariable: string;
|
|
80
81
|
returnValueTest: {
|
|
81
82
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
82
83
|
value?: any;
|
|
83
84
|
index?: number | undefined;
|
|
84
85
|
operations?: {
|
|
85
|
-
operation: "float" | "
|
|
86
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
86
87
|
value?: any;
|
|
87
88
|
}[] | undefined;
|
|
88
89
|
};
|
|
89
|
-
contextVariable: string;
|
|
90
90
|
}>;
|
|
91
91
|
export type ContextVariableConditionProps = z.infer<typeof contextVariableConditionSchema>;
|
|
@@ -159,25 +159,25 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
159
159
|
index: z.ZodOptional<z.ZodNumber>;
|
|
160
160
|
comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
|
|
161
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"]>;
|
|
162
|
+
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
|
|
163
163
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
operation: "float" | "
|
|
165
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
166
166
|
value?: any;
|
|
167
167
|
}, {
|
|
168
|
-
operation: "float" | "
|
|
168
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
169
169
|
value?: any;
|
|
170
170
|
}>, {
|
|
171
|
-
operation: "float" | "
|
|
171
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
172
172
|
value?: any;
|
|
173
173
|
}, {
|
|
174
|
-
operation: "float" | "
|
|
174
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
175
175
|
value?: any;
|
|
176
176
|
}>, {
|
|
177
|
-
operation: "float" | "
|
|
177
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
178
178
|
value?: any;
|
|
179
179
|
}, {
|
|
180
|
-
operation: "float" | "
|
|
180
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
181
181
|
value?: any;
|
|
182
182
|
}>, "many">>;
|
|
183
183
|
} & {
|
|
@@ -187,7 +187,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
187
187
|
value?: any;
|
|
188
188
|
index?: number | undefined;
|
|
189
189
|
operations?: {
|
|
190
|
-
operation: "float" | "
|
|
190
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
191
191
|
value?: any;
|
|
192
192
|
}[] | undefined;
|
|
193
193
|
}, {
|
|
@@ -195,7 +195,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
195
195
|
value?: any;
|
|
196
196
|
index?: number | undefined;
|
|
197
197
|
operations?: {
|
|
198
|
-
operation: "float" | "
|
|
198
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
199
199
|
value?: any;
|
|
200
200
|
}[] | undefined;
|
|
201
201
|
}>, {
|
|
@@ -203,7 +203,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
203
203
|
value?: any;
|
|
204
204
|
index?: number | undefined;
|
|
205
205
|
operations?: {
|
|
206
|
-
operation: "float" | "
|
|
206
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
207
207
|
value?: any;
|
|
208
208
|
}[] | undefined;
|
|
209
209
|
}, {
|
|
@@ -211,7 +211,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
211
211
|
value?: any;
|
|
212
212
|
index?: number | undefined;
|
|
213
213
|
operations?: {
|
|
214
|
-
operation: "float" | "
|
|
214
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
215
215
|
value?: any;
|
|
216
216
|
}[] | undefined;
|
|
217
217
|
}>;
|
|
@@ -362,19 +362,20 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
362
362
|
parameters: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
364
|
conditionType: "contract";
|
|
365
|
+
chain: number;
|
|
366
|
+
method: string;
|
|
367
|
+
parameters: any[];
|
|
365
368
|
returnValueTest: {
|
|
366
369
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
367
370
|
value?: any;
|
|
368
371
|
index?: number | undefined;
|
|
369
372
|
operations?: {
|
|
370
|
-
operation: "float" | "
|
|
373
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
371
374
|
value?: any;
|
|
372
375
|
}[] | undefined;
|
|
373
376
|
};
|
|
374
|
-
chain: number;
|
|
375
|
-
method: string;
|
|
376
|
-
parameters: any[];
|
|
377
377
|
contractAddress: string;
|
|
378
|
+
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
378
379
|
functionAbi?: {
|
|
379
380
|
type: "function";
|
|
380
381
|
name: string;
|
|
@@ -394,22 +395,22 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
394
395
|
}[]];
|
|
395
396
|
stateMutability: "view" | "pure";
|
|
396
397
|
} | undefined;
|
|
397
|
-
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
398
398
|
}, {
|
|
399
|
+
chain: number;
|
|
400
|
+
method: string;
|
|
401
|
+
parameters: any[];
|
|
399
402
|
returnValueTest: {
|
|
400
403
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
401
404
|
value?: any;
|
|
402
405
|
index?: number | undefined;
|
|
403
406
|
operations?: {
|
|
404
|
-
operation: "float" | "
|
|
407
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
405
408
|
value?: any;
|
|
406
409
|
}[] | undefined;
|
|
407
410
|
};
|
|
408
|
-
chain: number;
|
|
409
|
-
method: string;
|
|
410
|
-
parameters: any[];
|
|
411
411
|
contractAddress: string;
|
|
412
412
|
conditionType?: "contract" | undefined;
|
|
413
|
+
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
413
414
|
functionAbi?: {
|
|
414
415
|
type: "function";
|
|
415
416
|
name: string;
|
|
@@ -429,22 +430,22 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
429
430
|
}[]];
|
|
430
431
|
stateMutability: "view" | "pure";
|
|
431
432
|
} | undefined;
|
|
432
|
-
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
433
433
|
}>, {
|
|
434
434
|
conditionType: "contract";
|
|
435
|
+
chain: number;
|
|
436
|
+
method: string;
|
|
437
|
+
parameters: any[];
|
|
435
438
|
returnValueTest: {
|
|
436
439
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
437
440
|
value?: any;
|
|
438
441
|
index?: number | undefined;
|
|
439
442
|
operations?: {
|
|
440
|
-
operation: "float" | "
|
|
443
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
441
444
|
value?: any;
|
|
442
445
|
}[] | undefined;
|
|
443
446
|
};
|
|
444
|
-
chain: number;
|
|
445
|
-
method: string;
|
|
446
|
-
parameters: any[];
|
|
447
447
|
contractAddress: string;
|
|
448
|
+
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
448
449
|
functionAbi?: {
|
|
449
450
|
type: "function";
|
|
450
451
|
name: string;
|
|
@@ -464,22 +465,22 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
464
465
|
}[]];
|
|
465
466
|
stateMutability: "view" | "pure";
|
|
466
467
|
} | undefined;
|
|
467
|
-
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
468
468
|
}, {
|
|
469
|
+
chain: number;
|
|
470
|
+
method: string;
|
|
471
|
+
parameters: any[];
|
|
469
472
|
returnValueTest: {
|
|
470
473
|
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
|
|
471
474
|
value?: any;
|
|
472
475
|
index?: number | undefined;
|
|
473
476
|
operations?: {
|
|
474
|
-
operation: "float" | "
|
|
477
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
475
478
|
value?: any;
|
|
476
479
|
}[] | undefined;
|
|
477
480
|
};
|
|
478
|
-
chain: number;
|
|
479
|
-
method: string;
|
|
480
|
-
parameters: any[];
|
|
481
481
|
contractAddress: string;
|
|
482
482
|
conditionType?: "contract" | undefined;
|
|
483
|
+
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
483
484
|
functionAbi?: {
|
|
484
485
|
type: "function";
|
|
485
486
|
name: string;
|
|
@@ -499,6 +500,5 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
499
500
|
}[]];
|
|
500
501
|
stateMutability: "view" | "pure";
|
|
501
502
|
} | undefined;
|
|
502
|
-
standardContractType?: "ERC20" | "ERC721" | undefined;
|
|
503
503
|
}>;
|
|
504
504
|
export type ContractConditionProps = z.infer<typeof contractConditionSchema>;
|
|
@@ -11,25 +11,25 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
11
11
|
index: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
|
|
13
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"]>;
|
|
14
|
+
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str", "fromJson", "toJson", "fromHex", "toHex", "keccak"]>;
|
|
15
15
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
operation: "float" | "
|
|
17
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
18
18
|
value?: any;
|
|
19
19
|
}, {
|
|
20
|
-
operation: "float" | "
|
|
20
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
21
21
|
value?: any;
|
|
22
22
|
}>, {
|
|
23
|
-
operation: "float" | "
|
|
23
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
24
24
|
value?: any;
|
|
25
25
|
}, {
|
|
26
|
-
operation: "float" | "
|
|
26
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
27
27
|
value?: any;
|
|
28
28
|
}>, {
|
|
29
|
-
operation: "float" | "
|
|
29
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
30
30
|
value?: any;
|
|
31
31
|
}, {
|
|
32
|
-
operation: "float" | "
|
|
32
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
33
33
|
value?: any;
|
|
34
34
|
}>, "many">>;
|
|
35
35
|
} & {
|
|
@@ -39,7 +39,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
39
39
|
value?: any;
|
|
40
40
|
index?: number | undefined;
|
|
41
41
|
operations?: {
|
|
42
|
-
operation: "float" | "
|
|
42
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
43
43
|
value?: any;
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
}, {
|
|
@@ -47,7 +47,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
47
47
|
value?: any;
|
|
48
48
|
index?: number | undefined;
|
|
49
49
|
operations?: {
|
|
50
|
-
operation: "float" | "
|
|
50
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
51
51
|
value?: any;
|
|
52
52
|
}[] | undefined;
|
|
53
53
|
}>, {
|
|
@@ -55,7 +55,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
55
55
|
value?: any;
|
|
56
56
|
index?: number | undefined;
|
|
57
57
|
operations?: {
|
|
58
|
-
operation: "float" | "
|
|
58
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
59
59
|
value?: any;
|
|
60
60
|
}[] | undefined;
|
|
61
61
|
}, {
|
|
@@ -63,7 +63,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
63
63
|
value?: any;
|
|
64
64
|
index?: number | undefined;
|
|
65
65
|
operations?: {
|
|
66
|
-
operation: "float" | "
|
|
66
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
67
67
|
value?: any;
|
|
68
68
|
}[] | undefined;
|
|
69
69
|
}>;
|
|
@@ -74,7 +74,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
74
74
|
value?: any;
|
|
75
75
|
index?: number | undefined;
|
|
76
76
|
operations?: {
|
|
77
|
-
operation: "float" | "
|
|
77
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
78
78
|
value?: any;
|
|
79
79
|
}[] | undefined;
|
|
80
80
|
};
|
|
@@ -89,7 +89,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
89
89
|
value?: any;
|
|
90
90
|
index?: number | undefined;
|
|
91
91
|
operations?: {
|
|
92
|
-
operation: "float" | "
|
|
92
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
93
93
|
value?: any;
|
|
94
94
|
}[] | undefined;
|
|
95
95
|
};
|
|
@@ -106,7 +106,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
106
106
|
value?: any;
|
|
107
107
|
index?: number | undefined;
|
|
108
108
|
operations?: {
|
|
109
|
-
operation: "float" | "
|
|
109
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
110
110
|
value?: any;
|
|
111
111
|
}[] | undefined;
|
|
112
112
|
};
|
|
@@ -121,7 +121,7 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
|
|
|
121
121
|
value?: any;
|
|
122
122
|
index?: number | undefined;
|
|
123
123
|
operations?: {
|
|
124
|
-
operation: "float" | "
|
|
124
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str" | "fromJson" | "toJson" | "fromHex" | "toHex" | "keccak";
|
|
125
125
|
value?: any;
|
|
126
126
|
}[] | undefined;
|
|
127
127
|
};
|