@evergonlabs/tmi-protocol-types 0.1.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.
Files changed (145) hide show
  1. package/dist/chunk-2KI5OZLW.js +2 -0
  2. package/dist/chunk-2KI5OZLW.js.map +1 -0
  3. package/dist/chunk-2RUMPEU7.js +1 -0
  4. package/dist/chunk-2RUMPEU7.js.map +1 -0
  5. package/dist/chunk-3O2X45IG.js +2 -0
  6. package/dist/chunk-3O2X45IG.js.map +1 -0
  7. package/dist/chunk-BQLDMR6G.js +1 -0
  8. package/dist/chunk-BQLDMR6G.js.map +1 -0
  9. package/dist/chunk-CA4TYRQC.js +2 -0
  10. package/dist/chunk-CA4TYRQC.js.map +1 -0
  11. package/dist/chunk-CBCVHVAN.js +2 -0
  12. package/dist/chunk-CBCVHVAN.js.map +1 -0
  13. package/dist/chunk-FVATIYMU.js +1 -0
  14. package/dist/chunk-FVATIYMU.js.map +1 -0
  15. package/dist/chunk-I3RLTPB7.js +2 -0
  16. package/dist/chunk-I3RLTPB7.js.map +1 -0
  17. package/dist/chunk-MKYIMH4C.js +2 -0
  18. package/dist/chunk-MKYIMH4C.js.map +1 -0
  19. package/dist/chunk-O4ICSAOU.js +2 -0
  20. package/dist/chunk-O4ICSAOU.js.map +1 -0
  21. package/dist/chunk-REPE7APZ.js +2 -0
  22. package/dist/chunk-REPE7APZ.js.map +1 -0
  23. package/dist/chunk-VTUC735Y.js +2 -0
  24. package/dist/chunk-VTUC735Y.js.map +1 -0
  25. package/dist/chunk-WKDYHFTD.js +2 -0
  26. package/dist/chunk-WKDYHFTD.js.map +1 -0
  27. package/dist/chunk-YWLL3DQU.js +2 -0
  28. package/dist/chunk-YWLL3DQU.js.map +1 -0
  29. package/dist/chunk-Z4EJV7T7.js +2 -0
  30. package/dist/chunk-Z4EJV7T7.js.map +1 -0
  31. package/dist/common/error-like.cjs +2 -0
  32. package/dist/common/error-like.cjs.map +1 -0
  33. package/dist/common/error-like.d.cts +15 -0
  34. package/dist/common/error-like.d.ts +15 -0
  35. package/dist/common/error-like.js +2 -0
  36. package/dist/common/error-like.js.map +1 -0
  37. package/dist/common/index.cjs +2 -0
  38. package/dist/common/index.cjs.map +1 -0
  39. package/dist/common/index.d.cts +7 -0
  40. package/dist/common/index.d.ts +7 -0
  41. package/dist/common/index.js +2 -0
  42. package/dist/common/index.js.map +1 -0
  43. package/dist/common/numberish/numberish.cjs +2 -0
  44. package/dist/common/numberish/numberish.cjs.map +1 -0
  45. package/dist/common/numberish/numberish.d.cts +8 -0
  46. package/dist/common/numberish/numberish.d.ts +8 -0
  47. package/dist/common/numberish/numberish.js +2 -0
  48. package/dist/common/numberish/numberish.js.map +1 -0
  49. package/dist/common/numberish/numberish.test.cjs +15 -0
  50. package/dist/common/numberish/numberish.test.cjs.map +1 -0
  51. package/dist/common/numberish/numberish.test.d.cts +2 -0
  52. package/dist/common/numberish/numberish.test.d.ts +2 -0
  53. package/dist/common/numberish/numberish.test.js +15 -0
  54. package/dist/common/numberish/numberish.test.js.map +1 -0
  55. package/dist/common/object-keys.cjs +2 -0
  56. package/dist/common/object-keys.cjs.map +1 -0
  57. package/dist/common/object-keys.d.cts +4 -0
  58. package/dist/common/object-keys.d.ts +4 -0
  59. package/dist/common/object-keys.js +2 -0
  60. package/dist/common/object-keys.js.map +1 -0
  61. package/dist/common/stringIntToNumber/stringIntToNumber.cjs +2 -0
  62. package/dist/common/stringIntToNumber/stringIntToNumber.cjs.map +1 -0
  63. package/dist/common/stringIntToNumber/stringIntToNumber.d.cts +4 -0
  64. package/dist/common/stringIntToNumber/stringIntToNumber.d.ts +4 -0
  65. package/dist/common/stringIntToNumber/stringIntToNumber.js +2 -0
  66. package/dist/common/stringIntToNumber/stringIntToNumber.js.map +1 -0
  67. package/dist/common/stringIntToNumber/stringIntToNumber.test.cjs +2 -0
  68. package/dist/common/stringIntToNumber/stringIntToNumber.test.cjs.map +1 -0
  69. package/dist/common/stringIntToNumber/stringIntToNumber.test.d.cts +2 -0
  70. package/dist/common/stringIntToNumber/stringIntToNumber.test.d.ts +2 -0
  71. package/dist/common/stringIntToNumber/stringIntToNumber.test.js +2 -0
  72. package/dist/common/stringIntToNumber/stringIntToNumber.test.js.map +1 -0
  73. package/dist/common/uri/https.cjs +2 -0
  74. package/dist/common/uri/https.cjs.map +1 -0
  75. package/dist/common/uri/https.d.cts +5 -0
  76. package/dist/common/uri/https.d.ts +5 -0
  77. package/dist/common/uri/https.js +2 -0
  78. package/dist/common/uri/https.js.map +1 -0
  79. package/dist/common/uri/index.cjs +2 -0
  80. package/dist/common/uri/index.cjs.map +1 -0
  81. package/dist/common/uri/index.d.cts +3 -0
  82. package/dist/common/uri/index.d.ts +3 -0
  83. package/dist/common/uri/index.js +2 -0
  84. package/dist/common/uri/index.js.map +1 -0
  85. package/dist/common/uri/ipfs.cjs +2 -0
  86. package/dist/common/uri/ipfs.cjs.map +1 -0
  87. package/dist/common/uri/ipfs.d.cts +5 -0
  88. package/dist/common/uri/ipfs.d.ts +5 -0
  89. package/dist/common/uri/ipfs.js +2 -0
  90. package/dist/common/uri/ipfs.js.map +1 -0
  91. package/dist/evm/address.cjs +2 -0
  92. package/dist/evm/address.cjs.map +1 -0
  93. package/dist/evm/address.d.cts +5 -0
  94. package/dist/evm/address.d.ts +5 -0
  95. package/dist/evm/address.js +2 -0
  96. package/dist/evm/address.js.map +1 -0
  97. package/dist/evm/erc1155.cjs +2 -0
  98. package/dist/evm/erc1155.cjs.map +1 -0
  99. package/dist/evm/erc1155.d.cts +27 -0
  100. package/dist/evm/erc1155.d.ts +27 -0
  101. package/dist/evm/erc1155.js +2 -0
  102. package/dist/evm/erc1155.js.map +1 -0
  103. package/dist/evm/erc20.cjs +2 -0
  104. package/dist/evm/erc20.cjs.map +1 -0
  105. package/dist/evm/erc20.d.cts +21 -0
  106. package/dist/evm/erc20.d.ts +21 -0
  107. package/dist/evm/erc20.js +2 -0
  108. package/dist/evm/erc20.js.map +1 -0
  109. package/dist/evm/erc721.cjs +2 -0
  110. package/dist/evm/erc721.cjs.map +1 -0
  111. package/dist/evm/erc721.d.cts +27 -0
  112. package/dist/evm/erc721.d.ts +27 -0
  113. package/dist/evm/erc721.js +2 -0
  114. package/dist/evm/erc721.js.map +1 -0
  115. package/dist/evm/hex.cjs +2 -0
  116. package/dist/evm/hex.cjs.map +1 -0
  117. package/dist/evm/hex.d.cts +5 -0
  118. package/dist/evm/hex.d.ts +5 -0
  119. package/dist/evm/hex.js +2 -0
  120. package/dist/evm/hex.js.map +1 -0
  121. package/dist/evm/index.cjs +2 -0
  122. package/dist/evm/index.cjs.map +1 -0
  123. package/dist/evm/index.d.cts +10 -0
  124. package/dist/evm/index.d.ts +10 -0
  125. package/dist/evm/index.js +2 -0
  126. package/dist/evm/index.js.map +1 -0
  127. package/dist/evm/sender.cjs +2 -0
  128. package/dist/evm/sender.cjs.map +1 -0
  129. package/dist/evm/sender.d.cts +8 -0
  130. package/dist/evm/sender.d.ts +8 -0
  131. package/dist/evm/sender.js +2 -0
  132. package/dist/evm/sender.js.map +1 -0
  133. package/dist/evm/token.cjs +2 -0
  134. package/dist/evm/token.cjs.map +1 -0
  135. package/dist/evm/token.d.cts +366 -0
  136. package/dist/evm/token.d.ts +366 -0
  137. package/dist/evm/token.js +2 -0
  138. package/dist/evm/token.js.map +1 -0
  139. package/dist/evm/transaction.cjs +2 -0
  140. package/dist/evm/transaction.cjs.map +1 -0
  141. package/dist/evm/transaction.d.cts +10 -0
  142. package/dist/evm/transaction.d.ts +10 -0
  143. package/dist/evm/transaction.js +2 -0
  144. package/dist/evm/transaction.js.map +1 -0
  145. package/package.json +49 -0
