@taqueria/protocol 0.16.0 → 0.19.2

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 (371) hide show
  1. package/Alias.d.ts +42 -0
  2. package/Alias.d.ts.map +1 -0
  3. package/Alias.js +70 -0
  4. package/Alias.js.map +1 -0
  5. package/Alias.mjs +34 -0
  6. package/Alias.mjs.map +1 -0
  7. package/Base.d.ts +48 -0
  8. package/Base.d.ts.map +1 -0
  9. package/Base.js +83 -0
  10. package/Base.js.map +1 -0
  11. package/Base.mjs +57 -0
  12. package/Base.mjs.map +1 -0
  13. package/Command.d.ts +24 -0
  14. package/Command.d.ts.map +1 -0
  15. package/Command.js +61 -0
  16. package/Command.js.map +1 -0
  17. package/Command.mjs +25 -0
  18. package/Command.mjs.map +1 -0
  19. package/Config.d.ts +2055 -0
  20. package/Config.d.ts.map +1 -0
  21. package/Config.js +175 -0
  22. package/Config.js.map +1 -0
  23. package/Config.mjs +135 -0
  24. package/Config.mjs.map +1 -0
  25. package/Contract.d.ts +82 -0
  26. package/Contract.d.ts.map +1 -0
  27. package/Contract.js +68 -0
  28. package/Contract.js.map +1 -0
  29. package/Contract.mjs +32 -0
  30. package/Contract.mjs.map +1 -0
  31. package/Crypto.d.ts +4 -0
  32. package/Crypto.d.ts.map +1 -0
  33. package/Crypto.js +35 -0
  34. package/Crypto.js.map +1 -0
  35. package/Crypto.mjs +10 -0
  36. package/Crypto.mjs.map +1 -0
  37. package/EconomicalProtocolHash.d.ts +41 -0
  38. package/EconomicalProtocolHash.d.ts.map +1 -0
  39. package/EconomicalProtocolHash.js +64 -0
  40. package/EconomicalProtocolHash.js.map +1 -0
  41. package/EconomicalProtocolHash.mjs +27 -0
  42. package/EconomicalProtocolHash.mjs.map +1 -0
  43. package/Environment.d.ts +134 -0
  44. package/Environment.d.ts.map +1 -0
  45. package/Environment.js +78 -0
  46. package/Environment.js.map +1 -0
  47. package/Environment.mjs +40 -0
  48. package/Environment.mjs.map +1 -0
  49. package/EphemeralState.d.ts +4556 -0
  50. package/EphemeralState.d.ts.map +1 -0
  51. package/EphemeralState.js +268 -0
  52. package/EphemeralState.js.map +1 -0
  53. package/EphemeralState.mjs +228 -0
  54. package/EphemeralState.mjs.map +1 -0
  55. package/Faucet.d.ts +203 -0
  56. package/Faucet.d.ts.map +1 -0
  57. package/Faucet.js +84 -0
  58. package/Faucet.js.map +1 -0
  59. package/Faucet.mjs +47 -0
  60. package/Faucet.mjs.map +1 -0
  61. package/HumanReadableIdentifier.d.ts +24 -0
  62. package/HumanReadableIdentifier.d.ts.map +1 -0
  63. package/HumanReadableIdentifier.js +61 -0
  64. package/HumanReadableIdentifier.js.map +1 -0
  65. package/HumanReadableIdentifier.mjs +25 -0
  66. package/HumanReadableIdentifier.mjs.map +1 -0
  67. package/InstalledPlugin.d.ts +92 -0
  68. package/InstalledPlugin.d.ts.map +1 -0
  69. package/InstalledPlugin.js +67 -0
  70. package/InstalledPlugin.js.map +1 -0
  71. package/InstalledPlugin.mjs +30 -0
  72. package/InstalledPlugin.mjs.map +1 -0
  73. package/LoadedConfig.d.ts +2318 -0
  74. package/LoadedConfig.d.ts.map +1 -0
  75. package/LoadedConfig.js +80 -0
  76. package/LoadedConfig.js.map +1 -0
  77. package/LoadedConfig.mjs +41 -0
  78. package/LoadedConfig.mjs.map +1 -0
  79. package/MetadataConfig.d.ts +155 -0
  80. package/MetadataConfig.d.ts.map +1 -0
  81. package/MetadataConfig.js +75 -0
  82. package/MetadataConfig.js.map +1 -0
  83. package/MetadataConfig.mjs +38 -0
  84. package/MetadataConfig.mjs.map +1 -0
  85. package/NetworkConfig.d.ts +424 -0
  86. package/NetworkConfig.d.ts.map +1 -0
  87. package/NetworkConfig.js +77 -0
  88. package/NetworkConfig.js.map +1 -0
  89. package/NetworkConfig.mjs +40 -0
  90. package/NetworkConfig.mjs.map +1 -0
  91. package/Operation.d.ts +1470 -0
  92. package/Operation.d.ts.map +1 -0
  93. package/Operation.js +98 -0
  94. package/Operation.js.map +1 -0
  95. package/Operation.mjs +60 -0
  96. package/Operation.mjs.map +1 -0
  97. package/Option.d.ts +309 -0
  98. package/Option.d.ts.map +1 -0
  99. package/Option.js +103 -0
  100. package/Option.js.map +1 -0
  101. package/Option.mjs +65 -0
  102. package/Option.mjs.map +1 -0
  103. package/ParsedOperation.d.ts +880 -0
  104. package/ParsedOperation.d.ts.map +1 -0
  105. package/ParsedOperation.js +63 -0
  106. package/ParsedOperation.js.map +1 -0
  107. package/ParsedOperation.mjs +26 -0
  108. package/ParsedOperation.mjs.map +1 -0
  109. package/ParsedTemplate.d.ts +1024 -0
  110. package/ParsedTemplate.d.ts.map +1 -0
  111. package/ParsedTemplate.js +71 -0
  112. package/ParsedTemplate.js.map +1 -0
  113. package/ParsedTemplate.mjs +34 -0
  114. package/ParsedTemplate.mjs.map +1 -0
  115. package/PersistentState.d.ts +575 -0
  116. package/PersistentState.d.ts.map +1 -0
  117. package/PersistentState.js +98 -0
  118. package/PersistentState.js.map +1 -0
  119. package/PersistentState.mjs +60 -0
  120. package/PersistentState.mjs.map +1 -0
  121. package/PluginActionName.d.ts +22 -0
  122. package/PluginActionName.d.ts.map +1 -0
  123. package/PluginActionName.js +48 -0
  124. package/PluginActionName.js.map +1 -0
  125. package/PluginActionName.mjs +23 -0
  126. package/PluginActionName.mjs.map +1 -0
  127. package/PluginDependenciesResponse.d.ts +152 -0
  128. package/PluginDependenciesResponse.d.ts.map +1 -0
  129. package/PluginDependenciesResponse.js +63 -0
  130. package/PluginDependenciesResponse.js.map +1 -0
  131. package/PluginDependenciesResponse.mjs +28 -0
  132. package/PluginDependenciesResponse.mjs.map +1 -0
  133. package/PluginInfo.d.ts +3418 -0
  134. package/PluginInfo.d.ts.map +1 -0
  135. package/PluginInfo.js +113 -0
  136. package/PluginInfo.js.map +1 -0
  137. package/PluginInfo.mjs +76 -0
  138. package/PluginInfo.mjs.map +1 -0
  139. package/PluginJsonResponse.d.ts +99 -0
  140. package/PluginJsonResponse.d.ts.map +1 -0
  141. package/PluginJsonResponse.js +59 -0
  142. package/PluginJsonResponse.js.map +1 -0
  143. package/PluginJsonResponse.mjs +25 -0
  144. package/PluginJsonResponse.mjs.map +1 -0
  145. package/PluginProxyResponse.d.ts +16 -0
  146. package/PluginProxyResponse.d.ts.map +1 -0
  147. package/PluginProxyResponse.js +61 -0
  148. package/PluginProxyResponse.js.map +1 -0
  149. package/PluginProxyResponse.mjs +25 -0
  150. package/PluginProxyResponse.mjs.map +1 -0
  151. package/PluginResponseEncoding.d.ts +32 -0
  152. package/PluginResponseEncoding.d.ts.map +1 -0
  153. package/PluginResponseEncoding.js +63 -0
  154. package/PluginResponseEncoding.js.map +1 -0
  155. package/PluginResponseEncoding.mjs +27 -0
  156. package/PluginResponseEncoding.mjs.map +1 -0
  157. package/PluginSchema.d.ts +7324 -0
  158. package/PluginSchema.d.ts.map +1 -0
  159. package/PluginSchema.js +107 -0
  160. package/PluginSchema.js.map +1 -0
  161. package/PluginSchema.mjs +70 -0
  162. package/PluginSchema.mjs.map +1 -0
  163. package/PositionalArg.d.ts +183 -0
  164. package/PositionalArg.d.ts.map +1 -0
  165. package/PositionalArg.js +78 -0
  166. package/PositionalArg.js.map +1 -0
  167. package/PositionalArg.mjs +41 -0
  168. package/PositionalArg.mjs.map +1 -0
  169. package/Provisioner.d.ts +269 -0
  170. package/Provisioner.d.ts.map +1 -0
  171. package/Provisioner.js +86 -0
  172. package/Provisioner.js.map +1 -0
  173. package/Provisioner.mjs +48 -0
  174. package/Provisioner.mjs.map +1 -0
  175. package/ProvisionerID.d.ts +41 -0
  176. package/ProvisionerID.d.ts.map +1 -0
  177. package/ProvisionerID.js +61 -0
  178. package/ProvisionerID.js.map +1 -0
  179. package/ProvisionerID.mjs +24 -0
  180. package/ProvisionerID.mjs.map +1 -0
  181. package/Provisions.d.ts +237 -0
  182. package/Provisions.d.ts.map +1 -0
  183. package/Provisions.js +93 -0
  184. package/Provisions.js.map +1 -0
  185. package/Provisions.mjs +57 -0
  186. package/Provisions.mjs.map +1 -0
  187. package/PublicKeyHash.d.ts +42 -0
  188. package/PublicKeyHash.d.ts.map +1 -0
  189. package/PublicKeyHash.js +65 -0
  190. package/PublicKeyHash.js.map +1 -0
  191. package/PublicKeyHash.mjs +28 -0
  192. package/PublicKeyHash.mjs.map +1 -0
  193. package/RequestArgs.d.ts +5548 -0
  194. package/RequestArgs.d.ts.map +1 -0
  195. package/RequestArgs.js +136 -0
  196. package/RequestArgs.js.map +1 -0
  197. package/RequestArgs.mjs +89 -0
  198. package/RequestArgs.mjs.map +1 -0
  199. package/SHA256.d.ts +29 -0
  200. package/SHA256.d.ts.map +1 -0
  201. package/SHA256.js +79 -0
  202. package/SHA256.js.map +1 -0
  203. package/SHA256.mjs +42 -0
  204. package/SHA256.mjs.map +1 -0
  205. package/SandboxAccountConfig.d.ts +145 -0
  206. package/SandboxAccountConfig.d.ts.map +1 -0
  207. package/SandboxAccountConfig.js +72 -0
  208. package/SandboxAccountConfig.js.map +1 -0
  209. package/SandboxAccountConfig.mjs +35 -0
  210. package/SandboxAccountConfig.mjs.map +1 -0
  211. package/SandboxConfig.d.ts +543 -0
  212. package/SandboxConfig.d.ts.map +1 -0
  213. package/SandboxConfig.js +103 -0
  214. package/SandboxConfig.js.map +1 -0
  215. package/SandboxConfig.mjs +66 -0
  216. package/SandboxConfig.mjs.map +1 -0
  217. package/SanitizedAbsPath.d.ts +41 -0
  218. package/SanitizedAbsPath.d.ts.map +1 -0
  219. package/SanitizedAbsPath.js +64 -0
  220. package/SanitizedAbsPath.js.map +1 -0
  221. package/SanitizedAbsPath.mjs +27 -0
  222. package/SanitizedAbsPath.mjs.map +1 -0
  223. package/SanitizedArgs.d.ts +2900 -0
  224. package/SanitizedArgs.d.ts.map +1 -0
  225. package/SanitizedArgs.js +269 -0
  226. package/SanitizedArgs.js.map +1 -0
  227. package/SanitizedArgs.mjs +197 -0
  228. package/SanitizedArgs.mjs.map +1 -0
  229. package/SanitizedPath.d.ts +24 -0
  230. package/SanitizedPath.d.ts.map +1 -0
  231. package/SanitizedPath.js +64 -0
  232. package/SanitizedPath.js.map +1 -0
  233. package/SanitizedPath.mjs +28 -0
  234. package/SanitizedPath.mjs.map +1 -0
  235. package/ScaffoldConfig.d.ts +5 -0
  236. package/ScaffoldConfig.d.ts.map +1 -0
  237. package/ScaffoldConfig.js +19 -0
  238. package/ScaffoldConfig.js.map +1 -0
  239. package/ScaffoldConfig.mjs +1 -0
  240. package/ScaffoldConfig.mjs.map +1 -0
  241. package/Settings.d.ts +75 -0
  242. package/Settings.d.ts.map +1 -0
  243. package/Settings.js +66 -0
  244. package/Settings.js.map +1 -0
  245. package/Settings.mjs +29 -0
  246. package/Settings.mjs.map +1 -0
  247. package/SingleChar.d.ts +41 -0
  248. package/SingleChar.d.ts.map +1 -0
  249. package/SingleChar.js +62 -0
  250. package/SingleChar.js.map +1 -0
  251. package/SingleChar.mjs +25 -0
  252. package/SingleChar.mjs.map +1 -0
  253. package/TaqError.d.ts +21 -0
  254. package/TaqError.d.ts.map +1 -0
  255. package/TaqError.js +65 -0
  256. package/TaqError.js.map +1 -0
  257. package/TaqError.mjs +35 -0
  258. package/TaqError.mjs.map +1 -0
  259. package/Task.d.ts +818 -0
  260. package/Task.d.ts.map +1 -0
  261. package/Task.js +95 -0
  262. package/Task.js.map +1 -0
  263. package/Task.mjs +58 -0
  264. package/Task.mjs.map +1 -0
  265. package/Template.d.ts +1738 -0
  266. package/Template.d.ts.map +1 -0
  267. package/Template.js +117 -0
  268. package/Template.js.map +1 -0
  269. package/Template.mjs +79 -0
  270. package/Template.mjs.map +1 -0
  271. package/Timestamp.d.ts +44 -0
  272. package/Timestamp.d.ts.map +1 -0
  273. package/Timestamp.js +65 -0
  274. package/Timestamp.js.map +1 -0
  275. package/Timestamp.mjs +27 -0
  276. package/Timestamp.mjs.map +1 -0
  277. package/Tz.d.ts +40 -0
  278. package/Tz.d.ts.map +1 -0
  279. package/Tz.js +62 -0
  280. package/Tz.js.map +1 -0
  281. package/Tz.mjs +25 -0
  282. package/Tz.mjs.map +1 -0
  283. package/Url.d.ts +42 -0
  284. package/Url.d.ts.map +1 -0
  285. package/Url.js +68 -0
  286. package/Url.js.map +1 -0
  287. package/Url.mjs +30 -0
  288. package/Url.mjs.map +1 -0
  289. package/Verb.d.ts +41 -0
  290. package/Verb.d.ts.map +1 -0
  291. package/Verb.js +62 -0
  292. package/Verb.js.map +1 -0
  293. package/Verb.mjs +25 -0
  294. package/Verb.mjs.map +1 -0
  295. package/VersionNumber.d.ts +24 -0
  296. package/VersionNumber.d.ts.map +1 -0
  297. package/VersionNumber.js +61 -0
  298. package/VersionNumber.js.map +1 -0
  299. package/VersionNumber.mjs +25 -0
  300. package/VersionNumber.mjs.map +1 -0
  301. package/i18n.d.ts +7 -0
  302. package/i18n.d.ts.map +1 -0
  303. package/i18n.js +96 -0
  304. package/i18n.js.map +1 -0
  305. package/i18n.mjs +67 -0
  306. package/i18n.mjs.map +1 -0
  307. package/package.json +31 -3
  308. package/{taqueria-protocol-types.ts → taqueria-protocol-types.d.ts} +1 -0
  309. package/taqueria-protocol-types.d.ts.map +1 -0
  310. package/taqueria-protocol-types.js +142 -0
  311. package/taqueria-protocol-types.js.map +1 -0
  312. package/taqueria-protocol-types.mjs +76 -0
  313. package/taqueria-protocol-types.mjs.map +1 -0
  314. package/tzkt-config.d.ts +109 -0
  315. package/tzkt-config.d.ts.map +1 -0
  316. package/tzkt-config.js +65 -0
  317. package/tzkt-config.js.map +1 -0
  318. package/tzkt-config.mjs +28 -0
  319. package/tzkt-config.mjs.map +1 -0
  320. package/Alias.ts +0 -38
  321. package/Base.ts +0 -105
  322. package/Command.ts +0 -26
  323. package/Config.ts +0 -163
  324. package/Contract.ts +0 -35
  325. package/Crypto.ts +0 -3
  326. package/EconomicalProtocolHash.ts +0 -26
  327. package/Environment.ts +0 -40
  328. package/EphemeralState.ts +0 -282
  329. package/Faucet.ts +0 -46
  330. package/HumanReadableIdentifier.ts +0 -26
  331. package/InstalledPlugin.ts +0 -28
  332. package/LoadedConfig.ts +0 -45
  333. package/MetadataConfig.ts +0 -37
  334. package/NetworkConfig.ts +0 -39
  335. package/Operation.ts +0 -70
  336. package/Option.ts +0 -64
  337. package/ParsedOperation.ts +0 -33
  338. package/ParsedTemplate.ts +0 -40
  339. package/PersistentState.ts +0 -69
  340. package/PluginActionName.ts +0 -28
  341. package/PluginDependenciesResponse.ts +0 -33
  342. package/PluginInfo.ts +0 -76
  343. package/PluginJsonResponse.ts +0 -26
  344. package/PluginProxyResponse.ts +0 -24
  345. package/PluginResponseEncoding.ts +0 -27
  346. package/PluginSchema.ts +0 -81
  347. package/PositionalArg.ts +0 -41
  348. package/Provisioner.ts +0 -61
  349. package/ProvisionerID.ts +0 -25
  350. package/Provisions.ts +0 -70
  351. package/PublicKeyHash.ts +0 -28
  352. package/RequestArgs.ts +0 -97
  353. package/SHA256.ts +0 -42
  354. package/SandboxAccountConfig.ts +0 -35
  355. package/SandboxConfig.ts +0 -66
  356. package/SanitizedAbsPath.ts +0 -23
  357. package/SanitizedArgs.ts +0 -213
  358. package/SanitizedPath.ts +0 -28
  359. package/ScaffoldConfig.ts +0 -6
  360. package/Settings.ts +0 -27
  361. package/SingleChar.ts +0 -23
  362. package/TaqError.ts +0 -78
  363. package/Task.ts +0 -57
  364. package/Template.ts +0 -77
  365. package/Timestamp.ts +0 -25
  366. package/Tz.ts +0 -22
  367. package/Url.ts +0 -28
  368. package/Verb.ts +0 -23
  369. package/VersionNumber.ts +0 -25
  370. package/i18n.ts +0 -74
  371. package/tzkt-config.ts +0 -27
