@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.
@@ -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()]), l = a.object({
3
+ const n = a.union([a.string(), a.number(), a.bigint()]), s = a.object({
4
4
  low: n,
5
5
  high: n
6
- }), s = a.array(a.string()).and(a.object({
6
+ }), l = a.array(a.string()).and(a.object({
7
7
  __compiled__: a.boolean().optional()
8
- }).optional()), i = a.lazy(() => a.array(a.union([o, a.array(o), r]))), o = a.union([
8
+ }).optional()), i = a.lazy(() => a.array(a.union([r, a.array(r), o]))), r = a.union([
9
9
  n,
10
- l,
10
+ s,
11
11
  a.any(),
12
12
  a.boolean()
13
- ]), m = a.lazy(() => a.record(a.union([o, a.array(o), r]))), r = a.lazy(() => a.union([m, i])), h = a.union([r, s]).optional(), d = a.lazy(() => a.object({
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: h,
15
+ calldata: d,
16
16
  entrypoint: a.string().optional()
17
- })), g = a.lazy(() => d.and(a.object({
17
+ })), u = a.lazy(() => h.and(a.object({
18
18
  entrypoint: a.string()
19
- }))), e = a.string().refine((t) => typeof parseInt(t) == "number"), S = a.tuple([e]), b = a.tuple([e]), y = a.object({
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
- }), _ = a.object({
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
- }), C = a.object({
25
+ }), _ = a.object({
26
26
  signer_to_remove: e,
27
27
  signer_to_add: e
28
- }), f = a.tuple([e]), j = a.tuple([e]), w = a.tuple([e]), z = a.tuple([e]).rest(e), A = a.object({
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
- y as addOwnersCalldataSchema,
37
- j as addPluginCalldataSchema,
56
+ S as addOwnersCalldataSchema,
57
+ f as addPluginCalldataSchema,
38
58
  n as bigNumberishSchema,
39
- d as callDetailsSchema,
40
- g as callSchema,
41
- s as calldataSchema,
42
- S as changeGuardianCalldataSchema,
43
- f as changeThresholdCalldataSchema,
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
- h as looseCalldataSchema,
48
- o as multiTypeSchema,
67
+ d as looseCalldataSchema,
68
+ r as multiTypeSchema,
49
69
  i as rawArgsArraySchema,
50
70
  m as rawArgsObjectSchema,
51
- r as rawArgsSchema,
52
- _ as removeOwnersCalldataSchema,
71
+ o as rawArgsSchema,
72
+ j as removeOwnersCalldataSchema,
53
73
  w as removePluginCalldataSchema,
54
- C as replaceSignerCalldataSchema,
74
+ _ as replaceSignerCalldataSchema,
55
75
  A as transferCalldataSchema,
56
- l as uint256Schema
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.60.0",
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": {