@helios-lang/effect 0.1.14 → 0.2.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 (387) hide show
  1. package/dist/Cardano/CoinSelection.js +130 -0
  2. package/dist/Cardano/CoinSelection.js.map +1 -0
  3. package/dist/{Ledger → Cardano/Ledger}/Address.js +30 -20
  4. package/dist/Cardano/Ledger/Address.js.map +1 -0
  5. package/dist/{Ledger → Cardano/Ledger}/AssetClass.js +16 -11
  6. package/dist/Cardano/Ledger/AssetClass.js.map +1 -0
  7. package/dist/Cardano/Ledger/Assets.js +235 -0
  8. package/dist/Cardano/Ledger/Assets.js.map +1 -0
  9. package/dist/Cardano/Ledger/Credential.js +53 -0
  10. package/dist/Cardano/Ledger/Credential.js.map +1 -0
  11. package/dist/Cardano/Ledger/DCert.js +117 -0
  12. package/dist/Cardano/Ledger/DCert.js.map +1 -0
  13. package/dist/Cardano/Ledger/DatumHash.js +25 -0
  14. package/dist/Cardano/Ledger/DatumHash.js.map +1 -0
  15. package/dist/Cardano/Ledger/MintingPolicy.js +40 -0
  16. package/dist/Cardano/Ledger/MintingPolicy.js.map +1 -0
  17. package/dist/Cardano/Ledger/NativeScript.js +140 -0
  18. package/dist/Cardano/Ledger/NativeScript.js.map +1 -0
  19. package/dist/Cardano/Ledger/PubKey.js +22 -0
  20. package/dist/Cardano/Ledger/PubKey.js.map +1 -0
  21. package/dist/{Ledger → Cardano/Ledger}/PubKeyHash.js +5 -5
  22. package/dist/Cardano/Ledger/PubKeyHash.js.map +1 -0
  23. package/dist/Cardano/Ledger/Redeemer.js +155 -0
  24. package/dist/Cardano/Ledger/Redeemer.js.map +1 -0
  25. package/dist/Cardano/Ledger/RewardAddress.js +93 -0
  26. package/dist/Cardano/Ledger/RewardAddress.js.map +1 -0
  27. package/dist/Cardano/Ledger/Signature.js +23 -0
  28. package/dist/Cardano/Ledger/Signature.js.map +1 -0
  29. package/dist/Cardano/Ledger/Tx.js +498 -0
  30. package/dist/Cardano/Ledger/Tx.js.map +1 -0
  31. package/dist/Cardano/Ledger/TxHash.js +38 -0
  32. package/dist/Cardano/Ledger/TxHash.js.map +1 -0
  33. package/dist/Cardano/Ledger/TxOutput.js +167 -0
  34. package/dist/Cardano/Ledger/TxOutput.js.map +1 -0
  35. package/dist/{Ledger → Cardano/Ledger}/TxOutputDatum.js +44 -8
  36. package/dist/Cardano/Ledger/TxOutputDatum.js.map +1 -0
  37. package/dist/Cardano/Ledger/UTxO.js +100 -0
  38. package/dist/Cardano/Ledger/UTxO.js.map +1 -0
  39. package/dist/{Ledger → Cardano/Ledger}/UTxORef.js +28 -6
  40. package/dist/Cardano/Ledger/UTxORef.js.map +1 -0
  41. package/dist/{Ledger → Cardano/Ledger}/ValidatorHash.js +5 -5
  42. package/dist/Cardano/Ledger/ValidatorHash.js.map +1 -0
  43. package/dist/{Ledger → Cardano/Ledger}/index.js +5 -0
  44. package/dist/Cardano/Ledger/index.js.map +1 -0
  45. package/dist/Cardano/Network/IsMainnet.js.map +1 -0
  46. package/dist/{Network → Cardano/Network}/Params.js +27 -3
  47. package/dist/Cardano/Network/Params.js.map +1 -0
  48. package/dist/Cardano/Network/UTxO.js +20 -0
  49. package/dist/Cardano/Network/UTxO.js.map +1 -0
  50. package/dist/Cardano/Network/UTxOsAt.js +4 -0
  51. package/dist/Cardano/Network/UTxOsAt.js.map +1 -0
  52. package/dist/Cardano/Network/errors.js +33 -0
  53. package/dist/Cardano/Network/errors.js.map +1 -0
  54. package/dist/{Network → Cardano/Network}/index.js +1 -0
  55. package/dist/Cardano/Network/index.js.map +1 -0
  56. package/dist/Cardano/TxBuilder.js +946 -0
  57. package/dist/Cardano/TxBuilder.js.map +1 -0
  58. package/dist/Cardano/Uplc/Builtins.js +1820 -0
  59. package/dist/Cardano/Uplc/Builtins.js.map +1 -0
  60. package/dist/Cardano/Uplc/Cek.js +716 -0
  61. package/dist/Cardano/Uplc/Cek.js.map +1 -0
  62. package/dist/Cardano/Uplc/Cost.js +956 -0
  63. package/dist/Cardano/Uplc/Cost.js.map +1 -0
  64. package/dist/{Uplc → Cardano/Uplc}/Data.js +143 -22
  65. package/dist/Cardano/Uplc/Data.js.map +1 -0
  66. package/dist/Cardano/Uplc/Script.js +118 -0
  67. package/dist/Cardano/Uplc/Script.js.map +1 -0
  68. package/dist/Cardano/Uplc/ScriptContext.js +259 -0
  69. package/dist/Cardano/Uplc/ScriptContext.js.map +1 -0
  70. package/dist/Cardano/Uplc/Term.js +384 -0
  71. package/dist/Cardano/Uplc/Term.js.map +1 -0
  72. package/dist/Cardano/Uplc/Type.js +131 -0
  73. package/dist/Cardano/Uplc/Type.js.map +1 -0
  74. package/dist/Cardano/Uplc/Value.js +315 -0
  75. package/dist/Cardano/Uplc/Value.js.map +1 -0
  76. package/dist/Cardano/Uplc/index.js +7 -0
  77. package/dist/Cardano/Uplc/index.js.map +1 -0
  78. package/dist/Cardano/index.js +6 -0
  79. package/dist/Cardano/index.js.map +1 -0
  80. package/dist/{internal → Codecs}/Base32.js +2 -2
  81. package/dist/Codecs/Base32.js.map +1 -0
  82. package/dist/{Bech32.js → Codecs/Bech32.js} +2 -2
  83. package/dist/Codecs/Bech32.js.map +1 -0
  84. package/dist/Codecs/BigEndian.js.map +1 -0
  85. package/dist/Codecs/Bits.js.map +1 -0
  86. package/dist/{internal → Codecs}/Bytes.js +23 -12
  87. package/dist/Codecs/Bytes.js.map +1 -0
  88. package/dist/{Cbor.js → Codecs/Cbor.js} +559 -328
  89. package/dist/Codecs/Cbor.js.map +1 -0
  90. package/dist/{internal → Codecs}/Flat.js +16 -0
  91. package/dist/Codecs/Flat.js.map +1 -0
  92. package/dist/Codecs/Float.js.map +1 -0
  93. package/dist/Codecs/LittleEndian.js +27 -0
  94. package/dist/Codecs/LittleEndian.js.map +1 -0
  95. package/dist/Codecs/Uint64.js +89 -0
  96. package/dist/Codecs/Uint64.js.map +1 -0
  97. package/dist/{internal → Codecs}/Utf8.js +7 -2
  98. package/dist/Codecs/Utf8.js.map +1 -0
  99. package/dist/Codecs/ZigZag.js +26 -0
  100. package/dist/Codecs/ZigZag.js.map +1 -0
  101. package/dist/Codecs/index.js +8 -0
  102. package/dist/Codecs/index.js.map +1 -0
  103. package/dist/Crypto/Blake2b.js +156 -0
  104. package/dist/Crypto/Blake2b.js.map +1 -0
  105. package/dist/Crypto/Curve.js +92 -0
  106. package/dist/Crypto/Curve.js.map +1 -0
  107. package/dist/Crypto/Ed25519.js +323 -0
  108. package/dist/Crypto/Ed25519.js.map +1 -0
  109. package/dist/Crypto/EdDSA.js +222 -0
  110. package/dist/Crypto/EdDSA.js.map +1 -0
  111. package/dist/Crypto/Field.js +323 -0
  112. package/dist/Crypto/Field.js.map +1 -0
  113. package/dist/Crypto/Hmac.js +51 -0
  114. package/dist/Crypto/Hmac.js.map +1 -0
  115. package/dist/Crypto/Keccak.js +167 -0
  116. package/dist/Crypto/Keccak.js.map +1 -0
  117. package/dist/Crypto/Pbkdf2.js +45 -0
  118. package/dist/Crypto/Pbkdf2.js.map +1 -0
  119. package/dist/Crypto/Sha2_256.js +200 -0
  120. package/dist/Crypto/Sha2_256.js.map +1 -0
  121. package/dist/Crypto/Sha2_512.js +264 -0
  122. package/dist/Crypto/Sha2_512.js.map +1 -0
  123. package/dist/Crypto/Sha3_256.js +10 -0
  124. package/dist/Crypto/Sha3_256.js.map +1 -0
  125. package/dist/Crypto/errors.js +9 -0
  126. package/dist/Crypto/errors.js.map +1 -0
  127. package/dist/Crypto/index.js +12 -0
  128. package/dist/Crypto/index.js.map +1 -0
  129. package/dist/index.js +3 -5
  130. package/dist/index.js.map +1 -1
  131. package/package.json +24 -6
  132. package/tsconfig.build.json +1 -1
  133. package/tsconfig.build.tsbuildinfo +1 -1
  134. package/tsconfig.tsbuildinfo +1 -1
  135. package/types/Cardano/CoinSelection.d.ts +26 -0
  136. package/types/Cardano/CoinSelection.d.ts.map +1 -0
  137. package/types/{Ledger → Cardano/Ledger}/Address.d.ts +7 -6
  138. package/types/Cardano/Ledger/Address.d.ts.map +1 -0
  139. package/types/{Ledger → Cardano/Ledger}/AssetClass.d.ts +2 -2
  140. package/types/Cardano/Ledger/AssetClass.d.ts.map +1 -0
  141. package/types/Cardano/Ledger/Assets.d.ts +114 -0
  142. package/types/Cardano/Ledger/Assets.d.ts.map +1 -0
  143. package/types/{Ledger → Cardano/Ledger}/Credential.d.ts +10 -4
  144. package/types/Cardano/Ledger/Credential.d.ts.map +1 -0
  145. package/types/Cardano/Ledger/DCert.d.ts +40 -0
  146. package/types/Cardano/Ledger/DCert.d.ts.map +1 -0
  147. package/types/{Ledger → Cardano/Ledger}/DatumHash.d.ts +6 -5
  148. package/types/Cardano/Ledger/DatumHash.d.ts.map +1 -0
  149. package/types/{Ledger → Cardano/Ledger}/MintingPolicy.d.ts +11 -8
  150. package/types/Cardano/Ledger/MintingPolicy.d.ts.map +1 -0
  151. package/types/Cardano/Ledger/NativeScript.d.ts +105 -0
  152. package/types/Cardano/Ledger/NativeScript.d.ts.map +1 -0
  153. package/types/Cardano/Ledger/PubKey.d.ts +41 -0
  154. package/types/Cardano/Ledger/PubKey.d.ts.map +1 -0
  155. package/types/{Ledger → Cardano/Ledger}/PubKeyHash.d.ts +5 -5
  156. package/types/Cardano/Ledger/PubKeyHash.d.ts.map +1 -0
  157. package/types/Cardano/Ledger/Redeemer.d.ts +303 -0
  158. package/types/Cardano/Ledger/Redeemer.d.ts.map +1 -0
  159. package/types/Cardano/Ledger/RewardAddress.d.ts +60 -0
  160. package/types/Cardano/Ledger/RewardAddress.d.ts.map +1 -0
  161. package/types/Cardano/Ledger/Signature.d.ts +13 -0
  162. package/types/Cardano/Ledger/Signature.d.ts.map +1 -0
  163. package/types/Cardano/Ledger/Tx.d.ts +375 -0
  164. package/types/Cardano/Ledger/Tx.d.ts.map +1 -0
  165. package/types/{Ledger → Cardano/Ledger}/TxHash.d.ts +35 -5
  166. package/types/Cardano/Ledger/TxHash.d.ts.map +1 -0
  167. package/types/Cardano/Ledger/TxOutput.d.ts +438 -0
  168. package/types/Cardano/Ledger/TxOutput.d.ts.map +1 -0
  169. package/types/Cardano/Ledger/TxOutputDatum.d.ts +98 -0
  170. package/types/Cardano/Ledger/TxOutputDatum.d.ts.map +1 -0
  171. package/types/Cardano/Ledger/UTxO.d.ts +1420 -0
  172. package/types/Cardano/Ledger/UTxO.d.ts.map +1 -0
  173. package/types/Cardano/Ledger/UTxORef.d.ts +222 -0
  174. package/types/Cardano/Ledger/UTxORef.d.ts.map +1 -0
  175. package/types/{Ledger → Cardano/Ledger}/ValidatorHash.d.ts +5 -5
  176. package/types/Cardano/Ledger/ValidatorHash.d.ts.map +1 -0
  177. package/types/{Ledger → Cardano/Ledger}/index.d.ts +5 -0
  178. package/types/Cardano/Ledger/index.d.ts.map +1 -0
  179. package/types/Cardano/Network/IsMainnet.d.ts.map +1 -0
  180. package/types/{Network → Cardano/Network}/Params.d.ts +32 -4
  181. package/types/Cardano/Network/Params.d.ts.map +1 -0
  182. package/types/Cardano/Network/UTxO.d.ts +15 -0
  183. package/types/Cardano/Network/UTxO.d.ts.map +1 -0
  184. package/types/Cardano/Network/UTxOsAt.d.ts +9 -0
  185. package/types/Cardano/Network/UTxOsAt.d.ts.map +1 -0
  186. package/types/Cardano/Network/errors.d.ts +39 -0
  187. package/types/Cardano/Network/errors.d.ts.map +1 -0
  188. package/types/{Network → Cardano/Network}/index.d.ts +1 -0
  189. package/types/Cardano/Network/index.d.ts.map +1 -0
  190. package/types/Cardano/TxBuilder.d.ts +261 -0
  191. package/types/Cardano/TxBuilder.d.ts.map +1 -0
  192. package/types/Cardano/Uplc/Builtins.d.ts +163 -0
  193. package/types/Cardano/Uplc/Builtins.d.ts.map +1 -0
  194. package/types/Cardano/Uplc/Cek.d.ts +165 -0
  195. package/types/Cardano/Uplc/Cek.d.ts.map +1 -0
  196. package/types/Cardano/Uplc/Cost.d.ts +93 -0
  197. package/types/Cardano/Uplc/Cost.d.ts.map +1 -0
  198. package/types/{Uplc → Cardano/Uplc}/Data.d.ts +149 -15
  199. package/types/Cardano/Uplc/Data.d.ts.map +1 -0
  200. package/types/Cardano/Uplc/Script.d.ts +87 -0
  201. package/types/Cardano/Uplc/Script.d.ts.map +1 -0
  202. package/types/Cardano/Uplc/ScriptContext.d.ts +21 -0
  203. package/types/Cardano/Uplc/ScriptContext.d.ts.map +1 -0
  204. package/types/Cardano/Uplc/Term.d.ts +454 -0
  205. package/types/Cardano/Uplc/Term.d.ts.map +1 -0
  206. package/types/Cardano/Uplc/Type.d.ts +29 -0
  207. package/types/Cardano/Uplc/Type.d.ts.map +1 -0
  208. package/types/Cardano/Uplc/Value.d.ts +152 -0
  209. package/types/Cardano/Uplc/Value.d.ts.map +1 -0
  210. package/types/Cardano/Uplc/index.d.ts +7 -0
  211. package/types/Cardano/Uplc/index.d.ts.map +1 -0
  212. package/types/Cardano/index.d.ts +6 -0
  213. package/types/Cardano/index.d.ts.map +1 -0
  214. package/types/Codecs/Base32.d.ts.map +1 -0
  215. package/types/Codecs/Bech32.d.ts.map +1 -0
  216. package/types/Codecs/BigEndian.d.ts.map +1 -0
  217. package/types/Codecs/Bits.d.ts.map +1 -0
  218. package/types/{internal → Codecs}/Bytes.d.ts +7 -6
  219. package/types/Codecs/Bytes.d.ts.map +1 -0
  220. package/types/{Cbor.d.ts → Codecs/Cbor.d.ts} +77 -55
  221. package/types/Codecs/Cbor.d.ts.map +1 -0
  222. package/types/{internal → Codecs}/Flat.d.ts +2 -0
  223. package/types/Codecs/Flat.d.ts.map +1 -0
  224. package/types/Codecs/Float.d.ts.map +1 -0
  225. package/types/Codecs/LittleEndian.d.ts +18 -0
  226. package/types/Codecs/LittleEndian.d.ts.map +1 -0
  227. package/types/Codecs/Uint64.d.ts +16 -0
  228. package/types/Codecs/Uint64.d.ts.map +1 -0
  229. package/types/{internal → Codecs}/Utf8.d.ts +2 -2
  230. package/types/Codecs/Utf8.d.ts.map +1 -0
  231. package/types/Codecs/ZigZag.d.ts +3 -0
  232. package/types/Codecs/ZigZag.d.ts.map +1 -0
  233. package/types/Codecs/index.d.ts +8 -0
  234. package/types/Codecs/index.d.ts.map +1 -0
  235. package/types/Crypto/Blake2b.d.ts +16 -0
  236. package/types/Crypto/Blake2b.d.ts.map +1 -0
  237. package/types/Crypto/Curve.d.ts +161 -0
  238. package/types/Crypto/Curve.d.ts.map +1 -0
  239. package/types/Crypto/Ed25519.d.ts +155 -0
  240. package/types/Crypto/Ed25519.d.ts.map +1 -0
  241. package/types/Crypto/EdDSA.d.ts +159 -0
  242. package/types/Crypto/EdDSA.d.ts.map +1 -0
  243. package/types/Crypto/Field.d.ts +273 -0
  244. package/types/Crypto/Field.d.ts.map +1 -0
  245. package/types/Crypto/Hmac.d.ts +20 -0
  246. package/types/Crypto/Hmac.d.ts.map +1 -0
  247. package/types/Crypto/Keccak.d.ts +16 -0
  248. package/types/Crypto/Keccak.d.ts.map +1 -0
  249. package/types/Crypto/Pbkdf2.d.ts +15 -0
  250. package/types/Crypto/Pbkdf2.d.ts.map +1 -0
  251. package/types/Crypto/Sha2_256.d.ts +36 -0
  252. package/types/Crypto/Sha2_256.d.ts.map +1 -0
  253. package/types/Crypto/Sha2_512.d.ts +31 -0
  254. package/types/Crypto/Sha2_512.d.ts.map +1 -0
  255. package/types/Crypto/Sha3_256.d.ts +8 -0
  256. package/types/Crypto/Sha3_256.d.ts.map +1 -0
  257. package/types/Crypto/errors.d.ts +10 -0
  258. package/types/Crypto/errors.d.ts.map +1 -0
  259. package/types/Crypto/index.d.ts +12 -0
  260. package/types/Crypto/index.d.ts.map +1 -0
  261. package/types/index.d.ts +3 -5
  262. package/types/index.d.ts.map +1 -1
  263. package/dist/Address.js +0 -13
  264. package/dist/Address.js.map +0 -1
  265. package/dist/Bech32.js.map +0 -1
  266. package/dist/Cbor.js.map +0 -1
  267. package/dist/Ledger/Address.js.map +0 -1
  268. package/dist/Ledger/AssetClass.js.map +0 -1
  269. package/dist/Ledger/Assets.js +0 -120
  270. package/dist/Ledger/Assets.js.map +0 -1
  271. package/dist/Ledger/Credential.js +0 -17
  272. package/dist/Ledger/Credential.js.map +0 -1
  273. package/dist/Ledger/DatumHash.js +0 -21
  274. package/dist/Ledger/DatumHash.js.map +0 -1
  275. package/dist/Ledger/IsMainnet.js +0 -4
  276. package/dist/Ledger/IsMainnet.js.map +0 -1
  277. package/dist/Ledger/MintingPolicy.js +0 -45
  278. package/dist/Ledger/MintingPolicy.js.map +0 -1
  279. package/dist/Ledger/NetworkParams.js +0 -40
  280. package/dist/Ledger/NetworkParams.js.map +0 -1
  281. package/dist/Ledger/PubKeyHash.js.map +0 -1
  282. package/dist/Ledger/TxHash.js +0 -23
  283. package/dist/Ledger/TxHash.js.map +0 -1
  284. package/dist/Ledger/TxId.js +0 -23
  285. package/dist/Ledger/TxId.js.map +0 -1
  286. package/dist/Ledger/TxInput.js +0 -51
  287. package/dist/Ledger/TxInput.js.map +0 -1
  288. package/dist/Ledger/TxOutput.js +0 -118
  289. package/dist/Ledger/TxOutput.js.map +0 -1
  290. package/dist/Ledger/TxOutputDatum.js.map +0 -1
  291. package/dist/Ledger/TxOutputId.js +0 -55
  292. package/dist/Ledger/TxOutputId.js.map +0 -1
  293. package/dist/Ledger/UTxO.js +0 -43
  294. package/dist/Ledger/UTxO.js.map +0 -1
  295. package/dist/Ledger/UTxORef.js.map +0 -1
  296. package/dist/Ledger/ValidatorHash.js.map +0 -1
  297. package/dist/Ledger/index.js.map +0 -1
  298. package/dist/Network/IsMainnet.js.map +0 -1
  299. package/dist/Network/Params.js.map +0 -1
  300. package/dist/Network/UTxOsAt.js +0 -4
  301. package/dist/Network/UTxOsAt.js.map +0 -1
  302. package/dist/Network/errors.js +0 -16
  303. package/dist/Network/errors.js.map +0 -1
  304. package/dist/Network/index.js.map +0 -1
  305. package/dist/Uplc/Cek.js +0 -3
  306. package/dist/Uplc/Cek.js.map +0 -1
  307. package/dist/Uplc/Data.js.map +0 -1
  308. package/dist/Uplc/DataSchema.js +0 -118
  309. package/dist/Uplc/DataSchema.js.map +0 -1
  310. package/dist/Uplc/Primitive.js +0 -23
  311. package/dist/Uplc/Primitive.js.map +0 -1
  312. package/dist/Uplc/index.js +0 -3
  313. package/dist/Uplc/index.js.map +0 -1
  314. package/dist/internal/Base32.js.map +0 -1
  315. package/dist/internal/BigEndian.js.map +0 -1
  316. package/dist/internal/Bits.js.map +0 -1
  317. package/dist/internal/Bytes.js.map +0 -1
  318. package/dist/internal/Flat.js.map +0 -1
  319. package/dist/internal/Float.js.map +0 -1
  320. package/dist/internal/Utf8.js.map +0 -1
  321. package/tsconfig.check.tsbuildinfo +0 -1
  322. package/types/Address.d.ts +0 -5
  323. package/types/Address.d.ts.map +0 -1
  324. package/types/Bech32.d.ts.map +0 -1
  325. package/types/Cbor.d.ts.map +0 -1
  326. package/types/Ledger/Address.d.ts.map +0 -1
  327. package/types/Ledger/AssetClass.d.ts.map +0 -1
  328. package/types/Ledger/Assets.d.ts +0 -70
  329. package/types/Ledger/Assets.d.ts.map +0 -1
  330. package/types/Ledger/Credential.d.ts.map +0 -1
  331. package/types/Ledger/DatumHash.d.ts.map +0 -1
  332. package/types/Ledger/IsMainnet.d.ts +0 -6
  333. package/types/Ledger/IsMainnet.d.ts.map +0 -1
  334. package/types/Ledger/MintingPolicy.d.ts.map +0 -1
  335. package/types/Ledger/NetworkParams.d.ts +0 -40
  336. package/types/Ledger/NetworkParams.d.ts.map +0 -1
  337. package/types/Ledger/PubKeyHash.d.ts.map +0 -1
  338. package/types/Ledger/TxHash.d.ts.map +0 -1
  339. package/types/Ledger/TxId.d.ts +0 -70
  340. package/types/Ledger/TxId.d.ts.map +0 -1
  341. package/types/Ledger/TxInput.d.ts +0 -55
  342. package/types/Ledger/TxInput.d.ts.map +0 -1
  343. package/types/Ledger/TxOutput.d.ts +0 -63
  344. package/types/Ledger/TxOutput.d.ts.map +0 -1
  345. package/types/Ledger/TxOutputDatum.d.ts +0 -41
  346. package/types/Ledger/TxOutputDatum.d.ts.map +0 -1
  347. package/types/Ledger/TxOutputId.d.ts +0 -133
  348. package/types/Ledger/TxOutputId.d.ts.map +0 -1
  349. package/types/Ledger/UTxO.d.ts +0 -55
  350. package/types/Ledger/UTxO.d.ts.map +0 -1
  351. package/types/Ledger/UTxORef.d.ts +0 -133
  352. package/types/Ledger/UTxORef.d.ts.map +0 -1
  353. package/types/Ledger/ValidatorHash.d.ts.map +0 -1
  354. package/types/Ledger/index.d.ts.map +0 -1
  355. package/types/Network/IsMainnet.d.ts.map +0 -1
  356. package/types/Network/Params.d.ts.map +0 -1
  357. package/types/Network/UTxOsAt.d.ts +0 -9
  358. package/types/Network/UTxOsAt.d.ts.map +0 -1
  359. package/types/Network/errors.d.ts +0 -18
  360. package/types/Network/errors.d.ts.map +0 -1
  361. package/types/Network/index.d.ts.map +0 -1
  362. package/types/Uplc/Cek.d.ts +0 -72
  363. package/types/Uplc/Cek.d.ts.map +0 -1
  364. package/types/Uplc/Data.d.ts.map +0 -1
  365. package/types/Uplc/DataSchema.d.ts +0 -227
  366. package/types/Uplc/DataSchema.d.ts.map +0 -1
  367. package/types/Uplc/Primitive.d.ts +0 -26
  368. package/types/Uplc/Primitive.d.ts.map +0 -1
  369. package/types/Uplc/index.d.ts +0 -3
  370. package/types/Uplc/index.d.ts.map +0 -1
  371. package/types/internal/Base32.d.ts.map +0 -1
  372. package/types/internal/BigEndian.d.ts.map +0 -1
  373. package/types/internal/Bits.d.ts.map +0 -1
  374. package/types/internal/Bytes.d.ts.map +0 -1
  375. package/types/internal/Flat.d.ts.map +0 -1
  376. package/types/internal/Float.d.ts.map +0 -1
  377. package/types/internal/Utf8.d.ts.map +0 -1
  378. /package/dist/{Network → Cardano/Network}/IsMainnet.js +0 -0
  379. /package/dist/{internal → Codecs}/BigEndian.js +0 -0
  380. /package/dist/{internal → Codecs}/Bits.js +0 -0
  381. /package/dist/{internal → Codecs}/Float.js +0 -0
  382. /package/types/{Network → Cardano/Network}/IsMainnet.d.ts +0 -0
  383. /package/types/{internal → Codecs}/Base32.d.ts +0 -0
  384. /package/types/{Bech32.d.ts → Codecs/Bech32.d.ts} +0 -0
  385. /package/types/{internal → Codecs}/BigEndian.d.ts +0 -0
  386. /package/types/{internal → Codecs}/Bits.d.ts +0 -0
  387. /package/types/{internal → Codecs}/Float.d.ts +0 -0