@@ -0,0 +1,424 @@
1
+ import { Flatten } from '@taqueria/protocol/Base';
2
+ import { z } from 'zod';
3
+ export declare const rawSchema: z.ZodObject<{
4
+ label: z.ZodString;
5
+ rpcUrl: z.ZodString;
6
+ protocol: z.ZodEffects<z.ZodString, string, string>;
7
+ faucet: z.ZodObject<{
8
+ pkh: z.ZodString;
9
+ mnemonic: z.ZodArray<z.ZodString, "many">;
10
+ email: z.ZodString;
11
+ password: z.ZodString;
12
+ amount: z.ZodString;
13
+ activation_code: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ pkh: string;
16
+ mnemonic: string[];
17
+ email: string;
18
+ password: string;
19
+ amount: string;
20
+ activation_code: string;
21
+ }, {
22
+ pkh: string;
23
+ mnemonic: string[];
24
+ email: string;
25
+ password: string;
26
+ amount: string;
27
+ activation_code: string;
28
+ }>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ label: string;
31
+ rpcUrl: string;
32
+ protocol: string;
33
+ faucet: {
34
+ pkh: string;
35
+ mnemonic: string[];
36
+ email: string;
37
+ password: string;
38
+ amount: string;
39
+ activation_code: string;
40
+ };
41
+ }, {
42
+ label: string;
43
+ rpcUrl: string;
44
+ protocol: string;
45
+ faucet: {
46
+ pkh: string;
47
+ mnemonic: string[];
48
+ email: string;
49
+ password: string;
50
+ amount: string;
51
+ activation_code: string;
52
+ };
53
+ }>;
54
+ export declare const generatedSchemas: {
55
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
56
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
57
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
58
+ label: string & {
59
+ readonly __kind: any;
60
+ };
61
+ rpcUrl: string & {
62
+ readonly __kind: any;
63
+ };
64
+ protocol: string & {
65
+ readonly __kind: any;
66
+ };
67
+ faucet: Flatten<{
68
+ pkh: string & {
69
+ readonly __kind: any;
70
+ };
71
+ mnemonic: string[];
72
+ email: string;
73
+ password: string;
74
+ amount: string;
75
+ activation_code: string;
76
+ } & {
77
+ readonly __kind: any;
78
+ }>;
79
+ } & {
80
+ readonly __kind: any;
81
+ }, any>;
82
+ }, factory: {
83
+ make: (input: {
84
+ label: string & {
85
+ readonly __kind: any;
86
+ };
87
+ rpcUrl: string & {
88
+ readonly __kind: any;
89
+ };
90
+ protocol: string & {
91
+ readonly __kind: any;
92
+ };
93
+ faucet: Flatten<{
94
+ pkh: string & {
95
+ readonly __kind: any;
96
+ };
97
+ mnemonic: string[];
98
+ email: string;
99
+ password: string;
100
+ amount: string;
101
+ activation_code: string;
102
+ } & {
103
+ readonly __kind: any;
104
+ }>;
105
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
106
+ label: string & {
107
+ readonly __kind: any;
108
+ };
109
+ rpcUrl: string & {
110
+ readonly __kind: any;
111
+ };
112
+ protocol: string & {
113
+ readonly __kind: any;
114
+ };
115
+ faucet: Flatten<{
116
+ pkh: string & {
117
+ readonly __kind: any;
118
+ };
119
+ mnemonic: string[];
120
+ email: string;
121
+ password: string;
122
+ amount: string;
123
+ activation_code: string;
124
+ } & {
125
+ readonly __kind: any;
126
+ }>;
127
+ } & {
128
+ readonly __kind: any;
129
+ }>;
130
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
131
+ label: string & {
132
+ readonly __kind: any;
133
+ };
134
+ rpcUrl: string & {
135
+ readonly __kind: any;
136
+ };
137
+ protocol: string & {
138
+ readonly __kind: any;
139
+ };
140
+ faucet: Flatten<{
141
+ pkh: string & {
142
+ readonly __kind: any;
143
+ };
144
+ mnemonic: string[];
145
+ email: string;
146
+ password: string;
147
+ amount: string;
148
+ activation_code: string;
149
+ } & {
150
+ readonly __kind: any;
151
+ }>;
152
+ } & {
153
+ readonly __kind: any;
154
+ }>;
155
+ create: (input: {
156
+ label: string;
157
+ rpcUrl: string;
158
+ protocol: string;
159
+ faucet: {
160
+ pkh: string;
161
+ mnemonic: string[];
162
+ email: string;
163
+ password: string;
164
+ amount: string;
165
+ activation_code: string;
166
+ };
167
+ } | {
168
+ label: string & {
169
+ readonly __kind: any;
170
+ };
171
+ rpcUrl: string & {
172
+ readonly __kind: any;
173
+ };
174
+ protocol: string & {
175
+ readonly __kind: any;
176
+ };
177
+ faucet: Flatten<{
178
+ pkh: string & {
179
+ readonly __kind: any;
180
+ };
181
+ mnemonic: string[];
182
+ email: string;
183
+ password: string;
184
+ amount: string;
185
+ activation_code: string;
186
+ } & {
187
+ readonly __kind: any;
188
+ }>;
189
+ }) => {
190
+ label: string & {
191
+ readonly __kind: any;
192
+ };
193
+ rpcUrl: string & {
194
+ readonly __kind: any;
195
+ };
196
+ protocol: string & {
197
+ readonly __kind: any;
198
+ };
199
+ faucet: Flatten<{
200
+ pkh: string & {
201
+ readonly __kind: any;
202
+ };
203
+ mnemonic: string[];
204
+ email: string;
205
+ password: string;
206
+ amount: string;
207
+ activation_code: string;
208
+ } & {
209
+ readonly __kind: any;
210
+ }>;
211
+ } & {
212
+ readonly __kind: any;
213
+ };
214
+ from: (input: unknown) => {
215
+ label: string & {
216
+ readonly __kind: any;
217
+ };
218
+ rpcUrl: string & {
219
+ readonly __kind: any;
220
+ };
221
+ protocol: string & {
222
+ readonly __kind: any;
223
+ };
224
+ faucet: Flatten<{
225
+ pkh: string & {
226
+ readonly __kind: any;
227
+ };
228
+ mnemonic: string[];
229
+ email: string;
230
+ password: string;
231
+ amount: string;
232
+ activation_code: string;
233
+ } & {
234
+ readonly __kind: any;
235
+ }>;
236
+ } & {
237
+ readonly __kind: any;
238
+ };
239
+ };
240
+ export declare type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;
241
+ export declare type t = NetworkConfig;
242
+ export declare const create: (input: {
243
+ label: string;
244
+ rpcUrl: string;
245
+ protocol: string;
246
+ faucet: {
247
+ pkh: string;
248
+ mnemonic: string[];
249
+ email: string;
250
+ password: string;
251
+ amount: string;
252
+ activation_code: string;
253
+ };
254
+ } | {
255
+ label: string & {
256
+ readonly __kind: any;
257
+ };
258
+ rpcUrl: string & {
259
+ readonly __kind: any;
260
+ };
261
+ protocol: string & {
262
+ readonly __kind: any;
263
+ };
264
+ faucet: Flatten<{
265
+ pkh: string & {
266
+ readonly __kind: any;
267
+ };
268
+ mnemonic: string[];
269
+ email: string;
270
+ password: string;
271
+ amount: string;
272
+ activation_code: string;
273
+ } & {
274
+ readonly __kind: any;
275
+ }>;
276
+ }) => {
277
+ label: string & {
278
+ readonly __kind: any;
279
+ };
280
+ rpcUrl: string & {
281
+ readonly __kind: any;
282
+ };
283
+ protocol: string & {
284
+ readonly __kind: any;
285
+ };
286
+ faucet: Flatten<{
287
+ pkh: string & {
288
+ readonly __kind: any;
289
+ };
290
+ mnemonic: string[];
291
+ email: string;
292
+ password: string;
293
+ amount: string;
294
+ activation_code: string;
295
+ } & {
296
+ readonly __kind: any;
297
+ }>;
298
+ } & {
299
+ readonly __kind: any;
300
+ }, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
301
+ label: string & {
302
+ readonly __kind: any;
303
+ };
304
+ rpcUrl: string & {
305
+ readonly __kind: any;
306
+ };
307
+ protocol: string & {
308
+ readonly __kind: any;
309
+ };
310
+ faucet: Flatten<{
311
+ pkh: string & {
312
+ readonly __kind: any;
313
+ };
314
+ mnemonic: string[];
315
+ email: string;
316
+ password: string;
317
+ amount: string;
318
+ activation_code: string;
319
+ } & {
320
+ readonly __kind: any;
321
+ }>;
322
+ } & {
323
+ readonly __kind: any;
324
+ }>, make: (input: {
325
+ label: string & {
326
+ readonly __kind: any;
327
+ };
328
+ rpcUrl: string & {
329
+ readonly __kind: any;
330
+ };
331
+ protocol: string & {
332
+ readonly __kind: any;
333
+ };
334
+ faucet: Flatten<{
335
+ pkh: string & {
336
+ readonly __kind: any;
337
+ };
338
+ mnemonic: string[];
339
+ email: string;
340
+ password: string;
341
+ amount: string;
342
+ activation_code: string;
343
+ } & {
344
+ readonly __kind: any;
345
+ }>;
346
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
347
+ label: string & {
348
+ readonly __kind: any;
349
+ };
350
+ rpcUrl: string & {
351
+ readonly __kind: any;
352
+ };
353
+ protocol: string & {
354
+ readonly __kind: any;
355
+ };
356
+ faucet: Flatten<{
357
+ pkh: string & {
358
+ readonly __kind: any;
359
+ };
360
+ mnemonic: string[];
361
+ email: string;
362
+ password: string;
363
+ amount: string;
364
+ activation_code: string;
365
+ } & {
366
+ readonly __kind: any;
367
+ }>;
368
+ } & {
369
+ readonly __kind: any;
370
+ }>;
371
+ export declare const schemas: {
372
+ schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
373
+ label: string & {
374
+ readonly __kind: any;
375
+ };
376
+ rpcUrl: string & {
377
+ readonly __kind: any;
378
+ };
379
+ protocol: string & {
380
+ readonly __kind: any;
381
+ };
382
+ faucet: Flatten<{
383
+ pkh: string & {
384
+ readonly __kind: any;
385
+ };
386
+ mnemonic: string[];
387
+ email: string;
388
+ password: string;
389
+ amount: string;
390
+ activation_code: string;
391
+ } & {
392
+ readonly __kind: any;
393
+ }>;
394
+ } & {
395
+ readonly __kind: any;
396
+ }, any>, Flatten<{
397
+ label: string & {
398
+ readonly __kind: any;
399
+ };
400
+ rpcUrl: string & {
401
+ readonly __kind: any;
402
+ };
403
+ protocol: string & {
404
+ readonly __kind: any;
405
+ };
406
+ faucet: Flatten<{
407
+ pkh: string & {
408
+ readonly __kind: any;
409
+ };
410
+ mnemonic: string[];
411
+ email: string;
412
+ password: string;
413
+ amount: string;
414
+ activation_code: string;
415
+ } & {
416
+ readonly __kind: any;
417
+ }>;
418
+ } & {
419
+ readonly __kind: any;
420
+ }>, any>;
421
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
422
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
423
+ };
424
+ //# sourceMappingURL=NetworkConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworkConfig.d.ts","sourceRoot":"","sources":["NetworkConfig.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKO,CAAC;AAY9B,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7E,oBAAY,CAAC,GAAG,aAAa,CAAC;AAC9B,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
@@ -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"]}