ox 1.0.0-beta.19 → 1.0.0-beta.20

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.
Files changed (77) hide show
  1. package/dist/tempo/KeyAuthorization.js +4 -4
  2. package/dist/tempo/KeyAuthorization.js.map +1 -1
  3. package/dist/zod/Abi.d.ts +214 -0
  4. package/dist/zod/Abi.d.ts.map +1 -0
  5. package/dist/zod/Abi.js +5 -0
  6. package/dist/zod/Abi.js.map +1 -0
  7. package/dist/zod/AbiConstructor.d.ts +58 -0
  8. package/dist/zod/AbiConstructor.d.ts.map +1 -0
  9. package/dist/zod/AbiConstructor.js +18 -0
  10. package/dist/zod/AbiConstructor.js.map +1 -0
  11. package/dist/zod/AbiError.d.ts +20 -0
  12. package/dist/zod/AbiError.d.ts.map +1 -0
  13. package/dist/zod/AbiError.js +9 -0
  14. package/dist/zod/AbiError.js.map +1 -0
  15. package/dist/zod/AbiEvent.d.ts +23 -0
  16. package/dist/zod/AbiEvent.d.ts.map +1 -0
  17. package/dist/zod/AbiEvent.js +11 -0
  18. package/dist/zod/AbiEvent.js.map +1 -0
  19. package/dist/zod/AbiFallback.d.ts +16 -0
  20. package/dist/zod/AbiFallback.d.ts.map +1 -0
  21. package/dist/zod/AbiFallback.js +16 -0
  22. package/dist/zod/AbiFallback.js.map +1 -0
  23. package/dist/zod/AbiFunction.d.ts +109 -0
  24. package/dist/zod/AbiFunction.d.ts.map +1 -0
  25. package/dist/zod/AbiFunction.js +26 -0
  26. package/dist/zod/AbiFunction.js.map +1 -0
  27. package/dist/zod/AbiItem.d.ts +216 -0
  28. package/dist/zod/AbiItem.d.ts.map +1 -0
  29. package/dist/zod/AbiItem.js +26 -0
  30. package/dist/zod/AbiItem.js.map +1 -0
  31. package/dist/zod/AbiParameter.d.ts +32 -0
  32. package/dist/zod/AbiParameter.d.ts.map +1 -0
  33. package/dist/zod/AbiParameter.js +28 -0
  34. package/dist/zod/AbiParameter.js.map +1 -0
  35. package/dist/zod/AbiParameters.d.ts +30 -0
  36. package/dist/zod/AbiParameters.d.ts.map +1 -0
  37. package/dist/zod/AbiParameters.js +6 -0
  38. package/dist/zod/AbiParameters.js.map +1 -0
  39. package/dist/zod/AbiReceive.d.ts +6 -0
  40. package/dist/zod/AbiReceive.d.ts.map +1 -0
  41. package/dist/zod/AbiReceive.js +7 -0
  42. package/dist/zod/AbiReceive.js.map +1 -0
  43. package/dist/zod/Solidity.d.ts +15 -0
  44. package/dist/zod/Solidity.d.ts.map +1 -0
  45. package/dist/zod/Solidity.js +41 -0
  46. package/dist/zod/Solidity.js.map +1 -0
  47. package/dist/zod/TypedData.d.ts +226 -0
  48. package/dist/zod/TypedData.d.ts.map +1 -0
  49. package/dist/zod/TypedData.js +84 -0
  50. package/dist/zod/TypedData.js.map +1 -0
  51. package/dist/zod/z.d.ts +12 -0
  52. package/dist/zod/z.d.ts.map +1 -1
  53. package/dist/zod/z.js +12 -0
  54. package/dist/zod/z.js.map +1 -1
  55. package/package.json +61 -1
  56. package/src/tempo/KeyAuthorization.test.ts +22 -0
  57. package/src/tempo/KeyAuthorization.ts +4 -4
  58. package/src/version.ts +1 -1
  59. package/src/zod/Abi.ts +5 -0
  60. package/src/zod/AbiConstructor.ts +24 -0
  61. package/src/zod/AbiError.ts +9 -0
  62. package/src/zod/AbiEvent.ts +11 -0
  63. package/src/zod/AbiFallback.ts +22 -0
  64. package/src/zod/AbiFunction.ts +32 -0
  65. package/src/zod/AbiItem.ts +28 -0
  66. package/src/zod/AbiParameter.ts +36 -0
  67. package/src/zod/AbiParameters.ts +7 -0
  68. package/src/zod/AbiReceive.ts +7 -0
  69. package/src/zod/Solidity.ts +83 -0
  70. package/src/zod/TypedData.ts +111 -0
  71. package/src/zod/_test/Abi.test-d.ts +46 -0
  72. package/src/zod/_test/Abi.test.ts +163 -0
  73. package/src/zod/_test/TypedData.test-d.ts +20 -0
  74. package/src/zod/_test/TypedData.test.ts +87 -0
  75. package/src/zod/_test/z.test-d.ts +6 -0
  76. package/src/zod/_test/z.test.ts +17 -0
  77. package/src/zod/z.ts +12 -0