@@ -0,0 +1,716 @@
1
+ import { Either } from "effect";
2
+ import * as Cost from "./Cost.js";
3
+ import { memSize } from "./Value.js";
4
+ /**
5
+ * This is main evaluation function of the CEK Machine
6
+ * Stack-based algorithm
7
+ * @param entryPoint
8
+ * @param evalContext
9
+ * @returns
10
+ */
11
+ function eval$(entryPoint, evalContext) {
12
+ const tracker = new Cost.Tracker(Cost.makeModel(evalContext.costParams, evalContext.builtins));
13
+ const logs = [];
14
+ // initialize the machine state
15
+ let state = {
16
+ kind: "computing",
17
+ term: entryPoint,
18
+ stack: {
19
+ values: [],
20
+ callSites: []
21
+ },
22
+ frames: []
23
+ };
24
+ /**
25
+ * Create the full context
26
+ */
27
+ const ctx = {
28
+ ...evalContext,
29
+ cost: tracker,
30
+ print: (message, callSite) => {
31
+ logs.push({ message, callSite: callSite ?? undefined });
32
+ evalContext.logger?.logPrint(message, callSite);
33
+ },
34
+ popLastMessage: () => {
35
+ return logs.pop()?.message;
36
+ }
37
+ };
38
+ // initialize the execution cost
39
+ tracker.incrStartupCost();
40
+ while (!["error", "success"].includes(state.kind)) {
41
+ if (state.kind == "computing") {
42
+ switch (state.term._tag) {
43
+ case "Apply":
44
+ state = computeApplyTerm(state, ctx);
45
+ break;
46
+ case "Builtin":
47
+ state = computeBuiltinTerm(state, ctx);
48
+ break;
49
+ case "Case":
50
+ state = computeCaseTerm(state, ctx);
51
+ break;
52
+ case "Const":
53
+ state = computeConstTerm(state, ctx);
54
+ break;
55
+ case "Constr":
56
+ state = computeConstrTerm(state, ctx);
57
+ break;
58
+ case "Delay":
59
+ state = computeDelayTerm(state, ctx);
60
+ break;
61
+ case "Error":
62
+ state = computeErrorTerm(state, ctx);
63
+ break;
64
+ case "Force":
65
+ state = computeForceTerm(state, ctx);
66
+ break;
67
+ case "Lambda":
68
+ state = computeLambdaTerm(state, ctx);
69
+ break;
70
+ case "Var":
71
+ state = computeVarTerm(state, ctx);
72
+ break;
73
+ default:
74
+ throw new Error(`Unhandled term kind '${state.term._tag}'`);
75
+ }
76
+ }
77
+ else if (state.kind == "reducing") {
78
+ const f = state.frames.pop();
79
+ if (f) {
80
+ switch (f._tag) {
81
+ case "CaseScrutineeFrame":
82
+ state = reduceCaseScrutineeFrame(f, state);
83
+ break;
84
+ case "ConstrArgFrame":
85
+ state = reduceConstrArgFrame(f, state);
86
+ break;
87
+ case "ForceFrame":
88
+ state = reduceForceFrame(f, state, ctx);
89
+ break;
90
+ case "LeftApplyToTermFrame":
91
+ state = reduceLeftApplyToTermFrame(f, state);
92
+ break;
93
+ case "LeftApplyToValueFrame":
94
+ state = reduceLeftApplyToValueFrame(f, state, ctx);
95
+ break;
96
+ case "RightApplyFrame":
97
+ state = reduceRightApplyFrame(f, state, ctx);
98
+ break;
99
+ default:
100
+ throw new Error(`Unhandled frame type ${f._tag}`);
101
+ }
102
+ }
103
+ else {
104
+ state = {
105
+ kind: "success",
106
+ value: state.value
107
+ };
108
+ }
109
+ }
110
+ }
111
+ if (state.kind == "success") {
112
+ return {
113
+ value: Either.right(state.value),
114
+ cost: {
115
+ mem: tracker.mem,
116
+ cpu: tracker.cpu
117
+ },
118
+ logs: logs,
119
+ breakdown: tracker.breakdown
120
+ };
121
+ }
122
+ else if (state.kind == "error") {
123
+ return {
124
+ value: Either.left({
125
+ error: state.message,
126
+ callSites: state.stack.callSites
127
+ }),
128
+ cost: {
129
+ mem: tracker.mem,
130
+ cpu: tracker.cpu
131
+ },
132
+ logs: logs,
133
+ breakdown: tracker.breakdown
134
+ };
135
+ }
136
+ else {
137
+ throw new Error(`Internal error: unexpected final state ${state.kind}`);
138
+ }
139
+ }
140
+ export { eval$ as eval };
141
+ function computeApplyTerm({ term, stack, frames }, machineContext) {
142
+ machineContext.cost.incrApplyCost();
143
+ return {
144
+ kind: "computing",
145
+ term: term.fn,
146
+ stack,
147
+ frames: frames.concat([
148
+ {
149
+ _tag: "LeftApplyToTermFrame",
150
+ arg: term.arg,
151
+ stack,
152
+ callSite: {
153
+ sourceSpan: term.sourceSpan
154
+ }
155
+ }
156
+ ])
157
+ };
158
+ }
159
+ function computeBuiltinTerm({ term, frames }, ctx) {
160
+ ctx.cost.incrBuiltinCost();
161
+ return {
162
+ kind: "reducing",
163
+ value: {
164
+ _tag: "Builtin",
165
+ id: term.id,
166
+ name: ctx.builtins[term.id]?.name ?? term.name,
167
+ args: [],
168
+ forceCount: 0 // TODO: count down instead of up
169
+ },
170
+ frames: frames
171
+ };
172
+ }
173
+ function computeCaseTerm({ term, stack, frames }, ctx) {
174
+ ctx.cost.incrCaseCost();
175
+ return {
176
+ kind: "computing",
177
+ term: term.arg,
178
+ stack,
179
+ frames: frames.concat([
180
+ {
181
+ _tag: "CaseScrutineeFrame",
182
+ cases: term.cases,
183
+ stack
184
+ }
185
+ ])
186
+ };
187
+ }
188
+ function computeConstTerm({ term, frames }, ctx) {
189
+ ctx.cost.incrConstCost();
190
+ return {
191
+ kind: "reducing",
192
+ value: term,
193
+ frames: frames
194
+ };
195
+ }
196
+ function computeConstrTerm({ term, stack, frames }, ctx) {
197
+ ctx.cost.incrConstrCost();
198
+ if (term.args.length == 0) {
199
+ return {
200
+ kind: "reducing",
201
+ value: {
202
+ _tag: "Constr",
203
+ tag: term.tag,
204
+ args: []
205
+ },
206
+ frames
207
+ };
208
+ }
209
+ else {
210
+ return {
211
+ kind: "computing",
212
+ term: term.args[0],
213
+ stack,
214
+ frames: frames.concat([
215
+ {
216
+ _tag: "ConstrArgFrame",
217
+ tag: term.tag,
218
+ evaluatedArgs: [],
219
+ pendingArgs: term.args.slice(1),
220
+ stack
221
+ }
222
+ ])
223
+ };
224
+ }
225
+ }
226
+ function computeDelayTerm({ term, stack, frames }, ctx) {
227
+ ctx.cost.incrDelayCost();
228
+ return {
229
+ kind: "reducing",
230
+ value: {
231
+ _tag: "Delayed",
232
+ term: term.arg,
233
+ stack,
234
+ name: term.name
235
+ },
236
+ frames
237
+ };
238
+ }
239
+ function computeErrorTerm({ stack }, ctx) {
240
+ return {
241
+ kind: "error",
242
+ message: ctx.popLastMessage() ?? "",
243
+ stack: stack
244
+ };
245
+ }
246
+ function computeForceTerm({ term, stack, frames }, ctx) {
247
+ ctx.cost.incrForceCost();
248
+ return {
249
+ kind: "computing",
250
+ term: term.arg,
251
+ stack,
252
+ frames: frames.concat([
253
+ {
254
+ _tag: "ForceFrame",
255
+ stack,
256
+ callSite: {
257
+ sourceSpan: term.sourceSpan
258
+ }
259
+ }
260
+ ])
261
+ };
262
+ }
263
+ function computeLambdaTerm({ term, stack, frames }, ctx) {
264
+ ctx.cost.incrLambdaCost();
265
+ return {
266
+ kind: "reducing",
267
+ value: {
268
+ _tag: "Lambda",
269
+ body: term.body,
270
+ stack,
271
+ argName: term.argName ?? undefined,
272
+ name: term.name ?? undefined
273
+ },
274
+ frames
275
+ };
276
+ }
277
+ function computeVarTerm({ term, stack, frames }, ctx) {
278
+ ctx.cost.incrVarCost();
279
+ const i = stack.values.length - term.index;
280
+ const v = stack.values[i];
281
+ if (v === undefined) {
282
+ return {
283
+ kind: "error",
284
+ message: `var ${term.index} out of stack range (stack has ${stack.values.length} values)${term.name !== undefined ? `, '${term.name}'` : ""}`,
285
+ stack
286
+ };
287
+ }
288
+ else {
289
+ return {
290
+ kind: "reducing",
291
+ value: v,
292
+ frames
293
+ };
294
+ }
295
+ }
296
+ function reduceCaseScrutineeFrame(frame, { frames, value }) {
297
+ if (value._tag == "Constr") {
298
+ const tag = value.tag;
299
+ const c = frame.cases[tag];
300
+ if (c === undefined) {
301
+ return {
302
+ kind: "error",
303
+ message: "constr id out of range",
304
+ stack: frame.stack
305
+ };
306
+ }
307
+ const callFrames = value.args.map((a) => ({
308
+ _tag: "LeftApplyToValueFrame",
309
+ rhs: a,
310
+ stack: frame.stack,
311
+ callSite: undefined
312
+ }));
313
+ callFrames.reverse();
314
+ return {
315
+ kind: "computing",
316
+ term: c,
317
+ stack: frame.stack,
318
+ // TODO: callSite
319
+ frames: frames.concat(callFrames)
320
+ };
321
+ }
322
+ else {
323
+ return {
324
+ kind: "error",
325
+ message: "expected constr value case",
326
+ stack: frame.stack
327
+ };
328
+ }
329
+ }
330
+ function reduceConstrArgFrame(frame, { frames, value }) {
331
+ const evaluatedArgs = frame.evaluatedArgs.concat([value]);
332
+ if (frame.pendingArgs.length == 0) {
333
+ return {
334
+ kind: "reducing",
335
+ value: {
336
+ _tag: "Constr",
337
+ tag: frame.tag,
338
+ args: evaluatedArgs
339
+ },
340
+ frames
341
+ };
342
+ }
343
+ else {
344
+ return {
345
+ kind: "computing",
346
+ term: frame.pendingArgs[0],
347
+ stack: frame.stack,
348
+ frames: frames.concat([
349
+ {
350
+ _tag: "ConstrArgFrame",
351
+ tag: frame.tag,
352
+ evaluatedArgs,
353
+ pendingArgs: frame.pendingArgs.slice(1),
354
+ stack: frame.stack
355
+ }
356
+ ])
357
+ };
358
+ }
359
+ }
360
+ /**
361
+ * Only needed for debugging
362
+ * Needed to add stack trace frames for variables like `self`
363
+ * TODO: might introduce unnecessary overhead and thus require a flag to switch off
364
+ * @param stack
365
+ * @returns
366
+ */
367
+ function getLastSelfValue(stack) {
368
+ const last = stack.values[stack.values.length - 1];
369
+ if (last?.name == "self") {
370
+ return last;
371
+ }
372
+ else {
373
+ return undefined;
374
+ }
375
+ }
376
+ /**
377
+ * @param stackWithValues
378
+ * @param stackWithCallSites
379
+ * @returns
380
+ */
381
+ function mixStacks(stackWithValues, stackWithCallSites) {
382
+ return {
383
+ values: stackWithValues.values,
384
+ callSites: stackWithCallSites.callSites
385
+ };
386
+ }
387
+ /**
388
+ * @param callSite
389
+ * @returns
390
+ */
391
+ export function isEmptyCallSiteInfo(callSite) {
392
+ return (callSite === undefined ||
393
+ (callSite.sourceSpan === undefined &&
394
+ callSite.functionName === undefined &&
395
+ callSite.arguments === undefined));
396
+ }
397
+ /**
398
+ * @param callSite
399
+ * @returns
400
+ */
401
+ export function isNonEmptyCallSiteInfo(callSite) {
402
+ return !isEmptyCallSiteInfo(callSite);
403
+ }
404
+ /**
405
+ * @param stack
406
+ * @param callSite
407
+ * @returns
408
+ */
409
+ function pushStackCallSite(stack, callSite) {
410
+ if (isNonEmptyCallSiteInfo(callSite)) {
411
+ return {
412
+ values: stack.values,
413
+ callSites: stack.callSites.concat([callSite])
414
+ };
415
+ }
416
+ else {
417
+ return stack;
418
+ }
419
+ }
420
+ /**
421
+ * @param stack
422
+ * @param callSites
423
+ * @returns
424
+ */
425
+ export function pushStackCallSites(stack, ...callSites) {
426
+ return {
427
+ values: stack.values,
428
+ callSites: stack.callSites.concat(callSites.filter(isNonEmptyCallSiteInfo))
429
+ };
430
+ }
431
+ /**
432
+ * @param stack
433
+ * @param value
434
+ * @returns
435
+ */
436
+ export function pushStackValue(stack, value) {
437
+ return {
438
+ values: stack.values.concat([value]),
439
+ callSites: stack.callSites
440
+ };
441
+ }
442
+ /**
443
+ * @param stack
444
+ * @param value
445
+ * @param callSite
446
+ * @returns
447
+ */
448
+ export function pushStackValueAndCallSite(stack, value, callSite) {
449
+ return {
450
+ values: stack.values.concat([value]),
451
+ callSites: stack.callSites.concat(isNonEmptyCallSiteInfo(callSite) ? [callSite] : [])
452
+ };
453
+ }
454
+ /**
455
+ * @param stack
456
+ * @param value
457
+ * @param callSites
458
+ * @returns
459
+ */
460
+ export function pushStackValueAndCallSites(stack, value, ...callSites) {
461
+ return {
462
+ values: stack.values.concat([value]),
463
+ callSites: stack.callSites.concat(callSites)
464
+ };
465
+ }
466
+ function reduceForceFrame(frame, { frames, value }, ctx) {
467
+ if (value._tag == "Delayed") {
468
+ /**
469
+ * TODO: cleaner way of getting `self` and other variables that are in the stacks of callbacks
470
+ */
471
+ const lastSelfValue = getLastSelfValue(value.stack);
472
+ return {
473
+ kind: "computing",
474
+ term: value.term,
475
+ stack: mixStacks(value.stack, pushStackCallSite(frame.stack, frame.callSite?.sourceSpan
476
+ ? {
477
+ sourceSpan: frame.callSite?.sourceSpan,
478
+ functionName: value.name,
479
+ arguments: lastSelfValue ? [lastSelfValue] : undefined
480
+ }
481
+ : undefined)),
482
+ frames
483
+ };
484
+ }
485
+ else if (value._tag == "Builtin") {
486
+ const b = ctx.builtins[value.id];
487
+ if (b === undefined) {
488
+ return {
489
+ kind: "error",
490
+ message: `builtin ${value.id} not found`,
491
+ stack: frame.stack
492
+ };
493
+ }
494
+ else if (value.forceCount >= b.forceCount) {
495
+ return {
496
+ kind: "error",
497
+ message: `too many forces for builtin ${b.name}, ${value.forceCount + 1} > ${b.forceCount}`,
498
+ stack: frame.stack
499
+ };
500
+ }
501
+ else {
502
+ return {
503
+ kind: "reducing",
504
+ value: {
505
+ ...value,
506
+ forceCount: value.forceCount + 1
507
+ },
508
+ frames
509
+ };
510
+ }
511
+ }
512
+ else {
513
+ return {
514
+ kind: "error",
515
+ message: "expected delayed or builtin value for force",
516
+ stack: frame.stack
517
+ };
518
+ }
519
+ }
520
+ /**
521
+ * @param {CekFrame[]} frames
522
+ * @param {CekValue} value - fn value
523
+ * @param {CekContext} _ctx
524
+ * @returns {CekState}
525
+ */
526
+ function reduceLeftApplyToTermFrame(frame, { frames, value }) {
527
+ if (value._tag == "Lambda") {
528
+ const mixedEnv = mixStacks(value.stack, frame.stack);
529
+ return {
530
+ kind: "computing",
531
+ term: frame.arg,
532
+ stack: frame.stack,
533
+ frames: frames.concat([
534
+ {
535
+ _tag: "RightApplyFrame",
536
+ fn: {
537
+ ...value,
538
+ stack: mixedEnv
539
+ },
540
+ stack: mixedEnv,
541
+ info: {
542
+ callSite: frame.callSite,
543
+ name: value.name,
544
+ argName: value.argName
545
+ }
546
+ }
547
+ ])
548
+ };
549
+ }
550
+ else {
551
+ return {
552
+ kind: "computing",
553
+ term: frame.arg,
554
+ stack: frame.stack,
555
+ frames: frames.concat([
556
+ {
557
+ _tag: "RightApplyFrame",
558
+ fn: value,
559
+ stack: frame.stack,
560
+ info: {
561
+ callSite: frame.callSite
562
+ }
563
+ }
564
+ ])
565
+ };
566
+ }
567
+ }
568
+ /**
569
+ * If the `leftValue` is a lambda function, perform the following transition:
570
+ *
571
+ * $$
572
+ * [\langle\text{lam}~x~M~\rho\rangle~V]
573
+ * $$
574
+ * @param frames
575
+ * @param leftValue
576
+ * @param rightValue
577
+ * @param frameStack
578
+ * @param ctx
579
+ * @param machineContext
580
+ * @param info
581
+ * @returns
582
+ */
583
+ function reduceApplyToFrame(frames, leftValue, rightValue, frameStack, ctx, info = {}) {
584
+ if (info.argName !== undefined) {
585
+ rightValue = {
586
+ ...rightValue,
587
+ name: info.argName
588
+ };
589
+ }
590
+ if (leftValue._tag == "Lambda") {
591
+ /**
592
+ * TODO: cleaner way of getting `self` and other variables that are in the stacks of callbacks
593
+ */
594
+ const lastSelfValue = getLastSelfValue(frameStack);
595
+ const callSite = {
596
+ sourceSpan: info.callSite?.sourceSpan,
597
+ functionName: info.name,
598
+ arguments: lastSelfValue ? [lastSelfValue, rightValue] : [rightValue]
599
+ };
600
+ return {
601
+ kind: "computing",
602
+ term: leftValue.body,
603
+ stack: pushStackValueAndCallSite(leftValue.stack, rightValue, callSite),
604
+ frames
605
+ };
606
+ }
607
+ else if (leftValue._tag == "Builtin") {
608
+ const b = ctx.builtins[leftValue.id];
609
+ if (b === undefined) {
610
+ return {
611
+ kind: "error",
612
+ message: `builtin ${leftValue.id} not found`,
613
+ stack: frameStack
614
+ };
615
+ }
616
+ else if (b.forceCount > leftValue.forceCount) {
617
+ return {
618
+ kind: "error",
619
+ message: `insufficient forces applied to ${b.name}, ${leftValue.forceCount} < ${b.forceCount}`,
620
+ stack: frameStack
621
+ };
622
+ }
623
+ else {
624
+ const args = leftValue.args.concat([rightValue]);
625
+ if (args.length == b.nArgs) {
626
+ ctx.cost.incrArgSizesCost(b.name, args.map((a) => {
627
+ if ("value" in a) {
628
+ return memSize(a.value);
629
+ }
630
+ else {
631
+ return 1;
632
+ }
633
+ }));
634
+ const callSites = args.map((a, i) => {
635
+ if (i == args.length - 1) {
636
+ return {
637
+ site: info.callSite,
638
+ functionName: b.name,
639
+ argument: a
640
+ };
641
+ }
642
+ else {
643
+ return {
644
+ argument: a
645
+ };
646
+ }
647
+ });
648
+ const callResult = b.call(args, {
649
+ ...ctx,
650
+ print: (message) => {
651
+ ctx.print(message, info.callSite);
652
+ }
653
+ });
654
+ if (callResult._tag == "Left") {
655
+ return {
656
+ kind: "error",
657
+ message: callResult.left.message ?? callResult.left._tag,
658
+ stack: pushStackCallSites(frameStack, ...callSites)
659
+ };
660
+ }
661
+ else {
662
+ return {
663
+ kind: "reducing",
664
+ value: callResult.right,
665
+ frames
666
+ };
667
+ }
668
+ }
669
+ else {
670
+ return {
671
+ kind: "reducing",
672
+ value: {
673
+ _tag: "Builtin",
674
+ id: leftValue.id,
675
+ name: leftValue.name,
676
+ forceCount: b.forceCount,
677
+ args: args
678
+ },
679
+ frames
680
+ };
681
+ }
682
+ }
683
+ }
684
+ else {
685
+ return {
686
+ kind: "error",
687
+ message: `can only call lambda or builtin terms`,
688
+ stack: frameStack
689
+ };
690
+ }
691
+ }
692
+ function reduceLeftApplyToValueFrame(frame, { frames, value }, ctx) {
693
+ return reduceApplyToFrame(frames, value, frame.rhs, frame.stack, ctx, {
694
+ callSite: frame.callSite
695
+ });
696
+ }
697
+ /**
698
+ * @param {CekFrame[]} frames
699
+ * @param {CekValue} value
700
+ * @param {CekContext} ctx
701
+ * @returns {CekState}
702
+ */
703
+ function reduceRightApplyFrame(frame, { frames, value }, ctx) {
704
+ return reduceApplyToFrame(frames, frame.fn, value, frame.stack, ctx, frame.info);
705
+ }
706
+ /**
707
+ * Instantiate a `Machine` with {@link makeCekMachine}.
708
+ */
709
+ //export interface Machine extends Context {
710
+ // readonly builtins: Builtin[]
711
+ // readonly logger: Logger | undefined
712
+ // readonly state: State
713
+ // readonly trace: { message: string; site?: Site }[]
714
+ // eval(): Result
715
+ //}
716
+ //# sourceMappingURL=Cek.js.map