{"repo":"OpShin/mockfrost","free":true,"listed":false,"github":"https://github.com/OpShin/mockfrost","clone":"git clone https://github.com/OpShin/mockfrost.git","description":"A unified framework for Cardano Smart Contract testing and benchmarking m","language":"Python","stars":21,"topics":["benchmark","cardano","plutus","smart-contracts"],"license":null,"category":"blockchain-web3","readme_excerpt":"MockFrost / Plutus-Bench Test and benchmark Plutus Smart Contracts. This project enables you to construct entire smart contract transactions against a mock environment, and measure the correctness (i.e. unit test) and performance of your smart contracts. Plutus Bench creates a mock ledger with an arbitrary UTxO set specified by the user. It then hosts a mock blockfrost API to interact with the ledger, supporting popular off-chain tooling like translucent and pycardano. Note: Plutus Bench is currently in Beta. Expect rough edges! Why Plutus Bench? - Compatability : Plutus Bench is written in Python, and is compatible with popular off-chain tooling relying on BlockFrost APIs. Ogmios mocking is also planned. - Holistic Testing : Plutus Bench allows you to test the entire lifecycle of a smart contract, from minting to consuming, in a single test. - Simple : Plutus Bench is designed to be simple to use, and easy to integrate with your existing infrastructure. Installation and running After running these commands, a mock blockfrost server will be running on http://localhost:8000 . Head to http://localhost:8000/docs to see the API documentation. Docker This starts MockFrost on http://localhost:8000 and persists session data in a Docker volume. To stop it: Usage Generally the workflow is as follows: - Create a new session with the /session/create endpoint. You receive a session ID. - Initialize a BlockFrost client in your off-chain code, and point it to the mock server. The base url ","default_branch":null,"files":null,"tree":[],"storefront":"/r/OpShin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OpShin/mockfrost/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}