@@ -0,0 +1,366 @@
1
+ import { z } from 'zod';
2
+
3
+ declare enum TokenTypeEnum {
4
+ ERC1155 = "ERC_1155",
5
+ ERC721 = "ERC_721",
6
+ ERC20 = "ERC_20"
7
+ }
8
+ declare function TokenRefSchema<TType extends TokenTypeEnum>(type: TType): z.ZodObject<{
9
+ type: z.ZodLiteral<TType>;
10
+ data: {
11
+ readonly ERC_1155: z.ZodObject<{
12
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
13
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ contract: `0x${string}`;
16
+ tokenId: bigint;
17
+ }, {
18
+ contract: `0x${string}`;
19
+ tokenId: string | number | bigint;
20
+ }>;
21
+ readonly ERC_721: z.ZodObject<{
22
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
23
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ contract: `0x${string}`;
26
+ tokenId: bigint;
27
+ }, {
28
+ contract: `0x${string}`;
29
+ tokenId: string | number | bigint;
30
+ }>;
31
+ readonly ERC_20: z.ZodObject<{
32
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ contract: `0x${string}`;
35
+ }, {
36
+ contract: `0x${string}`;
37
+ }>;
38
+ }[TType];
39
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
40
+ type: z.ZodLiteral<TType>;
41
+ data: {
42
+ readonly ERC_1155: z.ZodObject<{
43
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
44
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ contract: `0x${string}`;
47
+ tokenId: bigint;
48
+ }, {
49
+ contract: `0x${string}`;
50
+ tokenId: string | number | bigint;
51
+ }>;
52
+ readonly ERC_721: z.ZodObject<{
53
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
54
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ contract: `0x${string}`;
57
+ tokenId: bigint;
58
+ }, {
59
+ contract: `0x${string}`;
60
+ tokenId: string | number | bigint;
61
+ }>;
62
+ readonly ERC_20: z.ZodObject<{
63
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ contract: `0x${string}`;
66
+ }, {
67
+ contract: `0x${string}`;
68
+ }>;
69
+ }[TType];
70
+ }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
71
+ type: z.ZodLiteral<TType>;
72
+ data: {
73
+ readonly ERC_1155: z.ZodObject<{
74
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
75
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ contract: `0x${string}`;
78
+ tokenId: bigint;
79
+ }, {
80
+ contract: `0x${string}`;
81
+ tokenId: string | number | bigint;
82
+ }>;
83
+ readonly ERC_721: z.ZodObject<{
84
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
85
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ contract: `0x${string}`;
88
+ tokenId: bigint;
89
+ }, {
90
+ contract: `0x${string}`;
91
+ tokenId: string | number | bigint;
92
+ }>;
93
+ readonly ERC_20: z.ZodObject<{
94
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ contract: `0x${string}`;
97
+ }, {
98
+ contract: `0x${string}`;
99
+ }>;
100
+ }[TType];
101
+ }>, any>[k]; } : never, z.baseObjectInputType<{
102
+ type: z.ZodLiteral<TType>;
103
+ data: {
104
+ readonly ERC_1155: z.ZodObject<{
105
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
106
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ contract: `0x${string}`;
109
+ tokenId: bigint;
110
+ }, {
111
+ contract: `0x${string}`;
112
+ tokenId: string | number | bigint;
113
+ }>;
114
+ readonly ERC_721: z.ZodObject<{
115
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
116
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ contract: `0x${string}`;
119
+ tokenId: bigint;
120
+ }, {
121
+ contract: `0x${string}`;
122
+ tokenId: string | number | bigint;
123
+ }>;
124
+ readonly ERC_20: z.ZodObject<{
125
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ contract: `0x${string}`;
128
+ }, {
129
+ contract: `0x${string}`;
130
+ }>;
131
+ }[TType];
132
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
133
+ type: z.ZodLiteral<TType>;
134
+ data: {
135
+ readonly ERC_1155: z.ZodObject<{
136
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
137
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ contract: `0x${string}`;
140
+ tokenId: bigint;
141
+ }, {
142
+ contract: `0x${string}`;
143
+ tokenId: string | number | bigint;
144
+ }>;
145
+ readonly ERC_721: z.ZodObject<{
146
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
147
+ tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ contract: `0x${string}`;
150
+ tokenId: bigint;
151
+ }, {
152
+ contract: `0x${string}`;
153
+ tokenId: string | number | bigint;
154
+ }>;
155
+ readonly ERC_20: z.ZodObject<{
156
+ contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ contract: `0x${string}`;
159
+ }, {
160
+ contract: `0x${string}`;
161
+ }>;
162
+ }[TType];
163
+ }>[k_1]; } : never>;
164
+ declare function TokenMetaSchema<TType extends TokenTypeEnum>(type: TType): z.ZodObject<{
165
+ type: z.ZodLiteral<TType>;
166
+ data: {
167
+ readonly ERC_1155: z.ZodObject<{
168
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
169
+ name: z.ZodString;
170
+ symbol: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ symbol: string;
173
+ baseUri: string;
174
+ name: string;
175
+ }, {
176
+ symbol: string;
177
+ baseUri: string;
178
+ name: string;
179
+ }>;
180
+ readonly ERC_721: z.ZodObject<{
181
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
182
+ name: z.ZodString;
183
+ symbol: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ symbol: string;
186
+ baseUri: string;
187
+ name: string;
188
+ }, {
189
+ symbol: string;
190
+ baseUri: string;
191
+ name: string;
192
+ }>;
193
+ readonly ERC_20: z.ZodObject<{
194
+ name: z.ZodString;
195
+ symbol: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ symbol: string;
198
+ name: string;
199
+ }, {
200
+ symbol: string;
201
+ name: string;
202
+ }>;
203
+ }[TType];
204
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
205
+ type: z.ZodLiteral<TType>;
206
+ data: {
207
+ readonly ERC_1155: z.ZodObject<{
208
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
209
+ name: z.ZodString;
210
+ symbol: z.ZodString;
211
+ }, "strip", z.ZodTypeAny, {
212
+ symbol: string;
213
+ baseUri: string;
214
+ name: string;
215
+ }, {
216
+ symbol: string;
217
+ baseUri: string;
218
+ name: string;
219
+ }>;
220
+ readonly ERC_721: z.ZodObject<{
221
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
222
+ name: z.ZodString;
223
+ symbol: z.ZodString;
224
+ }, "strip", z.ZodTypeAny, {
225
+ symbol: string;
226
+ baseUri: string;
227
+ name: string;
228
+ }, {
229
+ symbol: string;
230
+ baseUri: string;
231
+ name: string;
232
+ }>;
233
+ readonly ERC_20: z.ZodObject<{
234
+ name: z.ZodString;
235
+ symbol: z.ZodString;
236
+ }, "strip", z.ZodTypeAny, {
237
+ symbol: string;
238
+ name: string;
239
+ }, {
240
+ symbol: string;
241
+ name: string;
242
+ }>;
243
+ }[TType];
244
+ }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
245
+ type: z.ZodLiteral<TType>;
246
+ data: {
247
+ readonly ERC_1155: z.ZodObject<{
248
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
249
+ name: z.ZodString;
250
+ symbol: z.ZodString;
251
+ }, "strip", z.ZodTypeAny, {
252
+ symbol: string;
253
+ baseUri: string;
254
+ name: string;
255
+ }, {
256
+ symbol: string;
257
+ baseUri: string;
258
+ name: string;
259
+ }>;
260
+ readonly ERC_721: z.ZodObject<{
261
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
262
+ name: z.ZodString;
263
+ symbol: z.ZodString;
264
+ }, "strip", z.ZodTypeAny, {
265
+ symbol: string;
266
+ baseUri: string;
267
+ name: string;
268
+ }, {
269
+ symbol: string;
270
+ baseUri: string;
271
+ name: string;
272
+ }>;
273
+ readonly ERC_20: z.ZodObject<{
274
+ name: z.ZodString;
275
+ symbol: z.ZodString;
276
+ }, "strip", z.ZodTypeAny, {
277
+ symbol: string;
278
+ name: string;
279
+ }, {
280
+ symbol: string;
281
+ name: string;
282
+ }>;
283
+ }[TType];
284
+ }>, any>[k]; } : never, z.baseObjectInputType<{
285
+ type: z.ZodLiteral<TType>;
286
+ data: {
287
+ readonly ERC_1155: z.ZodObject<{
288
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
289
+ name: z.ZodString;
290
+ symbol: z.ZodString;
291
+ }, "strip", z.ZodTypeAny, {
292
+ symbol: string;
293
+ baseUri: string;
294
+ name: string;
295
+ }, {
296
+ symbol: string;
297
+ baseUri: string;
298
+ name: string;
299
+ }>;
300
+ readonly ERC_721: z.ZodObject<{
301
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
302
+ name: z.ZodString;
303
+ symbol: z.ZodString;
304
+ }, "strip", z.ZodTypeAny, {
305
+ symbol: string;
306
+ baseUri: string;
307
+ name: string;
308
+ }, {
309
+ symbol: string;
310
+ baseUri: string;
311
+ name: string;
312
+ }>;
313
+ readonly ERC_20: z.ZodObject<{
314
+ name: z.ZodString;
315
+ symbol: z.ZodString;
316
+ }, "strip", z.ZodTypeAny, {
317
+ symbol: string;
318
+ name: string;
319
+ }, {
320
+ symbol: string;
321
+ name: string;
322
+ }>;
323
+ }[TType];
324
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
325
+ type: z.ZodLiteral<TType>;
326
+ data: {
327
+ readonly ERC_1155: z.ZodObject<{
328
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
329
+ name: z.ZodString;
330
+ symbol: z.ZodString;
331
+ }, "strip", z.ZodTypeAny, {
332
+ symbol: string;
333
+ baseUri: string;
334
+ name: string;
335
+ }, {
336
+ symbol: string;
337
+ baseUri: string;
338
+ name: string;
339
+ }>;
340
+ readonly ERC_721: z.ZodObject<{
341
+ baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
342
+ name: z.ZodString;
343
+ symbol: z.ZodString;
344
+ }, "strip", z.ZodTypeAny, {
345
+ symbol: string;
346
+ baseUri: string;
347
+ name: string;
348
+ }, {
349
+ symbol: string;
350
+ baseUri: string;
351
+ name: string;
352
+ }>;
353
+ readonly ERC_20: z.ZodObject<{
354
+ name: z.ZodString;
355
+ symbol: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ symbol: string;
358
+ name: string;
359
+ }, {
360
+ symbol: string;
361
+ name: string;
362
+ }>;
363
+ }[TType];
364
+ }>[k_1]; } : never>;
365
+
366
+ export { TokenMetaSchema, TokenRefSchema, TokenTypeEnum };
@@ -0,0 +1,2 @@
1
+ import{a,b,c}from"../chunk-WKDYHFTD.js";import"../chunk-O4ICSAOU.js";import"../chunk-Z4EJV7T7.js";import"../chunk-MKYIMH4C.js";import"../chunk-CA4TYRQC.js";import"../chunk-2KI5OZLW.js";import"../chunk-VTUC735Y.js";import"../chunk-CBCVHVAN.js";export{c as TokenMetaSchema,b as TokenRefSchema,a as TokenTypeEnum};
2
+ //# sourceMappingURL=token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var s=(a,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of r(n))!c.call(a,e)&&e!==i&&o(a,e,{get:()=>n[e],enumerable:!(t=b(n,e))||t.enumerable});return a};var A=a=>s(o({},"__esModule",{value:!0}),a);var m={};module.exports=A(m);
2
+ //# sourceMappingURL=transaction.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/evm/transaction.ts"],"sourcesContent":["import { Address, Abi, ContractFunctionArgs, ContractFunctionName } from \"viem\";\n\nexport type ITransaction<\n TAbi extends Abi = Abi,\n TFnName extends ContractFunctionName<TAbi, \"nonpayable\" | \"payable\"> = ContractFunctionName<\n TAbi,\n \"nonpayable\" | \"payable\"\n >,\n> = {\n abi: TAbi;\n functionName: TFnName;\n args: ContractFunctionArgs<TAbi, \"nonpayable\" | \"payable\", TFnName>;\n address: Address;\n};\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["transaction_exports","__toCommonJS"]}
@@ -0,0 +1,10 @@
1
+ import { Abi, ContractFunctionName, ContractFunctionArgs, Address } from 'viem';
2
+
3
+ type ITransaction<TAbi extends Abi = Abi, TFnName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">> = {
4
+ abi: TAbi;
5
+ functionName: TFnName;
6
+ args: ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFnName>;
7
+ address: Address;
8
+ };
9
+
10
+ export type { ITransaction };
@@ -0,0 +1,10 @@
1
+ import { Abi, ContractFunctionName, ContractFunctionArgs, Address } from 'viem';
2
+
3
+ type ITransaction<TAbi extends Abi = Abi, TFnName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">> = {
4
+ abi: TAbi;
5
+ functionName: TFnName;
6
+ args: ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFnName>;
7
+ address: Address;
8
+ };
9
+
10
+ export type { ITransaction };
@@ -0,0 +1,2 @@
1
+ import"../chunk-FVATIYMU.js";
2
+ //# sourceMappingURL=transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@evergonlabs/tmi-protocol-types",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "exports": {
7
+ "./evm": {
8
+ "import": "./dist/evm/index.js",
9
+ "types": "./dist/evm/index.d.ts",
10
+ "default": "./dist/evm/index.cjs"
11
+ },
12
+ "./common": {
13
+ "import": "./dist/common/index.js",
14
+ "types": "./dist/common/index.d.ts",
15
+ "default": "./dist/common/index.cjs"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsx ./scripts/compile-prod.ts",
23
+ "check-types": "tsc --noEmit",
24
+ "clean": "rimraf ./dist",
25
+ "dev": "tsx ./scripts/compile-dev.ts",
26
+ "lint": "eslint .",
27
+ "test": "vitest run",
28
+ "prepublishOnly": "run-s build"
29
+ },
30
+ "devDependencies": {
31
+ "@evergonlabs/eslint-config": "workspace:*",
32
+ "@evergonlabs/internal": "workspace:*",
33
+ "@evergonlabs/typescript-config": "workspace:*",
34
+ "npm-run-all": "^4.1.5",
35
+ "rimraf": "^6.0.1",
36
+ "tsx": "^4.19.2",
37
+ "viem": "^2.22.22",
38
+ "vitest": "^2.1.8",
39
+ "zod": "^3.24.1"
40
+ },
41
+ "peerDependencies": {
42
+ "viem": "^2.0.0",
43
+ "zod": "^3.0.0"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "registry": "https://registry.npmjs.org/"
48
+ }
49
+ }