@rabbitholegg/questdk-plugin-utils
Advanced tools
Comparing version 1.0.0-alpha.46 to 1.0.0-alpha.47
# @rabbitholegg/questdk-plugin-utils | ||
## 1.0.0-alpha.47 | ||
### Minor Changes | ||
- [#514](https://github.com/rabbitholegg/questdk-plugins/pull/514) [`49f27acf`](https://github.com/rabbitholegg/questdk-plugins/commit/49f27acf371a88cb5aae6d442758da8322816e4b) Thanks [@sammccord](https://github.com/sammccord)! - implement filter types as zod schemas | ||
## 1.0.0-alpha.46 | ||
@@ -4,0 +10,0 @@ |
@@ -5,4 +5,4 @@ export { CHAIN_TO_TOKENS, Chains, DEFAULT_ACCOUNT, BOOST_TREASURY_ADDRESS, DEFAULT_REFERRAL, } from './constants/index'; | ||
export type { IntentParams, MintIntentParams, SwapActionParams, OptionsActionParams, StakeActionParams, BridgeActionParams, VoteActionParams, MintActionParams, BurnActionParams, QuestActionParams, DelegateActionParams, ActionParams, FollowActionParams, RecastActionParams, CreateActionParams, CompleteActionParams, CompleteValidationParams, CompleteActionForm, CollectActionParams, CollectValidationParams, CollectActionForm, CollectActionDetail, IActionPlugin, FilterObject, BitmaskFilter, NthFilter, Filter, FilterArray, AbiFilter, AbstractAbiFilter, AbiParamFilter, ArrayOperator, LogicalOperator, NumericOperator, StringOperator, FilterOperator, TransactionFilter, DisctriminatedActionParams, Quest, QuestReward, QuestAndReward, RewardType, NetworkWithChainId, Reward, Task, QuestDetails, RewardWithClaim, QuestInputActionParamsAmountOperator, BridgeActionDetail, SwapActionDetail, DelegateActionDetail, DelegateActionForm, StakeActionDetail, MintActionDetail, MintActionForm, VoteActionDetail, VoteActionForm, OptionsActionDetail, OptionsActionForm, ActionParamsForm, CreateQuestInput, QuestActionParamsByType, FollowValidationParams, FollowActionDetail, FollowActionForm, RecastValidationParams, RecastActionDetail, RecastActionForm, ValidationParams, ActionValidation, PluginActionPayload, PluginActionValidation, QuestCompletionPayload, PremintActionParams, PremintValidationParams, PremintActionDetail, PremintActionForm, } from './types'; | ||
export { ActionType, OrderType, GetQuestsResponseSchema, NetworkWithChainIdSchema, QuestDetailsSchema, RewardWithClaimSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, CreateQuestInputSchema, EthAddressSchema, QuestActionParamsSchema, NetworkNameSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, RecastActionFormSchema, RecastActionDetailSchema, RecastValidationParamsSchema, CollectActionFormSchema, CollectActionDetailSchema, CollectValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, PremintValidationParamsSchema, PremintActionDetailSchema, PremintActionFormSchema, } from './types'; | ||
export { ActionType, OrderType, GetQuestsResponseSchema, NetworkWithChainIdSchema, QuestDetailsSchema, RewardWithClaimSchema, QuestInputActionParamsAmountOperatorEnum, QuestInputActionParamsAmountOperatorWithoutAny, BridgeActionDetailSchema, SwapActionDetailSchema, DelegateActionFormSchema, DelegateActionDetailSchema, StakeActionDetailSchema, BridgeActionFormSchema, SwapActionFormSchema, BaseStakeActionFormaSchema, StakeActionFormSchema, MintActionFormSchema, MintActionDetailSchema, VoteActionFormSchema, VoteActionDetailSchema, OptionsActionFormSchema, OptionsActionDetailSchema, ActionParamsFormSchema, CreateQuestInputSchema, EthAddressSchema, QuestActionParamsSchema, NetworkNameSchema, FollowActionFormSchema, FollowActionDetailSchema, FollowValidationParamsSchema, RecastActionFormSchema, RecastActionDetailSchema, RecastValidationParamsSchema, CollectActionFormSchema, CollectActionDetailSchema, CollectValidationParamsSchema, ActionParamsSchema, ValidationParamsSchema, ActionValidationSchema, PluginActionValidationSchema, PremintValidationParamsSchema, PremintActionDetailSchema, PremintActionFormSchema, NumericSchema, NumericOperatorSchema, BitmaskFilterSchema, StringOperatorSchema, ArrayOperatorSchema, LogicalOperatorSchema, FilterOperatorSchema, TransactionFilterSchema, PrimitiveSchema, FilterObjectSchema, AbiFilterSchema, AbstractAbiFilterSchema, AbiParamFilterSchema, FilterSchema, FilterArraySchema, NthFilterSchema, } from './types'; | ||
export { PluginActionNotImplementedError, ValidationNotValid, } from './errors'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { Abi, Transaction } from 'viem'; | ||
import { z } from 'zod'; | ||
export declare const NumericSchema: z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>; | ||
export type NumericOperator = bigint | number | string | { | ||
$gt?: bigint | string | number; | ||
} | { | ||
$gte?: bigint | string | number; | ||
} | { | ||
$lt?: bigint | string | number; | ||
} | { | ||
$lte?: bigint | string | number; | ||
}; | ||
export declare const NumericOperatorSchema: z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString, z.ZodObject<{ | ||
$gt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gt?: string | number | bigint | undefined; | ||
}, { | ||
$gt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$gte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gte?: string | number | bigint | undefined; | ||
}, { | ||
$gte?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lt?: string | number | bigint | undefined; | ||
}, { | ||
$lt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lte?: string | number | bigint | undefined; | ||
}, { | ||
$lte?: string | number | bigint | undefined; | ||
}>]>; | ||
export type BitmaskFilter = { | ||
bitmask: bigint | number | string; | ||
value: bigint | number | string | NumericOperator; | ||
}; | ||
export declare const BitmaskFilterSchema: z.ZodObject<{ | ||
bitmask: z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>; | ||
value: z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString, z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString, z.ZodObject<{ | ||
$gt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gt?: string | number | bigint | undefined; | ||
}, { | ||
$gt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$gte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gte?: string | number | bigint | undefined; | ||
}, { | ||
$gte?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lt?: string | number | bigint | undefined; | ||
}, { | ||
$lt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lte?: string | number | bigint | undefined; | ||
}, { | ||
$lte?: string | number | bigint | undefined; | ||
}>]>]>; | ||
}, "strip", z.ZodTypeAny, { | ||
value: string | number | bigint | { | ||
$gt?: string | number | bigint | undefined; | ||
} | { | ||
$gte?: string | number | bigint | undefined; | ||
} | { | ||
$lt?: string | number | bigint | undefined; | ||
} | { | ||
$lte?: string | number | bigint | undefined; | ||
}; | ||
bitmask: string | number | bigint; | ||
}, { | ||
value: string | number | bigint | { | ||
$gt?: string | number | bigint | undefined; | ||
} | { | ||
$gte?: string | number | bigint | undefined; | ||
} | { | ||
$lt?: string | number | bigint | undefined; | ||
} | { | ||
$lte?: string | number | bigint | undefined; | ||
}; | ||
bitmask: string | number | bigint; | ||
}>; | ||
export type StringOperator = { | ||
$regex?: string; | ||
}; | ||
export declare const StringOperatorSchema: z.ZodObject<{ | ||
$regex: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
$regex?: string | undefined; | ||
}, { | ||
$regex?: string | undefined; | ||
}>; | ||
export type FilterOperator = LogicalOperator | NumericOperator | ArrayOperator | StringOperator; | ||
export type ArrayOperator = { | ||
@@ -11,2 +112,3 @@ $some?: FilterOperator[]; | ||
}; | ||
export declare const ArrayOperatorSchema: z.ZodType<ArrayOperator>; | ||
export type LogicalOperator = { | ||
@@ -17,42 +119,1172 @@ $and?: FilterOperator[]; | ||
}; | ||
export type NumericOperator = bigint | number | string | { | ||
$gt?: bigint | string | number; | ||
} | { | ||
$gte?: bigint | string | number; | ||
} | { | ||
$lt?: bigint | string | number; | ||
} | { | ||
$lte?: bigint | string | number; | ||
}; | ||
export type StringOperator = { | ||
$regex?: string; | ||
}; | ||
export type FilterOperator = LogicalOperator | NumericOperator | ArrayOperator | StringOperator; | ||
export declare const LogicalOperatorSchema: z.ZodType<LogicalOperator>; | ||
export declare const FilterOperatorSchema: z.ZodUnion<[z.ZodType<LogicalOperator, z.ZodTypeDef, LogicalOperator>, z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString, z.ZodObject<{ | ||
$gt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gt?: string | number | bigint | undefined; | ||
}, { | ||
$gt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$gte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gte?: string | number | bigint | undefined; | ||
}, { | ||
$gte?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lt?: string | number | bigint | undefined; | ||
}, { | ||
$lt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lte?: string | number | bigint | undefined; | ||
}, { | ||
$lte?: string | number | bigint | undefined; | ||
}>]>, z.ZodType<ArrayOperator, z.ZodTypeDef, ArrayOperator>, z.ZodObject<{ | ||
$regex: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
$regex?: string | undefined; | ||
}, { | ||
$regex?: string | undefined; | ||
}>]>; | ||
export type TransactionFilter = { | ||
[K in keyof Transaction]: FilterOperator; | ||
}; | ||
export declare const TransactionFilterSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<LogicalOperator, z.ZodTypeDef, LogicalOperator>, z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString, z.ZodObject<{ | ||
$gt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gt?: string | number | bigint | undefined; | ||
}, { | ||
$gt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$gte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gte?: string | number | bigint | undefined; | ||
}, { | ||
$gte?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lt?: string | number | bigint | undefined; | ||
}, { | ||
$lt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lte?: string | number | bigint | undefined; | ||
}, { | ||
$lte?: string | number | bigint | undefined; | ||
}>]>, z.ZodType<ArrayOperator, z.ZodTypeDef, ArrayOperator>, z.ZodObject<{ | ||
$regex: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
$regex?: string | undefined; | ||
}, { | ||
$regex?: string | undefined; | ||
}>]>>; | ||
type Primitive = string | number | boolean; | ||
export declare const PrimitiveSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>; | ||
export type FilterObject = { | ||
[key: string]: Filter; | ||
}; | ||
export type BitmaskFilter = { | ||
bitmask: bigint | number | string; | ||
value: bigint | number | string | NumericOperator; | ||
}; | ||
export type NthFilter = { | ||
index: bigint | number | string; | ||
value: TransactionFilter | FilterObject; | ||
}; | ||
export type Filter = Primitive | FilterObject | FilterArray | Abi; | ||
export type FilterArray = Filter[]; | ||
export declare const FilterObjectSchema: z.ZodType<FilterObject>; | ||
export interface AbiFilter extends FilterObject { | ||
$abi: Abi; | ||
} | ||
export declare const AbiFilterSchema: z.ZodObject<{ | ||
$abi: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, "strip", z.ZodLazy<any>, z.objectOutputType<{ | ||
$abi: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, z.ZodLazy<any>, "strip">, z.objectInputType<{ | ||
$abi: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, z.ZodLazy<any>, "strip">>; | ||
export interface AbstractAbiFilter extends FilterObject { | ||
$abiAbstract: Abi; | ||
} | ||
export declare const AbstractAbiFilterSchema: z.ZodObject<{ | ||
$abiAbstract: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, "strip", z.ZodLazy<any>, z.objectOutputType<{ | ||
$abiAbstract: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, z.ZodLazy<any>, "strip">, z.objectInputType<{ | ||
$abiAbstract: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, z.ZodLazy<any>, "strip">>; | ||
export interface AbiParamFilter extends FilterObject { | ||
$abiParams: string[]; | ||
} | ||
export declare const AbiParamFilterSchema: z.ZodObject<{ | ||
$abiParams: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, "strip", z.ZodLazy<any>, z.objectOutputType<{ | ||
$abiParams: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, z.ZodLazy<any>, "strip">, z.objectInputType<{ | ||
$abiParams: z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"error">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "error"; | ||
name: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
anonymous: z.ZodOptional<z.ZodBoolean>; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiEventParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiEventParameter>, "many">>; | ||
name: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiEventParameter[]; | ||
type: "event"; | ||
name: string; | ||
anonymous?: boolean | undefined; | ||
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{ | ||
constant: z.ZodOptional<z.ZodBoolean>; | ||
gas: z.ZodOptional<z.ZodNumber>; | ||
payable: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"function">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
name: z.ZodString; | ||
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"constructor">; | ||
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype/dist/types/abi").AbiParameter, z.ZodTypeDef, import("abitype/dist/types/abi").AbiParameter>, "many">>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}, { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"fallback">; | ||
inputs: z.ZodOptional<z.ZodTuple<[], null>>; | ||
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}, { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"receive">; | ||
stateMutability: z.ZodLiteral<"payable">; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}, { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}>]>>, { | ||
payable?: boolean | undefined; | ||
constant?: boolean | undefined; | ||
gas?: number | undefined; | ||
} & ({ | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
outputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "function"; | ||
name: string; | ||
stateMutability: "pure" | "view" | "nonpayable" | "payable"; | ||
} | { | ||
inputs: readonly import("abitype/dist/types/abi").AbiParameter[]; | ||
type: "constructor"; | ||
stateMutability: "nonpayable" | "payable"; | ||
} | { | ||
type: "fallback"; | ||
stateMutability: "nonpayable" | "payable"; | ||
inputs?: [] | undefined; | ||
} | { | ||
type: "receive"; | ||
stateMutability: "payable"; | ||
}), unknown>]>, "many">>; | ||
}, z.ZodLazy<any>, "strip">>; | ||
export type Filter = Primitive | FilterObject | FilterArray | FilterOperator | Abi; | ||
export declare const FilterSchema: any; | ||
export type FilterArray = Filter[]; | ||
export declare const FilterArraySchema: any; | ||
export type NthFilter = { | ||
index: bigint | number | string; | ||
value: TransactionFilter | FilterObject; | ||
}; | ||
export declare const NthFilterSchema: z.ZodObject<{ | ||
index: z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>; | ||
value: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<LogicalOperator, z.ZodTypeDef, LogicalOperator>, z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString, z.ZodObject<{ | ||
$gt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gt?: string | number | bigint | undefined; | ||
}, { | ||
$gt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$gte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$gte?: string | number | bigint | undefined; | ||
}, { | ||
$gte?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lt: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lt?: string | number | bigint | undefined; | ||
}, { | ||
$lt?: string | number | bigint | undefined; | ||
}>, z.ZodObject<{ | ||
$lte: z.ZodOptional<z.ZodUnion<[z.ZodBigInt, z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
$lte?: string | number | bigint | undefined; | ||
}, { | ||
$lte?: string | number | bigint | undefined; | ||
}>]>, z.ZodType<ArrayOperator, z.ZodTypeDef, ArrayOperator>, z.ZodObject<{ | ||
$regex: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
$regex?: string | undefined; | ||
}, { | ||
$regex?: string | undefined; | ||
}>]>>, z.ZodType<FilterObject, z.ZodTypeDef, FilterObject>]>; | ||
}, "strip", z.ZodTypeAny, { | ||
value: Record<string, string | number | bigint | { | ||
$gt?: string | number | bigint | undefined; | ||
} | { | ||
$gte?: string | number | bigint | undefined; | ||
} | { | ||
$lt?: string | number | bigint | undefined; | ||
} | { | ||
$lte?: string | number | bigint | undefined; | ||
} | { | ||
$regex?: string | undefined; | ||
} | LogicalOperator | ArrayOperator> | FilterObject; | ||
index: string | number | bigint; | ||
}, { | ||
value: Record<string, string | number | bigint | { | ||
$gt?: string | number | bigint | undefined; | ||
} | { | ||
$gte?: string | number | bigint | undefined; | ||
} | { | ||
$lt?: string | number | bigint | undefined; | ||
} | { | ||
$lte?: string | number | bigint | undefined; | ||
} | { | ||
$regex?: string | undefined; | ||
} | LogicalOperator | ArrayOperator> | FilterObject; | ||
index: string | number | bigint; | ||
}>; | ||
export {}; | ||
//# sourceMappingURL=filters.d.ts.map |
@@ -7,4 +7,5 @@ export type { IntentParams, MintIntentParams } from './intents'; | ||
export type { FilterObject, BitmaskFilter, NthFilter, Filter, FilterArray, AbiFilter, AbstractAbiFilter, AbiParamFilter, ArrayOperator, LogicalOperator, NumericOperator, StringOperator, FilterOperator, TransactionFilter, } from './filters'; | ||
export { NumericSchema, NumericOperatorSchema, BitmaskFilterSchema, StringOperatorSchema, ArrayOperatorSchema, LogicalOperatorSchema, FilterOperatorSchema, TransactionFilterSchema, PrimitiveSchema, FilterObjectSchema, AbiFilterSchema, AbstractAbiFilterSchema, AbiParamFilterSchema, FilterSchema, FilterArraySchema, NthFilterSchema, } from './filters'; | ||
export type { Quest, QuestReward, QuestAndReward, RewardType, NetworkWithChainId, Reward, Task, QuestDetails, RewardWithClaim, CreateQuestInput, QuestActionParamsByType, QuestCompletionPayload, } from './quests'; | ||
export { GetQuestsResponseSchema, NetworkWithChainIdSchema, QuestDetailsSchema, RewardWithClaimSchema, CreateQuestInputSchema, } from './quests'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@rabbitholegg/questdk-plugin-utils", | ||
"version": "1.0.0-alpha.46", | ||
"version": "1.0.0-alpha.47", | ||
"exports": { | ||
@@ -13,2 +13,5 @@ "require": "./dist/cjs/index.js", | ||
"typings": "./dist/types/index.d.ts", | ||
"dependencies": { | ||
"abitype": "^1.0.6" | ||
}, | ||
"scripts": { | ||
@@ -15,0 +18,0 @@ "build": "vite build && tsc --project tsconfig.build.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./dist/types", |
@@ -143,2 +143,19 @@ export { | ||
PremintActionFormSchema, | ||
// Filter Schemas | ||
NumericSchema, | ||
NumericOperatorSchema, | ||
BitmaskFilterSchema, | ||
StringOperatorSchema, | ||
ArrayOperatorSchema, | ||
LogicalOperatorSchema, | ||
FilterOperatorSchema, | ||
TransactionFilterSchema, | ||
PrimitiveSchema, | ||
FilterObjectSchema, | ||
AbiFilterSchema, | ||
AbstractAbiFilterSchema, | ||
AbiParamFilterSchema, | ||
FilterSchema, | ||
FilterArraySchema, | ||
NthFilterSchema, | ||
} from './types' | ||
@@ -145,0 +162,0 @@ |
@@ -7,3 +7,8 @@ import { | ||
} from 'viem' | ||
import type { FilterOperator, TransactionFilter } from './filters' | ||
import { | ||
FilterOperatorSchema, | ||
NumericSchema, | ||
type FilterOperator, | ||
type TransactionFilter, | ||
} from './filters' | ||
import { PluginActionNotImplementedError } from '../errors' | ||
@@ -215,25 +220,6 @@ import type { MintIntentParams } from './intents' | ||
tokenId: z.number().optional(), | ||
amount: z.string().optional(), | ||
amount: z.union([NumericSchema, FilterOperatorSchema]), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
}) | ||
export const NumericSchema = z.union([z.bigint(), z.string(), z.number()]) | ||
export const AmountSchema = z.union([ | ||
z.bigint(), | ||
z.number(), | ||
z.string(), | ||
z.object({ | ||
$gt: NumericSchema.optional(), | ||
}), | ||
z.object({ | ||
$gte: NumericSchema.optional(), | ||
}), | ||
z.object({ | ||
$lt: NumericSchema.optional(), | ||
}), | ||
z.object({ | ||
$lte: NumericSchema.optional(), | ||
}), | ||
]) | ||
export const MintActionDetailSchema = z.object({ | ||
@@ -243,3 +229,3 @@ chainId: z.number(), | ||
tokenId: z.number().optional(), | ||
amount: AmountSchema, | ||
amount: z.union([NumericSchema, FilterOperatorSchema]), | ||
amountOperator: QuestInputActionParamsAmountOperatorEnum.optional(), | ||
@@ -246,0 +232,0 @@ }) |
@@ -0,25 +1,8 @@ | ||
// eslint-disable-next-line import/no-internal-modules | ||
import { Abi as AbiSchema } from 'abitype/zod' | ||
import type { Abi, Transaction } from 'viem' | ||
import { z } from 'zod' | ||
export type ArrayOperator = | ||
| { | ||
$some?: FilterOperator[] | ||
} | ||
| { | ||
$first?: FilterOperator | ||
} | ||
| { | ||
$last?: FilterOperator | ||
} | ||
| { | ||
$nth?: NthFilter | ||
} | ||
export const NumericSchema = z.union([z.bigint(), z.string(), z.number()]) | ||
export type LogicalOperator = | ||
| { | ||
$and?: FilterOperator[] | ||
} | ||
| { | ||
$or?: FilterOperator[] | ||
} | ||
export type NumericOperator = | ||
@@ -42,2 +25,30 @@ | bigint | ||
export const NumericOperatorSchema = z.union([ | ||
z.bigint(), | ||
z.number(), | ||
z.string(), | ||
z.object({ | ||
$gt: NumericSchema.optional(), | ||
}), | ||
z.object({ | ||
$gte: NumericSchema.optional(), | ||
}), | ||
z.object({ | ||
$lt: NumericSchema.optional(), | ||
}), | ||
z.object({ | ||
$lte: NumericSchema.optional(), | ||
}), | ||
]) | ||
export type BitmaskFilter = { | ||
bitmask: bigint | number | string | ||
value: bigint | number | string | NumericOperator | ||
} | ||
export const BitmaskFilterSchema = z.object({ | ||
bitmask: z.union([z.bigint(), z.number(), z.string()]), | ||
value: z.union([z.bigint(), z.number(), z.string(), NumericOperatorSchema]), | ||
}) | ||
export type StringOperator = { | ||
@@ -47,2 +58,6 @@ $regex?: string | ||
export const StringOperatorSchema = z.object({ | ||
$regex: z.string().optional(), | ||
}) | ||
export type FilterOperator = | ||
@@ -54,2 +69,58 @@ | LogicalOperator | ||
export type ArrayOperator = | ||
| { | ||
$some?: FilterOperator[] | ||
} | ||
| { | ||
$first?: FilterOperator | ||
} | ||
| { | ||
$last?: FilterOperator | ||
} | ||
| { | ||
$nth?: NthFilter | ||
} | ||
export const ArrayOperatorSchema: z.ZodType<ArrayOperator> = z.union([ | ||
z.object({ | ||
$some: z | ||
.lazy(() => FilterOperatorSchema) | ||
.array() | ||
.optional(), | ||
}), | ||
z.object({ $first: z.lazy(() => FilterOperatorSchema).optional() }), | ||
z.object({ $last: z.lazy(() => FilterOperatorSchema).optional() }), | ||
z.object({ $nth: z.lazy(() => NthFilterSchema).optional() }), | ||
]) | ||
export type LogicalOperator = | ||
| { | ||
$and?: FilterOperator[] | ||
} | ||
| { | ||
$or?: FilterOperator[] | ||
} | ||
export const LogicalOperatorSchema: z.ZodType<LogicalOperator> = z.union([ | ||
z.object({ | ||
$and: z | ||
.lazy(() => FilterOperatorSchema) | ||
.array() | ||
.optional(), | ||
}), | ||
z.object({ | ||
$or: z | ||
.lazy(() => FilterOperatorSchema) | ||
.array() | ||
.optional(), | ||
}), | ||
]) | ||
export const FilterOperatorSchema = z.union([ | ||
LogicalOperatorSchema, | ||
NumericOperatorSchema, | ||
ArrayOperatorSchema, | ||
StringOperatorSchema, | ||
]) | ||
export type TransactionFilter = { | ||
@@ -59,19 +130,27 @@ [K in keyof Transaction]: FilterOperator | ||
export const TransactionFilterSchema = z.record( | ||
z.string(), | ||
FilterOperatorSchema, | ||
) | ||
type Primitive = string | number | boolean | ||
export const PrimitiveSchema = z.union([z.string(), z.number(), z.boolean()]) | ||
export type FilterObject = { | ||
[key: string]: Filter | ||
} | ||
export type BitmaskFilter = { | ||
bitmask: bigint | number | string | ||
value: bigint | number | string | NumericOperator | ||
} | ||
export type NthFilter = { | ||
index: bigint | number | string | ||
value: TransactionFilter | FilterObject | ||
} | ||
export type Filter = Primitive | FilterObject | FilterArray | Abi | ||
export type FilterArray = Filter[] | ||
export const FilterObjectSchema: z.ZodType<FilterObject> = z.record( | ||
z.string(), | ||
z.lazy(() => FilterSchema), | ||
) | ||
export interface AbiFilter extends FilterObject { | ||
$abi: Abi | ||
} | ||
export const AbiFilterSchema = z | ||
.object({ | ||
$abi: AbiSchema, | ||
}) | ||
.catchall(z.lazy(() => FilterSchema)) | ||
@@ -81,4 +160,42 @@ export interface AbstractAbiFilter extends FilterObject { | ||
} | ||
export const AbstractAbiFilterSchema = z | ||
.object({ | ||
$abiAbstract: AbiSchema, | ||
}) | ||
.catchall(z.lazy(() => FilterSchema)) | ||
export interface AbiParamFilter extends FilterObject { | ||
$abiParams: string[] | ||
} | ||
export const AbiParamFilterSchema = z | ||
.object({ | ||
$abiParams: AbiSchema, | ||
}) | ||
.catchall(z.lazy(() => FilterSchema)) | ||
export type Filter = | ||
| Primitive | ||
| FilterObject | ||
| FilterArray | ||
| FilterOperator | ||
| Abi | ||
export const FilterSchema = z.union([ | ||
PrimitiveSchema, | ||
FilterObjectSchema, | ||
FilterOperatorSchema, | ||
z.lazy(() => FilterSchema.array()), | ||
AbiSchema, | ||
]) | ||
export type FilterArray = Filter[] | ||
export const FilterArraySchema = FilterSchema.array() | ||
export type NthFilter = { | ||
index: bigint | number | string | ||
value: TransactionFilter | FilterObject | ||
} | ||
export const NthFilterSchema = z.object({ | ||
index: z.union([z.bigint(), z.number(), z.string()]), | ||
value: z.union([TransactionFilterSchema, FilterObjectSchema]), | ||
}) |
@@ -120,2 +120,21 @@ export type { IntentParams, MintIntentParams } from './intents' | ||
export { | ||
NumericSchema, | ||
NumericOperatorSchema, | ||
BitmaskFilterSchema, | ||
StringOperatorSchema, | ||
ArrayOperatorSchema, | ||
LogicalOperatorSchema, | ||
FilterOperatorSchema, | ||
TransactionFilterSchema, | ||
PrimitiveSchema, | ||
FilterObjectSchema, | ||
AbiFilterSchema, | ||
AbstractAbiFilterSchema, | ||
AbiParamFilterSchema, | ||
FilterSchema, | ||
FilterArraySchema, | ||
NthFilterSchema, | ||
} from './filters' | ||
export type { | ||
@@ -122,0 +141,0 @@ Quest, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1564464
105
22918
1
+ Addedabitype@^1.0.6
+ Addedabitype@1.0.7(transitive)