@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,438 @@
1
+ import { Effect, Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import * as Cbor from "../../Codecs/Cbor.js";
4
+ import { Params } from "../Network";
5
+ import * as Uplc from "../Uplc";
6
+ import * as Address from "./Address.js";
7
+ import * as Assets from "./Assets.js";
8
+ import * as TxOutputDatum from "./TxOutputDatum.js";
9
+ export declare const TxOutputEncodingConfig: Schema.Struct<{
10
+ strictBabbage: Schema.optional<typeof Schema.Boolean>;
11
+ }>;
12
+ export type TxOutputEncodingConfig = Schema.Schema.Type<typeof TxOutputEncodingConfig>;
13
+ export declare const DEFAULT_TX_OUTPUT_ENCODING_CONFIG: TxOutputEncodingConfig;
14
+ export declare const TxOutput: Schema.Struct<{
15
+ address: Schema.brand<Schema.filter<typeof Schema.String>, "Address">;
16
+ assets: Schema.filter<Schema.Record$<typeof Schema.String, typeof Schema.BigIntFromSelf>>;
17
+ datum: Schema.optional<Schema.Union<[Schema.TaggedStruct<"Inline", {
18
+ data: Schema.SchemaClass<{
19
+ readonly bytes: Uint8Array<ArrayBufferLike>;
20
+ } | {
21
+ readonly int: bigint;
22
+ } | {
23
+ readonly list: readonly Uplc.Data.Data[];
24
+ } | {
25
+ readonly map: readonly {
26
+ readonly k: Uplc.Data.Data;
27
+ readonly v: Uplc.Data.Data;
28
+ }[];
29
+ } | {
30
+ readonly fields: readonly Uplc.Data.Data[];
31
+ readonly constructor: number;
32
+ }, {
33
+ readonly bytes: Uint8Array<ArrayBufferLike>;
34
+ } | {
35
+ readonly int: bigint;
36
+ } | {
37
+ readonly list: readonly Uplc.Data.Data[];
38
+ } | {
39
+ readonly map: readonly {
40
+ readonly k: Uplc.Data.Data;
41
+ readonly v: Uplc.Data.Data;
42
+ }[];
43
+ } | {
44
+ readonly fields: readonly Uplc.Data.Data[];
45
+ readonly constructor: number;
46
+ }, never>;
47
+ }>, Schema.TaggedStruct<"Hash", {
48
+ hash: Schema.brand<Schema.filter<typeof Schema.String>, "DatumHash">;
49
+ }>]>>;
50
+ refScript: Schema.optional<Schema.Union<[Schema.extend<Schema.Struct<{
51
+ root: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
52
+ verbose: Schema.optional<Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
53
+ }>, Schema.Struct<{
54
+ version: Schema.Literal<[2]>;
55
+ }>>, Schema.extend<Schema.Struct<{
56
+ root: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
57
+ verbose: Schema.optional<Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
58
+ }>, Schema.Struct<{
59
+ version: Schema.Literal<[3]>;
60
+ }>>]>>;
61
+ encodingConfig: Schema.optional<Schema.Struct<{
62
+ strictBabbage: Schema.optional<typeof Schema.Boolean>;
63
+ }>>;
64
+ }>;
65
+ export type TxOutput = Schema.Schema.Type<typeof TxOutput>;
66
+ export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schema.SchemaClass<{
67
+ readonly bytes: Uint8Array<ArrayBufferLike>;
68
+ } | {
69
+ readonly int: bigint;
70
+ } | {
71
+ readonly list: readonly Uplc.Data.Data[];
72
+ } | {
73
+ readonly map: readonly {
74
+ readonly k: Uplc.Data.Data;
75
+ readonly v: Uplc.Data.Data;
76
+ }[];
77
+ } | {
78
+ readonly fields: readonly Uplc.Data.Data[];
79
+ readonly constructor: number;
80
+ }, {
81
+ readonly bytes: Uint8Array<ArrayBufferLike>;
82
+ } | {
83
+ readonly int: bigint;
84
+ } | {
85
+ readonly list: readonly Uplc.Data.Data[];
86
+ } | {
87
+ readonly map: readonly {
88
+ readonly k: Uplc.Data.Data;
89
+ readonly v: Uplc.Data.Data;
90
+ }[];
91
+ } | {
92
+ readonly fields: readonly Uplc.Data.Data[];
93
+ readonly constructor: number;
94
+ }, never>, Schema.Struct<{
95
+ address: Schema.transformOrFail<Schema.transformOrFail<Schema.SchemaClass<{
96
+ readonly bytes: Uint8Array<ArrayBufferLike>;
97
+ } | {
98
+ readonly int: bigint;
99
+ } | {
100
+ readonly list: readonly Uplc.Data.Data[];
101
+ } | {
102
+ readonly map: readonly {
103
+ readonly k: Uplc.Data.Data;
104
+ readonly v: Uplc.Data.Data;
105
+ }[];
106
+ } | {
107
+ readonly fields: readonly Uplc.Data.Data[];
108
+ readonly constructor: number;
109
+ }, {
110
+ readonly bytes: Uint8Array<ArrayBufferLike>;
111
+ } | {
112
+ readonly int: bigint;
113
+ } | {
114
+ readonly list: readonly Uplc.Data.Data[];
115
+ } | {
116
+ readonly map: readonly {
117
+ readonly k: Uplc.Data.Data;
118
+ readonly v: Uplc.Data.Data;
119
+ }[];
120
+ } | {
121
+ readonly fields: readonly Uplc.Data.Data[];
122
+ readonly constructor: number;
123
+ }, never>, Schema.Struct<{
124
+ spendingCredential: Schema.transform<Schema.Schema<({
125
+ _tag: "PubKey";
126
+ } & {
127
+ hash: string;
128
+ }) | ({
129
+ _tag: "Validator";
130
+ } & {
131
+ hash: string;
132
+ }), Uplc.Data.Data, never>, Schema.Union<[Schema.TaggedStruct<"PubKey", {
133
+ hash: Schema.brand<Schema.filter<typeof Schema.String>, "PubKeyHash">;
134
+ }>, Schema.TaggedStruct<"Validator", {
135
+ hash: Schema.brand<Schema.filter<typeof Schema.String>, "ValidatorHash">;
136
+ }>]>>;
137
+ stakingCredential: Schema.transformOrFail<Schema.SchemaClass<{
138
+ readonly bytes: Uint8Array<ArrayBufferLike>;
139
+ } | {
140
+ readonly int: bigint;
141
+ } | {
142
+ readonly list: readonly Uplc.Data.Data[];
143
+ } | {
144
+ readonly map: readonly {
145
+ readonly k: Uplc.Data.Data;
146
+ readonly v: Uplc.Data.Data;
147
+ }[];
148
+ } | {
149
+ readonly fields: readonly Uplc.Data.Data[];
150
+ readonly constructor: number;
151
+ }, {
152
+ readonly bytes: Uint8Array<ArrayBufferLike>;
153
+ } | {
154
+ readonly int: bigint;
155
+ } | {
156
+ readonly list: readonly Uplc.Data.Data[];
157
+ } | {
158
+ readonly map: readonly {
159
+ readonly k: Uplc.Data.Data;
160
+ readonly v: Uplc.Data.Data;
161
+ }[];
162
+ } | {
163
+ readonly fields: readonly Uplc.Data.Data[];
164
+ readonly constructor: number;
165
+ }, never>, Schema.Option<Schema.Schema<{
166
+ readonly _tag: "PubKey";
167
+ readonly hash: string & import("effect/Brand").Brand<"PubKeyHash">;
168
+ } | {
169
+ readonly _tag: "Validator";
170
+ readonly hash: string & import("effect/Brand").Brand<"ValidatorHash">;
171
+ }, {
172
+ readonly bytes: Uint8Array<ArrayBufferLike>;
173
+ } | {
174
+ readonly int: bigint;
175
+ } | {
176
+ readonly list: readonly Uplc.Data.Data[];
177
+ } | {
178
+ readonly map: readonly {
179
+ readonly k: Uplc.Data.Data;
180
+ readonly v: Uplc.Data.Data;
181
+ }[];
182
+ } | {
183
+ readonly fields: readonly Uplc.Data.Data[];
184
+ readonly constructor: number;
185
+ }, never>>, never>;
186
+ }>, never>, Schema.SchemaClass<string & import("effect/Brand").Brand<"Address">, string & import("effect/Brand").Brand<"Address">, never>, import("../Network").IsMainnet>;
187
+ assets: Schema.transform<Schema.transformOrFail<Schema.SchemaClass<{
188
+ readonly bytes: Uint8Array<ArrayBufferLike>;
189
+ } | {
190
+ readonly int: bigint;
191
+ } | {
192
+ readonly list: readonly Uplc.Data.Data[];
193
+ } | {
194
+ readonly map: readonly {
195
+ readonly k: Uplc.Data.Data;
196
+ readonly v: Uplc.Data.Data;
197
+ }[];
198
+ } | {
199
+ readonly fields: readonly Uplc.Data.Data[];
200
+ readonly constructor: number;
201
+ }, {
202
+ readonly bytes: Uint8Array<ArrayBufferLike>;
203
+ } | {
204
+ readonly int: bigint;
205
+ } | {
206
+ readonly list: readonly Uplc.Data.Data[];
207
+ } | {
208
+ readonly map: readonly {
209
+ readonly k: Uplc.Data.Data;
210
+ readonly v: Uplc.Data.Data;
211
+ }[];
212
+ } | {
213
+ readonly fields: readonly Uplc.Data.Data[];
214
+ readonly constructor: number;
215
+ }, never>, Schema.Array$<Schema.Tuple2<Schema.Schema<string & import("effect/Brand").Brand<"MintingPolicy">, {
216
+ readonly bytes: Uint8Array<ArrayBufferLike>;
217
+ } | {
218
+ readonly int: bigint;
219
+ } | {
220
+ readonly list: readonly Uplc.Data.Data[];
221
+ } | {
222
+ readonly map: readonly {
223
+ readonly k: Uplc.Data.Data;
224
+ readonly v: Uplc.Data.Data;
225
+ }[];
226
+ } | {
227
+ readonly fields: readonly Uplc.Data.Data[];
228
+ readonly constructor: number;
229
+ }, never>, Schema.Schema<readonly (readonly [string, bigint])[], {
230
+ readonly bytes: Uint8Array<ArrayBufferLike>;
231
+ } | {
232
+ readonly int: bigint;
233
+ } | {
234
+ readonly list: readonly Uplc.Data.Data[];
235
+ } | {
236
+ readonly map: readonly {
237
+ readonly k: Uplc.Data.Data;
238
+ readonly v: Uplc.Data.Data;
239
+ }[];
240
+ } | {
241
+ readonly fields: readonly Uplc.Data.Data[];
242
+ readonly constructor: number;
243
+ }, never>>>, never>, Schema.filter<Schema.Record$<typeof Schema.String, typeof Schema.BigIntFromSelf>>>;
244
+ datum: Schema.transform<Schema.Schema<({
245
+ _tag: "None";
246
+ } & {}) | ({
247
+ _tag: "Inline";
248
+ } & {
249
+ data: {
250
+ readonly bytes: Uint8Array<ArrayBufferLike>;
251
+ } | {
252
+ readonly int: bigint;
253
+ } | {
254
+ readonly list: readonly Uplc.Data.Data[];
255
+ } | {
256
+ readonly map: readonly {
257
+ readonly k: Uplc.Data.Data;
258
+ readonly v: Uplc.Data.Data;
259
+ }[];
260
+ } | {
261
+ readonly fields: readonly Uplc.Data.Data[];
262
+ readonly constructor: number;
263
+ };
264
+ }) | ({
265
+ _tag: "Hash";
266
+ } & {
267
+ hash: string & import("effect/Brand").Brand<"DatumHash">;
268
+ }), Uplc.Data.Data, never>, Schema.Union<[Schema.Union<[Schema.TaggedStruct<"Inline", {
269
+ data: Schema.SchemaClass<{
270
+ readonly bytes: Uint8Array<ArrayBufferLike>;
271
+ } | {
272
+ readonly int: bigint;
273
+ } | {
274
+ readonly list: readonly Uplc.Data.Data[];
275
+ } | {
276
+ readonly map: readonly {
277
+ readonly k: Uplc.Data.Data;
278
+ readonly v: Uplc.Data.Data;
279
+ }[];
280
+ } | {
281
+ readonly fields: readonly Uplc.Data.Data[];
282
+ readonly constructor: number;
283
+ }, {
284
+ readonly bytes: Uint8Array<ArrayBufferLike>;
285
+ } | {
286
+ readonly int: bigint;
287
+ } | {
288
+ readonly list: readonly Uplc.Data.Data[];
289
+ } | {
290
+ readonly map: readonly {
291
+ readonly k: Uplc.Data.Data;
292
+ readonly v: Uplc.Data.Data;
293
+ }[];
294
+ } | {
295
+ readonly fields: readonly Uplc.Data.Data[];
296
+ readonly constructor: number;
297
+ }, never>;
298
+ }>, Schema.TaggedStruct<"Hash", {
299
+ hash: Schema.brand<Schema.filter<typeof Schema.String>, "DatumHash">;
300
+ }>]>, typeof Schema.Undefined]>>;
301
+ refScript: Schema.transformOrFail<Schema.SchemaClass<{
302
+ readonly bytes: Uint8Array<ArrayBufferLike>;
303
+ } | {
304
+ readonly int: bigint;
305
+ } | {
306
+ readonly list: readonly Uplc.Data.Data[];
307
+ } | {
308
+ readonly map: readonly {
309
+ readonly k: Uplc.Data.Data;
310
+ readonly v: Uplc.Data.Data;
311
+ }[];
312
+ } | {
313
+ readonly fields: readonly Uplc.Data.Data[];
314
+ readonly constructor: number;
315
+ }, {
316
+ readonly bytes: Uint8Array<ArrayBufferLike>;
317
+ } | {
318
+ readonly int: bigint;
319
+ } | {
320
+ readonly list: readonly Uplc.Data.Data[];
321
+ } | {
322
+ readonly map: readonly {
323
+ readonly k: Uplc.Data.Data;
324
+ readonly v: Uplc.Data.Data;
325
+ }[];
326
+ } | {
327
+ readonly fields: readonly Uplc.Data.Data[];
328
+ readonly constructor: number;
329
+ }, never>, Schema.Option<Schema.Schema<string & import("effect/Brand").Brand<"ValidatorHash">, {
330
+ readonly bytes: Uint8Array<ArrayBufferLike>;
331
+ } | {
332
+ readonly int: bigint;
333
+ } | {
334
+ readonly list: readonly Uplc.Data.Data[];
335
+ } | {
336
+ readonly map: readonly {
337
+ readonly k: Uplc.Data.Data;
338
+ readonly v: Uplc.Data.Data;
339
+ }[];
340
+ } | {
341
+ readonly fields: readonly Uplc.Data.Data[];
342
+ readonly constructor: number;
343
+ }, never>>, never>;
344
+ }>, never>, Schema.SchemaClass<{
345
+ readonly address: string & import("effect/Brand").Brand<"Address">;
346
+ readonly assets: {
347
+ readonly [x: string]: bigint;
348
+ };
349
+ readonly datum?: {
350
+ readonly _tag: "Inline";
351
+ readonly data: {
352
+ readonly bytes: Uint8Array<ArrayBufferLike>;
353
+ } | {
354
+ readonly int: bigint;
355
+ } | {
356
+ readonly list: readonly Uplc.Data.Data[];
357
+ } | {
358
+ readonly map: readonly {
359
+ readonly k: Uplc.Data.Data;
360
+ readonly v: Uplc.Data.Data;
361
+ }[];
362
+ } | {
363
+ readonly fields: readonly Uplc.Data.Data[];
364
+ readonly constructor: number;
365
+ };
366
+ } | {
367
+ readonly _tag: "Hash";
368
+ readonly hash: string & import("effect/Brand").Brand<"DatumHash">;
369
+ } | undefined;
370
+ readonly refScript?: ({
371
+ readonly root: Uint8Array<ArrayBufferLike>;
372
+ readonly verbose?: Uint8Array<ArrayBufferLike> | undefined;
373
+ } & {
374
+ readonly version: 2;
375
+ }) | ({
376
+ readonly root: Uint8Array<ArrayBufferLike>;
377
+ readonly verbose?: Uint8Array<ArrayBufferLike> | undefined;
378
+ } & {
379
+ readonly version: 3;
380
+ }) | undefined;
381
+ readonly encodingConfig?: {
382
+ readonly strictBabbage?: boolean | undefined;
383
+ } | undefined;
384
+ }, {
385
+ readonly address: string & import("effect/Brand").Brand<"Address">;
386
+ readonly assets: {
387
+ readonly [x: string]: bigint;
388
+ };
389
+ readonly datum?: {
390
+ readonly _tag: "Inline";
391
+ readonly data: {
392
+ readonly bytes: Uint8Array<ArrayBufferLike>;
393
+ } | {
394
+ readonly int: bigint;
395
+ } | {
396
+ readonly list: readonly Uplc.Data.Data[];
397
+ } | {
398
+ readonly map: readonly {
399
+ readonly k: Uplc.Data.Data;
400
+ readonly v: Uplc.Data.Data;
401
+ }[];
402
+ } | {
403
+ readonly fields: readonly Uplc.Data.Data[];
404
+ readonly constructor: number;
405
+ };
406
+ } | {
407
+ readonly _tag: "Hash";
408
+ readonly hash: string & import("effect/Brand").Brand<"DatumHash">;
409
+ } | undefined;
410
+ readonly refScript?: ({
411
+ readonly root: Uint8Array<ArrayBufferLike>;
412
+ readonly verbose?: Uint8Array<ArrayBufferLike> | undefined;
413
+ } & {
414
+ readonly version: 2;
415
+ }) | ({
416
+ readonly root: Uint8Array<ArrayBufferLike>;
417
+ readonly verbose?: Uint8Array<ArrayBufferLike> | undefined;
418
+ } & {
419
+ readonly version: 3;
420
+ }) | undefined;
421
+ readonly encodingConfig?: {
422
+ readonly strictBabbage?: boolean | undefined;
423
+ } | undefined;
424
+ }, never>>;
425
+ export declare function make({ address, assets, datum, refScript, encodingConfig }: {
426
+ address: Address.Address;
427
+ assets: Assets.Assets;
428
+ datum?: TxOutputDatum.TxOutputDatum;
429
+ refScript?: Uplc.Script.Script<2> | Uplc.Script.Script<3>;
430
+ encodingConfig?: TxOutputEncodingConfig;
431
+ }): TxOutput;
432
+ export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeResult<TxOutput>;
433
+ export declare function encode(output: TxOutput): number[];
434
+ export declare const minLovelace: (output: TxOutput) => Effect.Effect<bigint, never, Params.params>;
435
+ export declare const sumAssets: (...outputs: TxOutput[]) => {
436
+ readonly [x: string]: bigint;
437
+ };
438
+ //# sourceMappingURL=TxOutput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TxOutput.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/TxOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAC/B,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAGnD,eAAO,MAAM,sBAAsB;;EAEjC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACrD,OAAO,sBAAsB,CAC9B,CAAA;AAED,eAAO,MAAM,iCAAiC,EAAE,sBAE/C,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyBxB,CAAA;AAED,wBAAgB,IAAI,CAAC,EACnB,OAAO,EACP,MAAM,EACN,KAAiB,EACjB,SAAqB,EACrB,cAAkD,EACnD,EAAE;IACD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAA;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC,aAAa,CAAA;IACnC,SAAS,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACzD,cAAc,CAAC,EAAE,sBAAsB,CAAA;CACxC,GAAG,QAAQ,CAQX;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CA8GtE,CAAA;AAEJ,wBAAgB,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,EAAE,CA+CjD;AAED,eAAO,MAAM,WAAW,GAAI,QAAQ,QAAQ,gDAUzC,CAAA;AAEH,eAAO,MAAM,SAAS,GAAI,GAAG,SAAS,QAAQ,EAAE;;CACO,CAAA"}
@@ -0,0 +1,98 @@
1
+ import { Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import * as Cbor from "../../Codecs/Cbor.js";
4
+ import * as Data from "../Uplc/Data.js";
5
+ export declare const TxOutputDatum: Schema.Union<[Schema.TaggedStruct<"Inline", {
6
+ data: Schema.SchemaClass<{
7
+ readonly bytes: Uint8Array<ArrayBufferLike>;
8
+ } | {
9
+ readonly int: bigint;
10
+ } | {
11
+ readonly list: readonly Data.Data[];
12
+ } | {
13
+ readonly map: readonly {
14
+ readonly k: Data.Data;
15
+ readonly v: Data.Data;
16
+ }[];
17
+ } | {
18
+ readonly fields: readonly Data.Data[];
19
+ readonly constructor: number;
20
+ }, {
21
+ readonly bytes: Uint8Array<ArrayBufferLike>;
22
+ } | {
23
+ readonly int: bigint;
24
+ } | {
25
+ readonly list: readonly Data.Data[];
26
+ } | {
27
+ readonly map: readonly {
28
+ readonly k: Data.Data;
29
+ readonly v: Data.Data;
30
+ }[];
31
+ } | {
32
+ readonly fields: readonly Data.Data[];
33
+ readonly constructor: number;
34
+ }, never>;
35
+ }>, Schema.TaggedStruct<"Hash", {
36
+ hash: Schema.brand<Schema.filter<typeof Schema.String>, "DatumHash">;
37
+ }>]>;
38
+ export type TxOutputDatum = Schema.Schema.Type<typeof TxOutputDatum>;
39
+ export declare const FromUplcData: Schema.transform<Schema.Schema<({
40
+ _tag: "None";
41
+ } & {}) | ({
42
+ _tag: "Inline";
43
+ } & {
44
+ data: {
45
+ readonly bytes: Uint8Array<ArrayBufferLike>;
46
+ } | {
47
+ readonly int: bigint;
48
+ } | {
49
+ readonly list: readonly Data.Data[];
50
+ } | {
51
+ readonly map: readonly {
52
+ readonly k: Data.Data;
53
+ readonly v: Data.Data;
54
+ }[];
55
+ } | {
56
+ readonly fields: readonly Data.Data[];
57
+ readonly constructor: number;
58
+ };
59
+ }) | ({
60
+ _tag: "Hash";
61
+ } & {
62
+ hash: string & import("effect/Brand").Brand<"DatumHash">;
63
+ }), Data.Data, never>, Schema.Union<[Schema.Union<[Schema.TaggedStruct<"Inline", {
64
+ data: Schema.SchemaClass<{
65
+ readonly bytes: Uint8Array<ArrayBufferLike>;
66
+ } | {
67
+ readonly int: bigint;
68
+ } | {
69
+ readonly list: readonly Data.Data[];
70
+ } | {
71
+ readonly map: readonly {
72
+ readonly k: Data.Data;
73
+ readonly v: Data.Data;
74
+ }[];
75
+ } | {
76
+ readonly fields: readonly Data.Data[];
77
+ readonly constructor: number;
78
+ }, {
79
+ readonly bytes: Uint8Array<ArrayBufferLike>;
80
+ } | {
81
+ readonly int: bigint;
82
+ } | {
83
+ readonly list: readonly Data.Data[];
84
+ } | {
85
+ readonly map: readonly {
86
+ readonly k: Data.Data;
87
+ readonly v: Data.Data;
88
+ }[];
89
+ } | {
90
+ readonly fields: readonly Data.Data[];
91
+ readonly constructor: number;
92
+ }, never>;
93
+ }>, Schema.TaggedStruct<"Hash", {
94
+ hash: Schema.brand<Schema.filter<typeof Schema.String>, "DatumHash">;
95
+ }>]>, typeof Schema.Undefined]>>;
96
+ export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeResult<TxOutputDatum>;
97
+ export declare function encode(txOutputDatum: TxOutputDatum): number[];
98
+ //# sourceMappingURL=TxOutputDatum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TxOutputDatum.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/TxOutputDatum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AAGvC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGzB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAA;AAEpE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAoCxB,CAAA;AAED,eAAO,MAAM,MAAM,GACjB,OAAO,KAAK,CAAC,SAAS,KACrB,IAAI,CAAC,YAAY,CAAC,aAAa,CA+B9B,CAAA;AAEJ,wBAAgB,MAAM,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE,CAe7D"}