@argent/x-shared 1.72.2 → 1.73.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/dist/src/account/account.model.d.ts +54 -210
- package/dist/src/account/preferences.model.cjs +1 -1
- package/dist/src/account/preferences.model.d.ts +15 -27
- package/dist/src/account/preferences.model.js +3 -3
- package/dist/src/backend/schema.d.ts +8 -2
- package/dist/src/backend/sessionKeys/schema.d.ts +13 -97
- package/dist/src/bigdecimal/createUnitsSchema.d.ts +1 -1
- package/dist/src/chains/starknet/address.cjs +1 -1
- package/dist/src/chains/starknet/address.d.ts +15 -15
- package/dist/src/chains/starknet/address.js +4 -4
- package/dist/src/chains/starknet/addressDomain.d.ts +3 -3
- package/dist/src/chains/starknet/addressInput.d.ts +1 -1
- package/dist/src/chains/starknet/cairoVersionSchema.d.ts +1 -1
- package/dist/src/chains/starknet/getAddressFromArgentName.d.ts +7 -20
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.d.ts +8 -28
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.d.ts +1 -1
- package/dist/src/currencyFetchService/types.ts.d.ts +3 -37
- package/dist/src/features/defiDecomposition/schema.d.ts +676 -15769
- package/dist/src/features/paymaster/types.d.ts +31 -155
- package/dist/src/features/simulation/activity/schema.d.ts +1250 -14920
- package/dist/src/features/simulation/activity/utils/createNativeActivity.d.ts +26 -26
- package/dist/src/features/simulation/fees/schema.d.ts +83 -925
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +889 -26477
- package/dist/src/features/simulation/transactionReview/schema.js +2 -2
- package/dist/src/features/simulation/warning/schema.d.ts +1 -1
- package/dist/src/features/swap/models/order.model.d.ts +8 -38
- package/dist/src/features/swap/models/quote.model.d.ts +15 -61
- package/dist/src/features/swap/models/trade.model.cjs +1 -1
- package/dist/src/features/swap/models/trade.model.d.ts +17 -167
- package/dist/src/features/swap/models/trade.model.js +1 -1
- package/dist/src/http/HttpService.d.ts +1 -1
- package/dist/src/http/IHttpService.d.ts +1 -1
- package/dist/src/knownDapps/schema.d.ts +61 -221
- package/dist/src/nameResolution/ResolveNameService.d.ts +3 -3
- package/dist/src/nameResolution/schema.d.ts +16 -92
- package/dist/src/onchainRecovery/schema.cjs +1 -1
- package/dist/src/onchainRecovery/schema.d.ts +20 -122
- package/dist/src/onchainRecovery/schema.js +10 -10
- package/dist/src/signer/seedphrase.d.ts +1 -1
- package/dist/src/staking/schema.d.ts +234 -2395
- package/dist/src/tokens/service/implementation.d.ts +52 -351
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +634 -15292
- package/dist/src/tokens/service/types/backend.model.js +17 -17
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPosition.model.d.ts +363 -7834
- package/dist/src/tokens/service/types/defiPosition.model.js +2 -2
- package/dist/src/tokens/service/types/defiPositionType.model.d.ts +1 -1
- package/dist/src/tokens/service/types/unclaimedRewards.model.d.ts +14 -250
- package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
- package/dist/src/tokens/service/types/webToken.model.d.ts +40 -345
- package/dist/src/tokens/service/types/webToken.model.js +25 -21
- package/dist/src/transactions/amount.d.ts +1 -1
- package/dist/src/transactions/errors.d.ts +2 -22
- package/dist/src/transactions/estimate/model.d.ts +12 -21
- package/dist/src/transactions/service/types.d.ts +1 -11
- package/dist/src/transactions/transactionExecuteTypes.d.ts +28 -105
- package/dist/src/transactions/transactionVersion.d.ts +1 -1
- package/dist/src/utils/bigNumber.d.ts +1 -1
- package/dist/src/utils/hex.d.ts +1 -1
- package/dist/src/utils/retryUntilInitialised.d.ts +1 -1
- package/dist/src/utils/schemas.cjs +1 -1
- package/dist/src/utils/schemas.d.ts +4 -4
- package/dist/src/utils/schemas.js +10 -10
- package/dist/src/utils/starknet/starknet.cjs +1 -1
- package/dist/src/utils/starknet/starknet.d.ts +39 -149
- package/dist/src/utils/starknet/starknet.js +5 -5
- package/dist/src/utils/starknet/starknetSchemas.d.ts +238 -1880
- package/package.json +2 -2
|
@@ -3,128 +3,51 @@ export declare const transactionPromotionPrizeSchema: z.ZodObject<{
|
|
|
3
3
|
tokenType: z.ZodString;
|
|
4
4
|
tokenAddress: z.ZodString;
|
|
5
5
|
tokenAmount: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
tokenAddress: string;
|
|
8
|
-
tokenType: string;
|
|
9
|
-
tokenAmount: string;
|
|
10
|
-
}, {
|
|
11
|
-
tokenAddress: string;
|
|
12
|
-
tokenType: string;
|
|
13
|
-
tokenAmount: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export declare const transactionPromotionSchema: z.ZodObject<{
|
|
16
|
-
type: z.ZodEnum<
|
|
17
|
-
|
|
8
|
+
type: z.ZodEnum<{
|
|
9
|
+
lootbox: "lootbox";
|
|
10
|
+
}>;
|
|
11
|
+
status: z.ZodEnum<{
|
|
12
|
+
notEligible: "notEligible";
|
|
13
|
+
win: "win";
|
|
14
|
+
loss: "loss";
|
|
15
|
+
disabled: "disabled";
|
|
16
|
+
}>;
|
|
18
17
|
prizes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
19
18
|
tokenType: z.ZodString;
|
|
20
19
|
tokenAddress: z.ZodString;
|
|
21
20
|
tokenAmount: z.ZodString;
|
|
22
|
-
},
|
|
23
|
-
tokenAddress: string;
|
|
24
|
-
tokenType: string;
|
|
25
|
-
tokenAmount: string;
|
|
26
|
-
}, {
|
|
27
|
-
tokenAddress: string;
|
|
28
|
-
tokenType: string;
|
|
29
|
-
tokenAmount: string;
|
|
30
|
-
}>, "many">>>;
|
|
21
|
+
}, z.core.$strip>>>>;
|
|
31
22
|
prizeTierLevel: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
23
|
prizeUsdAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
},
|
|
34
|
-
type: "lootbox";
|
|
35
|
-
status: "notEligible" | "win" | "loss" | "disabled";
|
|
36
|
-
prizes?: {
|
|
37
|
-
tokenAddress: string;
|
|
38
|
-
tokenType: string;
|
|
39
|
-
tokenAmount: string;
|
|
40
|
-
}[] | null | undefined;
|
|
41
|
-
prizeTierLevel?: number | null | undefined;
|
|
42
|
-
prizeUsdAmount?: string | null | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
type: "lootbox";
|
|
45
|
-
status: "notEligible" | "win" | "loss" | "disabled";
|
|
46
|
-
prizes?: {
|
|
47
|
-
tokenAddress: string;
|
|
48
|
-
tokenType: string;
|
|
49
|
-
tokenAmount: string;
|
|
50
|
-
}[] | null | undefined;
|
|
51
|
-
prizeTierLevel?: number | null | undefined;
|
|
52
|
-
prizeUsdAmount?: string | null | undefined;
|
|
53
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
54
25
|
export declare const transactionExecutionResponseSchema: z.ZodObject<{
|
|
55
|
-
transactionState: z.ZodOptional<z.ZodEnum<
|
|
26
|
+
transactionState: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
rejected: "rejected";
|
|
28
|
+
submitted: "submitted";
|
|
29
|
+
}>>;
|
|
56
30
|
transactionHash: z.ZodString;
|
|
57
31
|
rejectReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
32
|
promotions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
59
|
-
type: z.ZodEnum<
|
|
60
|
-
|
|
33
|
+
type: z.ZodEnum<{
|
|
34
|
+
lootbox: "lootbox";
|
|
35
|
+
}>;
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
notEligible: "notEligible";
|
|
38
|
+
win: "win";
|
|
39
|
+
loss: "loss";
|
|
40
|
+
disabled: "disabled";
|
|
41
|
+
}>;
|
|
61
42
|
prizes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
62
43
|
tokenType: z.ZodString;
|
|
63
44
|
tokenAddress: z.ZodString;
|
|
64
45
|
tokenAmount: z.ZodString;
|
|
65
|
-
},
|
|
66
|
-
tokenAddress: string;
|
|
67
|
-
tokenType: string;
|
|
68
|
-
tokenAmount: string;
|
|
69
|
-
}, {
|
|
70
|
-
tokenAddress: string;
|
|
71
|
-
tokenType: string;
|
|
72
|
-
tokenAmount: string;
|
|
73
|
-
}>, "many">>>;
|
|
46
|
+
}, z.core.$strip>>>>;
|
|
74
47
|
prizeTierLevel: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
48
|
prizeUsdAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
status: "notEligible" | "win" | "loss" | "disabled";
|
|
79
|
-
prizes?: {
|
|
80
|
-
tokenAddress: string;
|
|
81
|
-
tokenType: string;
|
|
82
|
-
tokenAmount: string;
|
|
83
|
-
}[] | null | undefined;
|
|
84
|
-
prizeTierLevel?: number | null | undefined;
|
|
85
|
-
prizeUsdAmount?: string | null | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
type: "lootbox";
|
|
88
|
-
status: "notEligible" | "win" | "loss" | "disabled";
|
|
89
|
-
prizes?: {
|
|
90
|
-
tokenAddress: string;
|
|
91
|
-
tokenType: string;
|
|
92
|
-
tokenAmount: string;
|
|
93
|
-
}[] | null | undefined;
|
|
94
|
-
prizeTierLevel?: number | null | undefined;
|
|
95
|
-
prizeUsdAmount?: string | null | undefined;
|
|
96
|
-
}>, "many">>>;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
transactionHash: string;
|
|
99
|
-
promotions?: {
|
|
100
|
-
type: "lootbox";
|
|
101
|
-
status: "notEligible" | "win" | "loss" | "disabled";
|
|
102
|
-
prizes?: {
|
|
103
|
-
tokenAddress: string;
|
|
104
|
-
tokenType: string;
|
|
105
|
-
tokenAmount: string;
|
|
106
|
-
}[] | null | undefined;
|
|
107
|
-
prizeTierLevel?: number | null | undefined;
|
|
108
|
-
prizeUsdAmount?: string | null | undefined;
|
|
109
|
-
}[] | null | undefined;
|
|
110
|
-
transactionState?: "rejected" | "submitted" | undefined;
|
|
111
|
-
rejectReason?: string | null | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
transactionHash: string;
|
|
114
|
-
promotions?: {
|
|
115
|
-
type: "lootbox";
|
|
116
|
-
status: "notEligible" | "win" | "loss" | "disabled";
|
|
117
|
-
prizes?: {
|
|
118
|
-
tokenAddress: string;
|
|
119
|
-
tokenType: string;
|
|
120
|
-
tokenAmount: string;
|
|
121
|
-
}[] | null | undefined;
|
|
122
|
-
prizeTierLevel?: number | null | undefined;
|
|
123
|
-
prizeUsdAmount?: string | null | undefined;
|
|
124
|
-
}[] | null | undefined;
|
|
125
|
-
transactionState?: "rejected" | "submitted" | undefined;
|
|
126
|
-
rejectReason?: string | null | undefined;
|
|
127
|
-
}>;
|
|
49
|
+
}, z.core.$strip>>>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
128
51
|
export type TransactionExecutionResponse = z.infer<typeof transactionExecutionResponseSchema>;
|
|
129
52
|
export type TransactionPromotion = z.infer<typeof transactionPromotionSchema>;
|
|
130
53
|
export type TransactionPromotionPrize = z.infer<typeof transactionPromotionPrizeSchema>;
|
|
@@ -4,4 +4,4 @@ export type TRANSACTION_VERSION = ETransactionVersion3;
|
|
|
4
4
|
export type TransactionInvokeVersion = typeof ETransactionVersion3.V3;
|
|
5
5
|
export type TransactionSimulationVersion = typeof ETransactionVersion3.F3;
|
|
6
6
|
export type TransactionVersion = TransactionInvokeVersion | TransactionSimulationVersion;
|
|
7
|
-
export declare const txVersionSchema: z.
|
|
7
|
+
export declare const txVersionSchema: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<"0x3" | "0x100000000000000000000000000000003", string>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const bigNumberSchema: z.
|
|
2
|
+
export declare const bigNumberSchema: z.ZodPipe<z.ZodAny, z.ZodTransform<bigint, any>>;
|
package/dist/src/utils/hex.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type Hex = `0x${string}`;
|
|
3
3
|
export declare const hexSchemaBase: z.ZodString;
|
|
4
|
-
export declare const hexSchema: z.
|
|
4
|
+
export declare const hexSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
@@ -12,5 +12,5 @@ type InitialisationStatus = {
|
|
|
12
12
|
* @param opts Retry options
|
|
13
13
|
* @returns The result of the successful function call, or null if the maximum number of retries is reached or an error occurs
|
|
14
14
|
*/
|
|
15
|
-
export declare function retryUntilInitialised<T extends InitialisationStatus>(fn: () => Promise<T>, validationSchema: z.ZodType
|
|
15
|
+
export declare function retryUntilInitialised<T extends InitialisationStatus>(fn: () => Promise<T>, validationSchema: z.ZodType<T>, opts?: retry.Options): Promise<T | null>;
|
|
16
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("zod"),c=r.z.boolean().transform(e=>String(e)),i=r.z.string().transform(e=>e==="true");function o(e){return r.z.object(e).passthrough().superRefine(t=>{const n=Object.keys(e),a=Object.keys(t).filter(s=>!n.includes(s));a.length>0&&`${a.join(", ")}`})}function u(e){const t=o(e);return Object.assign(t,{extend:n=>o({...e,...n})})}const l=(e,t)=>{try{return{success:!0,data:e.parse(t)}}catch(n){if(n instanceof r.z.ZodError)return console.error("Validation warnings:",n.issues),{success:!1,error:n};throw n}};exports.booleanToStringSchema=c;exports.createSchemaWithWarnings=u;exports.safeParseAndWarn=l;exports.stringToBooleanSchema=i;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const booleanToStringSchema: z.
|
|
3
|
-
export declare const stringToBooleanSchema: z.
|
|
4
|
-
export declare function createSchemaWithWarnings<T extends z.ZodRawShape>(shape: T): z.
|
|
5
|
-
extend: <E extends z.ZodRawShape>(extension: E) => z.
|
|
2
|
+
export declare const booleanToStringSchema: z.ZodPipe<z.ZodBoolean, z.ZodTransform<string, boolean>>;
|
|
3
|
+
export declare const stringToBooleanSchema: z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>;
|
|
4
|
+
export declare function createSchemaWithWarnings<T extends z.ZodRawShape>(shape: T): z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$loose> & {
|
|
5
|
+
extend: <E extends z.ZodRawShape>(extension: E) => z.ZodObject<T & E extends infer T_1 ? { -readonly [P_1 in keyof T_1]: (T & E)[P_1]; } : never, z.core.$loose>;
|
|
6
6
|
};
|
|
7
7
|
type ISafeParseAndWarn<T extends z.ZodType> = {
|
|
8
8
|
success: true;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { z as
|
|
2
|
-
const i =
|
|
1
|
+
import { z as r } from "zod";
|
|
2
|
+
const i = r.boolean().transform((e) => String(e)), u = r.string().transform((e) => e === "true");
|
|
3
3
|
function s(e) {
|
|
4
|
-
return
|
|
5
|
-
const n = Object.keys(e), o = Object.keys(
|
|
4
|
+
return r.object(e).passthrough().superRefine((t) => {
|
|
5
|
+
const n = Object.keys(e), o = Object.keys(t).filter((a) => !n.includes(a));
|
|
6
6
|
o.length > 0 && `${o.join(", ")}`;
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
function d(e) {
|
|
10
|
-
const
|
|
11
|
-
return Object.assign(
|
|
10
|
+
const t = s(e);
|
|
11
|
+
return Object.assign(t, {
|
|
12
12
|
extend: (n) => s({ ...e, ...n })
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
const f = (e,
|
|
15
|
+
const f = (e, t) => {
|
|
16
16
|
try {
|
|
17
|
-
return { success: !0, data: e.parse(
|
|
17
|
+
return { success: !0, data: e.parse(t) };
|
|
18
18
|
} catch (n) {
|
|
19
|
-
if (n instanceof
|
|
20
|
-
return console.error("Validation warnings:", n.
|
|
19
|
+
if (n instanceof r.ZodError)
|
|
20
|
+
return console.error("Validation warnings:", n.issues), { success: !1, error: n };
|
|
21
21
|
throw n;
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("zod"),h=require("../../chains/starknet/address.cjs"),t=a.z.union([a.z.string(),a.z.number(),a.z.bigint()]),l=a.z.object({low:t,high:t}),o=a.z.array(a.z.string()).and(a.z.object({__compiled__:a.z.boolean().optional()}).optional()),s=a.z.lazy(()=>a.z.array(a.z.union([r,a.z.array(r),c]))),r=a.z.union([t,l,a.z.any(),a.z.boolean()]),i=a.z.lazy(()=>a.z.record(a.z.union([r,a.z.array(r),c]))),c=a.z.lazy(()=>a.z.union([i,s])),z=a.z.union([c,o]).optional(),m=a.z.lazy(()=>a.z.object({contractAddress:a.z.string(),calldata:z,entrypoint:a.z.string().optional()})),d=a.z.lazy(()=>m.and(a.z.object({entrypoint:a.z.string()}))),e=a.z.string().refine(n=>typeof parseInt(n)=="number"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("zod"),h=require("../../chains/starknet/address.cjs"),t=a.z.union([a.z.string(),a.z.number(),a.z.bigint()]),l=a.z.object({low:t,high:t}),o=a.z.array(a.z.string()).and(a.z.object({__compiled__:a.z.boolean().optional()}).optional()),s=a.z.lazy(()=>a.z.array(a.z.union([r,a.z.array(r),c]))),r=a.z.union([t,l,a.z.any(),a.z.boolean()]),i=a.z.lazy(()=>a.z.record(a.z.string(),a.z.union([r,a.z.array(r),c]))),c=a.z.lazy(()=>a.z.union([i,s])),z=a.z.union([c,o]).optional(),m=a.z.lazy(()=>a.z.object({contractAddress:a.z.string(),calldata:z,entrypoint:a.z.string().optional()})),d=a.z.lazy(()=>m.and(a.z.object({entrypoint:a.z.string()}))),e=a.z.string().refine(n=>typeof parseInt(n)=="number"),g=a.z.tuple([e]),S=a.z.tuple([e]),u=a.z.object({new_threshold:a.z.string().refine(n=>typeof parseInt(n)=="number"),signers_to_add:a.z.array(e)}),p=a.z.object({new_threshold:a.z.string().refine(n=>typeof parseInt(n)=="number"),signers_to_remove:a.z.array(e)}),y=a.z.object({signer_to_remove:e,signer_to_add:e}),b=a.z.tuple([e]),C=a.z.tuple([e]),j=a.z.tuple([e]),w=a.z.tuple([e]).rest(e),_=a.z.object({recipient:h.addressSchema,amount:a.z.object({low:t,high:t})}),f=a.z.object({types:a.z.record(a.z.string(),a.z.array(a.z.union([a.z.object({name:a.z.string(),type:a.z.literal("merkletree"),contains:a.z.string()}),a.z.object({name:a.z.string(),type:a.z.literal("enum"),contains:a.z.string()}),a.z.object({name:a.z.string(),type:a.z.string()})]))),primaryType:a.z.string(),domain:a.z.record(a.z.string(),a.z.unknown()),message:a.z.record(a.z.string(),a.z.any()).or(a.z.object({}).passthrough())});exports.addOwnersCalldataSchema=u;exports.addPluginCalldataSchema=C;exports.bigNumberishSchema=t;exports.callDetailsSchema=m;exports.callSchema=d;exports.calldataSchema=o;exports.changeGuardianCalldataSchema=g;exports.changeThresholdCalldataSchema=b;exports.escapeGuardianCalldataSchema=S;exports.executeOnPluginCalldataSchema=w;exports.feltSchema=e;exports.looseCalldataSchema=z;exports.multiTypeSchema=r;exports.rawArgsArraySchema=s;exports.rawArgsObjectSchema=i;exports.rawArgsSchema=c;exports.removeOwnersCalldataSchema=p;exports.removePluginCalldataSchema=j;exports.replaceSignerCalldataSchema=y;exports.transferCalldataSchema=_;exports.typedDataSchema=f;exports.uint256Schema=l;
|
|
@@ -1,175 +1,65 @@
|
|
|
1
1
|
import { Call, CallDetails, RawArgs, RawArgsArray, RawArgsObject } from 'starknet';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const bigNumberishSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
3
|
+
export declare const bigNumberishSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
4
4
|
export declare const uint256Schema: z.ZodObject<{
|
|
5
|
-
low: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
6
|
-
high: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
low: string | number | bigint;
|
|
10
|
-
}, {
|
|
11
|
-
high: string | number | bigint;
|
|
12
|
-
low: string | number | bigint;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const calldataSchema: z.ZodIntersection<z.ZodArray<z.ZodString, "many">, z.ZodOptional<z.ZodObject<{
|
|
5
|
+
low: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
6
|
+
high: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const calldataSchema: z.ZodIntersection<z.ZodArray<z.ZodString>, z.ZodOptional<z.ZodObject<{
|
|
15
9
|
__compiled__: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
},
|
|
17
|
-
__compiled__?: boolean | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
__compiled__?: boolean | undefined;
|
|
20
|
-
}>>>;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
21
11
|
export declare const rawArgsArraySchema: z.ZodSchema<RawArgsArray>;
|
|
22
|
-
export declare const multiTypeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodObject<{
|
|
23
|
-
low: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
24
|
-
high: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
25
|
-
},
|
|
26
|
-
high: string | number | bigint;
|
|
27
|
-
low: string | number | bigint;
|
|
28
|
-
}, {
|
|
29
|
-
high: string | number | bigint;
|
|
30
|
-
low: string | number | bigint;
|
|
31
|
-
}>, z.ZodAny, z.ZodBoolean]>;
|
|
12
|
+
export declare const multiTypeSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodObject<{
|
|
13
|
+
low: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
14
|
+
high: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
15
|
+
}, z.core.$strip>, z.ZodAny, z.ZodBoolean]>;
|
|
32
16
|
export declare const rawArgsObjectSchema: z.ZodSchema<RawArgsObject>;
|
|
33
17
|
export declare const rawArgsSchema: z.ZodSchema<RawArgs>;
|
|
34
|
-
export declare const looseCalldataSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<RawArgs, z.
|
|
18
|
+
export declare const looseCalldataSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<RawArgs, unknown, z.core.$ZodTypeInternals<RawArgs, unknown>>, z.ZodIntersection<z.ZodArray<z.ZodString>, z.ZodOptional<z.ZodObject<{
|
|
35
19
|
__compiled__: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
},
|
|
37
|
-
__compiled__?: boolean | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
__compiled__?: boolean | undefined;
|
|
40
|
-
}>>>]>>;
|
|
20
|
+
}, z.core.$strip>>>]>>;
|
|
41
21
|
export declare const callDetailsSchema: z.ZodSchema<CallDetails>;
|
|
42
22
|
export declare const callSchema: z.ZodSchema<Call>;
|
|
43
|
-
export declare const feltSchema: z.
|
|
44
|
-
export declare const changeGuardianCalldataSchema: z.ZodTuple<[z.
|
|
45
|
-
export declare const escapeGuardianCalldataSchema: z.ZodTuple<[z.
|
|
23
|
+
export declare const feltSchema: z.ZodString;
|
|
24
|
+
export declare const changeGuardianCalldataSchema: z.ZodTuple<[z.ZodString], null>;
|
|
25
|
+
export declare const escapeGuardianCalldataSchema: z.ZodTuple<[z.ZodString], null>;
|
|
46
26
|
export declare const addOwnersCalldataSchema: z.ZodObject<{
|
|
47
|
-
new_threshold: z.
|
|
48
|
-
signers_to_add: z.ZodArray<z.
|
|
49
|
-
},
|
|
50
|
-
new_threshold: string;
|
|
51
|
-
signers_to_add: string[];
|
|
52
|
-
}, {
|
|
53
|
-
new_threshold: string;
|
|
54
|
-
signers_to_add: string[];
|
|
55
|
-
}>;
|
|
27
|
+
new_threshold: z.ZodString;
|
|
28
|
+
signers_to_add: z.ZodArray<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
56
30
|
export declare const removeOwnersCalldataSchema: z.ZodObject<{
|
|
57
|
-
new_threshold: z.
|
|
58
|
-
signers_to_remove: z.ZodArray<z.
|
|
59
|
-
},
|
|
60
|
-
new_threshold: string;
|
|
61
|
-
signers_to_remove: string[];
|
|
62
|
-
}, {
|
|
63
|
-
new_threshold: string;
|
|
64
|
-
signers_to_remove: string[];
|
|
65
|
-
}>;
|
|
31
|
+
new_threshold: z.ZodString;
|
|
32
|
+
signers_to_remove: z.ZodArray<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
66
34
|
export declare const replaceSignerCalldataSchema: z.ZodObject<{
|
|
67
|
-
signer_to_remove: z.
|
|
68
|
-
signer_to_add: z.
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
signer_to_add: string;
|
|
75
|
-
}>;
|
|
76
|
-
export declare const changeThresholdCalldataSchema: z.ZodTuple<[z.ZodEffects<z.ZodString, string, string>], null>;
|
|
77
|
-
export declare const addPluginCalldataSchema: z.ZodTuple<[z.ZodEffects<z.ZodString, string, string>], null>;
|
|
78
|
-
export declare const removePluginCalldataSchema: z.ZodTuple<[z.ZodEffects<z.ZodString, string, string>], null>;
|
|
79
|
-
export declare const executeOnPluginCalldataSchema: z.ZodTuple<[z.ZodEffects<z.ZodString, string, string>], z.ZodEffects<z.ZodString, string, string>>;
|
|
35
|
+
signer_to_remove: z.ZodString;
|
|
36
|
+
signer_to_add: z.ZodString;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const changeThresholdCalldataSchema: z.ZodTuple<[z.ZodString], null>;
|
|
39
|
+
export declare const addPluginCalldataSchema: z.ZodTuple<[z.ZodString], null>;
|
|
40
|
+
export declare const removePluginCalldataSchema: z.ZodTuple<[z.ZodString], null>;
|
|
41
|
+
export declare const executeOnPluginCalldataSchema: z.ZodTuple<[z.ZodString], z.ZodString>;
|
|
80
42
|
export declare const transferCalldataSchema: z.ZodObject<{
|
|
81
|
-
recipient: z.
|
|
43
|
+
recipient: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodTransform<`0x${string}`, string>>;
|
|
82
44
|
amount: z.ZodObject<{
|
|
83
|
-
low: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
84
|
-
high: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
low: string | number | bigint;
|
|
88
|
-
}, {
|
|
89
|
-
high: string | number | bigint;
|
|
90
|
-
low: string | number | bigint;
|
|
91
|
-
}>;
|
|
92
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
recipient: `0x${string}`;
|
|
94
|
-
amount: {
|
|
95
|
-
high: string | number | bigint;
|
|
96
|
-
low: string | number | bigint;
|
|
97
|
-
};
|
|
98
|
-
}, {
|
|
99
|
-
recipient: string;
|
|
100
|
-
amount: {
|
|
101
|
-
high: string | number | bigint;
|
|
102
|
-
low: string | number | bigint;
|
|
103
|
-
};
|
|
104
|
-
}>;
|
|
45
|
+
low: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
46
|
+
high: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
105
49
|
export declare const typedDataSchema: z.ZodObject<{
|
|
106
|
-
types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
50
|
+
types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
107
51
|
name: z.ZodString;
|
|
108
52
|
type: z.ZodLiteral<"merkletree">;
|
|
109
53
|
contains: z.ZodString;
|
|
110
|
-
},
|
|
111
|
-
type: "merkletree";
|
|
112
|
-
name: string;
|
|
113
|
-
contains: string;
|
|
114
|
-
}, {
|
|
115
|
-
type: "merkletree";
|
|
116
|
-
name: string;
|
|
117
|
-
contains: string;
|
|
118
|
-
}>, z.ZodObject<{
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
55
|
name: z.ZodString;
|
|
120
56
|
type: z.ZodLiteral<"enum">;
|
|
121
57
|
contains: z.ZodString;
|
|
122
|
-
},
|
|
123
|
-
type: "enum";
|
|
124
|
-
name: string;
|
|
125
|
-
contains: string;
|
|
126
|
-
}, {
|
|
127
|
-
type: "enum";
|
|
128
|
-
name: string;
|
|
129
|
-
contains: string;
|
|
130
|
-
}>, z.ZodObject<{
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
59
|
name: z.ZodString;
|
|
132
60
|
type: z.ZodString;
|
|
133
|
-
},
|
|
134
|
-
type: string;
|
|
135
|
-
name: string;
|
|
136
|
-
}, {
|
|
137
|
-
type: string;
|
|
138
|
-
name: string;
|
|
139
|
-
}>]>, "many">>;
|
|
61
|
+
}, z.core.$strip>]>>>;
|
|
140
62
|
primaryType: z.ZodString;
|
|
141
63
|
domain: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
142
|
-
message: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{},
|
|
143
|
-
},
|
|
144
|
-
message: Record<string, any> | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
|
|
145
|
-
types: Record<string, ({
|
|
146
|
-
type: "merkletree";
|
|
147
|
-
name: string;
|
|
148
|
-
contains: string;
|
|
149
|
-
} | {
|
|
150
|
-
type: "enum";
|
|
151
|
-
name: string;
|
|
152
|
-
contains: string;
|
|
153
|
-
} | {
|
|
154
|
-
type: string;
|
|
155
|
-
name: string;
|
|
156
|
-
})[]>;
|
|
157
|
-
primaryType: string;
|
|
158
|
-
domain: Record<string, unknown>;
|
|
159
|
-
}, {
|
|
160
|
-
message: Record<string, any> | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
|
|
161
|
-
types: Record<string, ({
|
|
162
|
-
type: "merkletree";
|
|
163
|
-
name: string;
|
|
164
|
-
contains: string;
|
|
165
|
-
} | {
|
|
166
|
-
type: "enum";
|
|
167
|
-
name: string;
|
|
168
|
-
contains: string;
|
|
169
|
-
} | {
|
|
170
|
-
type: string;
|
|
171
|
-
name: string;
|
|
172
|
-
})[]>;
|
|
173
|
-
primaryType: string;
|
|
174
|
-
domain: Record<string, unknown>;
|
|
175
|
-
}>;
|
|
64
|
+
message: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{}, z.core.$loose>]>;
|
|
65
|
+
}, z.core.$strip>;
|
|
@@ -10,11 +10,11 @@ const n = a.union([a.string(), a.number(), a.bigint()]), s = a.object({
|
|
|
10
10
|
s,
|
|
11
11
|
a.any(),
|
|
12
12
|
a.boolean()
|
|
13
|
-
]), m = a.lazy(() => a.record(a.union([r, a.array(r), o]))), o = a.lazy(() => a.union([m, i])), d = a.union([o, l]).optional(),
|
|
13
|
+
]), m = a.lazy(() => a.record(a.string(), a.union([r, a.array(r), o]))), o = a.lazy(() => a.union([m, i])), d = a.union([o, l]).optional(), g = a.lazy(() => a.object({
|
|
14
14
|
contractAddress: a.string(),
|
|
15
15
|
calldata: d,
|
|
16
16
|
entrypoint: a.string().optional()
|
|
17
|
-
})), u = a.lazy(() =>
|
|
17
|
+
})), u = a.lazy(() => g.and(a.object({
|
|
18
18
|
entrypoint: a.string()
|
|
19
19
|
}))), e = a.string().refine((t) => typeof parseInt(t) == "number"), y = a.tuple([e]), b = a.tuple([e]), S = a.object({
|
|
20
20
|
new_threshold: a.string().refine((t) => typeof parseInt(t) == "number"),
|
|
@@ -32,7 +32,7 @@ const n = a.union([a.string(), a.number(), a.bigint()]), s = a.object({
|
|
|
32
32
|
high: n
|
|
33
33
|
})
|
|
34
34
|
}), v = a.object({
|
|
35
|
-
types: a.record(a.array(a.union([
|
|
35
|
+
types: a.record(a.string(), a.array(a.union([
|
|
36
36
|
a.object({
|
|
37
37
|
name: a.string(),
|
|
38
38
|
type: a.literal("merkletree"),
|
|
@@ -49,14 +49,14 @@ const n = a.union([a.string(), a.number(), a.bigint()]), s = a.object({
|
|
|
49
49
|
})
|
|
50
50
|
]))),
|
|
51
51
|
primaryType: a.string(),
|
|
52
|
-
domain: a.record(a.unknown()),
|
|
52
|
+
domain: a.record(a.string(), a.unknown()),
|
|
53
53
|
message: a.record(a.string(), a.any()).or(a.object({}).passthrough())
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
56
|
S as addOwnersCalldataSchema,
|
|
57
57
|
f as addPluginCalldataSchema,
|
|
58
58
|
n as bigNumberishSchema,
|
|
59
|
-
|
|
59
|
+
g as callDetailsSchema,
|
|
60
60
|
u as callSchema,
|
|
61
61
|
l as calldataSchema,
|
|
62
62
|
y as changeGuardianCalldataSchema,
|