{"id":24551946,"url":"https://github.com/mlabs-haskell/plutus-simple-model","last_synced_at":"2025-10-04T02:30:59.662Z","repository":{"id":39580439,"uuid":"442140926","full_name":"mlabs-haskell/plutus-simple-model","owner":"mlabs-haskell","description":"Unit testing with resource estimation for Plutus","archived":false,"fork":false,"pushed_at":"2025-01-08T21:58:19.000Z","size":1950,"stargazers_count":31,"open_issues_count":15,"forks_count":16,"subscribers_count":33,"default_branch":"main","last_synced_at":"2025-01-08T22:38:40.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-27T11:30:29.000Z","updated_at":"2025-01-08T21:58:23.000Z","dependencies_parsed_at":"2022-07-04T11:11:54.763Z","dependency_job_id":"848e165a-c5ef-460f-b8fb-05f5711f554f","html_url":"https://github.com/mlabs-haskell/plutus-simple-model","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fplutus-simple-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fplutus-simple-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fplutus-simple-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fplutus-simple-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlabs-haskell","download_url":"https://codeload.github.com/mlabs-haskell/plutus-simple-model/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235209667,"owners_count":18953109,"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:30.508Z","updated_at":"2025-10-04T02:30:54.328Z","avatar_url":"https://github.com/mlabs-haskell.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprecation note\n\nPSM library has been decommissioned in favor of\n[CLB](https://github.com/mlabs-haskell/clb) emulator.\n\nPlutus simple model\n====================================================\n\nUnit test library for Plutus with estimation of resource usage.\n\nLibrary defines simple mock model of Blockchain to unit test plutus contracts\nand estimate usage of resources. What are the benefits for this framework comparing\nto other test frameworks for Plutus? It's:\n\n* easy to use\n* easy to think about\n* it has minimal dependency set. It depends only on plutus and cardano-ledger.\n    Ain't no plutus-apps or cardano-node or ouroboros\n* works for both Plutus V1 and Plutus V2\n* support for Alonzo and Babbage eras\n* blazing fast\n* can estimate usage of resources with real functions used on Cardano node.\n* pure\n* good for unit testing of on-chain code\n* being fast and pure it's also suitable for property based testing\n\n## Quick start guide\n\nSee [user guide](https://mlabs-haskell.github.io/plutus-simple-model/) to get started\n\n## How to compile the library\n\nLibrary is compiled with nix, flakes and cabal. Enter developer nix shell with:\n\n```\nnix develop\n```\n\nInside the nix shell we can run build and tests over make:\n\n```\nmake build\nmake test\n```\n\nIt calls cabal under the hood.\n\n## How to update docs\n\nDocs are written in [mdbook](https://github.com/rust-lang/mdBook) and reside in the `docs` directory.\nThey are auto-deployed with Git actions on push to main. To run docs locally use mdbook:\n\n```\ncd docs\nmdbook serve\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabs-haskell%2Fplutus-simple-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlabs-haskell%2Fplutus-simple-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabs-haskell%2Fplutus-simple-model/lists"}