-
Notifications
You must be signed in to change notification settings - Fork 213
Request for dApp deployment documentation/how-to's #59
Comments
It was not very clear to me, how signing/security will happen, until I read your issue, so thank you. From testing/emulator we never saw anything about a smart contract endpoint producing an output as link but it really seems to be a right answer for security which is similar to my wondering issue about signing too. But then It starts to be confusing, to me at least, because our current (from tutorials to examples) pab smart contract are using functions like Does that mean that these functions should not be used for real code? Are we able currently to generate such kind of links? |
I have also found this https://github.com/input-output-hk/plutus/blob/master/notes/smart-contract-backend/scb.md which should cover the expected process. |
ok google was my friend this time: https://input-output-hk.github.io/cardano-wallet/user-guide/common-use-cases/pab It was way much clear in the process definition, still wondering if we have to create explicitely balance Tx from smart contract code. |
@bhoudebert Here is some more details on PAB: https://plutus-apps.readthedocs.io/en/latest/plutus/explanations/pab.html |
Thxs I already read this =) I just found that we have to run the PAB with For now calling a PAB endpoint is sending an unbalanced tx to the cardano-wallet which I assume triggers something like ask the client to sign it. Not too far from there as I face an issue with the wallet endpoints mock wallet versus pab expectations (apparently not aligned) |
@bhoudebert |
@mikekeke I will have a look thanks, I did use also some docker for several parts (mostly wallet+node) but I think had issue again with some wallet validation. I also saw something like |
@bhoudebert , also readme here has some instructions: https://github.com/input-output-hk/plutus-apps/tree/main/plutus-pab/test-node
I'm not quiet sure yet what is it atm. For our tests we used cardano-wallet integration and transaction signing was performed by cardano-wallet. |
@mikekeke yes I used also this part but I remember that we using the local cluster the wallet was not aligned v2 api was missing. That's why I was trying to run it also from sources. The docker-compose from cardano-wallet is a good start for that (just miss the chain index in it) letting us run our pab from sources. Yeah I can confirm current issue is dapps/pab is sending a balancedTx on I'll try to have a look at sources to see if it is a version used issue or else NB: feels really weird to have hardcoded mock mention in https://github.com/input-output-hk/plutus-apps/blob/main/plutus-pab/src/Plutus/PAB/Webserver/API.hs |
I think a lot of issues could be related to plutus-starter that was based on |
I think this PR #119 should solve one part of the problem, unfortunately don't see yet in it any updates to the samples or readme. |
Yeah I just saw that too, they are starting it! |
Hey all; I'm going to close this issue as it's a little bit unwieldy; but please do feel free to open more specific tickets so that we can address them :) Thanks! |
Area
[] Plutus Foundation Related to the GHC plugin, Haskell-to-Plutus compiler, on-chain code
[x] Plutus Application Framework Related to the Plutus application backend (PAB), emulator, Plutus libraries
[] Marlowe Related to Marlowe
[] Other Any other topic (Playgrounds, etc.)
Describe the feature you'd like
While working on deployment story it feels like explicit description of workflow of how to go from
On-chain + Off-chain code
todApp
is missing.It looks like for dApp beind deployed developer need:
Contract
endpoints to PAB handlers and build PAB executable withContract(s)
embedded in it.user wallets
to balance and sign partial transactions, built byOff-chain code
ofdApp
Some parts of the workflow doesn't look quite clear considering the following:
For providing REST API for
Contract
several examples available now:Simulator
related from pioneer lectures - seems to be outdatedSimulator
related for uniswaprunWith
fromPlutus.PAB.Run
- linkWhat is the recommended way to start "production" version of PAB for
Contract
?(It looks like last one is a way to go, as PAB demo uses it)
PAB configuring: how to start PAB with ability to:
Note: a way to start chain index for testnet (Alonzo testnet as example):
PAB - WBE integration.
WBE docs says that:
Hosted deployment scenario says that:
Does this mean, that
dApp
developer's task will be to deliver link for partial transaction to user throughdApp
's frontend, and then user will click it and whatever wallet registered for that (and if it works through WBE) will execute REST API call with CBOR-encoded transaction in request body as Using Cardano Wallet with Plutus Application Backend describes it?Who then submits transaction after it's balanced and signed -
PAB
orWallet
? IfPAB
, how does it get signed and balanced transaction back from the user?Describe alternatives you've considered
Cover topics above in some How-to documentation section.
Additional context / screenshots
The text was updated successfully, but these errors were encountered: