playground-common-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Playground.Schema

Description

This module handles exposing a Contract API to the Plutus Playground frontend.

In practice this means having a way of turning the Contract's effect rows into a Schema declaration, by using an EndpointToSchema instance.

|

Documentation

class EndpointToSchema (s :: Row Type) Source #

Minimal complete definition

endpointsToSchemas

Instances

Instances details
EndpointToSchema (Empty :: Row Type) Source # 
Instance details

Defined in Playground.Schema

(ToSchema params, KnownSymbol label, EndpointToSchema ('R bs)) => EndpointToSchema ('R ((label :-> (EndpointValue params, ActiveEndpoint)) ': bs)) Source # 
Instance details

Defined in Playground.Schema