input-output-hk / plutus-pioneer-program

This repository hosts the lectures of the Plutus Pioneers Program. This program is a training course that the IOG Education Team provides to recruit and train software developers in Plutus, the native smart contract language for the Cardano ecosystem.
1.39k stars 986 forks source link

[PPP 040305] How to integrate Parameterized Contracts with Lucid ? #107

Closed ahaxu closed 1 year ago

ahaxu commented 1 year ago

From this video about Offchain Code with Lucid

do we have any example of integrating Parameterized Contracts(ParameterizedVesting) with Lucid ? in this case (parameterized validator), how do we generate plutus script in CBOR when end user input there param, for eg: the beneficiary and deadline?

I found this about minting policy with parameters (parameterized minting script). But, i'm not sure how the parameterized minting script written.

p/s: idk what is best way to solve this, my work around solution for this is we should pass the end user's json payload to a proxy which call to cli that generate the plutus script with the json payload.