@@ -0,0 +1,109 @@
1
+ import * as z from 'zod/mini';
2
+ export declare const StateMutability: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pure">, z.ZodMiniLiteral<"view">, z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>;
3
+ export declare const AbiFunction: z.ZodMiniPipe<z.ZodMiniObject<{
4
+ type: z.ZodMiniLiteral<"function">;
5
+ constant: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
6
+ gas: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
7
+ inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
8
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
9
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
10
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
11
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
12
+ }, z.core.$strip>, z.ZodMiniObject<{
13
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
14
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
15
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
16
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
17
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
18
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
19
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
20
+ }, z.core.$strip>]>>>>;
21
+ name: z.ZodMiniString<string>;
22
+ outputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
23
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
24
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
25
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
26
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
27
+ }, z.core.$strip>, z.ZodMiniObject<{
28
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
29
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
30
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
31
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
32
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
33
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
34
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
35
+ }, z.core.$strip>]>>>>;
36
+ payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
37
+ stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pure">, z.ZodMiniLiteral<"view">, z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
38
+ }, z.core.$strip>, z.ZodMiniTransform<{
39
+ stateMutability: "pure" | "view" | "nonpayable" | "payable";
40
+ type: "function";
41
+ inputs: readonly ({
42
+ name?: string | undefined;
43
+ internalType?: string | undefined;
44
+ } & ({
45
+ type: string;
46
+ } | {
47
+ type: string;
48
+ components: readonly ({
49
+ name?: string | undefined;
50
+ internalType?: string | undefined;
51
+ } & ({
52
+ type: string;
53
+ } | any))[];
54
+ }))[];
55
+ name: string;
56
+ outputs: readonly ({
57
+ name?: string | undefined;
58
+ internalType?: string | undefined;
59
+ } & ({
60
+ type: string;
61
+ } | {
62
+ type: string;
63
+ components: readonly ({
64
+ name?: string | undefined;
65
+ internalType?: string | undefined;
66
+ } & ({
67
+ type: string;
68
+ } | any))[];
69
+ }))[];
70
+ constant?: boolean | undefined;
71
+ gas?: number | undefined;
72
+ payable?: boolean | undefined;
73
+ }, {
74
+ type: "function";
75
+ inputs: readonly ({
76
+ name?: string | undefined;
77
+ internalType?: string | undefined;
78
+ } & ({
79
+ type: string;
80
+ } | {
81
+ type: string;
82
+ components: readonly ({
83
+ name?: string | undefined;
84
+ internalType?: string | undefined;
85
+ } & ({
86
+ type: string;
87
+ } | any))[];
88
+ }))[];
89
+ name: string;
90
+ outputs: readonly ({
91
+ name?: string | undefined;
92
+ internalType?: string | undefined;
93
+ } & ({
94
+ type: string;
95
+ } | {
96
+ type: string;
97
+ components: readonly ({
98
+ name?: string | undefined;
99
+ internalType?: string | undefined;
100
+ } & ({
101
+ type: string;
102
+ } | any))[];
103
+ }))[];
104
+ constant?: boolean | undefined;
105
+ gas?: number | undefined;
106
+ payable?: boolean | undefined;
107
+ stateMutability?: "pure" | "view" | "nonpayable" | "payable" | undefined;
108
+ }>>;
109
+ //# sourceMappingURL=AbiFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiFunction.d.ts","sourceRoot":"","sources":["../../src/zod/AbiFunction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,eAAe,4IAK1B,CAAA;AAaF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQvB,CAAA"}
@@ -0,0 +1,26 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as z_AbiParameter from './AbiParameter.js';
3
+ import * as z_Solidity from './Solidity.js';
4
+ import * as z from 'zod/mini';
5
+ export const StateMutability = z.union([
6
+ z.literal('pure'),
7
+ z.literal('view'),
8
+ z.literal('nonpayable'),
9
+ z.literal('payable'),
10
+ ]);
11
+ const Raw = z.object({
12
+ type: z.literal('function'),
13
+ constant: z.optional(z.boolean()),
14
+ gas: z.optional(z.number()),
15
+ inputs: z.readonly(z.array(z_AbiParameter.AbiParameter)),
16
+ name: z_Solidity.Identifier,
17
+ outputs: z.readonly(z.array(z_AbiParameter.AbiParameter)),
18
+ payable: z.optional(z.boolean()),
19
+ stateMutability: z.optional(StateMutability),
20
+ });
21
+ export const AbiFunction = z.pipe(Raw, z.transform((value) => ({
22
+ ...value,
23
+ stateMutability: value.stateMutability ??
24
+ (value.constant ? 'view' : value.payable ? 'payable' : 'nonpayable'),
25
+ })));
26
+ //# sourceMappingURL=AbiFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiFunction.js","sourceRoot":"","sources":["../../src/zod/AbiFunction.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,UAAU,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACjB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACjB,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACvB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CACrB,CAAC,CAAA;AAEF,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACxD,IAAI,EAAE,UAAU,CAAC,UAAU;IAC3B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC;CAC7C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAC/B,GAAG,EACH,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACtB,GAAG,KAAK;IACR,eAAe,EACb,KAAK,CAAC,eAAe;QACrB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC;CACvE,CAAC,CAAC,CACJ,CAAA"}
@@ -0,0 +1,216 @@
1
+ import * as z from 'zod/mini';
2
+ export declare const Type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"constructor">, z.ZodMiniLiteral<"event">, z.ZodMiniLiteral<"error">, z.ZodMiniLiteral<"fallback">, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"receive">]>;
3
+ export declare const AbiItem: z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniObject<{
4
+ type: z.ZodMiniLiteral<"constructor">;
5
+ inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
6
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
7
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
8
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
9
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
10
+ }, z.core.$strip>, z.ZodMiniObject<{
11
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
12
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
13
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
14
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
15
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
16
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
17
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
18
+ }, z.core.$strip>]>>>>;
19
+ payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
20
+ stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
21
+ }, z.core.$strip>, z.ZodMiniTransform<{
22
+ stateMutability: "nonpayable" | "payable";
23
+ type: "constructor";
24
+ inputs: readonly ({
25
+ name?: string | undefined;
26
+ internalType?: string | undefined;
27
+ } & ({
28
+ type: string;
29
+ } | {
30
+ type: string;
31
+ components: readonly ({
32
+ name?: string | undefined;
33
+ internalType?: string | undefined;
34
+ } & ({
35
+ type: string;
36
+ } | any))[];
37
+ }))[];
38
+ payable?: boolean | undefined;
39
+ }, {
40
+ type: "constructor";
41
+ inputs: readonly ({
42
+ name?: string | undefined;
43
+ internalType?: string | undefined;
44
+ } & ({
45
+ type: string;
46
+ } | {
47
+ type: string;
48
+ components: readonly ({
49
+ name?: string | undefined;
50
+ internalType?: string | undefined;
51
+ } & ({
52
+ type: string;
53
+ } | any))[];
54
+ }))[];
55
+ payable?: boolean | undefined;
56
+ stateMutability?: "nonpayable" | "payable" | undefined;
57
+ }>>, z.ZodMiniObject<{
58
+ type: z.ZodMiniLiteral<"error">;
59
+ inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
60
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
61
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
62
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
63
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
64
+ }, z.core.$strip>, z.ZodMiniObject<{
65
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
66
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
67
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
68
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
69
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
70
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
71
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
72
+ }, z.core.$strip>]>>>>;
73
+ name: z.ZodMiniString<string>;
74
+ }, z.core.$strip>, z.ZodMiniObject<{
75
+ type: z.ZodMiniLiteral<"event">;
76
+ anonymous: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
77
+ inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniIntersection<z.ZodMiniObject<{
78
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
79
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
80
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
81
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
82
+ }, z.core.$strip>, z.ZodMiniObject<{
83
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
84
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
85
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
86
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
87
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
88
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
89
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
90
+ }, z.core.$strip>]>>, z.ZodMiniObject<{
91
+ indexed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
92
+ }, z.core.$strip>>>>;
93
+ name: z.ZodMiniString<string>;
94
+ }, z.core.$strip>, z.ZodMiniPipe<z.ZodMiniObject<{
95
+ type: z.ZodMiniLiteral<"fallback">;
96
+ payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
97
+ stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
98
+ }, z.core.$strip>, z.ZodMiniTransform<{
99
+ stateMutability: "nonpayable" | "payable";
100
+ type: "fallback";
101
+ payable?: boolean | undefined;
102
+ }, {
103
+ type: "fallback";
104
+ payable?: boolean | undefined;
105
+ stateMutability?: "nonpayable" | "payable" | undefined;
106
+ }>>, z.ZodMiniPipe<z.ZodMiniObject<{
107
+ type: z.ZodMiniLiteral<"function">;
108
+ constant: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
109
+ gas: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
110
+ inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
111
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
112
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
113
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
114
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
115
+ }, z.core.$strip>, z.ZodMiniObject<{
116
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
117
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
118
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
119
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
120
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
121
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
122
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
123
+ }, z.core.$strip>]>>>>;
124
+ name: z.ZodMiniString<string>;
125
+ outputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
126
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
127
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
128
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
129
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
130
+ }, z.core.$strip>, z.ZodMiniObject<{
131
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
132
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
133
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
134
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
135
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
136
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
137
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
138
+ }, z.core.$strip>]>>>>;
139
+ payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
140
+ stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pure">, z.ZodMiniLiteral<"view">, z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
141
+ }, z.core.$strip>, z.ZodMiniTransform<{
142
+ stateMutability: "pure" | "view" | "nonpayable" | "payable";
143
+ type: "function";
144
+ inputs: readonly ({
145
+ name?: string | undefined;
146
+ internalType?: string | undefined;
147
+ } & ({
148
+ type: string;
149
+ } | {
150
+ type: string;
151
+ components: readonly ({
152
+ name?: string | undefined;
153
+ internalType?: string | undefined;
154
+ } & ({
155
+ type: string;
156
+ } | any))[];
157
+ }))[];
158
+ name: string;
159
+ outputs: readonly ({
160
+ name?: string | undefined;
161
+ internalType?: string | undefined;
162
+ } & ({
163
+ type: string;
164
+ } | {
165
+ type: string;
166
+ components: readonly ({
167
+ name?: string | undefined;
168
+ internalType?: string | undefined;
169
+ } & ({
170
+ type: string;
171
+ } | any))[];
172
+ }))[];
173
+ constant?: boolean | undefined;
174
+ gas?: number | undefined;
175
+ payable?: boolean | undefined;
176
+ }, {
177
+ type: "function";
178
+ inputs: readonly ({
179
+ name?: string | undefined;
180
+ internalType?: string | undefined;
181
+ } & ({
182
+ type: string;
183
+ } | {
184
+ type: string;
185
+ components: readonly ({
186
+ name?: string | undefined;
187
+ internalType?: string | undefined;
188
+ } & ({
189
+ type: string;
190
+ } | any))[];
191
+ }))[];
192
+ name: string;
193
+ outputs: readonly ({
194
+ name?: string | undefined;
195
+ internalType?: string | undefined;
196
+ } & ({
197
+ type: string;
198
+ } | {
199
+ type: string;
200
+ components: readonly ({
201
+ name?: string | undefined;
202
+ internalType?: string | undefined;
203
+ } & ({
204
+ type: string;
205
+ } | any))[];
206
+ }))[];
207
+ constant?: boolean | undefined;
208
+ gas?: number | undefined;
209
+ payable?: boolean | undefined;
210
+ stateMutability?: "pure" | "view" | "nonpayable" | "payable" | undefined;
211
+ }>>, z.ZodMiniObject<{
212
+ type: z.ZodMiniLiteral<"receive">;
213
+ stateMutability: z.ZodMiniLiteral<"payable">;
214
+ }, z.core.$strip>]>;
215
+ export declare const AbiItemType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"constructor">, z.ZodMiniLiteral<"event">, z.ZodMiniLiteral<"error">, z.ZodMiniLiteral<"fallback">, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"receive">]>;
216
+ //# sourceMappingURL=AbiItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiItem.d.ts","sourceRoot":"","sources":["../../src/zod/AbiItem.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,IAAI,2MAOf,CAAA;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAOlB,CAAA;AAEF,eAAO,MAAM,WAAW,2MAAO,CAAA"}
@@ -0,0 +1,26 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as z_AbiConstructor from './AbiConstructor.js';
3
+ import * as z_AbiError from './AbiError.js';
4
+ import * as z_AbiEvent from './AbiEvent.js';
5
+ import * as z_AbiFallback from './AbiFallback.js';
6
+ import * as z_AbiFunction from './AbiFunction.js';
7
+ import * as z_AbiReceive from './AbiReceive.js';
8
+ import * as z from 'zod/mini';
9
+ export const Type = z.union([
10
+ z.literal('constructor'),
11
+ z.literal('event'),
12
+ z.literal('error'),
13
+ z.literal('fallback'),
14
+ z.literal('function'),
15
+ z.literal('receive'),
16
+ ]);
17
+ export const AbiItem = z.union([
18
+ z_AbiConstructor.AbiConstructor,
19
+ z_AbiError.AbiError,
20
+ z_AbiEvent.AbiEvent,
21
+ z_AbiFallback.AbiFallback,
22
+ z_AbiFunction.AbiFunction,
23
+ z_AbiReceive.AbiReceive,
24
+ ]);
25
+ export const AbiItemType = Type;
26
+ //# sourceMappingURL=AbiItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiItem.js","sourceRoot":"","sources":["../../src/zod/AbiItem.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,UAAU,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC;IAC1B,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACxB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAClB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAClB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IACrB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IACrB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CACrB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC;IAC7B,gBAAgB,CAAC,cAAc;IAC/B,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,QAAQ;IACnB,aAAa,CAAC,WAAW;IACzB,aAAa,CAAC,WAAW;IACzB,YAAY,CAAC,UAAU;CACxB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAA"}
@@ -0,0 +1,32 @@
1
+ import * as z from 'zod/mini';
2
+ export declare const AbiParameter: z.ZodMiniIntersection<z.ZodMiniObject<{
3
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
4
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
5
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
6
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
7
+ }, z.core.$strip>, z.ZodMiniObject<{
8
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
9
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
10
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
11
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
12
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
13
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
14
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
15
+ }, z.core.$strip>]>>;
16
+ export declare const AbiEventParameter: z.ZodMiniIntersection<z.ZodMiniIntersection<z.ZodMiniObject<{
17
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
18
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
19
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
20
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
21
+ }, z.core.$strip>, z.ZodMiniObject<{
22
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
23
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
24
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
25
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
26
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
27
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
28
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
29
+ }, z.core.$strip>]>>, z.ZodMiniObject<{
30
+ indexed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
31
+ }, z.core.$strip>>;
32
+ //# sourceMappingURL=AbiParameter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiParameter.d.ts","sourceRoot":"","sources":["../../src/zod/AbiParameter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAc7B,eAAO,MAAM,YAAY;;;;;;;;;;;;;oBAcxB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;kBAG7B,CAAA"}
@@ -0,0 +1,28 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as z_Solidity from './Solidity.js';
3
+ import * as z from 'zod/mini';
4
+ const Name = z.union([z.optional(z_Solidity.Identifier), z.literal('')]);
5
+ const SimpleType = z.union([
6
+ z_Solidity.Address,
7
+ z_Solidity.Bool,
8
+ z_Solidity.Bytes,
9
+ z_Solidity.Function,
10
+ z_Solidity.String,
11
+ z_Solidity.Int,
12
+ z_Solidity.ArrayWithoutTuple,
13
+ ]);
14
+ const TupleType = z.union([z_Solidity.Tuple, z_Solidity.ArrayWithTuple]);
15
+ export const AbiParameter = z.intersection(z.object({
16
+ name: Name,
17
+ internalType: z.optional(z.string()),
18
+ }), z.union([
19
+ z.object({ type: SimpleType }),
20
+ z.object({
21
+ type: TupleType,
22
+ get components() {
23
+ return z.readonly(z.array(AbiParameter));
24
+ },
25
+ }),
26
+ ]));
27
+ export const AbiEventParameter = z.intersection(AbiParameter, z.object({ indexed: z.optional(z.boolean()) }));
28
+ //# sourceMappingURL=AbiParameter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiParameter.js","sourceRoot":"","sources":["../../src/zod/AbiParameter.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,UAAU,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AACxE,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC;IACzB,UAAU,CAAC,OAAO;IAClB,UAAU,CAAC,IAAI;IACf,UAAU,CAAC,KAAK;IAChB,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,GAAG;IACd,UAAU,CAAC,iBAAiB;CAC7B,CAAC,CAAA;AACF,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC,CAAA;AAExE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,YAAY,CACxC,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACrC,CAAC,EACF,CAAC,CAAC,KAAK,CAAC;IACN,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC9B,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,SAAS;QACf,IAAI,UAAU;YACZ,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAA;QAC1C,CAAC;KACF,CAAC;CACH,CAAC,CACH,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAC7C,YAAY,EACZ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAC/C,CAAA"}
@@ -0,0 +1,30 @@
1
+ import * as z from 'zod/mini';
2
+ export declare const AbiParameters: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
3
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
4
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
5
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
6
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
7
+ }, z.core.$strip>, z.ZodMiniObject<{
8
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
9
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
10
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
11
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
12
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
13
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
14
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
15
+ }, z.core.$strip>]>>>>;
16
+ export declare const Parameter: z.ZodMiniIntersection<z.ZodMiniObject<{
17
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
18
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
19
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
20
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
21
+ }, z.core.$strip>, z.ZodMiniObject<{
22
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
23
+ components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
24
+ name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
25
+ internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
26
+ }, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
27
+ type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
28
+ }, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
29
+ }, z.core.$strip>]>>;
30
+ //# sourceMappingURL=AbiParameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiParameters.d.ts","sourceRoot":"","sources":["../../src/zod/AbiParameters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,aAAa;;;;;;;;;;;;;sBAAmD,CAAA;AAE7E,eAAO,MAAM,SAAS;;;;;;;;;;;;;oBAA8B,CAAA"}
@@ -0,0 +1,6 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as z_AbiParameter from './AbiParameter.js';
3
+ import * as z from 'zod/mini';
4
+ export const AbiParameters = z.readonly(z.array(z_AbiParameter.AbiParameter));
5
+ export const Parameter = z_AbiParameter.AbiParameter;
6
+ //# sourceMappingURL=AbiParameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiParameters.js","sourceRoot":"","sources":["../../src/zod/AbiParameters.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAA;AAE7E,MAAM,CAAC,MAAM,SAAS,GAAG,cAAc,CAAC,YAAY,CAAA"}
@@ -0,0 +1,6 @@
1
+ import * as z from 'zod/mini';
2
+ export declare const AbiReceive: z.ZodMiniObject<{
3
+ type: z.ZodMiniLiteral<"receive">;
4
+ stateMutability: z.ZodMiniLiteral<"payable">;
5
+ }, z.core.$strip>;
6
+ //# sourceMappingURL=AbiReceive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiReceive.d.ts","sourceRoot":"","sources":["../../src/zod/AbiReceive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,UAAU;;;iBAGrB,CAAA"}
@@ -0,0 +1,7 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as z from 'zod/mini';
3
+ export const AbiReceive = z.object({
4
+ type: z.literal('receive'),
5
+ stateMutability: z.literal('payable'),
6
+ });
7
+ //# sourceMappingURL=AbiReceive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbiReceive.js","sourceRoot":"","sources":["../../src/zod/AbiReceive.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CACtC,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import * as z from 'zod/mini';
2
+ export declare const Identifier: z.ZodMiniString<string>;
3
+ export declare const Address: z.ZodMiniLiteral<"address">;
4
+ export declare const Bool: z.ZodMiniLiteral<"bool">;
5
+ export declare const Bytes: z.ZodMiniString<string>;
6
+ export declare const Function: z.ZodMiniLiteral<"function">;
7
+ export declare const String: z.ZodMiniLiteral<"string">;
8
+ export declare const Tuple: z.ZodMiniLiteral<"tuple">;
9
+ export declare const Int: z.ZodMiniString<string>;
10
+ export declare const ArrayWithoutTuple: z.ZodMiniString<string>;
11
+ export declare const ArrayWithTuple: z.ZodMiniString<string>;
12
+ export declare const Array: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniString<string>]>;
13
+ export declare const Type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniString<string>]>]>;
14
+ export declare function isType(type: string): boolean;
15
+ //# sourceMappingURL=Solidity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Solidity.d.ts","sourceRoot":"","sources":["../../src/zod/Solidity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,UAAU,yBAOpB,CAAA;AAEH,eAAO,MAAM,OAAO,6BAAuB,CAAA;AAC3C,eAAO,MAAM,IAAI,0BAAoB,CAAA;AACrC,eAAO,MAAM,KAAK,yBAQf,CAAA;AACH,eAAO,MAAM,QAAQ,8BAAwB,CAAA;AAC7C,eAAO,MAAM,MAAM,4BAAsB,CAAA;AACzC,eAAO,MAAM,KAAK,2BAAqB,CAAA;AACvC,eAAO,MAAM,GAAG,yBAUb,CAAA;AACH,eAAO,MAAM,iBAAiB,yBAU3B,CAAA;AACH,eAAO,MAAM,cAAc,yBAQxB,CAAA;AACH,eAAO,MAAM,KAAK,6EAA+C,CAAA;AAEjE,eAAO,MAAM,IAAI,sSASf,CAAA;AAEF,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,WAWlC"}
@@ -0,0 +1,41 @@
1
+ import * as z from 'zod/mini';
2
+ export const Identifier = z
3
+ .string()
4
+ .check(z.refine((value) => /^[a-zA-Z$_][a-zA-Z0-9$_]*$/.test(value), 'expected identifier'));
5
+ export const Address = z.literal('address');
6
+ export const Bool = z.literal('bool');
7
+ export const Bytes = z
8
+ .string()
9
+ .check(z.refine((value) => /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(value), 'expected Solidity bytes type'));
10
+ export const Function = z.literal('function');
11
+ export const String = z.literal('string');
12
+ export const Tuple = z.literal('tuple');
13
+ export const Int = z
14
+ .string()
15
+ .check(z.refine((value) => /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(value), 'expected Solidity integer type'));
16
+ export const ArrayWithoutTuple = z
17
+ .string()
18
+ .check(z.refine((value) => /^(address|bool|function|string|bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?|u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?)(\[[0-9]{0,}\])+$/.test(value), 'expected Solidity array type'));
19
+ export const ArrayWithTuple = z
20
+ .string()
21
+ .check(z.refine((value) => /^tuple(\[[0-9]{0,}\])+$/.test(value), 'expected Solidity tuple array type'));
22
+ export const Array = z.union([ArrayWithTuple, ArrayWithoutTuple]);
23
+ export const Type = z.union([
24
+ Address,
25
+ Bool,
26
+ Bytes,
27
+ Function,
28
+ String,
29
+ Tuple,
30
+ Int,
31
+ Array,
32
+ ]);
33
+ export function isType(type) {
34
+ return (type === 'address' ||
35
+ type === 'bool' ||
36
+ type === 'function' ||
37
+ type === 'string' ||
38
+ /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(type) ||
39
+ /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(type));
40
+ }
41
+ //# sourceMappingURL=Solidity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Solidity.js","sourceRoot":"","sources":["../../src/zod/Solidity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,EAAE;KACR,KAAK,CACJ,CAAC,CAAC,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CAAC,4BAA4B,CAAC,IAAI,CAAC,KAAK,CAAC,EACnD,qBAAqB,CACtB,CACF,CAAA;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;AAC3C,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;AACrC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC;KACnB,MAAM,EAAE;KACR,KAAK,CACJ,CAAC,CAAC,MAAM,CACN,CAAC,KAAK,EAAkC,EAAE,CACxC,sCAAsC,CAAC,IAAI,CAAC,KAAK,CAAC,EACpD,8BAA8B,CAC/B,CACF,CAAA;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;AAC7C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;AACzC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;KACjB,MAAM,EAAE;KACR,KAAK,CACJ,CAAC,CAAC,MAAM,CACN,CAAC,KAAK,EAAgC,EAAE,CACtC,8HAA8H,CAAC,IAAI,CACjI,KAAK,CACN,EACH,gCAAgC,CACjC,CACF,CAAA;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,KAAK,CACJ,CAAC,CAAC,MAAM,CACN,CAAC,KAAK,EAA8C,EAAE,CACpD,gNAAgN,CAAC,IAAI,CACnN,KAAK,CACN,EACH,8BAA8B,CAC/B,CACF,CAAA;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,KAAK,CACJ,CAAC,CAAC,MAAM,CACN,CAAC,KAAK,EAA2C,EAAE,CACjD,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,EACvC,oCAAoC,CACrC,CACF,CAAA;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC,CAAA;AAEjE,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC;IAC1B,OAAO;IACP,IAAI;IACJ,KAAK;IACL,QAAQ;IACR,MAAM;IACN,KAAK;IACL,GAAG;IACH,KAAK;CACN,CAAC,CAAA;AAEF,MAAM,UAAU,MAAM,CAAC,IAAY;IACjC,OAAO,CACL,IAAI,KAAK,SAAS;QAClB,IAAI,KAAK,MAAM;QACf,IAAI,KAAK,UAAU;QACnB,IAAI,KAAK,QAAQ;QACjB,sCAAsC,CAAC,IAAI,CAAC,IAAI,CAAC;QACjD,8HAA8H,CAAC,IAAI,CACjI,IAAI,CACL,CACF,CAAA;AACH,CAAC"}