{"id":24551984,"url":"https://github.com/mlabs-haskell/purescript-cardano-types","last_synced_at":"2026-01-03T06:13:57.014Z","repository":{"id":219109708,"uuid":"747874864","full_name":"mlabs-haskell/purescript-cardano-types","owner":"mlabs-haskell","description":"Domain types for Cardano","archived":false,"fork":false,"pushed_at":"2024-04-28T12:47:38.000Z","size":208,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-01T11:46:30.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlabs-haskell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-24T20:13:06.000Z","updated_at":"2024-05-05T13:48:18.171Z","dependencies_parsed_at":"2024-03-24T13:45:43.897Z","dependency_job_id":"94a2497f-cbc6-4aa9-8722-a144594f1de7","html_url":"https://github.com/mlabs-haskell/purescript-cardano-types","commit_stats":null,"previous_names":["mlabs-haskell/purescript-cardano-types"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpurescript-cardano-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpurescript-cardano-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpurescript-cardano-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpurescript-cardano-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlabs-haskell","download_url":"https://codeload.github.com/mlabs-haskell/purescript-cardano-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878408,"owners_count":20362431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-23T01:19:38.862Z","updated_at":"2026-01-03T06:13:57.009Z","avatar_url":"https://github.com/mlabs-haskell.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-cardano-types [![cardano-purescript](https://img.shields.io/badge/cardano--purescript?logo=cardano\u0026logoColor=white\u0026label=cardano-purescript\u0026labelColor=blue\u0026color=blue)](https://github.com/klntsky/cardano-purescript)\n\nThis library contains wrappers over [autogenerated bindings for cardano-data-lite (CDL)](https://github.com/mlabs-haskell/purescript-cardano-data-lite) and some types adapted from `cardano-api` and `cardano-wallet`. It is primarily used in [`cardano-transaction-lib`](https://github.com/Plutonomicon/cardano-transaction-lib/).\n\nThis library presents `Transaction` and all its structural components as PureScript algebraic data types.\n\n- Trivial types are implemented as `newtype`s over CDL\n- Variant types are implemented as ADTs\n- Records-like types are implemented as newtypes over PureScript records\n\nHere's what is included:\n\n- `AsCbor` instances for types that are representable as binary\n- `Show`, `Eq`, `Ord`, `Generic` instances where they make sense\n- `ToMetadata`/`FromMetadata` and `ToData`/`FromData` typeclasses and some instances\n- Some pretty-printing functions that render a [`TagSet` from `monad-logger`](https://pursuit.purescript.org/packages/purescript-monad-logger/1.3.1/docs/Data.Log.Tag#t:TagSet).\n- `fromCdl` / `toCdl` functions that lift values between CDL and PureScript domains (only for types ported from CDL)\n\n## Types not from CDL:\n\n- `Asset`\n- `AssetClass`\n- `PaymentPubKeyHash`\n- `UtxoMap`\n- `Chain`\n- `ChainTip`\n- `BlockHeaderHash`\n- `DelegationsAndRewards`\n- `EpochLength`\n- `EraSummaries`\n- `EraSummary`\n- `EraSummaryParameters`\n- `EraSummaryTime`\n- `RelativeTime`\n- `SafeZone`\n- `SlotLength`\n- `ProtocolParameters`\n- `Rational`\n- `StakeValidatorHash`\n- `SystemStart`\n\n## Limitations\n\n- `Semigroup` instances for `Value`, `ExUnits` and `Mint` are unlawful (they unsafely throw on numeric overflows)\n- No `TransactionBuilder` - for a framework to build transactions, see [`cardano-transaction-lib`](https://github.com/Plutonomicon/cardano-transaction-lib/)\n- No `Block`, `BlockHeader` - these are not needed for an in-browser dApp.\n- Recursion max-depth issues (JavaScript...)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabs-haskell%2Fpurescript-cardano-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlabs-haskell%2Fpurescript-cardano-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabs-haskell%2Fpurescript-cardano-types/lists"}