@argent/x-shared 1.51.0 → 1.52.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()});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: {
|
|
@@ -1538,14 +1538,14 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
1538
1538
|
transactionIndex: z.ZodNumber;
|
|
1539
1539
|
}, "strip", z.ZodTypeAny, {
|
|
1540
1540
|
status: string;
|
|
1541
|
-
hash: string;
|
|
1542
1541
|
network: string;
|
|
1542
|
+
hash: string;
|
|
1543
1543
|
transactionIndex: number;
|
|
1544
1544
|
blockNumber?: number | undefined;
|
|
1545
1545
|
}, {
|
|
1546
1546
|
status: string;
|
|
1547
|
-
hash: string;
|
|
1548
1547
|
network: string;
|
|
1548
|
+
hash: string;
|
|
1549
1549
|
transactionIndex: number;
|
|
1550
1550
|
blockNumber?: number | undefined;
|
|
1551
1551
|
}>;
|
|
@@ -3790,8 +3790,8 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3790
3790
|
}, "strip", z.ZodTypeAny, {
|
|
3791
3791
|
status: "pending" | "success" | "failure";
|
|
3792
3792
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
3793
|
-
wallet: `0x${string}`;
|
|
3794
3793
|
network: string;
|
|
3794
|
+
wallet: `0x${string}`;
|
|
3795
3795
|
id: string;
|
|
3796
3796
|
group: "security" | "finance";
|
|
3797
3797
|
details: {
|
|
@@ -4008,8 +4008,8 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4008
4008
|
lastModified: number;
|
|
4009
4009
|
transaction: {
|
|
4010
4010
|
status: string;
|
|
4011
|
-
hash: string;
|
|
4012
4011
|
network: string;
|
|
4012
|
+
hash: string;
|
|
4013
4013
|
transactionIndex: number;
|
|
4014
4014
|
blockNumber?: number | undefined;
|
|
4015
4015
|
};
|
|
@@ -4188,8 +4188,8 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4188
4188
|
}, {
|
|
4189
4189
|
status: "pending" | "success" | "failure";
|
|
4190
4190
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
4191
|
-
wallet: string;
|
|
4192
4191
|
network: string;
|
|
4192
|
+
wallet: string;
|
|
4193
4193
|
id: string;
|
|
4194
4194
|
group: "security" | "finance";
|
|
4195
4195
|
details: {
|
|
@@ -4406,8 +4406,8 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4406
4406
|
lastModified: number;
|
|
4407
4407
|
transaction: {
|
|
4408
4408
|
status: string;
|
|
4409
|
-
hash: string;
|
|
4410
4409
|
network: string;
|
|
4410
|
+
hash: string;
|
|
4411
4411
|
transactionIndex: number;
|
|
4412
4412
|
blockNumber?: number | undefined;
|
|
4413
4413
|
};
|
|
@@ -4686,14 +4686,14 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
4686
4686
|
transactionIndex: z.ZodNumber;
|
|
4687
4687
|
}, "strip", z.ZodTypeAny, {
|
|
4688
4688
|
status: string;
|
|
4689
|
-
hash: string;
|
|
4690
4689
|
network: string;
|
|
4690
|
+
hash: string;
|
|
4691
4691
|
transactionIndex: number;
|
|
4692
4692
|
blockNumber?: number | undefined;
|
|
4693
4693
|
}, {
|
|
4694
4694
|
status: string;
|
|
4695
|
-
hash: string;
|
|
4696
4695
|
network: string;
|
|
4696
|
+
hash: string;
|
|
4697
4697
|
transactionIndex: number;
|
|
4698
4698
|
blockNumber?: number | undefined;
|
|
4699
4699
|
}>;
|
|
@@ -7479,14 +7479,14 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
7479
7479
|
transactionIndex: z.ZodNumber;
|
|
7480
7480
|
}, "strip", z.ZodTypeAny, {
|
|
7481
7481
|
status: string;
|
|
7482
|
-
hash: string;
|
|
7483
7482
|
network: string;
|
|
7483
|
+
hash: string;
|
|
7484
7484
|
transactionIndex: number;
|
|
7485
7485
|
blockNumber?: number | undefined;
|
|
7486
7486
|
}, {
|
|
7487
7487
|
status: string;
|
|
7488
|
-
hash: string;
|
|
7489
7488
|
network: string;
|
|
7489
|
+
hash: string;
|
|
7490
7490
|
transactionIndex: number;
|
|
7491
7491
|
blockNumber?: number | undefined;
|
|
7492
7492
|
}>;
|
|
@@ -9731,8 +9731,8 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
9731
9731
|
}, "strip", z.ZodTypeAny, {
|
|
9732
9732
|
status: "pending" | "success" | "failure";
|
|
9733
9733
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
9734
|
-
wallet: `0x${string}`;
|
|
9735
9734
|
network: string;
|
|
9735
|
+
wallet: `0x${string}`;
|
|
9736
9736
|
id: string;
|
|
9737
9737
|
group: "security" | "finance";
|
|
9738
9738
|
details: {
|
|
@@ -9949,8 +9949,8 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
9949
9949
|
lastModified: number;
|
|
9950
9950
|
transaction: {
|
|
9951
9951
|
status: string;
|
|
9952
|
-
hash: string;
|
|
9953
9952
|
network: string;
|
|
9953
|
+
hash: string;
|
|
9954
9954
|
transactionIndex: number;
|
|
9955
9955
|
blockNumber?: number | undefined;
|
|
9956
9956
|
};
|
|
@@ -10129,8 +10129,8 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10129
10129
|
}, {
|
|
10130
10130
|
status: "pending" | "success" | "failure";
|
|
10131
10131
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
10132
|
-
wallet: string;
|
|
10133
10132
|
network: string;
|
|
10133
|
+
wallet: string;
|
|
10134
10134
|
id: string;
|
|
10135
10135
|
group: "security" | "finance";
|
|
10136
10136
|
details: {
|
|
@@ -10347,8 +10347,8 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10347
10347
|
lastModified: number;
|
|
10348
10348
|
transaction: {
|
|
10349
10349
|
status: string;
|
|
10350
|
-
hash: string;
|
|
10351
10350
|
network: string;
|
|
10351
|
+
hash: string;
|
|
10352
10352
|
transactionIndex: number;
|
|
10353
10353
|
blockNumber?: number | undefined;
|
|
10354
10354
|
};
|
|
@@ -10545,14 +10545,14 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
10545
10545
|
transactionIndex: z.ZodNumber;
|
|
10546
10546
|
}, "strip", z.ZodTypeAny, {
|
|
10547
10547
|
status: string;
|
|
10548
|
-
hash: string;
|
|
10549
10548
|
network: string;
|
|
10549
|
+
hash: string;
|
|
10550
10550
|
transactionIndex: number;
|
|
10551
10551
|
blockNumber?: number | undefined;
|
|
10552
10552
|
}, {
|
|
10553
10553
|
status: string;
|
|
10554
|
-
hash: string;
|
|
10555
10554
|
network: string;
|
|
10555
|
+
hash: string;
|
|
10556
10556
|
transactionIndex: number;
|
|
10557
10557
|
blockNumber?: number | undefined;
|
|
10558
10558
|
}>;
|
|
@@ -12797,8 +12797,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
12797
12797
|
}, "strip", z.ZodTypeAny, {
|
|
12798
12798
|
status: "pending" | "success" | "failure";
|
|
12799
12799
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
12800
|
-
wallet: `0x${string}`;
|
|
12801
12800
|
network: string;
|
|
12801
|
+
wallet: `0x${string}`;
|
|
12802
12802
|
id: string;
|
|
12803
12803
|
group: "security" | "finance";
|
|
12804
12804
|
details: {
|
|
@@ -13015,8 +13015,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13015
13015
|
lastModified: number;
|
|
13016
13016
|
transaction: {
|
|
13017
13017
|
status: string;
|
|
13018
|
-
hash: string;
|
|
13019
13018
|
network: string;
|
|
13019
|
+
hash: string;
|
|
13020
13020
|
transactionIndex: number;
|
|
13021
13021
|
blockNumber?: number | undefined;
|
|
13022
13022
|
};
|
|
@@ -13195,8 +13195,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13195
13195
|
}, {
|
|
13196
13196
|
status: "pending" | "success" | "failure";
|
|
13197
13197
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
13198
|
-
wallet: string;
|
|
13199
13198
|
network: string;
|
|
13199
|
+
wallet: string;
|
|
13200
13200
|
id: string;
|
|
13201
13201
|
group: "security" | "finance";
|
|
13202
13202
|
details: {
|
|
@@ -13413,8 +13413,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13413
13413
|
lastModified: number;
|
|
13414
13414
|
transaction: {
|
|
13415
13415
|
status: string;
|
|
13416
|
-
hash: string;
|
|
13417
13416
|
network: string;
|
|
13417
|
+
hash: string;
|
|
13418
13418
|
transactionIndex: number;
|
|
13419
13419
|
blockNumber?: number | undefined;
|
|
13420
13420
|
};
|
|
@@ -13601,8 +13601,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13601
13601
|
activities: {
|
|
13602
13602
|
status: "pending" | "success" | "failure";
|
|
13603
13603
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
13604
|
-
wallet: `0x${string}`;
|
|
13605
13604
|
network: string;
|
|
13605
|
+
wallet: `0x${string}`;
|
|
13606
13606
|
id: string;
|
|
13607
13607
|
group: "security" | "finance";
|
|
13608
13608
|
details: {
|
|
@@ -13819,8 +13819,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13819
13819
|
lastModified: number;
|
|
13820
13820
|
transaction: {
|
|
13821
13821
|
status: string;
|
|
13822
|
-
hash: string;
|
|
13823
13822
|
network: string;
|
|
13823
|
+
hash: string;
|
|
13824
13824
|
transactionIndex: number;
|
|
13825
13825
|
blockNumber?: number | undefined;
|
|
13826
13826
|
};
|
|
@@ -14005,8 +14005,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
14005
14005
|
activities: {
|
|
14006
14006
|
status: "pending" | "success" | "failure";
|
|
14007
14007
|
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
14008
|
-
wallet: string;
|
|
14009
14008
|
network: string;
|
|
14009
|
+
wallet: string;
|
|
14010
14010
|
id: string;
|
|
14011
14011
|
group: "security" | "finance";
|
|
14012
14012
|
details: {
|
|
@@ -14223,8 +14223,8 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
14223
14223
|
lastModified: number;
|
|
14224
14224
|
transaction: {
|
|
14225
14225
|
status: string;
|
|
14226
|
-
hash: string;
|
|
14227
14226
|
network: string;
|
|
14227
|
+
hash: string;
|
|
14228
14228
|
transactionIndex: number;
|
|
14229
14229
|
blockNumber?: number | undefined;
|
|
14230
14230
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argent/x-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/argentlabs/x-shared.git"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"typescript": "5.7.2",
|
|
66
66
|
"vite": "6.0.2",
|
|
67
67
|
"vite-plugin-dts": "4.3.0",
|
|
68
|
-
"vitest": "2.1.
|
|
68
|
+
"vitest": "2.1.8"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@argent/x-multicall": "^7.1.0",
|