@argent/x-shared 1.60.0 → 1.62.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/index.cjs +1 -1
- package/dist/index.js +185 -180
- package/dist/paymaster.cjs +1 -0
- package/dist/paymaster.d.ts +2 -0
- package/dist/paymaster.js +8 -0
- package/dist/src/features/paymaster/IPaymasterService.d.ts +6 -0
- package/dist/src/features/paymaster/PaymasterService.cjs +1 -0
- package/dist/src/features/paymaster/PaymasterService.d.ts +12 -0
- package/dist/src/features/paymaster/PaymasterService.js +60 -0
- package/dist/src/features/paymaster/index.d.ts +3 -0
- package/dist/src/features/paymaster/types.cjs +1 -0
- package/dist/src/features/paymaster/types.d.ts +151 -0
- package/dist/src/features/paymaster/types.js +25 -0
- package/dist/src/transactions/estimate/utilsV2.cjs +1 -1
- package/dist/src/transactions/estimate/utilsV2.d.ts +16 -4
- package/dist/src/transactions/estimate/utilsV2.js +86 -75
- package/dist/src/transactions/getTransactionVersion.js +1 -1
- package/dist/src/utils/starknet/starknet.cjs +1 -1
- package/dist/src/utils/starknet/starknet.d.ts +71 -0
- package/dist/src/utils/starknet/starknet.js +45 -24
- package/package.json +6 -1
|
@@ -1,57 +1,78 @@
|
|
|
1
1
|
import { z as a } from "zod";
|
|
2
2
|
import { addressSchema as c } from "../../chains/starknet/address.js";
|
|
3
|
-
const n = a.union([a.string(), a.number(), a.bigint()]),
|
|
3
|
+
const n = a.union([a.string(), a.number(), a.bigint()]), s = a.object({
|
|
4
4
|
low: n,
|
|
5
5
|
high: n
|
|
6
|
-
}),
|
|
6
|
+
}), l = a.array(a.string()).and(a.object({
|
|
7
7
|
__compiled__: a.boolean().optional()
|
|
8
|
-
}).optional()), i = a.lazy(() => a.array(a.union([
|
|
8
|
+
}).optional()), i = a.lazy(() => a.array(a.union([r, a.array(r), o]))), r = a.union([
|
|
9
9
|
n,
|
|
10
|
-
|
|
10
|
+
s,
|
|
11
11
|
a.any(),
|
|
12
12
|
a.boolean()
|
|
13
|
-
]), m = a.lazy(() => a.record(a.union([
|
|
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(), h = a.lazy(() => a.object({
|
|
14
14
|
contractAddress: a.string(),
|
|
15
|
-
calldata:
|
|
15
|
+
calldata: d,
|
|
16
16
|
entrypoint: a.string().optional()
|
|
17
|
-
})),
|
|
17
|
+
})), u = a.lazy(() => h.and(a.object({
|
|
18
18
|
entrypoint: a.string()
|
|
19
|
-
}))), e = a.string().refine((t) => typeof parseInt(t) == "number"),
|
|
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"),
|
|
21
21
|
signers_to_add: a.array(e)
|
|
22
|
-
}),
|
|
22
|
+
}), j = a.object({
|
|
23
23
|
new_threshold: a.string().refine((t) => typeof parseInt(t) == "number"),
|
|
24
24
|
signers_to_remove: a.array(e)
|
|
25
|
-
}),
|
|
25
|
+
}), _ = a.object({
|
|
26
26
|
signer_to_remove: e,
|
|
27
27
|
signer_to_add: e
|
|
28
|
-
}),
|
|
28
|
+
}), C = a.tuple([e]), f = a.tuple([e]), w = a.tuple([e]), z = a.tuple([e]).rest(e), A = a.object({
|
|
29
29
|
recipient: c,
|
|
30
30
|
amount: a.object({
|
|
31
31
|
low: n,
|
|
32
32
|
high: n
|
|
33
33
|
})
|
|
34
|
+
}), v = a.object({
|
|
35
|
+
types: a.record(a.array(a.union([
|
|
36
|
+
a.object({
|
|
37
|
+
name: a.string(),
|
|
38
|
+
type: a.literal("merkletree"),
|
|
39
|
+
contains: a.string()
|
|
40
|
+
}),
|
|
41
|
+
a.object({
|
|
42
|
+
name: a.string(),
|
|
43
|
+
type: a.literal("enum"),
|
|
44
|
+
contains: a.string()
|
|
45
|
+
}),
|
|
46
|
+
a.object({
|
|
47
|
+
name: a.string(),
|
|
48
|
+
type: a.string()
|
|
49
|
+
})
|
|
50
|
+
]))),
|
|
51
|
+
primaryType: a.string(),
|
|
52
|
+
domain: a.record(a.unknown()),
|
|
53
|
+
message: a.object({})
|
|
34
54
|
});
|
|
35
55
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
56
|
+
S as addOwnersCalldataSchema,
|
|
57
|
+
f as addPluginCalldataSchema,
|
|
38
58
|
n as bigNumberishSchema,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
59
|
+
h as callDetailsSchema,
|
|
60
|
+
u as callSchema,
|
|
61
|
+
l as calldataSchema,
|
|
62
|
+
y as changeGuardianCalldataSchema,
|
|
63
|
+
C as changeThresholdCalldataSchema,
|
|
44
64
|
b as escapeGuardianCalldataSchema,
|
|
45
65
|
z as executeOnPluginCalldataSchema,
|
|
46
66
|
e as feltSchema,
|
|
47
|
-
|
|
48
|
-
|
|
67
|
+
d as looseCalldataSchema,
|
|
68
|
+
r as multiTypeSchema,
|
|
49
69
|
i as rawArgsArraySchema,
|
|
50
70
|
m as rawArgsObjectSchema,
|
|
51
|
-
|
|
52
|
-
|
|
71
|
+
o as rawArgsSchema,
|
|
72
|
+
j as removeOwnersCalldataSchema,
|
|
53
73
|
w as removePluginCalldataSchema,
|
|
54
|
-
|
|
74
|
+
_ as replaceSignerCalldataSchema,
|
|
55
75
|
A as transferCalldataSchema,
|
|
56
|
-
|
|
76
|
+
v as typedDataSchema,
|
|
77
|
+
s as uint256Schema
|
|
57
78
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argent/x-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.62.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/argentlabs/x-shared.git"
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"types": "./dist/swap.d.ts",
|
|
31
31
|
"import": "./dist/swap.js",
|
|
32
32
|
"default": "./dist/swap.cjs"
|
|
33
|
+
},
|
|
34
|
+
"./paymaster": {
|
|
35
|
+
"types": "./dist/paymaster.d.ts",
|
|
36
|
+
"import": "./dist/paymaster.js",
|
|
37
|
+
"default": "./dist/paymaster.cjs"
|
|
33
38
|
}
|
|
34
39
|
},
|
|
35
40
|
"scripts": {
|