sidan-lab / plutus-cborhex-automation

A Haskell package for creating RESTful API endpoints for dynamic parameterized Cardano Plutus script.
15 stars 3 forks source link

[function]? returns CBOR #4

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

Function in the api?

HinsonSIDAN commented 1 year ago

This would be created together with example script. I would supply one with validator for testing first.

HinsonSIDAN commented 1 year ago

PoC function implemented. Next is to implement functions which are ready to be wrapped as a module, at this stage all assumes the Plutus script would take only 1 parameter:

writeV1Validator :: Validator -> CustomParam -> Api
writeV1MintingPolicy :: MintingPolicy -> CustomParam -> Api
writeV1StakeValidator :: StakeValidator -> CustomParam -> Api
writeV2Validator :: Validator -> CustomParam -> Api
writeV2MintingPolicy :: MintingPolicy -> CustomParam -> Api
writeV2StakeValidator :: StakeValidator -> CustomParam -> Api
HinsonSIDAN commented 1 year ago

Completed with latest release v1.0.0-beta