Comments (13)
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 submitTx
and even some awaitTxConfirmed
and they obviously not saying anything about any external signing flow (which is great for testing so)
Does that mean that these functions should not be used for real code? Are we able currently to generate such kind of links?
from plutus-apps.
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.
from plutus-apps.
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.
from plutus-apps.
@bhoudebert Here is some more details on PAB: https://plutus-apps.readthedocs.io/en/latest/plutus/explanations/pab.html
from plutus-apps.
Thxs I already read this =)
I just found that we have to run the PAB with runWith
(found it in plutus-app instead of starter) instead of Simulator.
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)
from plutus-apps.
@bhoudebert
Maybe this will be useful: how to PAB
This is 1st iteration of our "how-to". Questions, suggestions and corrections are welcome =)
from plutus-apps.
@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 signingProcessConfig
did you achieve by chance to trigger this kind of process?
from plutus-apps.
@bhoudebert , also readme here has some instructions: https://github.com/input-output-hk/plutus-apps/tree/main/plutus-pab/test-node
I also saw something like signingProcessConfig did you achieve by chance to trigger this kind of process?
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.
from plutus-apps.
@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 /v2/wallets/$WALLET_ID/transactions-balance
and it fails because of wrong alignment contract: Expected String got JSON.
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
from plutus-apps.
Added: POST /wallets/{walletId}/transactions-balance (warning under development, may not behave as expected)
it is not totally ready so that is maybe why PAB could be not aligned.
I think a lot of issues could be related to plutus-starter that was based on plutus-starter-devcontainer/v1.0.14
and not the latest re-release/release of plutus-apps (v2021-11-05)
from plutus-apps.
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.
from plutus-apps.
Yeah I just saw that too, they are starting it!
from plutus-apps.
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!
from plutus-apps.
Related Issues (20)
- Running the suggested command for evaluating the plutus benchmark fails HOT 1
- plutus-chain-index swagger documentation isn't complete and/or rendering correctly HOT 1
- plutus-use-cases-scripts not working for generating scripts HOT 2
- Missing export method in Ledger Tx
- Error: Dependency on unbuildable library 'gen' from cardano-api HOT 8
- plutus-pab/pab-blockfrost: Blockfrost version incompatible with Preprod environment HOT 1
- missing dependency HOT 3
- fromCardanoTxOutDatum is creating OutputDatumHash but receiving TxOutDatumInTx HOT 1
- Emulator log not working for QuickCheck and Plutus.Contract.Test.ContractModel HOT 1
- Wen inline datum? HOT 1
- The `create-script-context` tool fails with `TextEnvelopeTypeError` HOT 2
- What is the status of plutus-apps? HOT 3
- `plutus-script-utils` is incomparable with `plutus-ledger-api >= 1.2` HOT 1
- State Machine can take benefit of inline datum HOT 1
- create-script-context - Custom redeemer no longer works for PlutusScriptV1 HOT 2
- test
- Serializing Plutus Scripts
- Why doesn't this contract work? HOT 2
- "The second data argument, does not decode to a context" when minting NFT with Mesh HOT 1
- Vesting use case succeeds even if validator is set to True HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plutus-apps.