@argent/x-shared 1.52.4 → 1.53.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.
@@ -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(),network: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(),colour:n.z.string().optional(),icon:n.z.string().optional(),network:n.z.string().optional()}),o=n.z.object({address:n.z.string(),guardianAddress:n.z.string().optional(),account:t}),e=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=o;exports.AddSmartAcountRequestSchema=e;exports.BackendAccountSchema=t;
@@ -25,6 +25,9 @@ export declare const BackendAccountSchema: z.ZodObject<{
25
25
  guid?: string | undefined;
26
26
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
27
27
  }>>;
28
+ colour: z.ZodOptional<z.ZodString>;
29
+ icon: z.ZodOptional<z.ZodString>;
30
+ network: z.ZodOptional<z.ZodString>;
28
31
  }, "strip", z.ZodTypeAny, {
29
32
  address: string;
30
33
  ownerAddress: string;
@@ -45,6 +48,9 @@ export declare const BackendAccountSchema: z.ZodObject<{
45
48
  guid?: string | undefined;
46
49
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
47
50
  } | undefined;
51
+ colour?: string | undefined;
52
+ icon?: string | undefined;
53
+ network?: string | undefined;
48
54
  }, {
49
55
  address: string;
50
56
  ownerAddress: string;
@@ -65,6 +71,9 @@ export declare const BackendAccountSchema: z.ZodObject<{
65
71
  guid?: string | undefined;
66
72
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
67
73
  } | undefined;
74
+ colour?: string | undefined;
75
+ icon?: string | undefined;
76
+ network?: string | undefined;
68
77
  }>;
69
78
  export type BackendAccount = z.infer<typeof BackendAccountSchema>;
70
79
  export declare const AddSmartAccountResponseSchema: z.ZodObject<{
@@ -96,6 +105,9 @@ export declare const AddSmartAccountResponseSchema: z.ZodObject<{
96
105
  guid?: string | undefined;
97
106
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
98
107
  }>>;
108
+ colour: z.ZodOptional<z.ZodString>;
109
+ icon: z.ZodOptional<z.ZodString>;
110
+ network: z.ZodOptional<z.ZodString>;
99
111
  }, "strip", z.ZodTypeAny, {
100
112
  address: string;
101
113
  ownerAddress: string;
@@ -116,6 +128,9 @@ export declare const AddSmartAccountResponseSchema: z.ZodObject<{
116
128
  guid?: string | undefined;
117
129
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
118
130
  } | undefined;
131
+ colour?: string | undefined;
132
+ icon?: string | undefined;
133
+ network?: string | undefined;
119
134
  }, {
120
135
  address: string;
121
136
  ownerAddress: string;
@@ -136,6 +151,9 @@ export declare const AddSmartAccountResponseSchema: z.ZodObject<{
136
151
  guid?: string | undefined;
137
152
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
138
153
  } | undefined;
154
+ colour?: string | undefined;
155
+ icon?: string | undefined;
156
+ network?: string | undefined;
139
157
  }>;
140
158
  }, "strip", z.ZodTypeAny, {
141
159
  address: string;
@@ -159,6 +177,9 @@ export declare const AddSmartAccountResponseSchema: z.ZodObject<{
159
177
  guid?: string | undefined;
160
178
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
161
179
  } | undefined;
180
+ colour?: string | undefined;
181
+ icon?: string | undefined;
182
+ network?: string | undefined;
162
183
  };
163
184
  guardianAddress?: string | undefined;
164
185
  }, {
@@ -183,6 +204,9 @@ export declare const AddSmartAccountResponseSchema: z.ZodObject<{
183
204
  guid?: string | undefined;
184
205
  signerType?: "StarknetKey" | "EthereumKey" | undefined;
185
206
  } | undefined;
207
+ colour?: string | undefined;
208
+ icon?: string | undefined;
209
+ network?: string | undefined;
186
210
  };
187
211
  guardianAddress?: string | undefined;
188
212
  }>;
@@ -23,12 +23,15 @@ const t = n.object({
23
23
  owner: n.object({
24
24
  guid: n.string().optional(),
25
25
  signerType: n.enum(["StarknetKey", "EthereumKey"]).optional()
26
- }).optional()
27
- }), e = n.object({
26
+ }).optional(),
27
+ colour: n.string().optional(),
28
+ icon: n.string().optional(),
29
+ network: n.string().optional()
30
+ }), r = n.object({
28
31
  address: n.string(),
29
32
  guardianAddress: n.string().optional(),
30
33
  account: t
31
- }), r = n.object({
34
+ }), e = n.object({
32
35
  ownerAddress: n.string(),
33
36
  signature: n.object({
34
37
  r: n.string(),
@@ -40,7 +43,7 @@ const t = n.object({
40
43
  network: n.string().optional()
41
44
  });
42
45
  export {
43
- e as AddSmartAccountResponseSchema,
44
- r as AddSmartAcountRequestSchema,
46
+ r as AddSmartAccountResponseSchema,
47
+ e as AddSmartAcountRequestSchema,
45
48
  t as BackendAccountSchema
46
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.52.4",
3
+ "version": "1.53.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"