@taqueria/protocol 0.16.0 → 0.18.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 (319) hide show
  1. package/Alias.d.ts +48 -0
  2. package/Alias.js +70 -0
  3. package/Alias.js.map +1 -0
  4. package/Alias.mjs +34 -0
  5. package/Alias.mjs.map +1 -0
  6. package/Base.d.ts +50 -0
  7. package/Base.js +83 -0
  8. package/Base.js.map +1 -0
  9. package/Base.mjs +57 -0
  10. package/Base.mjs.map +1 -0
  11. package/Command.d.ts +30 -0
  12. package/Command.js +61 -0
  13. package/Command.js.map +1 -0
  14. package/Command.mjs +25 -0
  15. package/Command.mjs.map +1 -0
  16. package/Config.d.ts +2062 -0
  17. package/Config.js +175 -0
  18. package/Config.js.map +1 -0
  19. package/Config.mjs +135 -0
  20. package/Config.mjs.map +1 -0
  21. package/Contract.d.ts +88 -0
  22. package/Contract.js +68 -0
  23. package/Contract.js.map +1 -0
  24. package/Contract.mjs +32 -0
  25. package/Contract.mjs.map +1 -0
  26. package/Crypto.d.ts +5 -0
  27. package/Crypto.js +35 -0
  28. package/Crypto.js.map +1 -0
  29. package/Crypto.mjs +10 -0
  30. package/Crypto.mjs.map +1 -0
  31. package/EconomicalProtocolHash.d.ts +48 -0
  32. package/EconomicalProtocolHash.js +64 -0
  33. package/EconomicalProtocolHash.js.map +1 -0
  34. package/EconomicalProtocolHash.mjs +27 -0
  35. package/EconomicalProtocolHash.mjs.map +1 -0
  36. package/Environment.d.ts +142 -0
  37. package/Environment.js +78 -0
  38. package/Environment.js.map +1 -0
  39. package/Environment.mjs +40 -0
  40. package/Environment.mjs.map +1 -0
  41. package/EphemeralState.d.ts +4561 -0
  42. package/EphemeralState.js +268 -0
  43. package/EphemeralState.js.map +1 -0
  44. package/EphemeralState.mjs +228 -0
  45. package/EphemeralState.mjs.map +1 -0
  46. package/Faucet.d.ts +210 -0
  47. package/Faucet.js +84 -0
  48. package/Faucet.js.map +1 -0
  49. package/Faucet.mjs +47 -0
  50. package/Faucet.mjs.map +1 -0
  51. package/HumanReadableIdentifier.d.ts +30 -0
  52. package/HumanReadableIdentifier.js +61 -0
  53. package/HumanReadableIdentifier.js.map +1 -0
  54. package/HumanReadableIdentifier.mjs +25 -0
  55. package/HumanReadableIdentifier.mjs.map +1 -0
  56. package/InstalledPlugin.d.ts +99 -0
  57. package/InstalledPlugin.js +67 -0
  58. package/InstalledPlugin.js.map +1 -0
  59. package/InstalledPlugin.mjs +30 -0
  60. package/InstalledPlugin.mjs.map +1 -0
  61. package/LoadedConfig.d.ts +2325 -0
  62. package/LoadedConfig.js +80 -0
  63. package/LoadedConfig.js.map +1 -0
  64. package/LoadedConfig.mjs +41 -0
  65. package/LoadedConfig.mjs.map +1 -0
  66. package/MetadataConfig.d.ts +162 -0
  67. package/MetadataConfig.js +75 -0
  68. package/MetadataConfig.js.map +1 -0
  69. package/MetadataConfig.mjs +38 -0
  70. package/MetadataConfig.mjs.map +1 -0
  71. package/NetworkConfig.d.ts +431 -0
  72. package/NetworkConfig.js +77 -0
  73. package/NetworkConfig.js.map +1 -0
  74. package/NetworkConfig.mjs +40 -0
  75. package/NetworkConfig.mjs.map +1 -0
  76. package/Operation.d.ts +1476 -0
  77. package/Operation.js +98 -0
  78. package/Operation.js.map +1 -0
  79. package/Operation.mjs +60 -0
  80. package/Operation.mjs.map +1 -0
  81. package/Option.d.ts +316 -0
  82. package/Option.js +103 -0
  83. package/Option.js.map +1 -0
  84. package/Option.mjs +65 -0
  85. package/Option.mjs.map +1 -0
  86. package/ParsedOperation.d.ts +888 -0
  87. package/ParsedOperation.js +63 -0
  88. package/ParsedOperation.js.map +1 -0
  89. package/ParsedOperation.mjs +26 -0
  90. package/ParsedOperation.mjs.map +1 -0
  91. package/ParsedTemplate.d.ts +1032 -0
  92. package/ParsedTemplate.js +71 -0
  93. package/ParsedTemplate.js.map +1 -0
  94. package/ParsedTemplate.mjs +34 -0
  95. package/ParsedTemplate.mjs.map +1 -0
  96. package/PersistentState.d.ts +581 -0
  97. package/PersistentState.js +98 -0
  98. package/PersistentState.js.map +1 -0
  99. package/PersistentState.mjs +60 -0
  100. package/PersistentState.mjs.map +1 -0
  101. package/PluginActionName.d.ts +23 -0
  102. package/PluginActionName.js +48 -0
  103. package/PluginActionName.js.map +1 -0
  104. package/PluginActionName.mjs +23 -0
  105. package/PluginActionName.mjs.map +1 -0
  106. package/PluginDependenciesResponse.d.ts +158 -0
  107. package/PluginDependenciesResponse.js +63 -0
  108. package/PluginDependenciesResponse.js.map +1 -0
  109. package/PluginDependenciesResponse.mjs +28 -0
  110. package/PluginDependenciesResponse.mjs.map +1 -0
  111. package/PluginInfo.d.ts +3425 -0
  112. package/PluginInfo.js +113 -0
  113. package/PluginInfo.js.map +1 -0
  114. package/PluginInfo.mjs +76 -0
  115. package/PluginInfo.mjs.map +1 -0
  116. package/PluginJsonResponse.d.ts +104 -0
  117. package/PluginJsonResponse.js +59 -0
  118. package/PluginJsonResponse.js.map +1 -0
  119. package/PluginJsonResponse.mjs +25 -0
  120. package/PluginJsonResponse.mjs.map +1 -0
  121. package/PluginProxyResponse.d.ts +23 -0
  122. package/PluginProxyResponse.js +61 -0
  123. package/PluginProxyResponse.js.map +1 -0
  124. package/PluginProxyResponse.mjs +25 -0
  125. package/PluginProxyResponse.mjs.map +1 -0
  126. package/PluginResponseEncoding.d.ts +39 -0
  127. package/PluginResponseEncoding.js +63 -0
  128. package/PluginResponseEncoding.js.map +1 -0
  129. package/PluginResponseEncoding.mjs +27 -0
  130. package/PluginResponseEncoding.mjs.map +1 -0
  131. package/PluginSchema.d.ts +7332 -0
  132. package/PluginSchema.js +107 -0
  133. package/PluginSchema.js.map +1 -0
  134. package/PluginSchema.mjs +70 -0
  135. package/PluginSchema.mjs.map +1 -0
  136. package/PositionalArg.d.ts +190 -0
  137. package/PositionalArg.js +78 -0
  138. package/PositionalArg.js.map +1 -0
  139. package/PositionalArg.mjs +41 -0
  140. package/PositionalArg.mjs.map +1 -0
  141. package/Provisioner.d.ts +276 -0
  142. package/Provisioner.js +86 -0
  143. package/Provisioner.js.map +1 -0
  144. package/Provisioner.mjs +48 -0
  145. package/Provisioner.mjs.map +1 -0
  146. package/ProvisionerID.d.ts +48 -0
  147. package/ProvisionerID.js +61 -0
  148. package/ProvisionerID.js.map +1 -0
  149. package/ProvisionerID.mjs +24 -0
  150. package/ProvisionerID.mjs.map +1 -0
  151. package/Provisions.d.ts +244 -0
  152. package/Provisions.js +93 -0
  153. package/Provisions.js.map +1 -0
  154. package/Provisions.mjs +57 -0
  155. package/Provisions.mjs.map +1 -0
  156. package/PublicKeyHash.d.ts +49 -0
  157. package/PublicKeyHash.js +65 -0
  158. package/PublicKeyHash.js.map +1 -0
  159. package/PublicKeyHash.mjs +28 -0
  160. package/PublicKeyHash.mjs.map +1 -0
  161. package/RequestArgs.d.ts +5557 -0
  162. package/RequestArgs.js +136 -0
  163. package/RequestArgs.js.map +1 -0
  164. package/RequestArgs.mjs +89 -0
  165. package/RequestArgs.mjs.map +1 -0
  166. package/SHA256.d.ts +33 -0
  167. package/SHA256.js +79 -0
  168. package/SHA256.js.map +1 -0
  169. package/SHA256.mjs +42 -0
  170. package/SHA256.mjs.map +1 -0
  171. package/SandboxAccountConfig.d.ts +152 -0
  172. package/SandboxAccountConfig.js +72 -0
  173. package/SandboxAccountConfig.js.map +1 -0
  174. package/SandboxAccountConfig.mjs +35 -0
  175. package/SandboxAccountConfig.mjs.map +1 -0
  176. package/SandboxConfig.d.ts +550 -0
  177. package/SandboxConfig.js +103 -0
  178. package/SandboxConfig.js.map +1 -0
  179. package/SandboxConfig.mjs +66 -0
  180. package/SandboxConfig.mjs.map +1 -0
  181. package/SanitizedAbsPath.d.ts +48 -0
  182. package/SanitizedAbsPath.js +64 -0
  183. package/SanitizedAbsPath.js.map +1 -0
  184. package/SanitizedAbsPath.mjs +27 -0
  185. package/SanitizedAbsPath.mjs.map +1 -0
  186. package/SanitizedArgs.d.ts +2907 -0
  187. package/SanitizedArgs.js +269 -0
  188. package/SanitizedArgs.js.map +1 -0
  189. package/SanitizedArgs.mjs +197 -0
  190. package/SanitizedArgs.mjs.map +1 -0
  191. package/SanitizedPath.d.ts +30 -0
  192. package/SanitizedPath.js +64 -0
  193. package/SanitizedPath.js.map +1 -0
  194. package/SanitizedPath.mjs +28 -0
  195. package/SanitizedPath.mjs.map +1 -0
  196. package/ScaffoldConfig.d.ts +6 -0
  197. package/ScaffoldConfig.js +19 -0
  198. package/ScaffoldConfig.js.map +1 -0
  199. package/ScaffoldConfig.mjs +1 -0
  200. package/ScaffoldConfig.mjs.map +1 -0
  201. package/Settings.d.ts +82 -0
  202. package/Settings.js +66 -0
  203. package/Settings.js.map +1 -0
  204. package/Settings.mjs +29 -0
  205. package/Settings.mjs.map +1 -0
  206. package/SingleChar.d.ts +48 -0
  207. package/SingleChar.js +62 -0
  208. package/SingleChar.js.map +1 -0
  209. package/SingleChar.mjs +25 -0
  210. package/SingleChar.mjs.map +1 -0
  211. package/TaqError.d.ts +24 -0
  212. package/TaqError.js +65 -0
  213. package/TaqError.js.map +1 -0
  214. package/TaqError.mjs +35 -0
  215. package/TaqError.mjs.map +1 -0
  216. package/Task.d.ts +825 -0
  217. package/Task.js +95 -0
  218. package/Task.js.map +1 -0
  219. package/Task.mjs +58 -0
  220. package/Task.mjs.map +1 -0
  221. package/Template.d.ts +1746 -0
  222. package/Template.js +117 -0
  223. package/Template.js.map +1 -0
  224. package/Template.mjs +79 -0
  225. package/Template.mjs.map +1 -0
  226. package/Timestamp.d.ts +51 -0
  227. package/Timestamp.js +65 -0
  228. package/Timestamp.js.map +1 -0
  229. package/Timestamp.mjs +27 -0
  230. package/Timestamp.mjs.map +1 -0
  231. package/Tz.d.ts +47 -0
  232. package/Tz.js +62 -0
  233. package/Tz.js.map +1 -0
  234. package/Tz.mjs +25 -0
  235. package/Tz.mjs.map +1 -0
  236. package/Url.d.ts +49 -0
  237. package/Url.js +68 -0
  238. package/Url.js.map +1 -0
  239. package/Url.mjs +30 -0
  240. package/Url.mjs.map +1 -0
  241. package/Verb.d.ts +48 -0
  242. package/Verb.js +62 -0
  243. package/Verb.js.map +1 -0
  244. package/Verb.mjs +25 -0
  245. package/Verb.mjs.map +1 -0
  246. package/VersionNumber.d.ts +30 -0
  247. package/VersionNumber.js +61 -0
  248. package/VersionNumber.js.map +1 -0
  249. package/VersionNumber.mjs +25 -0
  250. package/VersionNumber.mjs.map +1 -0
  251. package/i18n.d.ts +7 -0
  252. package/i18n.js +96 -0
  253. package/i18n.js.map +1 -0
  254. package/i18n.mjs +67 -0
  255. package/i18n.mjs.map +1 -0
  256. package/package.json +31 -3
  257. package/taqueria-protocol-types.d.ts +72 -0
  258. package/taqueria-protocol-types.js +142 -0
  259. package/taqueria-protocol-types.js.map +1 -0
  260. package/taqueria-protocol-types.mjs +76 -0
  261. package/taqueria-protocol-types.mjs.map +1 -0
  262. package/tzkt-config.d.ts +116 -0
  263. package/tzkt-config.js +65 -0
  264. package/tzkt-config.js.map +1 -0
  265. package/tzkt-config.mjs +28 -0
  266. package/tzkt-config.mjs.map +1 -0
  267. package/Alias.ts +0 -38
  268. package/Base.ts +0 -105
  269. package/Command.ts +0 -26
  270. package/Config.ts +0 -163
  271. package/Contract.ts +0 -35
  272. package/Crypto.ts +0 -3
  273. package/EconomicalProtocolHash.ts +0 -26
  274. package/Environment.ts +0 -40
  275. package/EphemeralState.ts +0 -282
  276. package/Faucet.ts +0 -46
  277. package/HumanReadableIdentifier.ts +0 -26
  278. package/InstalledPlugin.ts +0 -28
  279. package/LoadedConfig.ts +0 -45
  280. package/MetadataConfig.ts +0 -37
  281. package/NetworkConfig.ts +0 -39
  282. package/Operation.ts +0 -70
  283. package/Option.ts +0 -64
  284. package/ParsedOperation.ts +0 -33
  285. package/ParsedTemplate.ts +0 -40
  286. package/PersistentState.ts +0 -69
  287. package/PluginActionName.ts +0 -28
  288. package/PluginDependenciesResponse.ts +0 -33
  289. package/PluginInfo.ts +0 -76
  290. package/PluginJsonResponse.ts +0 -26
  291. package/PluginProxyResponse.ts +0 -24
  292. package/PluginResponseEncoding.ts +0 -27
  293. package/PluginSchema.ts +0 -81
  294. package/PositionalArg.ts +0 -41
  295. package/Provisioner.ts +0 -61
  296. package/ProvisionerID.ts +0 -25
  297. package/Provisions.ts +0 -70
  298. package/PublicKeyHash.ts +0 -28
  299. package/RequestArgs.ts +0 -97
  300. package/SHA256.ts +0 -42
  301. package/SandboxAccountConfig.ts +0 -35
  302. package/SandboxConfig.ts +0 -66
  303. package/SanitizedAbsPath.ts +0 -23
  304. package/SanitizedArgs.ts +0 -213
  305. package/SanitizedPath.ts +0 -28
  306. package/ScaffoldConfig.ts +0 -6
  307. package/Settings.ts +0 -27
  308. package/SingleChar.ts +0 -23
  309. package/TaqError.ts +0 -78
  310. package/Task.ts +0 -57
  311. package/Template.ts +0 -77
  312. package/Timestamp.ts +0 -25
  313. package/Tz.ts +0 -22
  314. package/Url.ts +0 -28
  315. package/Verb.ts +0 -23
  316. package/VersionNumber.ts +0 -25
  317. package/i18n.ts +0 -74
  318. package/taqueria-protocol-types.ts +0 -36
  319. package/tzkt-config.ts +0 -27
