@helios-lang/effect 0.1.15 → 0.3.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 (399) 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 +31 -21
  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 +24 -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 +6 -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 +963 -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/Wallet.js +48 -0
  79. package/dist/Cardano/Wallet.js.map +1 -0
  80. package/dist/Cardano/index.js +7 -0
  81. package/dist/Cardano/index.js.map +1 -0
  82. package/dist/{internal → Codecs}/Base32.js +2 -2
  83. package/dist/Codecs/Base32.js.map +1 -0
  84. package/dist/{Bech32.js → Codecs/Bech32.js} +2 -2
  85. package/dist/Codecs/Bech32.js.map +1 -0
  86. package/dist/Codecs/BigEndian.js.map +1 -0
  87. package/dist/Codecs/Bits.js.map +1 -0
  88. package/dist/{internal → Codecs}/Bytes.js +23 -12
  89. package/dist/Codecs/Bytes.js.map +1 -0
  90. package/dist/{Cbor.js → Codecs/Cbor.js} +559 -328
  91. package/dist/Codecs/Cbor.js.map +1 -0
  92. package/dist/{internal → Codecs}/Flat.js +16 -0
  93. package/dist/Codecs/Flat.js.map +1 -0
  94. package/dist/Codecs/Float.js.map +1 -0
  95. package/dist/Codecs/LittleEndian.js +31 -0
  96. package/dist/Codecs/LittleEndian.js.map +1 -0
  97. package/dist/Codecs/Uint64.js +89 -0
  98. package/dist/Codecs/Uint64.js.map +1 -0
  99. package/dist/{internal → Codecs}/Utf8.js +7 -2
  100. package/dist/Codecs/Utf8.js.map +1 -0
  101. package/dist/Codecs/ZigZag.js +26 -0
  102. package/dist/Codecs/ZigZag.js.map +1 -0
  103. package/dist/Codecs/index.js +8 -0
  104. package/dist/Codecs/index.js.map +1 -0
  105. package/dist/Crypto/Bip32.js +131 -0
  106. package/dist/Crypto/Bip32.js.map +1 -0
  107. package/dist/Crypto/Bip39.js +2176 -0
  108. package/dist/Crypto/Bip39.js.map +1 -0
  109. package/dist/Crypto/Blake2b.js +156 -0
  110. package/dist/Crypto/Blake2b.js.map +1 -0
  111. package/dist/Crypto/Curve.js +92 -0
  112. package/dist/Crypto/Curve.js.map +1 -0
  113. package/dist/Crypto/Ed25519.js +323 -0
  114. package/dist/Crypto/Ed25519.js.map +1 -0
  115. package/dist/Crypto/EdDSA.js +222 -0
  116. package/dist/Crypto/EdDSA.js.map +1 -0
  117. package/dist/Crypto/Field.js +323 -0
  118. package/dist/Crypto/Field.js.map +1 -0
  119. package/dist/Crypto/Hmac.js +51 -0
  120. package/dist/Crypto/Hmac.js.map +1 -0
  121. package/dist/Crypto/Keccak.js +167 -0
  122. package/dist/Crypto/Keccak.js.map +1 -0
  123. package/dist/Crypto/Pbkdf2.js +45 -0
  124. package/dist/Crypto/Pbkdf2.js.map +1 -0
  125. package/dist/Crypto/Sha2_256.js +200 -0
  126. package/dist/Crypto/Sha2_256.js.map +1 -0
  127. package/dist/Crypto/Sha2_512.js +264 -0
  128. package/dist/Crypto/Sha2_512.js.map +1 -0
  129. package/dist/Crypto/Sha3_256.js +10 -0
  130. package/dist/Crypto/Sha3_256.js.map +1 -0
  131. package/dist/Crypto/errors.js +9 -0
  132. package/dist/Crypto/errors.js.map +1 -0
  133. package/dist/Crypto/index.js +12 -0
  134. package/dist/Crypto/index.js.map +1 -0
  135. package/dist/index.js +3 -5
  136. package/dist/index.js.map +1 -1
  137. package/package.json +24 -6
  138. package/tsconfig.build.json +1 -1
  139. package/types/Cardano/CoinSelection.d.ts +26 -0
  140. package/types/Cardano/CoinSelection.d.ts.map +1 -0
  141. package/types/{Ledger → Cardano/Ledger}/Address.d.ts +8 -7
  142. package/types/Cardano/Ledger/Address.d.ts.map +1 -0
  143. package/types/{Ledger → Cardano/Ledger}/AssetClass.d.ts +2 -2
  144. package/types/Cardano/Ledger/AssetClass.d.ts.map +1 -0
  145. package/types/Cardano/Ledger/Assets.d.ts +114 -0
  146. package/types/Cardano/Ledger/Assets.d.ts.map +1 -0
  147. package/types/{Ledger → Cardano/Ledger}/Credential.d.ts +10 -4
  148. package/types/Cardano/Ledger/Credential.d.ts.map +1 -0
  149. package/types/Cardano/Ledger/DCert.d.ts +40 -0
  150. package/types/Cardano/Ledger/DCert.d.ts.map +1 -0
  151. package/types/{Ledger → Cardano/Ledger}/DatumHash.d.ts +6 -5
  152. package/types/Cardano/Ledger/DatumHash.d.ts.map +1 -0
  153. package/types/{Ledger → Cardano/Ledger}/MintingPolicy.d.ts +11 -8
  154. package/types/Cardano/Ledger/MintingPolicy.d.ts.map +1 -0
  155. package/types/Cardano/Ledger/NativeScript.d.ts +105 -0
  156. package/types/Cardano/Ledger/NativeScript.d.ts.map +1 -0
  157. package/types/Cardano/Ledger/PubKey.d.ts +45 -0
  158. package/types/Cardano/Ledger/PubKey.d.ts.map +1 -0
  159. package/types/{Ledger → Cardano/Ledger}/PubKeyHash.d.ts +5 -5
  160. package/types/Cardano/Ledger/PubKeyHash.d.ts.map +1 -0
  161. package/types/Cardano/Ledger/Redeemer.d.ts +303 -0
  162. package/types/Cardano/Ledger/Redeemer.d.ts.map +1 -0
  163. package/types/Cardano/Ledger/RewardAddress.d.ts +60 -0
  164. package/types/Cardano/Ledger/RewardAddress.d.ts.map +1 -0
  165. package/types/Cardano/Ledger/Signature.d.ts +13 -0
  166. package/types/Cardano/Ledger/Signature.d.ts.map +1 -0
  167. package/types/Cardano/Ledger/Tx.d.ts +375 -0
  168. package/types/Cardano/Ledger/Tx.d.ts.map +1 -0
  169. package/types/{Ledger → Cardano/Ledger}/TxHash.d.ts +35 -5
  170. package/types/Cardano/Ledger/TxHash.d.ts.map +1 -0
  171. package/types/Cardano/Ledger/TxOutput.d.ts +438 -0
  172. package/types/Cardano/Ledger/TxOutput.d.ts.map +1 -0
  173. package/types/Cardano/Ledger/TxOutputDatum.d.ts +98 -0
  174. package/types/Cardano/Ledger/TxOutputDatum.d.ts.map +1 -0
  175. package/types/Cardano/Ledger/UTxO.d.ts +1420 -0
  176. package/types/Cardano/Ledger/UTxO.d.ts.map +1 -0
  177. package/types/Cardano/Ledger/UTxORef.d.ts +222 -0
  178. package/types/Cardano/Ledger/UTxORef.d.ts.map +1 -0
  179. package/types/{Ledger → Cardano/Ledger}/ValidatorHash.d.ts +5 -5
  180. package/types/Cardano/Ledger/ValidatorHash.d.ts.map +1 -0
  181. package/types/{Ledger → Cardano/Ledger}/index.d.ts +6 -0
  182. package/types/Cardano/Ledger/index.d.ts.map +1 -0
  183. package/types/Cardano/Network/IsMainnet.d.ts.map +1 -0
  184. package/types/{Network → Cardano/Network}/Params.d.ts +32 -4
  185. package/types/Cardano/Network/Params.d.ts.map +1 -0
  186. package/types/Cardano/Network/UTxO.d.ts +15 -0
  187. package/types/Cardano/Network/UTxO.d.ts.map +1 -0
  188. package/types/Cardano/Network/UTxOsAt.d.ts +9 -0
  189. package/types/Cardano/Network/UTxOsAt.d.ts.map +1 -0
  190. package/types/Cardano/Network/errors.d.ts +39 -0
  191. package/types/Cardano/Network/errors.d.ts.map +1 -0
  192. package/types/{Network → Cardano/Network}/index.d.ts +1 -0
  193. package/types/Cardano/Network/index.d.ts.map +1 -0
  194. package/types/Cardano/TxBuilder.d.ts +232 -0
  195. package/types/Cardano/TxBuilder.d.ts.map +1 -0
  196. package/types/Cardano/Uplc/Builtins.d.ts +163 -0
  197. package/types/Cardano/Uplc/Builtins.d.ts.map +1 -0
  198. package/types/Cardano/Uplc/Cek.d.ts +165 -0
  199. package/types/Cardano/Uplc/Cek.d.ts.map +1 -0
  200. package/types/Cardano/Uplc/Cost.d.ts +93 -0
  201. package/types/Cardano/Uplc/Cost.d.ts.map +1 -0
  202. package/types/{Uplc → Cardano/Uplc}/Data.d.ts +149 -15
  203. package/types/Cardano/Uplc/Data.d.ts.map +1 -0
  204. package/types/Cardano/Uplc/Script.d.ts +87 -0
  205. package/types/Cardano/Uplc/Script.d.ts.map +1 -0
  206. package/types/Cardano/Uplc/ScriptContext.d.ts +21 -0
  207. package/types/Cardano/Uplc/ScriptContext.d.ts.map +1 -0
  208. package/types/Cardano/Uplc/Term.d.ts +454 -0
  209. package/types/Cardano/Uplc/Term.d.ts.map +1 -0
  210. package/types/Cardano/Uplc/Type.d.ts +29 -0
  211. package/types/Cardano/Uplc/Type.d.ts.map +1 -0
  212. package/types/Cardano/Uplc/Value.d.ts +152 -0
  213. package/types/Cardano/Uplc/Value.d.ts.map +1 -0
  214. package/types/Cardano/Uplc/index.d.ts +7 -0
  215. package/types/Cardano/Uplc/index.d.ts.map +1 -0
  216. package/types/Cardano/Wallet.d.ts +73 -0
  217. package/types/Cardano/Wallet.d.ts.map +1 -0
  218. package/types/Cardano/index.d.ts +7 -0
  219. package/types/Cardano/index.d.ts.map +1 -0
  220. package/types/Codecs/Base32.d.ts.map +1 -0
  221. package/types/Codecs/Bech32.d.ts.map +1 -0
  222. package/types/Codecs/BigEndian.d.ts.map +1 -0
  223. package/types/Codecs/Bits.d.ts.map +1 -0
  224. package/types/{internal → Codecs}/Bytes.d.ts +7 -6
  225. package/types/Codecs/Bytes.d.ts.map +1 -0
  226. package/types/{Cbor.d.ts → Codecs/Cbor.d.ts} +77 -55
  227. package/types/Codecs/Cbor.d.ts.map +1 -0
  228. package/types/{internal → Codecs}/Flat.d.ts +2 -0
  229. package/types/Codecs/Flat.d.ts.map +1 -0
  230. package/types/Codecs/Float.d.ts.map +1 -0
  231. package/types/Codecs/LittleEndian.d.ts +19 -0
  232. package/types/Codecs/LittleEndian.d.ts.map +1 -0
  233. package/types/Codecs/Uint64.d.ts +16 -0
  234. package/types/Codecs/Uint64.d.ts.map +1 -0
  235. package/types/{internal → Codecs}/Utf8.d.ts +2 -2
  236. package/types/Codecs/Utf8.d.ts.map +1 -0
  237. package/types/Codecs/ZigZag.d.ts +3 -0
  238. package/types/Codecs/ZigZag.d.ts.map +1 -0
  239. package/types/Codecs/index.d.ts +8 -0
  240. package/types/Codecs/index.d.ts.map +1 -0
  241. package/types/Crypto/Bip32.d.ts +29 -0
  242. package/types/Crypto/Bip32.d.ts.map +1 -0
  243. package/types/Crypto/Bip39.d.ts +43 -0
  244. package/types/Crypto/Bip39.d.ts.map +1 -0
  245. package/types/Crypto/Blake2b.d.ts +16 -0
  246. package/types/Crypto/Blake2b.d.ts.map +1 -0
  247. package/types/Crypto/Curve.d.ts +161 -0
  248. package/types/Crypto/Curve.d.ts.map +1 -0
  249. package/types/Crypto/Ed25519.d.ts +155 -0
  250. package/types/Crypto/Ed25519.d.ts.map +1 -0
  251. package/types/Crypto/EdDSA.d.ts +159 -0
  252. package/types/Crypto/EdDSA.d.ts.map +1 -0
  253. package/types/Crypto/Field.d.ts +273 -0
  254. package/types/Crypto/Field.d.ts.map +1 -0
  255. package/types/Crypto/Hmac.d.ts +20 -0
  256. package/types/Crypto/Hmac.d.ts.map +1 -0
  257. package/types/Crypto/Keccak.d.ts +16 -0
  258. package/types/Crypto/Keccak.d.ts.map +1 -0
  259. package/types/Crypto/Pbkdf2.d.ts +15 -0
  260. package/types/Crypto/Pbkdf2.d.ts.map +1 -0
  261. package/types/Crypto/Sha2_256.d.ts +36 -0
  262. package/types/Crypto/Sha2_256.d.ts.map +1 -0
  263. package/types/Crypto/Sha2_512.d.ts +31 -0
  264. package/types/Crypto/Sha2_512.d.ts.map +1 -0
  265. package/types/Crypto/Sha3_256.d.ts +8 -0
  266. package/types/Crypto/Sha3_256.d.ts.map +1 -0
  267. package/types/Crypto/errors.d.ts +10 -0
  268. package/types/Crypto/errors.d.ts.map +1 -0
  269. package/types/Crypto/index.d.ts +12 -0
  270. package/types/Crypto/index.d.ts.map +1 -0
  271. package/types/index.d.ts +3 -5
  272. package/types/index.d.ts.map +1 -1
  273. package/dist/Address.js +0 -13
  274. package/dist/Address.js.map +0 -1
  275. package/dist/Bech32.js.map +0 -1
  276. package/dist/Cbor.js.map +0 -1
  277. package/dist/Ledger/Address.js.map +0 -1
  278. package/dist/Ledger/AssetClass.js.map +0 -1
  279. package/dist/Ledger/Assets.js +0 -120
  280. package/dist/Ledger/Assets.js.map +0 -1
  281. package/dist/Ledger/Credential.js +0 -17
  282. package/dist/Ledger/Credential.js.map +0 -1
  283. package/dist/Ledger/DatumHash.js +0 -21
  284. package/dist/Ledger/DatumHash.js.map +0 -1
  285. package/dist/Ledger/IsMainnet.js +0 -4
  286. package/dist/Ledger/IsMainnet.js.map +0 -1
  287. package/dist/Ledger/MintingPolicy.js +0 -45
  288. package/dist/Ledger/MintingPolicy.js.map +0 -1
  289. package/dist/Ledger/NetworkParams.js +0 -40
  290. package/dist/Ledger/NetworkParams.js.map +0 -1
  291. package/dist/Ledger/PubKeyHash.js.map +0 -1
  292. package/dist/Ledger/TxHash.js +0 -23
  293. package/dist/Ledger/TxHash.js.map +0 -1
  294. package/dist/Ledger/TxId.js +0 -23
  295. package/dist/Ledger/TxId.js.map +0 -1
  296. package/dist/Ledger/TxInput.js +0 -51
  297. package/dist/Ledger/TxInput.js.map +0 -1
  298. package/dist/Ledger/TxOutput.js +0 -118
  299. package/dist/Ledger/TxOutput.js.map +0 -1
  300. package/dist/Ledger/TxOutputDatum.js.map +0 -1
  301. package/dist/Ledger/TxOutputId.js +0 -55
  302. package/dist/Ledger/TxOutputId.js.map +0 -1
  303. package/dist/Ledger/UTxO.js +0 -43
  304. package/dist/Ledger/UTxO.js.map +0 -1
  305. package/dist/Ledger/UTxORef.js.map +0 -1
  306. package/dist/Ledger/ValidatorHash.js.map +0 -1
  307. package/dist/Ledger/index.js.map +0 -1
  308. package/dist/Network/IsMainnet.js.map +0 -1
  309. package/dist/Network/Params.js.map +0 -1
  310. package/dist/Network/UTxOsAt.js +0 -4
  311. package/dist/Network/UTxOsAt.js.map +0 -1
  312. package/dist/Network/errors.js +0 -16
  313. package/dist/Network/errors.js.map +0 -1
  314. package/dist/Network/index.js.map +0 -1
  315. package/dist/Uplc/Cek.js +0 -3
  316. package/dist/Uplc/Cek.js.map +0 -1
  317. package/dist/Uplc/Data.js.map +0 -1
  318. package/dist/Uplc/DataSchema.js +0 -118
  319. package/dist/Uplc/DataSchema.js.map +0 -1
  320. package/dist/Uplc/Primitive.js +0 -23
  321. package/dist/Uplc/Primitive.js.map +0 -1
  322. package/dist/Uplc/index.js +0 -3
  323. package/dist/Uplc/index.js.map +0 -1
  324. package/dist/internal/Base32.js.map +0 -1
  325. package/dist/internal/BigEndian.js.map +0 -1
  326. package/dist/internal/Bits.js.map +0 -1
  327. package/dist/internal/Bytes.js.map +0 -1
  328. package/dist/internal/Flat.js.map +0 -1
  329. package/dist/internal/Float.js.map +0 -1
  330. package/dist/internal/Utf8.js.map +0 -1
  331. package/tsconfig.build.tsbuildinfo +0 -1
  332. package/tsconfig.check.tsbuildinfo +0 -1
  333. package/tsconfig.tsbuildinfo +0 -1
  334. package/types/Address.d.ts +0 -5
  335. package/types/Address.d.ts.map +0 -1
  336. package/types/Bech32.d.ts.map +0 -1
  337. package/types/Cbor.d.ts.map +0 -1
  338. package/types/Ledger/Address.d.ts.map +0 -1
  339. package/types/Ledger/AssetClass.d.ts.map +0 -1
  340. package/types/Ledger/Assets.d.ts +0 -70
  341. package/types/Ledger/Assets.d.ts.map +0 -1
  342. package/types/Ledger/Credential.d.ts.map +0 -1
  343. package/types/Ledger/DatumHash.d.ts.map +0 -1
  344. package/types/Ledger/IsMainnet.d.ts +0 -6
  345. package/types/Ledger/IsMainnet.d.ts.map +0 -1
  346. package/types/Ledger/MintingPolicy.d.ts.map +0 -1
  347. package/types/Ledger/NetworkParams.d.ts +0 -40
  348. package/types/Ledger/NetworkParams.d.ts.map +0 -1
  349. package/types/Ledger/PubKeyHash.d.ts.map +0 -1
  350. package/types/Ledger/TxHash.d.ts.map +0 -1
  351. package/types/Ledger/TxId.d.ts +0 -70
  352. package/types/Ledger/TxId.d.ts.map +0 -1
  353. package/types/Ledger/TxInput.d.ts +0 -55
  354. package/types/Ledger/TxInput.d.ts.map +0 -1
  355. package/types/Ledger/TxOutput.d.ts +0 -63
  356. package/types/Ledger/TxOutput.d.ts.map +0 -1
  357. package/types/Ledger/TxOutputDatum.d.ts +0 -41
  358. package/types/Ledger/TxOutputDatum.d.ts.map +0 -1
  359. package/types/Ledger/TxOutputId.d.ts +0 -133
  360. package/types/Ledger/TxOutputId.d.ts.map +0 -1
  361. package/types/Ledger/UTxO.d.ts +0 -55
  362. package/types/Ledger/UTxO.d.ts.map +0 -1
  363. package/types/Ledger/UTxORef.d.ts +0 -133
  364. package/types/Ledger/UTxORef.d.ts.map +0 -1
  365. package/types/Ledger/ValidatorHash.d.ts.map +0 -1
  366. package/types/Ledger/index.d.ts.map +0 -1
  367. package/types/Network/IsMainnet.d.ts.map +0 -1
  368. package/types/Network/Params.d.ts.map +0 -1
  369. package/types/Network/UTxOsAt.d.ts +0 -9
  370. package/types/Network/UTxOsAt.d.ts.map +0 -1
  371. package/types/Network/errors.d.ts +0 -18
  372. package/types/Network/errors.d.ts.map +0 -1
  373. package/types/Network/index.d.ts.map +0 -1
  374. package/types/Uplc/Cek.d.ts +0 -72
  375. package/types/Uplc/Cek.d.ts.map +0 -1
  376. package/types/Uplc/Data.d.ts.map +0 -1
  377. package/types/Uplc/DataSchema.d.ts +0 -227
  378. package/types/Uplc/DataSchema.d.ts.map +0 -1
  379. package/types/Uplc/Primitive.d.ts +0 -26
  380. package/types/Uplc/Primitive.d.ts.map +0 -1
  381. package/types/Uplc/index.d.ts +0 -3
  382. package/types/Uplc/index.d.ts.map +0 -1
  383. package/types/internal/Base32.d.ts.map +0 -1
  384. package/types/internal/BigEndian.d.ts.map +0 -1
  385. package/types/internal/Bits.d.ts.map +0 -1
  386. package/types/internal/Bytes.d.ts.map +0 -1
  387. package/types/internal/Flat.d.ts.map +0 -1
  388. package/types/internal/Float.d.ts.map +0 -1
  389. package/types/internal/Utf8.d.ts.map +0 -1
  390. /package/dist/{Network → Cardano/Network}/IsMainnet.js +0 -0
  391. /package/dist/{internal → Codecs}/BigEndian.js +0 -0
  392. /package/dist/{internal → Codecs}/Bits.js +0 -0
  393. /package/dist/{internal → Codecs}/Float.js +0 -0
  394. /package/types/{Network → Cardano/Network}/IsMainnet.d.ts +0 -0
  395. /package/types/{internal → Codecs}/Base32.d.ts +0 -0
  396. /package/types/{Bech32.d.ts → Codecs/Bech32.d.ts} +0 -0
  397. /package/types/{internal → Codecs}/BigEndian.d.ts +0 -0
  398. /package/types/{internal → Codecs}/Bits.d.ts +0 -0
  399. /package/types/{internal → Codecs}/Float.d.ts +0 -0
