@argent/x-shared 1.51.0 → 1.52.1
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.cjs +1 -1
- package/dist/src/account/account.model.d.ts +3 -0
- package/dist/src/account/account.model.js +4 -3
- package/dist/src/backend/sessionKeys/schema.d.ts +2 -2
- package/dist/src/features/simulation/activity/schema.d.ts +126 -126
- package/dist/src/staking/schema.cjs +1 -1
- package/dist/src/staking/schema.d.ts +164 -32
- package/dist/src/staking/schema.js +15 -9
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("zod"),t=n.z.object({name:n.z.string().optional(),address:n.z.string(),ownerAddress:n.z.string(),chain:n.z.enum(["ethereum","zksync","zksync2","starknet"]),deploymentStatus:n.z.enum(["notDeployed","deploying","deployed","deployError"]),application:n.z.enum(["mobile","webwallet","argentx"]),guardianAddresses:n.z.array(n.z.string()).optional(),enabledGuardianAddresses:n.z.array(n.z.string()).optional(),implClassHash:n.z.string().optional(),proxyClassHash:n.z.string().optional(),salt:n.z.string().optional(),created:n.z.string().optional(),contractVersion:n.z.string().optional(),contractName:n.z.string().optional(),version:n.z.number().optional(),owner:n.z.object({guid:n.z.string().optional(),signerType:n.z.enum(["StarknetKey","EthereumKey"]).optional()}).optional()}),e=n.z.object({address:n.z.string(),guardianAddress:n.z.string().optional(),account:t}),o=n.z.object({ownerAddress:n.z.string(),signature:n.z.object({r:n.z.string(),s:n.z.string()}),implClassHash:n.z.string().optional(),name:n.z.string().optional(),icon:n.z.string().optional()});exports.AddSmartAccountResponseSchema=e;exports.AddSmartAcountRequestSchema=o;exports.BackendAccountSchema=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("zod"),t=n.z.object({name:n.z.string().optional(),address:n.z.string(),ownerAddress:n.z.string(),chain:n.z.enum(["ethereum","zksync","zksync2","starknet"]),deploymentStatus:n.z.enum(["notDeployed","deploying","deployed","deployError"]),application:n.z.enum(["mobile","webwallet","argentx"]),guardianAddresses:n.z.array(n.z.string()).optional(),enabledGuardianAddresses:n.z.array(n.z.string()).optional(),implClassHash:n.z.string().optional(),proxyClassHash:n.z.string().optional(),salt:n.z.string().optional(),created:n.z.string().optional(),contractVersion:n.z.string().optional(),contractName:n.z.string().optional(),version:n.z.number().optional(),owner:n.z.object({guid:n.z.string().optional(),signerType:n.z.enum(["StarknetKey","EthereumKey"]).optional()}).optional()}),e=n.z.object({address:n.z.string(),guardianAddress:n.z.string().optional(),account:t}),o=n.z.object({ownerAddress:n.z.string(),signature:n.z.object({r:n.z.string(),s:n.z.string()}),implClassHash:n.z.string().optional(),name:n.z.string().optional(),icon:n.z.string().optional(),network:n.z.string().optional()});exports.AddSmartAccountResponseSchema=e;exports.AddSmartAcountRequestSchema=o;exports.BackendAccountSchema=t;
|
|
@@ -202,6 +202,7 @@ export declare const AddSmartAcountRequestSchema: z.ZodObject<{
|
|
|
202
202
|
implClassHash: z.ZodOptional<z.ZodString>;
|
|
203
203
|
name: z.ZodOptional<z.ZodString>;
|
|
204
204
|
icon: z.ZodOptional<z.ZodString>;
|
|
205
|
+
network: z.ZodOptional<z.ZodString>;
|
|
205
206
|
}, "strip", z.ZodTypeAny, {
|
|
206
207
|
ownerAddress: string;
|
|
207
208
|
signature: {
|
|
@@ -211,6 +212,7 @@ export declare const AddSmartAcountRequestSchema: z.ZodObject<{
|
|
|
211
212
|
name?: string | undefined;
|
|
212
213
|
implClassHash?: string | undefined;
|
|
213
214
|
icon?: string | undefined;
|
|
215
|
+
network?: string | undefined;
|
|
214
216
|
}, {
|
|
215
217
|
ownerAddress: string;
|
|
216
218
|
signature: {
|
|
@@ -220,5 +222,6 @@ export declare const AddSmartAcountRequestSchema: z.ZodObject<{
|
|
|
220
222
|
name?: string | undefined;
|
|
221
223
|
implClassHash?: string | undefined;
|
|
222
224
|
icon?: string | undefined;
|
|
225
|
+
network?: string | undefined;
|
|
223
226
|
}>;
|
|
224
227
|
export type AddSmartAccountRequest = z.infer<typeof AddSmartAcountRequestSchema>;
|
|
@@ -28,7 +28,7 @@ const t = n.object({
|
|
|
28
28
|
address: n.string(),
|
|
29
29
|
guardianAddress: n.string().optional(),
|
|
30
30
|
account: t
|
|
31
|
-
}),
|
|
31
|
+
}), r = n.object({
|
|
32
32
|
ownerAddress: n.string(),
|
|
33
33
|
signature: n.object({
|
|
34
34
|
r: n.string(),
|
|
@@ -36,10 +36,11 @@ const t = n.object({
|
|
|
36
36
|
}),
|
|
37
37
|
implClassHash: n.string().optional(),
|
|
38
38
|
name: n.string().optional(),
|
|
39
|
-
icon: n.string().optional()
|
|
39
|
+
icon: n.string().optional(),
|
|
40
|
+
network: n.string().optional()
|
|
40
41
|
});
|
|
41
42
|
export {
|
|
42
43
|
e as AddSmartAccountResponseSchema,
|
|
43
|
-
|
|
44
|
+
r as AddSmartAcountRequestSchema,
|
|
44
45
|
t as BackendAccountSchema
|
|
45
46
|
};
|
|
@@ -76,8 +76,8 @@ export declare const backendSessionSchema: z.ZodObject<{
|
|
|
76
76
|
}>;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
78
|
type: string;
|
|
79
|
-
accountAddress: `0x${string}`;
|
|
80
79
|
network: string;
|
|
80
|
+
accountAddress: `0x${string}`;
|
|
81
81
|
sessionKey: string;
|
|
82
82
|
expirationTime: number;
|
|
83
83
|
txFees: {
|
|
@@ -98,8 +98,8 @@ export declare const backendSessionSchema: z.ZodObject<{
|
|
|
98
98
|
gasFees?: unknown;
|
|
99
99
|
}, {
|
|
100
100
|
type: string;
|
|
101
|
-
accountAddress: string;
|
|
102
101
|
network: string;
|
|
102
|
+
accountAddress: string;
|
|
103
103
|
sessionKey: string;
|
|
104
104
|
expirationTime: number;
|
|
105
105
|
txFees: {
|