@@ -0,0 +1,431 @@
1
+ import * as fluture from 'fluture';
2
+ import { TaqError } from './TaqError.js';
3
+ import { Flatten } from '@taqueria/protocol/Base';
4
+ import { z } from 'zod';
5
+
6
+ declare const rawSchema: z.ZodObject<{
7
+ label: z.ZodString;
8
+ rpcUrl: z.ZodString;
9
+ protocol: z.ZodEffects<z.ZodString, string, string>;
10
+ faucet: z.ZodObject<{
11
+ pkh: z.ZodString;
12
+ mnemonic: z.ZodArray<z.ZodString, "many">;
13
+ email: z.ZodString;
14
+ password: z.ZodString;
15
+ amount: z.ZodString;
16
+ activation_code: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ pkh: string;
19
+ mnemonic: string[];
20
+ email: string;
21
+ password: string;
22
+ amount: string;
23
+ activation_code: string;
24
+ }, {
25
+ pkh: string;
26
+ mnemonic: string[];
27
+ email: string;
28
+ password: string;
29
+ amount: string;
30
+ activation_code: string;
31
+ }>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ label: string;
34
+ rpcUrl: string;
35
+ protocol: string;
36
+ faucet: {
37
+ pkh: string;
38
+ mnemonic: string[];
39
+ email: string;
40
+ password: string;
41
+ amount: string;
42
+ activation_code: string;
43
+ };
44
+ }, {
45
+ label: string;
46
+ rpcUrl: string;
47
+ protocol: string;
48
+ faucet: {
49
+ pkh: string;
50
+ mnemonic: string[];
51
+ email: string;
52
+ password: string;
53
+ amount: string;
54
+ activation_code: string;
55
+ };
56
+ }>;
57
+ declare const generatedSchemas: {
58
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
59
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
60
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
61
+ label: string & {
62
+ readonly __kind: any;
63
+ };
64
+ rpcUrl: string & {
65
+ readonly __kind: any;
66
+ };
67
+ protocol: string & {
68
+ readonly __kind: any;
69
+ };
70
+ faucet: Flatten<{
71
+ pkh: string & {
72
+ readonly __kind: any;
73
+ };
74
+ mnemonic: string[];
75
+ email: string;
76
+ password: string;
77
+ amount: string;
78
+ activation_code: string;
79
+ } & {
80
+ readonly __kind: any;
81
+ }>;
82
+ } & {
83
+ readonly __kind: any;
84
+ }, any>;
85
+ };
86
+ declare const factory: {
87
+ make: (input: {
88
+ label: string & {
89
+ readonly __kind: any;
90
+ };
91
+ rpcUrl: string & {
92
+ readonly __kind: any;
93
+ };
94
+ protocol: string & {
95
+ readonly __kind: any;
96
+ };
97
+ faucet: Flatten<{
98
+ pkh: string & {
99
+ readonly __kind: any;
100
+ };
101
+ mnemonic: string[];
102
+ email: string;
103
+ password: string;
104
+ amount: string;
105
+ activation_code: string;
106
+ } & {
107
+ readonly __kind: any;
108
+ }>;
109
+ }) => fluture.FutureInstance<TaqError, {
110
+ label: string & {
111
+ readonly __kind: any;
112
+ };
113
+ rpcUrl: string & {
114
+ readonly __kind: any;
115
+ };
116
+ protocol: string & {
117
+ readonly __kind: any;
118
+ };
119
+ faucet: Flatten<{
120
+ pkh: string & {
121
+ readonly __kind: any;
122
+ };
123
+ mnemonic: string[];
124
+ email: string;
125
+ password: string;
126
+ amount: string;
127
+ activation_code: string;
128
+ } & {
129
+ readonly __kind: any;
130
+ }>;
131
+ } & {
132
+ readonly __kind: any;
133
+ }>;
134
+ of: (input: unknown) => fluture.FutureInstance<TaqError, {
135
+ label: string & {
136
+ readonly __kind: any;
137
+ };
138
+ rpcUrl: string & {
139
+ readonly __kind: any;
140
+ };
141
+ protocol: string & {
142
+ readonly __kind: any;
143
+ };
144
+ faucet: Flatten<{
145
+ pkh: string & {
146
+ readonly __kind: any;
147
+ };
148
+ mnemonic: string[];
149
+ email: string;
150
+ password: string;
151
+ amount: string;
152
+ activation_code: string;
153
+ } & {
154
+ readonly __kind: any;
155
+ }>;
156
+ } & {
157
+ readonly __kind: any;
158
+ }>;
159
+ create: (input: {
160
+ label: string;
161
+ rpcUrl: string;
162
+ protocol: string;
163
+ faucet: {
164
+ pkh: string;
165
+ mnemonic: string[];
166
+ email: string;
167
+ password: string;
168
+ amount: string;
169
+ activation_code: string;
170
+ };
171
+ } | {
172
+ label: string & {
173
+ readonly __kind: any;
174
+ };
175
+ rpcUrl: string & {
176
+ readonly __kind: any;
177
+ };
178
+ protocol: string & {
179
+ readonly __kind: any;
180
+ };
181
+ faucet: Flatten<{
182
+ pkh: string & {
183
+ readonly __kind: any;
184
+ };
185
+ mnemonic: string[];
186
+ email: string;
187
+ password: string;
188
+ amount: string;
189
+ activation_code: string;
190
+ } & {
191
+ readonly __kind: any;
192
+ }>;
193
+ }) => {
194
+ label: string & {
195
+ readonly __kind: any;
196
+ };
197
+ rpcUrl: string & {
198
+ readonly __kind: any;
199
+ };
200
+ protocol: string & {
201
+ readonly __kind: any;
202
+ };
203
+ faucet: Flatten<{
204
+ pkh: string & {
205
+ readonly __kind: any;
206
+ };
207
+ mnemonic: string[];
208
+ email: string;
209
+ password: string;
210
+ amount: string;
211
+ activation_code: string;
212
+ } & {
213
+ readonly __kind: any;
214
+ }>;
215
+ } & {
216
+ readonly __kind: any;
217
+ };
218
+ from: (input: unknown) => {
219
+ label: string & {
220
+ readonly __kind: any;
221
+ };
222
+ rpcUrl: string & {
223
+ readonly __kind: any;
224
+ };
225
+ protocol: string & {
226
+ readonly __kind: any;
227
+ };
228
+ faucet: Flatten<{
229
+ pkh: string & {
230
+ readonly __kind: any;
231
+ };
232
+ mnemonic: string[];
233
+ email: string;
234
+ password: string;
235
+ amount: string;
236
+ activation_code: string;
237
+ } & {
238
+ readonly __kind: any;
239
+ }>;
240
+ } & {
241
+ readonly __kind: any;
242
+ };
243
+ };
244
+ declare type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;
245
+ declare type t = NetworkConfig;
246
+ declare const create: (input: {
247
+ label: string;
248
+ rpcUrl: string;
249
+ protocol: string;
250
+ faucet: {
251
+ pkh: string;
252
+ mnemonic: string[];
253
+ email: string;
254
+ password: string;
255
+ amount: string;
256
+ activation_code: string;
257
+ };
258
+ } | {
259
+ label: string & {
260
+ readonly __kind: any;
261
+ };
262
+ rpcUrl: string & {
263
+ readonly __kind: any;
264
+ };
265
+ protocol: string & {
266
+ readonly __kind: any;
267
+ };
268
+ faucet: Flatten<{
269
+ pkh: string & {
270
+ readonly __kind: any;
271
+ };
272
+ mnemonic: string[];
273
+ email: string;
274
+ password: string;
275
+ amount: string;
276
+ activation_code: string;
277
+ } & {
278
+ readonly __kind: any;
279
+ }>;
280
+ }) => {
281
+ label: string & {
282
+ readonly __kind: any;
283
+ };
284
+ rpcUrl: string & {
285
+ readonly __kind: any;
286
+ };
287
+ protocol: string & {
288
+ readonly __kind: any;
289
+ };
290
+ faucet: Flatten<{
291
+ pkh: string & {
292
+ readonly __kind: any;
293
+ };
294
+ mnemonic: string[];
295
+ email: string;
296
+ password: string;
297
+ amount: string;
298
+ activation_code: string;
299
+ } & {
300
+ readonly __kind: any;
301
+ }>;
302
+ } & {
303
+ readonly __kind: any;
304
+ };
305
+ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, {
306
+ label: string & {
307
+ readonly __kind: any;
308
+ };
309
+ rpcUrl: string & {
310
+ readonly __kind: any;
311
+ };
312
+ protocol: string & {
313
+ readonly __kind: any;
314
+ };
315
+ faucet: Flatten<{
316
+ pkh: string & {
317
+ readonly __kind: any;
318
+ };
319
+ mnemonic: string[];
320
+ email: string;
321
+ password: string;
322
+ amount: string;
323
+ activation_code: string;
324
+ } & {
325
+ readonly __kind: any;
326
+ }>;
327
+ } & {
328
+ readonly __kind: any;
329
+ }>;
330
+ declare const make: (input: {
331
+ label: string & {
332
+ readonly __kind: any;
333
+ };
334
+ rpcUrl: string & {
335
+ readonly __kind: any;
336
+ };
337
+ protocol: string & {
338
+ readonly __kind: any;
339
+ };
340
+ faucet: Flatten<{
341
+ pkh: string & {
342
+ readonly __kind: any;
343
+ };
344
+ mnemonic: string[];
345
+ email: string;
346
+ password: string;
347
+ amount: string;
348
+ activation_code: string;
349
+ } & {
350
+ readonly __kind: any;
351
+ }>;
352
+ }) => fluture.FutureInstance<TaqError, {
353
+ label: string & {
354
+ readonly __kind: any;
355
+ };
356
+ rpcUrl: string & {
357
+ readonly __kind: any;
358
+ };
359
+ protocol: string & {
360
+ readonly __kind: any;
361
+ };
362
+ faucet: Flatten<{
363
+ pkh: string & {
364
+ readonly __kind: any;
365
+ };
366
+ mnemonic: string[];
367
+ email: string;
368
+ password: string;
369
+ amount: string;
370
+ activation_code: string;
371
+ } & {
372
+ readonly __kind: any;
373
+ }>;
374
+ } & {
375
+ readonly __kind: any;
376
+ }>;
377
+ declare const schemas: {
378
+ schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
379
+ label: string & {
380
+ readonly __kind: any;
381
+ };
382
+ rpcUrl: string & {
383
+ readonly __kind: any;
384
+ };
385
+ protocol: string & {
386
+ readonly __kind: any;
387
+ };
388
+ faucet: Flatten<{
389
+ pkh: string & {
390
+ readonly __kind: any;
391
+ };
392
+ mnemonic: string[];
393
+ email: string;
394
+ password: string;
395
+ amount: string;
396
+ activation_code: string;
397
+ } & {
398
+ readonly __kind: any;
399
+ }>;
400
+ } & {
401
+ readonly __kind: any;
402
+ }, any>, Flatten<{
403
+ label: string & {
404
+ readonly __kind: any;
405
+ };
406
+ rpcUrl: string & {
407
+ readonly __kind: any;
408
+ };
409
+ protocol: string & {
410
+ readonly __kind: any;
411
+ };
412
+ faucet: Flatten<{
413
+ pkh: string & {
414
+ readonly __kind: any;
415
+ };
416
+ mnemonic: string[];
417
+ email: string;
418
+ password: string;
419
+ amount: string;
420
+ activation_code: string;
421
+ } & {
422
+ readonly __kind: any;
423
+ }>;
424
+ } & {
425
+ readonly __kind: any;
426
+ }>, any>;
427
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
428
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
429
+ };
430
+
431
+ export { NetworkConfig, create, factory, generatedSchemas, make, of, rawSchema, schemas, t };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // NetworkConfig.ts
27
+ var NetworkConfig_exports = {};
28
+ __export(NetworkConfig_exports, {
29
+ create: () => create,
30
+ factory: () => factory,
31
+ generatedSchemas: () => generatedSchemas,
32
+ make: () => make,
33
+ of: () => of,
34
+ rawSchema: () => rawSchema5,
35
+ schemas: () => schemas5
36
+ });
37
+ module.exports = __toCommonJS(NetworkConfig_exports);
38
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
39
+ var EconomicalProtocolHash = __toESM(require("@taqueria/protocol/EconomicalProtocolHash"));
40
+ var Faucet = __toESM(require("@taqueria/protocol/Faucet"));
41
+ var HumanReadableIdentifier = __toESM(require("@taqueria/protocol/HumanReadableIdentifier"));
42
+ var Url = __toESM(require("@taqueria/protocol/Url"));
43
+ var import_zod = require("zod");
44
+ var rawSchema5 = import_zod.z.object({
45
+ label: HumanReadableIdentifier.rawSchema,
46
+ rpcUrl: Url.rawSchema,
47
+ protocol: EconomicalProtocolHash.rawSchema,
48
+ faucet: Faucet.rawSchema.describe("Network Faucet")
49
+ }).describe("Network Config");
50
+ var internalSchema = import_zod.z.object({
51
+ label: HumanReadableIdentifier.schemas.schema.describe("Network Label"),
52
+ rpcUrl: Url.schemas.schema.describe("Network RPC Url"),
53
+ protocol: EconomicalProtocolHash.schemas.schema.describe("Network Protocol Hash"),
54
+ faucet: Faucet.schemas.schema.describe("Network Faucet")
55
+ }).describe("Network Config");
56
+ var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
57
+ rawSchema: rawSchema5,
58
+ internalSchema,
59
+ parseErrMsg: (value) => `${value} is not a valid network configuration`,
60
+ unknownErrMsg: "Something went wrong trying to parse the network configuration"
61
+ });
62
+ var { create, of, make } = factory;
63
+ var schemas5 = {
64
+ ...generatedSchemas,
65
+ schema: generatedSchemas.schema.transform((val) => val)
66
+ };
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ create,
70
+ factory,
71
+ generatedSchemas,
72
+ make,
73
+ of,
74
+ rawSchema,
75
+ schemas
76
+ });
77
+ //# sourceMappingURL=NetworkConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["NetworkConfig.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nimport * as Faucet from '@taqueria/protocol/Faucet';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport * as Url from '@taqueria/protocol/Url';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tlabel: HumanReadableIdentifier.rawSchema,\n\trpcUrl: Url.rawSchema,\n\tprotocol: EconomicalProtocolHash.rawSchema,\n\tfaucet: Faucet.rawSchema.describe('Network Faucet'),\n}).describe('Network Config');\n\nconst internalSchema = z.object({\n\tlabel: HumanReadableIdentifier.schemas.schema.describe('Network Label'),\n\trpcUrl: Url.schemas.schema.describe('Network RPC Url'),\n\tprotocol: EconomicalProtocolHash.schemas.schema.describe('Network Protocol Hash'),\n\tfaucet: Faucet.schemas.schema.describe('Network Faucet'),\n}).describe('Network Config');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid network configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the network configuration',\n});\n\nexport type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = NetworkConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as NetworkConfig),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,kBAAoC;AACpC,6BAAwC;AACxC,aAAwB;AACxB,8BAAyC;AACzC,UAAqB;AACrB,iBAAkB;AAEX,IAAMD,aAAY,aAAE,OAAO;AAAA,EACjC,OAA+B;AAAA,EAC/B,QAAY;AAAA,EACZ,UAAiC;AAAA,EACjC,QAAe,iBAAU,SAAS,gBAAgB;AACnD,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiB,aAAE,OAAO;AAAA,EAC/B,OAA+B,gCAAQ,OAAO,SAAS,eAAe;AAAA,EACtE,QAAY,YAAQ,OAAO,SAAS,iBAAiB;AAAA,EACrD,UAAiC,+BAAQ,OAAO,SAAS,uBAAuB;AAAA,EAChF,QAAe,eAAQ,OAAO,SAAS,gBAAgB;AACxD,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAE,SAA4B;AAAA,EACjF,WAAAF;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["rawSchema","schemas","createType"]}
@@ -0,0 +1,40 @@
1
+ // NetworkConfig.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import * as EconomicalProtocolHash from "@taqueria/protocol/EconomicalProtocolHash";
4
+ import * as Faucet from "@taqueria/protocol/Faucet";
5
+ import * as HumanReadableIdentifier from "@taqueria/protocol/HumanReadableIdentifier";
6
+ import * as Url from "@taqueria/protocol/Url";
7
+ import { z } from "zod";
8
+ var rawSchema5 = z.object({
9
+ label: HumanReadableIdentifier.rawSchema,
10
+ rpcUrl: Url.rawSchema,
11
+ protocol: EconomicalProtocolHash.rawSchema,
12
+ faucet: Faucet.rawSchema.describe("Network Faucet")
13
+ }).describe("Network Config");
14
+ var internalSchema = z.object({
15
+ label: HumanReadableIdentifier.schemas.schema.describe("Network Label"),
16
+ rpcUrl: Url.schemas.schema.describe("Network RPC Url"),
17
+ protocol: EconomicalProtocolHash.schemas.schema.describe("Network Protocol Hash"),
18
+ faucet: Faucet.schemas.schema.describe("Network Faucet")
19
+ }).describe("Network Config");
20
+ var { schemas: generatedSchemas, factory } = createType({
21
+ rawSchema: rawSchema5,
22
+ internalSchema,
23
+ parseErrMsg: (value) => `${value} is not a valid network configuration`,
24
+ unknownErrMsg: "Something went wrong trying to parse the network configuration"
25
+ });
26
+ var { create, of, make } = factory;
27
+ var schemas5 = {
28
+ ...generatedSchemas,
29
+ schema: generatedSchemas.schema.transform((val) => val)
30
+ };
31
+ export {
32
+ create,
33
+ factory,
34
+ generatedSchemas,
35
+ make,
36
+ of,
37
+ rawSchema5 as rawSchema,
38
+ schemas5 as schemas
39
+ };
40
+ //# sourceMappingURL=NetworkConfig.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["NetworkConfig.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nimport * as Faucet from '@taqueria/protocol/Faucet';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport * as Url from '@taqueria/protocol/Url';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tlabel: HumanReadableIdentifier.rawSchema,\n\trpcUrl: Url.rawSchema,\n\tprotocol: EconomicalProtocolHash.rawSchema,\n\tfaucet: Faucet.rawSchema.describe('Network Faucet'),\n}).describe('Network Config');\n\nconst internalSchema = z.object({\n\tlabel: HumanReadableIdentifier.schemas.schema.describe('Network Label'),\n\trpcUrl: Url.schemas.schema.describe('Network RPC Url'),\n\tprotocol: EconomicalProtocolHash.schemas.schema.describe('Network Protocol Hash'),\n\tfaucet: Faucet.schemas.schema.describe('Network Faucet'),\n}).describe('Network Config');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid network configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the network configuration',\n});\n\nexport type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = NetworkConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as NetworkConfig),\n};\n"],"mappings":";AAAA,OAAO,gBAA6B;AACpC,YAAY,4BAA4B;AACxC,YAAY,YAAY;AACxB,YAAY,6BAA6B;AACzC,YAAY,SAAS;AACrB,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE,OAAO;AAAA,EACjC,OAA+B;AAAA,EAC/B,QAAY;AAAA,EACZ,UAAiC;AAAA,EACjC,QAAe,iBAAU,SAAS,gBAAgB;AACnD,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiB,EAAE,OAAO;AAAA,EAC/B,OAA+B,gCAAQ,OAAO,SAAS,eAAe;AAAA,EACtE,QAAY,YAAQ,OAAO,SAAS,iBAAiB;AAAA,EACrD,UAAiC,+BAAQ,OAAO,SAAS,uBAAuB;AAAA,EAChF,QAAe,eAAQ,OAAO,SAAS,gBAAgB;AACxD,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF,WAAAA;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["rawSchema","schemas"]}