@coinbase/cdp-sdk 1.34.1 → 1.35.0
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/CHANGELOG.md +10 -0
- package/README.md +17 -15
- package/_cjs/accounts/evm/networkCapabilities.js +4 -4
- package/_cjs/accounts/evm/networkCapabilities.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js +12 -2
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +8 -2
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/actions/evm/listTokenBalances.js +1 -1
- package/_cjs/actions/evm/listTokenBalances.js.map +1 -1
- package/_cjs/openapi-client/index.js +2 -0
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +52 -9
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/networkCapabilities.js +4 -4
- package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js +12 -2
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +8 -2
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/actions/evm/listTokenBalances.js +1 -1
- package/_esm/actions/evm/listTokenBalances.js.map +1 -1
- package/_esm/openapi-client/index.js +2 -0
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +51 -8
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/networkCapabilities.d.ts +4 -4
- package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts +3 -3
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +3 -0
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +180 -101
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +38 -38
- package/_types/version.d.ts +1 -1
- package/accounts/evm/networkCapabilities.ts +4 -4
- package/accounts/evm/toNetworkScopedEvmServerAccount.ts +18 -5
- package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +15 -4
- package/accounts/evm/types.ts +9 -5
- package/actions/evm/listTokenBalances.ts +1 -1
- package/openapi-client/index.ts +2 -0
- package/package.json +1 -1
- package/policies/evmSchema.ts +66 -9
- package/version.ts +1 -1
|
@@ -78,24 +78,55 @@ export declare const EvmAddressCriterionSchema: z.ZodObject<{
|
|
|
78
78
|
}>;
|
|
79
79
|
export type EvmAddressCriterion = z.infer<typeof EvmAddressCriterionSchema>;
|
|
80
80
|
/**
|
|
81
|
-
* Enum for EVM Network values
|
|
81
|
+
* Enum for PrepareUserOperation EVM Network values
|
|
82
82
|
*/
|
|
83
|
-
export declare const
|
|
83
|
+
export declare const PrepareUserOperationEvmNetworkEnum: z.ZodEnum<["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
84
|
+
export type PrepareUserOperationEvmNetwork = z.infer<typeof PrepareUserOperationEvmNetworkEnum>;
|
|
85
|
+
/**
|
|
86
|
+
* Enum for SendEvmTransaction EVM Network values
|
|
87
|
+
*/
|
|
88
|
+
export declare const SendEvmTransactionEvmNetworkEnum: z.ZodEnum<["base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"]>;
|
|
84
89
|
/**
|
|
85
90
|
* Type representing the valid networks used with CDP transaction API's.
|
|
86
91
|
*/
|
|
87
|
-
export type EvmNetwork = z.
|
|
92
|
+
export type EvmNetwork = z.ZodUnion<[
|
|
93
|
+
typeof SendEvmTransactionEvmNetworkEnum,
|
|
94
|
+
typeof PrepareUserOperationEvmNetworkEnum
|
|
95
|
+
]>;
|
|
88
96
|
/**
|
|
89
97
|
* Schema for EVM network criterions
|
|
90
98
|
*/
|
|
91
|
-
export declare const
|
|
99
|
+
export declare const SendEvmTransactionEvmNetworkCriterionSchema: z.ZodObject<{
|
|
100
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
101
|
+
type: z.ZodLiteral<"evmNetwork">;
|
|
102
|
+
/**
|
|
103
|
+
* Array of EVM network identifiers to compare against.
|
|
104
|
+
* Either "base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"
|
|
105
|
+
*/
|
|
106
|
+
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"]>, "many">;
|
|
107
|
+
/**
|
|
108
|
+
* The operator to use for evaluating transaction network.
|
|
109
|
+
* "in" checks if a network is in the provided list.
|
|
110
|
+
* "not in" checks if a network is not in the provided list.
|
|
111
|
+
*/
|
|
112
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
type: "evmNetwork";
|
|
115
|
+
operator: "in" | "not in";
|
|
116
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
117
|
+
}, {
|
|
118
|
+
type: "evmNetwork";
|
|
119
|
+
operator: "in" | "not in";
|
|
120
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
121
|
+
}>;
|
|
122
|
+
export declare const PrepareUserOperationEvmNetworkCriterionSchema: z.ZodObject<{
|
|
92
123
|
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
93
124
|
type: z.ZodLiteral<"evmNetwork">;
|
|
94
125
|
/**
|
|
95
126
|
* Array of EVM network identifiers to compare against.
|
|
96
|
-
* Either "base"
|
|
127
|
+
* Either "base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"
|
|
97
128
|
*/
|
|
98
|
-
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia"]>, "many">;
|
|
129
|
+
networks: z.ZodArray<z.ZodEnum<["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>, "many">;
|
|
99
130
|
/**
|
|
100
131
|
* The operator to use for evaluating transaction network.
|
|
101
132
|
* "in" checks if a network is in the provided list.
|
|
@@ -105,13 +136,61 @@ export declare const EvmNetworkCriterionSchema: z.ZodObject<{
|
|
|
105
136
|
}, "strip", z.ZodTypeAny, {
|
|
106
137
|
type: "evmNetwork";
|
|
107
138
|
operator: "in" | "not in";
|
|
108
|
-
networks: ("base-sepolia" | "base")[];
|
|
139
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
109
140
|
}, {
|
|
110
141
|
type: "evmNetwork";
|
|
111
142
|
operator: "in" | "not in";
|
|
112
|
-
networks: ("base-sepolia" | "base")[];
|
|
143
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
113
144
|
}>;
|
|
114
|
-
export
|
|
145
|
+
export declare const EvmNetworkCriterionSchema: z.ZodUnion<[z.ZodObject<{
|
|
146
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
147
|
+
type: z.ZodLiteral<"evmNetwork">;
|
|
148
|
+
/**
|
|
149
|
+
* Array of EVM network identifiers to compare against.
|
|
150
|
+
* Either "base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"
|
|
151
|
+
*/
|
|
152
|
+
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"]>, "many">;
|
|
153
|
+
/**
|
|
154
|
+
* The operator to use for evaluating transaction network.
|
|
155
|
+
* "in" checks if a network is in the provided list.
|
|
156
|
+
* "not in" checks if a network is not in the provided list.
|
|
157
|
+
*/
|
|
158
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
type: "evmNetwork";
|
|
161
|
+
operator: "in" | "not in";
|
|
162
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
163
|
+
}, {
|
|
164
|
+
type: "evmNetwork";
|
|
165
|
+
operator: "in" | "not in";
|
|
166
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
167
|
+
}>, z.ZodObject<{
|
|
168
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
169
|
+
type: z.ZodLiteral<"evmNetwork">;
|
|
170
|
+
/**
|
|
171
|
+
* Array of EVM network identifiers to compare against.
|
|
172
|
+
* Either "base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"
|
|
173
|
+
*/
|
|
174
|
+
networks: z.ZodArray<z.ZodEnum<["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>, "many">;
|
|
175
|
+
/**
|
|
176
|
+
* The operator to use for evaluating transaction network.
|
|
177
|
+
* "in" checks if a network is in the provided list.
|
|
178
|
+
* "not in" checks if a network is not in the provided list.
|
|
179
|
+
*/
|
|
180
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
type: "evmNetwork";
|
|
183
|
+
operator: "in" | "not in";
|
|
184
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
185
|
+
}, {
|
|
186
|
+
type: "evmNetwork";
|
|
187
|
+
operator: "in" | "not in";
|
|
188
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
189
|
+
}>]>;
|
|
190
|
+
export type EvmNetworkCriterion = z.ZodUnion<[
|
|
191
|
+
typeof SendEvmTransactionEvmNetworkCriterionSchema,
|
|
192
|
+
typeof PrepareUserOperationEvmNetworkCriterionSchema
|
|
193
|
+
]>;
|
|
115
194
|
/**
|
|
116
195
|
* Schema for EVM message criterions
|
|
117
196
|
*/
|
|
@@ -762,11 +841,7 @@ export declare const EvmDataCriterionSchema: z.ZodObject<{
|
|
|
762
841
|
*/
|
|
763
842
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
764
843
|
type: z.ZodLiteral<"error">;
|
|
765
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
766
|
-
/**
|
|
767
|
-
* Schema for SignEvmTypedData field criterion
|
|
768
|
-
*/
|
|
769
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
844
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
770
845
|
name: z.ZodString;
|
|
771
846
|
}, "strip", z.ZodTypeAny, {
|
|
772
847
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -794,7 +869,7 @@ export declare const EvmDataCriterionSchema: z.ZodObject<{
|
|
|
794
869
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
795
870
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
796
871
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
797
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
872
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
798
873
|
}, "strip", z.ZodTypeAny, {
|
|
799
874
|
payable?: boolean | undefined;
|
|
800
875
|
constant?: boolean | undefined;
|
|
@@ -805,7 +880,7 @@ export declare const EvmDataCriterionSchema: z.ZodObject<{
|
|
|
805
880
|
gas?: number | undefined;
|
|
806
881
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
807
882
|
type: z.ZodLiteral<"function">;
|
|
808
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
883
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
809
884
|
name: z.ZodString;
|
|
810
885
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
811
886
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -836,7 +911,11 @@ export declare const EvmDataCriterionSchema: z.ZodObject<{
|
|
|
836
911
|
}>, z.ZodObject<{
|
|
837
912
|
type: z.ZodLiteral<"fallback">;
|
|
838
913
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
839
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
914
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
915
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
916
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
917
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
918
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
840
919
|
}, "strip", z.ZodTypeAny, {
|
|
841
920
|
type: "fallback";
|
|
842
921
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -1076,11 +1155,7 @@ export declare const SignEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1076
1155
|
*/
|
|
1077
1156
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1078
1157
|
type: z.ZodLiteral<"error">;
|
|
1079
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
1080
|
-
/**
|
|
1081
|
-
* Schema for SignEvmTypedData field criterion
|
|
1082
|
-
*/
|
|
1083
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1158
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1084
1159
|
name: z.ZodString;
|
|
1085
1160
|
}, "strip", z.ZodTypeAny, {
|
|
1086
1161
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -1108,7 +1183,7 @@ export declare const SignEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1108
1183
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
1109
1184
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
1110
1185
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
1111
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
1186
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
1112
1187
|
}, "strip", z.ZodTypeAny, {
|
|
1113
1188
|
payable?: boolean | undefined;
|
|
1114
1189
|
constant?: boolean | undefined;
|
|
@@ -1119,7 +1194,7 @@ export declare const SignEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1119
1194
|
gas?: number | undefined;
|
|
1120
1195
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1121
1196
|
type: z.ZodLiteral<"function">;
|
|
1122
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
1197
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1123
1198
|
name: z.ZodString;
|
|
1124
1199
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1125
1200
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -1150,7 +1225,11 @@ export declare const SignEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1150
1225
|
}>, z.ZodObject<{
|
|
1151
1226
|
type: z.ZodLiteral<"fallback">;
|
|
1152
1227
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
1153
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
1228
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
1229
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
1230
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
1231
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
1232
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
1154
1233
|
}, "strip", z.ZodTypeAny, {
|
|
1155
1234
|
type: "fallback";
|
|
1156
1235
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -1433,9 +1512,9 @@ export declare const SendEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1433
1512
|
type: z.ZodLiteral<"evmNetwork">;
|
|
1434
1513
|
/**
|
|
1435
1514
|
* Array of EVM network identifiers to compare against.
|
|
1436
|
-
* Either "base"
|
|
1515
|
+
* Either "base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"
|
|
1437
1516
|
*/
|
|
1438
|
-
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia"]>, "many">;
|
|
1517
|
+
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"]>, "many">;
|
|
1439
1518
|
/**
|
|
1440
1519
|
* The operator to use for evaluating transaction network.
|
|
1441
1520
|
* "in" checks if a network is in the provided list.
|
|
@@ -1445,11 +1524,11 @@ export declare const SendEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1445
1524
|
}, "strip", z.ZodTypeAny, {
|
|
1446
1525
|
type: "evmNetwork";
|
|
1447
1526
|
operator: "in" | "not in";
|
|
1448
|
-
networks: ("base-sepolia" | "base")[];
|
|
1527
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
1449
1528
|
}, {
|
|
1450
1529
|
type: "evmNetwork";
|
|
1451
1530
|
operator: "in" | "not in";
|
|
1452
|
-
networks: ("base-sepolia" | "base")[];
|
|
1531
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
1453
1532
|
}>, z.ZodObject<{
|
|
1454
1533
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
1455
1534
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -1458,11 +1537,7 @@ export declare const SendEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1458
1537
|
*/
|
|
1459
1538
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1460
1539
|
type: z.ZodLiteral<"error">;
|
|
1461
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
1462
|
-
/**
|
|
1463
|
-
* Schema for SignEvmTypedData field criterion
|
|
1464
|
-
*/
|
|
1465
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1540
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1466
1541
|
name: z.ZodString;
|
|
1467
1542
|
}, "strip", z.ZodTypeAny, {
|
|
1468
1543
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -1490,7 +1565,7 @@ export declare const SendEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1490
1565
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
1491
1566
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
1492
1567
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
1493
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
1568
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
1494
1569
|
}, "strip", z.ZodTypeAny, {
|
|
1495
1570
|
payable?: boolean | undefined;
|
|
1496
1571
|
constant?: boolean | undefined;
|
|
@@ -1501,7 +1576,7 @@ export declare const SendEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1501
1576
|
gas?: number | undefined;
|
|
1502
1577
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1503
1578
|
type: z.ZodLiteral<"function">;
|
|
1504
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
1579
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1505
1580
|
name: z.ZodString;
|
|
1506
1581
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1507
1582
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -1532,7 +1607,11 @@ export declare const SendEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1532
1607
|
}>, z.ZodObject<{
|
|
1533
1608
|
type: z.ZodLiteral<"fallback">;
|
|
1534
1609
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
1535
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
1610
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
1611
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
1612
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
1613
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
1614
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
1536
1615
|
}, "strip", z.ZodTypeAny, {
|
|
1537
1616
|
type: "fallback";
|
|
1538
1617
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -1788,9 +1867,9 @@ export declare const PrepareUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
1788
1867
|
type: z.ZodLiteral<"evmNetwork">;
|
|
1789
1868
|
/**
|
|
1790
1869
|
* Array of EVM network identifiers to compare against.
|
|
1791
|
-
* Either "base"
|
|
1870
|
+
* Either "base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"
|
|
1792
1871
|
*/
|
|
1793
|
-
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia"]>, "many">;
|
|
1872
|
+
networks: z.ZodArray<z.ZodEnum<["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>, "many">;
|
|
1794
1873
|
/**
|
|
1795
1874
|
* The operator to use for evaluating transaction network.
|
|
1796
1875
|
* "in" checks if a network is in the provided list.
|
|
@@ -1800,11 +1879,11 @@ export declare const PrepareUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
1800
1879
|
}, "strip", z.ZodTypeAny, {
|
|
1801
1880
|
type: "evmNetwork";
|
|
1802
1881
|
operator: "in" | "not in";
|
|
1803
|
-
networks: ("base-sepolia" | "base")[];
|
|
1882
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
1804
1883
|
}, {
|
|
1805
1884
|
type: "evmNetwork";
|
|
1806
1885
|
operator: "in" | "not in";
|
|
1807
|
-
networks: ("base-sepolia" | "base")[];
|
|
1886
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
1808
1887
|
}>, z.ZodObject<{
|
|
1809
1888
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
1810
1889
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -1813,11 +1892,7 @@ export declare const PrepareUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
1813
1892
|
*/
|
|
1814
1893
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1815
1894
|
type: z.ZodLiteral<"error">;
|
|
1816
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
1817
|
-
/**
|
|
1818
|
-
* Schema for SignEvmTypedData field criterion
|
|
1819
|
-
*/
|
|
1820
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1895
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1821
1896
|
name: z.ZodString;
|
|
1822
1897
|
}, "strip", z.ZodTypeAny, {
|
|
1823
1898
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -1845,7 +1920,7 @@ export declare const PrepareUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
1845
1920
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
1846
1921
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
1847
1922
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
1848
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
1923
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
1849
1924
|
}, "strip", z.ZodTypeAny, {
|
|
1850
1925
|
payable?: boolean | undefined;
|
|
1851
1926
|
constant?: boolean | undefined;
|
|
@@ -1856,7 +1931,7 @@ export declare const PrepareUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
1856
1931
|
gas?: number | undefined;
|
|
1857
1932
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1858
1933
|
type: z.ZodLiteral<"function">;
|
|
1859
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
1934
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1860
1935
|
name: z.ZodString;
|
|
1861
1936
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
1862
1937
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -1887,7 +1962,11 @@ export declare const PrepareUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
1887
1962
|
}>, z.ZodObject<{
|
|
1888
1963
|
type: z.ZodLiteral<"fallback">;
|
|
1889
1964
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
1890
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
1965
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
1966
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
1967
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
1968
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
1969
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
1891
1970
|
}, "strip", z.ZodTypeAny, {
|
|
1892
1971
|
type: "fallback";
|
|
1893
1972
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -2131,11 +2210,7 @@ export declare const SendUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrimina
|
|
|
2131
2210
|
*/
|
|
2132
2211
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2133
2212
|
type: z.ZodLiteral<"error">;
|
|
2134
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
2135
|
-
/**
|
|
2136
|
-
* Schema for SignEvmTypedData field criterion
|
|
2137
|
-
*/
|
|
2138
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2213
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2139
2214
|
name: z.ZodString;
|
|
2140
2215
|
}, "strip", z.ZodTypeAny, {
|
|
2141
2216
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -2163,7 +2238,7 @@ export declare const SendUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrimina
|
|
|
2163
2238
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
2164
2239
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
2165
2240
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
2166
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
2241
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
2167
2242
|
}, "strip", z.ZodTypeAny, {
|
|
2168
2243
|
payable?: boolean | undefined;
|
|
2169
2244
|
constant?: boolean | undefined;
|
|
@@ -2174,7 +2249,7 @@ export declare const SendUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrimina
|
|
|
2174
2249
|
gas?: number | undefined;
|
|
2175
2250
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2176
2251
|
type: z.ZodLiteral<"function">;
|
|
2177
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
2252
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2178
2253
|
name: z.ZodString;
|
|
2179
2254
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2180
2255
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -2205,7 +2280,11 @@ export declare const SendUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrimina
|
|
|
2205
2280
|
}>, z.ZodObject<{
|
|
2206
2281
|
type: z.ZodLiteral<"fallback">;
|
|
2207
2282
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
2208
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
2283
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
2284
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
2285
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
2286
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
2287
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
2209
2288
|
}, "strip", z.ZodTypeAny, {
|
|
2210
2289
|
type: "fallback";
|
|
2211
2290
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -2483,11 +2562,7 @@ export declare const SignEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
2483
2562
|
*/
|
|
2484
2563
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2485
2564
|
type: z.ZodLiteral<"error">;
|
|
2486
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
2487
|
-
/**
|
|
2488
|
-
* Schema for SignEvmTypedData field criterion
|
|
2489
|
-
*/
|
|
2490
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2565
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2491
2566
|
name: z.ZodString;
|
|
2492
2567
|
}, "strip", z.ZodTypeAny, {
|
|
2493
2568
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -2515,7 +2590,7 @@ export declare const SignEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
2515
2590
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
2516
2591
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
2517
2592
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
2518
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
2593
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
2519
2594
|
}, "strip", z.ZodTypeAny, {
|
|
2520
2595
|
payable?: boolean | undefined;
|
|
2521
2596
|
constant?: boolean | undefined;
|
|
@@ -2526,7 +2601,7 @@ export declare const SignEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
2526
2601
|
gas?: number | undefined;
|
|
2527
2602
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2528
2603
|
type: z.ZodLiteral<"function">;
|
|
2529
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
2604
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2530
2605
|
name: z.ZodString;
|
|
2531
2606
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
2532
2607
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -2557,7 +2632,11 @@ export declare const SignEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
2557
2632
|
}>, z.ZodObject<{
|
|
2558
2633
|
type: z.ZodLiteral<"fallback">;
|
|
2559
2634
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
2560
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
2635
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
2636
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
2637
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
2638
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
2639
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
2561
2640
|
}, "strip", z.ZodTypeAny, {
|
|
2562
2641
|
type: "fallback";
|
|
2563
2642
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -3249,9 +3328,9 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3249
3328
|
type: z.ZodLiteral<"evmNetwork">;
|
|
3250
3329
|
/**
|
|
3251
3330
|
* Array of EVM network identifiers to compare against.
|
|
3252
|
-
* Either "base"
|
|
3331
|
+
* Either "base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"
|
|
3253
3332
|
*/
|
|
3254
|
-
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia"]>, "many">;
|
|
3333
|
+
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"]>, "many">;
|
|
3255
3334
|
/**
|
|
3256
3335
|
* The operator to use for evaluating transaction network.
|
|
3257
3336
|
* "in" checks if a network is in the provided list.
|
|
@@ -3261,11 +3340,11 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3261
3340
|
}, "strip", z.ZodTypeAny, {
|
|
3262
3341
|
type: "evmNetwork";
|
|
3263
3342
|
operator: "in" | "not in";
|
|
3264
|
-
networks: ("base-sepolia" | "base")[];
|
|
3343
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
3265
3344
|
}, {
|
|
3266
3345
|
type: "evmNetwork";
|
|
3267
3346
|
operator: "in" | "not in";
|
|
3268
|
-
networks: ("base-sepolia" | "base")[];
|
|
3347
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
3269
3348
|
}>, z.ZodObject<{
|
|
3270
3349
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
3271
3350
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -3274,11 +3353,7 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3274
3353
|
*/
|
|
3275
3354
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
3276
3355
|
type: z.ZodLiteral<"error">;
|
|
3277
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
3278
|
-
/**
|
|
3279
|
-
* Schema for SignEvmTypedData field criterion
|
|
3280
|
-
*/
|
|
3281
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3356
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3282
3357
|
name: z.ZodString;
|
|
3283
3358
|
}, "strip", z.ZodTypeAny, {
|
|
3284
3359
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -3306,7 +3381,7 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3306
3381
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
3307
3382
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
3308
3383
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
3309
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
3384
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
3310
3385
|
}, "strip", z.ZodTypeAny, {
|
|
3311
3386
|
payable?: boolean | undefined;
|
|
3312
3387
|
constant?: boolean | undefined;
|
|
@@ -3317,7 +3392,7 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3317
3392
|
gas?: number | undefined;
|
|
3318
3393
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3319
3394
|
type: z.ZodLiteral<"function">;
|
|
3320
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
3395
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3321
3396
|
name: z.ZodString;
|
|
3322
3397
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3323
3398
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -3348,7 +3423,11 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3348
3423
|
}>, z.ZodObject<{
|
|
3349
3424
|
type: z.ZodLiteral<"fallback">;
|
|
3350
3425
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
3351
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
3426
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
3427
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
3428
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
3429
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
3430
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
3352
3431
|
}, "strip", z.ZodTypeAny, {
|
|
3353
3432
|
type: "fallback";
|
|
3354
3433
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -3568,7 +3647,7 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3568
3647
|
} | {
|
|
3569
3648
|
type: "evmNetwork";
|
|
3570
3649
|
operator: "in" | "not in";
|
|
3571
|
-
networks: ("base-sepolia" | "base")[];
|
|
3650
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
3572
3651
|
} | {
|
|
3573
3652
|
type: "netUSDChange";
|
|
3574
3653
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -3633,7 +3712,7 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
3633
3712
|
} | {
|
|
3634
3713
|
type: "evmNetwork";
|
|
3635
3714
|
operator: "in" | "not in";
|
|
3636
|
-
networks: ("base-sepolia" | "base")[];
|
|
3715
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
3637
3716
|
} | {
|
|
3638
3717
|
type: "netUSDChange";
|
|
3639
3718
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -3721,9 +3800,9 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
3721
3800
|
type: z.ZodLiteral<"evmNetwork">;
|
|
3722
3801
|
/**
|
|
3723
3802
|
* Array of EVM network identifiers to compare against.
|
|
3724
|
-
* Either "base"
|
|
3803
|
+
* Either "base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"
|
|
3725
3804
|
*/
|
|
3726
|
-
networks: z.ZodArray<z.ZodEnum<["base", "base-sepolia"]>, "many">;
|
|
3805
|
+
networks: z.ZodArray<z.ZodEnum<["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>, "many">;
|
|
3727
3806
|
/**
|
|
3728
3807
|
* The operator to use for evaluating transaction network.
|
|
3729
3808
|
* "in" checks if a network is in the provided list.
|
|
@@ -3733,11 +3812,11 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
3733
3812
|
}, "strip", z.ZodTypeAny, {
|
|
3734
3813
|
type: "evmNetwork";
|
|
3735
3814
|
operator: "in" | "not in";
|
|
3736
|
-
networks: ("base-sepolia" | "base")[];
|
|
3815
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
3737
3816
|
}, {
|
|
3738
3817
|
type: "evmNetwork";
|
|
3739
3818
|
operator: "in" | "not in";
|
|
3740
|
-
networks: ("base-sepolia" | "base")[];
|
|
3819
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
3741
3820
|
}>, z.ZodObject<{
|
|
3742
3821
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
3743
3822
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -3746,11 +3825,7 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
3746
3825
|
*/
|
|
3747
3826
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
3748
3827
|
type: z.ZodLiteral<"error">;
|
|
3749
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
3750
|
-
/**
|
|
3751
|
-
* Schema for SignEvmTypedData field criterion
|
|
3752
|
-
*/
|
|
3753
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3828
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3754
3829
|
name: z.ZodString;
|
|
3755
3830
|
}, "strip", z.ZodTypeAny, {
|
|
3756
3831
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -3778,7 +3853,7 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
3778
3853
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
3779
3854
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
3780
3855
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
3781
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
3856
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
3782
3857
|
}, "strip", z.ZodTypeAny, {
|
|
3783
3858
|
payable?: boolean | undefined;
|
|
3784
3859
|
constant?: boolean | undefined;
|
|
@@ -3789,7 +3864,7 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
3789
3864
|
gas?: number | undefined;
|
|
3790
3865
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3791
3866
|
type: z.ZodLiteral<"function">;
|
|
3792
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
3867
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3793
3868
|
name: z.ZodString;
|
|
3794
3869
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
3795
3870
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -3820,7 +3895,11 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
3820
3895
|
}>, z.ZodObject<{
|
|
3821
3896
|
type: z.ZodLiteral<"fallback">;
|
|
3822
3897
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
3823
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
3898
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
3899
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
3900
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
3901
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
3902
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
3824
3903
|
}, "strip", z.ZodTypeAny, {
|
|
3825
3904
|
type: "fallback";
|
|
3826
3905
|
stateMutability: "nonpayable" | "payable";
|
|
@@ -4021,7 +4100,7 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
4021
4100
|
} | {
|
|
4022
4101
|
type: "evmNetwork";
|
|
4023
4102
|
operator: "in" | "not in";
|
|
4024
|
-
networks: ("base-sepolia" | "base")[];
|
|
4103
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
4025
4104
|
} | {
|
|
4026
4105
|
type: "evmData";
|
|
4027
4106
|
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
@@ -4082,7 +4161,7 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
4082
4161
|
} | {
|
|
4083
4162
|
type: "evmNetwork";
|
|
4084
4163
|
operator: "in" | "not in";
|
|
4085
|
-
networks: ("base-sepolia" | "base")[];
|
|
4164
|
+
networks: ("base-sepolia" | "base" | "arbitrum" | "optimism" | "zora" | "polygon" | "bnb" | "avalanche" | "ethereum" | "ethereum-sepolia")[];
|
|
4086
4165
|
} | {
|
|
4087
4166
|
type: "evmData";
|
|
4088
4167
|
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
@@ -4169,11 +4248,7 @@ export declare const SendUserOperationRuleSchema: z.ZodObject<{
|
|
|
4169
4248
|
*/
|
|
4170
4249
|
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
4171
4250
|
type: z.ZodLiteral<"error">;
|
|
4172
|
-
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.
|
|
4173
|
-
/**
|
|
4174
|
-
* Schema for SignEvmTypedData field criterion
|
|
4175
|
-
*/
|
|
4176
|
-
ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
4251
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
4177
4252
|
name: z.ZodString;
|
|
4178
4253
|
}, "strip", z.ZodTypeAny, {
|
|
4179
4254
|
inputs: readonly import("abitype").AbiParameter[];
|
|
@@ -4201,7 +4276,7 @@ export declare const SendUserOperationRuleSchema: z.ZodObject<{
|
|
|
4201
4276
|
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
4202
4277
|
constant: z.ZodOptional<z.ZodBoolean>;
|
|
4203
4278
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
4204
|
-
payable: z.ZodOptional<z.ZodBoolean
|
|
4279
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
4205
4280
|
}, "strip", z.ZodTypeAny, {
|
|
4206
4281
|
payable?: boolean | undefined;
|
|
4207
4282
|
constant?: boolean | undefined;
|
|
@@ -4212,7 +4287,7 @@ export declare const SendUserOperationRuleSchema: z.ZodObject<{
|
|
|
4212
4287
|
gas?: number | undefined;
|
|
4213
4288
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4214
4289
|
type: z.ZodLiteral<"function">;
|
|
4215
|
-
inputs: z.ZodReadonly<z.ZodArray
|
|
4290
|
+
inputs: z.ZodReadonly<z.ZodArray /** The type of criterion, must be "evmTypedDataField" for typed data field-based rules. */<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
4216
4291
|
name: z.ZodString;
|
|
4217
4292
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
4218
4293
|
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
@@ -4243,7 +4318,11 @@ export declare const SendUserOperationRuleSchema: z.ZodObject<{
|
|
|
4243
4318
|
}>, z.ZodObject<{
|
|
4244
4319
|
type: z.ZodLiteral<"fallback">;
|
|
4245
4320
|
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
4246
|
-
stateMutability: z.ZodUnion<[z.ZodLiteral
|
|
4321
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral /**
|
|
4322
|
+
* Array of EVM addresses allowed or disallowed as verifying contracts.
|
|
4323
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
4324
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
4325
|
+
*/<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
4247
4326
|
}, "strip", z.ZodTypeAny, {
|
|
4248
4327
|
type: "fallback";
|
|
4249
4328
|
stateMutability: "nonpayable" | "payable";
|