@@ -1,15 +1,17 @@
1
1
  import { Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import * as Cbor from "../../Codecs/Cbor.js";
2
4
  import { Data } from "../Uplc";
3
- import { PubKeyHash } from "./PubKeyHash.js";
4
- import { ValidatorHash } from "./ValidatorHash.js";
5
+ import * as PubKeyHash from "./PubKeyHash.js";
6
+ import * as ValidatorHash from "./ValidatorHash.js";
5
7
  export declare const Credential: Schema.Union<[Schema.TaggedStruct<"PubKey", {
6
8
  hash: Schema.brand<Schema.filter<typeof Schema.String>, "PubKeyHash">;
7
9
  }>, Schema.TaggedStruct<"Validator", {
8
10
  hash: Schema.brand<Schema.filter<typeof Schema.String>, "ValidatorHash">;
9
11
  }>]>;
10
12
  export type Credential = Schema.Schema.Type<typeof Credential>;
11
- export declare function makePubKey(pkh: PubKeyHash): Credential;
12
- export declare function makeValidator(vh: ValidatorHash): Credential;
13
+ export declare function makePubKey(pkh: PubKeyHash.PubKeyHash): Credential;
14
+ export declare function makeValidator(vh: ValidatorHash.ValidatorHash): Credential;
13
15
  export declare const FromUplcData: Schema.transform<Schema.Schema<({
14
16
  _tag: "PubKey";
15
17
  } & {
@@ -23,4 +25,8 @@ export declare const FromUplcData: Schema.transform<Schema.Schema<({
23
25
  }>, Schema.TaggedStruct<"Validator", {
24
26
  hash: Schema.brand<Schema.filter<typeof Schema.String>, "ValidatorHash">;
25
27
  }>]>>;
28
+ export declare function bytes(cred: Credential): Uint8Array;
29
+ export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeResult<Credential>;
30
+ export declare function encode(cred: Credential): number[];
31
+ export declare function equals(a: Credential, b: Credential): boolean;
26
32
  //# sourceMappingURL=Credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Credential.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/Credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,UAAU;;;;IAGtB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9D,wBAAgB,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,UAAU,GAAG,UAAU,CAEjE;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,aAAa,CAAC,aAAa,GAAG,UAAU,CAEzE;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;KAQxB,CAAA;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAElD;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAuBxE,CAAA;AAEJ,wBAAgB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CAUjD;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAE5D"}
@@ -0,0 +1,40 @@
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
+ import * as Credential from "./Credential.js";
6
+ import * as PubKeyHash from "./PubKeyHash.js";
7
+ import * as ValidatorHash from "./ValidatorHash.js";
8
+ export type Registration = {
9
+ _tag: "Registration";
10
+ credential: Credential.Credential;
11
+ };
12
+ export type Deregistration = {
13
+ _tag: "Deregistration";
14
+ credential: Credential.Credential;
15
+ };
16
+ export type Delegation = {
17
+ _tag: "Delegation";
18
+ credential: Credential.Credential;
19
+ poolId: PubKeyHash.PubKeyHash;
20
+ };
21
+ export type RegisterPool = {
22
+ _tag: "RegisterPool";
23
+ id: PubKeyHash.PubKeyHash;
24
+ vrf: PubKeyHash.PubKeyHash;
25
+ pledge: bigint;
26
+ margin: number;
27
+ owners: readonly PubKeyHash.PubKeyHash[];
28
+ };
29
+ export type RetirePool = {
30
+ _tag: "RetirePool";
31
+ poolId: PubKeyHash.PubKeyHash;
32
+ epoch: number;
33
+ };
34
+ export type DCert = Registration | Deregistration | Delegation | RegisterPool | RetirePool;
35
+ export declare const FromUplcData: Schema.Schema<DCert, Data.Data>;
36
+ export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeResult<DCert>;
37
+ export declare function encode(dcert: DCert): number[];
38
+ export declare function equals(a: DCert, b: DCert): boolean;
39
+ export declare function validatorHash(dcert: DCert): ValidatorHash.ValidatorHash;
40
+ //# sourceMappingURL=DCert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DCert.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/DCert.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;AACvC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,cAAc,CAAA;IACpB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,gBAAgB,CAAA;IACtB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,YAAY,CAAA;IAClB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAA;IACjC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,cAAc,CAAA;IACpB,EAAE,EAAE,UAAU,CAAC,UAAU,CAAA;IACzB,GAAG,EAAE,UAAU,CAAC,UAAU,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IAEd,MAAM,EAAE,SAAS,UAAU,CAAC,UAAU,EAAE,CAAA;CAGzC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE,UAAU,CAAC,UAAU,CAAA;IAC7B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,KAAK,GACb,YAAY,GACZ,cAAc,GACd,UAAU,GACV,YAAY,GACZ,UAAU,CAAA;AAEd,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAsBvD,CAAA;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CA4BnE,CAAA;AAEJ,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CA2B7C;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,OAAO,CAelD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,CAAC,aAAa,CAcvE"}
@@ -1,11 +1,11 @@
1
- import { Effect, Schema } from "effect";
2
- import * as Bytes from "../internal/Bytes.js";
3
- import { DecodeEffect } from "../Cbor.js";
1
+ import { Either, Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import { DecodeResult } from "../../Codecs/Cbor.js";
4
4
  import { Data } from "../Uplc";
5
5
  export declare function isValid(dh: string): boolean;
6
6
  export declare const DatumHash: Schema.brand<Schema.filter<typeof Schema.String>, "DatumHash">;
7
7
  export type DatumHash = Schema.Schema.Type<typeof DatumHash>;
8
- export declare function make(bytes: Bytes.BytesLike): Effect.Effect<string & import("effect/Brand").Brand<"DatumHash">, import("effect/ParseResult").ParseError, never>;
8
+ export declare function make(bytes: Bytes.BytesLike): Either.Either<string & import("effect/Brand").Brand<"DatumHash">, import("effect/ParseResult").ParseError>;
9
9
  export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schema.SchemaClass<{
10
10
  readonly bytes: Uint8Array<ArrayBufferLike>;
11
11
  } | {
@@ -35,6 +35,7 @@ export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schem
35
35
  readonly fields: readonly Data.Data[];
36
36
  readonly constructor: number;
37
37
  }, never>, typeof Schema.Uint8ArrayFromSelf, never>, Schema.brand<Schema.filter<typeof Schema.String>, "DatumHash">>;
38
- export declare const decode: (bytes: Bytes.BytesLike) => DecodeEffect<DatumHash>;
38
+ export declare const decode: (bytes: Bytes.BytesLike) => DecodeResult<DatumHash>;
39
39
  export declare function encode(dh: DatumHash): number[];
40
+ export declare function hash(d: Data.Data): DatumHash;
40
41
  //# sourceMappingURL=DatumHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatumHash.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/DatumHash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAe,YAAY,EAAe,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAE3C;AAED,eAAO,MAAM,SAAS,gEAGrB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAA;AAE5D,wBAAgB,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,8GAE1C;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;oHAIvB,CAAA;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,YAAY,CAAC,SAAS,CAKnE,CAAA;AAEH,wBAAgB,MAAM,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,EAAE,CAE9C;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,SAAS,CAI5C"}
@@ -1,8 +1,10 @@
1
- import { Effect, Option, Schema } from "effect";
2
- import * as Bytes from "../internal/Bytes.js";
3
- import * as Cbor from "../Cbor.js";
4
- import { Data } from "../Uplc";
5
- export declare const MintingPolicy: Schema.Option<Schema.brand<Schema.filter<typeof Schema.String>, "ValidatorHash">>;
1
+ import { Either, 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
+ import * as ValidatorHash from "./ValidatorHash.js";
6
+ export declare function isValid(mph: string): mph is MintingPolicy;
7
+ export declare const MintingPolicy: Schema.brand<Schema.filter<typeof Schema.String>, "MintingPolicy">;
6
8
  export type MintingPolicy = Schema.Schema.Type<typeof MintingPolicy>;
7
9
  export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schema.SchemaClass<{
8
10
  readonly bytes: Uint8Array<ArrayBufferLike>;
@@ -32,8 +34,9 @@ export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schem
32
34
  } | {
33
35
  readonly fields: readonly Data.Data[];
34
36
  readonly constructor: number;
35
- }, never>, typeof Schema.Uint8ArrayFromSelf, never>, Schema.Option<Schema.brand<Schema.filter<typeof Schema.String>, "ValidatorHash">>>;
36
- export declare function make(policy: Bytes.BytesLike): Effect.Effect<Option.Option<string & import("effect/Brand").Brand<"ValidatorHash">>, import("effect/ParseResult").ParseError, never>;
37
- export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeEffect<MintingPolicy>;
37
+ }, never>, typeof Schema.Uint8ArrayFromSelf, never>, Schema.brand<Schema.filter<typeof Schema.String>, "MintingPolicy">>;
38
+ export declare function make(policy: Bytes.BytesLike): Either.Either<string & import("effect/Brand").Brand<"MintingPolicy">, import("effect/ParseResult").ParseError>;
39
+ export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeResult<MintingPolicy>;
38
40
  export declare function encode(policy: MintingPolicy): number[];
41
+ export declare function hash(policy: MintingPolicy): ValidatorHash.ValidatorHash;
39
42
  //# sourceMappingURL=MintingPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MintingPolicy.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/MintingPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AACvC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAEnD,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,aAAa,CAQzD;AAED,eAAO,MAAM,aAAa,oEAKzB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAA;AAEpE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;wHAIvB,CAAA;AAEF,wBAAgB,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,kHAE3C;AAED,eAAO,MAAM,MAAM,GACjB,OAAO,KAAK,CAAC,SAAS,KACrB,IAAI,CAAC,YAAY,CAAC,aAAa,CAU/B,CAAA;AAEH,wBAAgB,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,EAAE,CAEtD;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAAC,aAAa,CAMvE"}
@@ -0,0 +1,105 @@
1
+ import { Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import * as Cbor from "../../Codecs/Cbor.js";
4
+ import * as PubKeyHash from "./PubKeyHash.js";
5
+ import * as ValidatorHash from "./ValidatorHash.js";
6
+ export declare const After: Schema.Struct<{
7
+ type: Schema.Literal<["after"]>;
8
+ slot: typeof Schema.Number;
9
+ }>;
10
+ export type After = Schema.Schema.Type<typeof After>;
11
+ export declare const Before: Schema.Struct<{
12
+ type: Schema.Literal<["before"]>;
13
+ slot: typeof Schema.Number;
14
+ }>;
15
+ export type Before = Schema.Schema.Type<typeof Before>;
16
+ export declare const All: Schema.Struct<{
17
+ type: Schema.Literal<["all"]>;
18
+ scripts: Schema.Array$<Schema.suspend<NativeScript, NativeScriptJSON, never>>;
19
+ }>;
20
+ export type All = Schema.Schema.Type<typeof All>;
21
+ export declare const Any: Schema.Struct<{
22
+ type: Schema.Literal<["any"]>;
23
+ scripts: Schema.Array$<Schema.suspend<NativeScript, NativeScriptJSON, never>>;
24
+ }>;
25
+ export type Any = Schema.Schema.Type<typeof Any>;
26
+ export declare const AtLeast: Schema.Struct<{
27
+ type: Schema.Literal<["atLeast"]>;
28
+ required: typeof Schema.Number;
29
+ scripts: Schema.Array$<Schema.suspend<NativeScript, NativeScriptJSON, never>>;
30
+ }>;
31
+ export type AtLeast = Schema.Schema.Type<typeof AtLeast>;
32
+ export declare const Sig: Schema.Struct<{
33
+ type: Schema.Literal<["sig"]>;
34
+ keyHash: Schema.brand<Schema.filter<typeof Schema.String>, "PubKeyHash">;
35
+ }>;
36
+ export type Sig = Schema.Schema.Type<typeof Sig>;
37
+ export type NativeScript = {
38
+ type: "after";
39
+ slot: number;
40
+ } | {
41
+ type: "before";
42
+ slot: number;
43
+ } | {
44
+ type: "all";
45
+ scripts: readonly NativeScript[];
46
+ } | {
47
+ type: "any";
48
+ scripts: readonly NativeScript[];
49
+ } | {
50
+ type: "atLeast";
51
+ required: number;
52
+ scripts: readonly NativeScript[];
53
+ } | {
54
+ type: "sig";
55
+ keyHash: PubKeyHash.PubKeyHash;
56
+ };
57
+ export type NativeScriptJSON = {
58
+ type: "after";
59
+ slot: number;
60
+ } | {
61
+ type: "before";
62
+ slot: number;
63
+ } | {
64
+ type: "all";
65
+ scripts: readonly NativeScriptJSON[];
66
+ } | {
67
+ type: "any";
68
+ scripts: readonly NativeScriptJSON[];
69
+ } | {
70
+ type: "atLeast";
71
+ required: number;
72
+ scripts: readonly NativeScriptJSON[];
73
+ } | {
74
+ type: "sig";
75
+ keyHash: string;
76
+ };
77
+ export declare const NativeScript: Schema.Union<[Schema.Struct<{
78
+ type: Schema.Literal<["after"]>;
79
+ slot: typeof Schema.Number;
80
+ }>, Schema.Struct<{
81
+ type: Schema.Literal<["before"]>;
82
+ slot: typeof Schema.Number;
83
+ }>, Schema.Struct<{
84
+ type: Schema.Literal<["all"]>;
85
+ scripts: Schema.Array$<Schema.suspend<NativeScript, NativeScriptJSON, never>>;
86
+ }>, Schema.Struct<{
87
+ type: Schema.Literal<["any"]>;
88
+ scripts: Schema.Array$<Schema.suspend<NativeScript, NativeScriptJSON, never>>;
89
+ }>, Schema.Struct<{
90
+ type: Schema.Literal<["atLeast"]>;
91
+ required: typeof Schema.Number;
92
+ scripts: Schema.Array$<Schema.suspend<NativeScript, NativeScriptJSON, never>>;
93
+ }>, Schema.Struct<{
94
+ type: Schema.Literal<["sig"]>;
95
+ keyHash: Schema.brand<Schema.filter<typeof Schema.String>, "PubKeyHash">;
96
+ }>]>;
97
+ export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeResult<NativeScript>;
98
+ export declare function encode(script: NativeScript): number[];
99
+ export declare function hash(script: NativeScript): ValidatorHash.ValidatorHash;
100
+ export declare function validate(ctx: {
101
+ firstValidSlot?: number;
102
+ lastValidSlot?: number;
103
+ signers: PubKeyHash.PubKeyHash[];
104
+ }): (script: NativeScript) => boolean;
105
+ //# sourceMappingURL=NativeScript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeScript.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/NativeScript.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,45 @@
1
+ import { Either, Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import { DecodeResult } from "../../Codecs/Cbor.js";
4
+ import * as Bip32 from "../../Crypto/Bip32.js";
5
+ import { Data } from "../Uplc";
6
+ import type { PubKeyHash } from "./PubKeyHash.js";
7
+ export declare const isValid: typeof Bip32.isValidVerificationKey;
8
+ export declare const PubKey: Schema.brand<Schema.filter<typeof Schema.String>, "Crypto.Bip32.VerificationKey">;
9
+ export type PubKey = Bip32.VerificationKey;
10
+ export declare const make: (bytes: Bytes.BytesLike) => Either.Either<Bip32.VerificationKey, import("effect/ParseResult").Unexpected>;
11
+ export declare const FromUplcData: Schema.transformOrFail<Schema.transformOrFail<Schema.SchemaClass<{
12
+ readonly bytes: Uint8Array<ArrayBufferLike>;
13
+ } | {
14
+ readonly int: bigint;
15
+ } | {
16
+ readonly list: readonly Data.Data[];
17
+ } | {
18
+ readonly map: readonly {
19
+ readonly k: Data.Data;
20
+ readonly v: Data.Data;
21
+ }[];
22
+ } | {
23
+ readonly fields: readonly Data.Data[];
24
+ readonly constructor: number;
25
+ }, {
26
+ readonly bytes: Uint8Array<ArrayBufferLike>;
27
+ } | {
28
+ readonly int: bigint;
29
+ } | {
30
+ readonly list: readonly Data.Data[];
31
+ } | {
32
+ readonly map: readonly {
33
+ readonly k: Data.Data;
34
+ readonly v: Data.Data;
35
+ }[];
36
+ } | {
37
+ readonly fields: readonly Data.Data[];
38
+ readonly constructor: number;
39
+ }, never>, typeof Schema.Uint8ArrayFromSelf, never>, Schema.SchemaClass<string & import("effect/Brand").Brand<"Crypto.Bip32.VerificationKey">, string & import("effect/Brand").Brand<"Crypto.Bip32.VerificationKey">, never>, never>;
40
+ export declare const decode: (bytes: Bytes.BytesLike) => DecodeResult<PubKey>;
41
+ export declare const bytes: (vk: Bip32.VerificationKey) => Uint8Array;
42
+ export declare function encode(pkh: PubKey): number[];
43
+ export declare const dummy: PubKey;
44
+ export declare function hash(pk: PubKey): PubKeyHash;
45
+ //# sourceMappingURL=PubKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PubKey.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/PubKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAGL,YAAY,EAEb,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,eAAO,MAAM,OAAO,qCAA+B,CAAA;AAEnD,eAAO,MAAM,MAAM,mFAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,eAAe,CAAA;AAE1C,eAAO,MAAM,IAAI,2GAA4B,CAAA;AAE7C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;oOAQxB,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,YAAY,CAAC,MAAM,CAOhE,CAAA;AAEH,eAAO,MAAM,KAAK,2CAAgB,CAAA;AAElC,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAE5C;AAED,eAAO,MAAM,KAAK,EAAE,MAET,CAAA;AAEX,wBAAgB,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAE3C"}
@@ -1,11 +1,11 @@
1
- import { Effect, Schema } from "effect";
2
- import * as Bytes from "../internal/Bytes.js";
3
- import { DecodeEffect } from "../Cbor.js";
1
+ import { Either, Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import { DecodeResult } from "../../Codecs/Cbor.js";
4
4
  import { Data } from "../Uplc";
5
5
  export declare function isValid(pkh: string): pkh is PubKeyHash;
6
6
  export declare const PubKeyHash: Schema.brand<Schema.filter<typeof Schema.String>, "PubKeyHash">;
7
7
  export type PubKeyHash = Schema.Schema.Type<typeof PubKeyHash>;
8
- export declare function make(bytes: Bytes.BytesLike): Effect.Effect<string & import("effect/Brand").Brand<"PubKeyHash">, import("effect/ParseResult").ParseError, never>;
8
+ export declare function make(bytes: Bytes.BytesLike): Either.Either<string & import("effect/Brand").Brand<"PubKeyHash">, import("effect/ParseResult").ParseError>;
9
9
  export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schema.SchemaClass<{
10
10
  readonly bytes: Uint8Array<ArrayBufferLike>;
11
11
  } | {
@@ -35,6 +35,6 @@ export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schem
35
35
  readonly fields: readonly Data.Data[];
36
36
  readonly constructor: number;
37
37
  }, never>, typeof Schema.Uint8ArrayFromSelf, never>, Schema.brand<Schema.filter<typeof Schema.String>, "PubKeyHash">>;
38
- export declare const decode: (bytes: Bytes.BytesLike) => DecodeEffect<PubKeyHash>;
38
+ export declare const decode: (bytes: Bytes.BytesLike) => DecodeResult<PubKeyHash>;
39
39
  export declare function encode(pkh: PubKeyHash): number[];
40
40
  //# sourceMappingURL=PubKeyHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PubKeyHash.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/PubKeyHash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAe,YAAY,EAAe,MAAM,sBAAsB,CAAA;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,UAAU,CAEtD;AAED,eAAO,MAAM,UAAU,iEAGtB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9D,wBAAgB,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,+GAE1C;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;qHAIvB,CAAA;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,YAAY,CAAC,UAAU,CAKpE,CAAA;AAEH,wBAAgB,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,EAAE,CAEhD"}
@@ -0,0 +1,303 @@
1
+ import { Schema } from "effect";
2
+ import * as Bytes from "../../Codecs/Bytes.js";
3
+ import * as Cbor from "../../Codecs/Cbor.js";
4
+ import { Data } from "../Uplc";
5
+ export declare const Minting: Schema.TaggedStruct<"Minting", {
6
+ policyIndex: typeof Schema.Number;
7
+ data: Schema.SchemaClass<{
8
+ readonly bytes: Uint8Array<ArrayBufferLike>;
9
+ } | {
10
+ readonly int: bigint;
11
+ } | {
12
+ readonly list: readonly Data.Data[];
13
+ } | {
14
+ readonly map: readonly {
15
+ readonly k: Data.Data;
16
+ readonly v: Data.Data;
17
+ }[];
18
+ } | {
19
+ readonly fields: readonly Data.Data[];
20
+ readonly constructor: number;
21
+ }, {
22
+ readonly bytes: Uint8Array<ArrayBufferLike>;
23
+ } | {
24
+ readonly int: bigint;
25
+ } | {
26
+ readonly list: readonly Data.Data[];
27
+ } | {
28
+ readonly map: readonly {
29
+ readonly k: Data.Data;
30
+ readonly v: Data.Data;
31
+ }[];
32
+ } | {
33
+ readonly fields: readonly Data.Data[];
34
+ readonly constructor: number;
35
+ }, never>;
36
+ cost: Schema.Struct<{
37
+ cpu: typeof Schema.BigIntFromSelf;
38
+ mem: typeof Schema.BigIntFromSelf;
39
+ }>;
40
+ }>;
41
+ export type Minting = Schema.Schema.Type<typeof Minting>;
42
+ export declare const Spending: Schema.TaggedStruct<"Spending", {
43
+ inputIndex: typeof Schema.Number;
44
+ data: Schema.SchemaClass<{
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
+ readonly bytes: Uint8Array<ArrayBufferLike>;
60
+ } | {
61
+ readonly int: bigint;
62
+ } | {
63
+ readonly list: readonly Data.Data[];
64
+ } | {
65
+ readonly map: readonly {
66
+ readonly k: Data.Data;
67
+ readonly v: Data.Data;
68
+ }[];
69
+ } | {
70
+ readonly fields: readonly Data.Data[];
71
+ readonly constructor: number;
72
+ }, never>;
73
+ cost: Schema.Struct<{
74
+ cpu: typeof Schema.BigIntFromSelf;
75
+ mem: typeof Schema.BigIntFromSelf;
76
+ }>;
77
+ }>;
78
+ export type Spending = Schema.Schema.Type<typeof Spending>;
79
+ export declare const Rewarding: Schema.TaggedStruct<"Rewarding", {
80
+ withdrawalIndex: typeof Schema.Number;
81
+ data: Schema.SchemaClass<{
82
+ readonly bytes: Uint8Array<ArrayBufferLike>;
83
+ } | {
84
+ readonly int: bigint;
85
+ } | {
86
+ readonly list: readonly Data.Data[];
87
+ } | {
88
+ readonly map: readonly {
89
+ readonly k: Data.Data;
90
+ readonly v: Data.Data;
91
+ }[];
92
+ } | {
93
+ readonly fields: readonly Data.Data[];
94
+ readonly constructor: number;
95
+ }, {
96
+ readonly bytes: Uint8Array<ArrayBufferLike>;
97
+ } | {
98
+ readonly int: bigint;
99
+ } | {
100
+ readonly list: readonly Data.Data[];
101
+ } | {
102
+ readonly map: readonly {
103
+ readonly k: Data.Data;
104
+ readonly v: Data.Data;
105
+ }[];
106
+ } | {
107
+ readonly fields: readonly Data.Data[];
108
+ readonly constructor: number;
109
+ }, never>;
110
+ cost: Schema.Struct<{
111
+ cpu: typeof Schema.BigIntFromSelf;
112
+ mem: typeof Schema.BigIntFromSelf;
113
+ }>;
114
+ }>;
115
+ export type Rewarding = Schema.Schema.Type<typeof Rewarding>;
116
+ export declare const Certifying: Schema.TaggedStruct<"Certifying", {
117
+ dcertIndex: typeof Schema.Number;
118
+ data: Schema.SchemaClass<{
119
+ readonly bytes: Uint8Array<ArrayBufferLike>;
120
+ } | {
121
+ readonly int: bigint;
122
+ } | {
123
+ readonly list: readonly Data.Data[];
124
+ } | {
125
+ readonly map: readonly {
126
+ readonly k: Data.Data;
127
+ readonly v: Data.Data;
128
+ }[];
129
+ } | {
130
+ readonly fields: readonly Data.Data[];
131
+ readonly constructor: number;
132
+ }, {
133
+ readonly bytes: Uint8Array<ArrayBufferLike>;
134
+ } | {
135
+ readonly int: bigint;
136
+ } | {
137
+ readonly list: readonly Data.Data[];
138
+ } | {
139
+ readonly map: readonly {
140
+ readonly k: Data.Data;
141
+ readonly v: Data.Data;
142
+ }[];
143
+ } | {
144
+ readonly fields: readonly Data.Data[];
145
+ readonly constructor: number;
146
+ }, never>;
147
+ cost: Schema.Struct<{
148
+ cpu: typeof Schema.BigIntFromSelf;
149
+ mem: typeof Schema.BigIntFromSelf;
150
+ }>;
151
+ }>;
152
+ export type Certifying = Schema.Schema.Type<typeof Certifying>;
153
+ export declare const Redeemer: Schema.Union<[Schema.TaggedStruct<"Minting", {
154
+ policyIndex: typeof Schema.Number;
155
+ data: Schema.SchemaClass<{
156
+ readonly bytes: Uint8Array<ArrayBufferLike>;
157
+ } | {
158
+ readonly int: bigint;
159
+ } | {
160
+ readonly list: readonly Data.Data[];
161
+ } | {
162
+ readonly map: readonly {
163
+ readonly k: Data.Data;
164
+ readonly v: Data.Data;
165
+ }[];
166
+ } | {
167
+ readonly fields: readonly Data.Data[];
168
+ readonly constructor: number;
169
+ }, {
170
+ readonly bytes: Uint8Array<ArrayBufferLike>;
171
+ } | {
172
+ readonly int: bigint;
173
+ } | {
174
+ readonly list: readonly Data.Data[];
175
+ } | {
176
+ readonly map: readonly {
177
+ readonly k: Data.Data;
178
+ readonly v: Data.Data;
179
+ }[];
180
+ } | {
181
+ readonly fields: readonly Data.Data[];
182
+ readonly constructor: number;
183
+ }, never>;
184
+ cost: Schema.Struct<{
185
+ cpu: typeof Schema.BigIntFromSelf;
186
+ mem: typeof Schema.BigIntFromSelf;
187
+ }>;
188
+ }>, Schema.TaggedStruct<"Spending", {
189
+ inputIndex: typeof Schema.Number;
190
+ data: Schema.SchemaClass<{
191
+ readonly bytes: Uint8Array<ArrayBufferLike>;
192
+ } | {
193
+ readonly int: bigint;
194
+ } | {
195
+ readonly list: readonly Data.Data[];
196
+ } | {
197
+ readonly map: readonly {
198
+ readonly k: Data.Data;
199
+ readonly v: Data.Data;
200
+ }[];
201
+ } | {
202
+ readonly fields: readonly Data.Data[];
203
+ readonly constructor: number;
204
+ }, {
205
+ readonly bytes: Uint8Array<ArrayBufferLike>;
206
+ } | {
207
+ readonly int: bigint;
208
+ } | {
209
+ readonly list: readonly Data.Data[];
210
+ } | {
211
+ readonly map: readonly {
212
+ readonly k: Data.Data;
213
+ readonly v: Data.Data;
214
+ }[];
215
+ } | {
216
+ readonly fields: readonly Data.Data[];
217
+ readonly constructor: number;
218
+ }, never>;
219
+ cost: Schema.Struct<{
220
+ cpu: typeof Schema.BigIntFromSelf;
221
+ mem: typeof Schema.BigIntFromSelf;
222
+ }>;
223
+ }>, Schema.TaggedStruct<"Rewarding", {
224
+ withdrawalIndex: typeof Schema.Number;
225
+ data: Schema.SchemaClass<{
226
+ readonly bytes: Uint8Array<ArrayBufferLike>;
227
+ } | {
228
+ readonly int: bigint;
229
+ } | {
230
+ readonly list: readonly Data.Data[];
231
+ } | {
232
+ readonly map: readonly {
233
+ readonly k: Data.Data;
234
+ readonly v: Data.Data;
235
+ }[];
236
+ } | {
237
+ readonly fields: readonly Data.Data[];
238
+ readonly constructor: number;
239
+ }, {
240
+ readonly bytes: Uint8Array<ArrayBufferLike>;
241
+ } | {
242
+ readonly int: bigint;
243
+ } | {
244
+ readonly list: readonly Data.Data[];
245
+ } | {
246
+ readonly map: readonly {
247
+ readonly k: Data.Data;
248
+ readonly v: Data.Data;
249
+ }[];
250
+ } | {
251
+ readonly fields: readonly Data.Data[];
252
+ readonly constructor: number;
253
+ }, never>;
254
+ cost: Schema.Struct<{
255
+ cpu: typeof Schema.BigIntFromSelf;
256
+ mem: typeof Schema.BigIntFromSelf;
257
+ }>;
258
+ }>, Schema.TaggedStruct<"Certifying", {
259
+ dcertIndex: typeof Schema.Number;
260
+ data: Schema.SchemaClass<{
261
+ readonly bytes: Uint8Array<ArrayBufferLike>;
262
+ } | {
263
+ readonly int: bigint;
264
+ } | {
265
+ readonly list: readonly Data.Data[];
266
+ } | {
267
+ readonly map: readonly {
268
+ readonly k: Data.Data;
269
+ readonly v: Data.Data;
270
+ }[];
271
+ } | {
272
+ readonly fields: readonly Data.Data[];
273
+ readonly constructor: number;
274
+ }, {
275
+ readonly bytes: Uint8Array<ArrayBufferLike>;
276
+ } | {
277
+ readonly int: bigint;
278
+ } | {
279
+ readonly list: readonly Data.Data[];
280
+ } | {
281
+ readonly map: readonly {
282
+ readonly k: Data.Data;
283
+ readonly v: Data.Data;
284
+ }[];
285
+ } | {
286
+ readonly fields: readonly Data.Data[];
287
+ readonly constructor: number;
288
+ }, never>;
289
+ cost: Schema.Struct<{
290
+ cpu: typeof Schema.BigIntFromSelf;
291
+ mem: typeof Schema.BigIntFromSelf;
292
+ }>;
293
+ }>]>;
294
+ export type Redeemer = Schema.Schema.Type<typeof Redeemer>;
295
+ /**
296
+ * @param a
297
+ * @param b
298
+ * @returns
299
+ */
300
+ export declare function compare(a: Redeemer, b: Redeemer): number;
301
+ export declare const decode: (bytes: Bytes.BytesLike) => Cbor.DecodeResult<Redeemer>;
302
+ export declare function encode(redeemer: Redeemer): number[];
303
+ //# sourceMappingURL=Redeemer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Redeemer.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Ledger/Redeemer.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,EAAQ,IAAI,EAAE,MAAM,SAAS,CAAA;AAEpC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAExD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE1D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAA;AAE5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAyD,CAAA;AAE9E,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE1D;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,GAAG,MAAM,CA2DxD;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CA0CtE,CAAA;AAEJ,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAAE,CA+BnD"}