Variable SignEvmTransactionRuleSchemaConst
SignEvmTransactionRuleSchema: ZodObject<
{
action: ZodEnum<["reject", "accept"]>;
criteria: ZodArray<
ZodDiscriminatedUnion<
"type",
[
ZodObject<
{
ethValue: ZodString;
operator: ZodEnum<[">", ">=", "<", "<=", "=="]>;
type: ZodLiteral<"ethValue">;
},
"strip",
ZodTypeAny,
{
ethValue: string;
operator: ">"
| ">="
| "<"
| "<="
| "==";
type: "ethValue";
},
{
ethValue: string;
operator: ">"
| ">="
| "<"
| "<="
| "==";
type: "ethValue";
},
>,
ZodObject<
{
addresses: ZodArray<
ZodEffects<ZodString, `0x${string}`, string>,
"many",
>;
operator: ZodEnum<["in", "not in"]>;
type: ZodLiteral<"evmAddress">;
},
"strip",
ZodTypeAny,
{
addresses: `0x${string}`[];
operator: "in"
| "not in";
type: "evmAddress";
},
{ addresses: string[]; operator: "in"
| "not in"; type: "evmAddress" },
>,
ZodObject<
{
abi: ZodUnion<
[
ZodEnum<[(...), (...), (...)]>,
ZodReadonly<ZodArray<(...), (...)>>,
],
>;
conditions: ZodArray<
ZodObject<
{ function: ZodString; params: ZodOptional<(...)> },
"strip",
ZodTypeAny,
{ function: string; params?: (...) | (...) },
{ function: string; params?: (...) | (...) },
>,
"many",
>;
type: ZodLiteral<"evmData">;
},
"strip",
ZodTypeAny,
{
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| { inputs: ...; name: ...; type: ... }
| { anonymous?: ...; inputs: ...; name: ...; type: ... }
| (
{ payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; })
)
)[];
conditions: { function: string; params?: (...)[] }[];
type: "evmData";
},
{
abi: "erc20"
| "erc721"
| "erc1155"
| readonly unknown[];
conditions: { function: string; params?: (...)[] }[];
type: "evmData";
},
>,
],
>,
"many",
>;
operation: ZodLiteral<"signEvmTransaction">;
},
"strip",
ZodTypeAny,
{
action: "reject"
| "accept";
criteria: (
| {
ethValue: string;
operator: ">"
| ">="
| "<"
| "<="
| "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in"
| "not in";
type: "evmAddress";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| { inputs: readonly AbiParameter[]; name: string; type: "error" }
| {
anonymous?: boolean;
inputs: readonly AbiEventParameter[];
name: string;
type: "event";
}
| (
{ payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; })
)
)[];
conditions: {
function: string;
params?: (
| { name: ...; operator: ...; values: ... }
| { name: ...; operator: ...; value: ... }
)[];
}[];
type: "evmData";
}
)[];
operation: "signEvmTransaction";
},
{
action: "reject"
| "accept";
criteria: (
| {
ethValue: string;
operator: ">"
| ">="
| "<"
| "<="
| "==";
type: "ethValue";
}
| { addresses: string[]; operator: "in"
| "not in"; type: "evmAddress" }
| {
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
conditions: {
function: string;
params?: (
| { name: ...; operator: ...; values: ... }
| { name: ...; operator: ...; value: ... }
)[];
}[];
type: "evmData";
}
)[];
operation: "signEvmTransaction";
},
> = ...
Type representing a 'signEvmTransaction' policy rule that can accept or reject specific operations based on a set of criteria.