Giter Site home page Giter Site logo

cardano-foundation / dab Goto Github PK

View Code? Open in Web Editor NEW
35.0 11.0 7.0 165 KB

Decentralized applicaton backend for Cardano.

License: Apache License 2.0

Haskell 77.89% Nix 13.66% HTML 7.24% Dhall 0.50% Shell 0.71%
cardano smartcontracrt smartvalidors blockfost

dab's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dab's Issues

Blockfrost backed `plutus-chain-index`

Create plutus-chain-index-blockfrost package implementing plutus-chain-index API.

Currently, when runing Plutus PAB one has to fully sync a chain via plutus-chain-index for PAB to be able to handle contract requests like utxo at address, specific transaction or chain tip queries. With the proposed package, the queries can be handled by Blockfrost API via thin layer converting from Blockfrost responses to plutus-chain-index API ones.

As a proof of concept, FromHashAPI part was implemented and tested to give the same results as original implementation.

Due to different handling of response pagination for utxoAt queries, Blockfrost API has to be extended to allow pagination using PageQuery instead of limit/offset currently availiable in Blockfrost API.

Parity testing for alternative `plutus-chain-index`es

Be able to run original and alternative implementation side by side and compare responses for predefined queries.

Unit tests requiring fully synced plutus-chain-index and internet access for Blockfrost API (or running Ogmios/DbSync).

CI pipeline

Create a complex CI pipeline for the project.

Finish and release `blockfrost-freer-client`

This is a experimental private package similar to blockfrost-client which uses freer-simple instead of mtl. This allows integrating Blockfrost API queries into stacks utilizing freer-simple like Plutus PAB - mainly plutus-chain-index.

Prerequisite for #2.

The package is already available but imposes seemingly redundant LastMemember m, MonadIO m constraint on query functions as it defers its last action (actual Servant query) to IO - ideally this shouldn't be required so we could run a stubbed variant for testing without any IO. Fortunately even in its current state this requires very little changes to plutus-chain-index-like handlers so this point is more of nice to have thing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.