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)
- playground.plutus.iohkdev.io white page on Safari HOT 2
- Fix Crowdfunding QuickCheck ContractModel failing test case HOT 6
- Fix SealedBidAuction QuickCheck ContractModel failing test case
- Fix Prism QuickCheck ContractModel failing test case HOT 2
- mustPayToOtherScriptWithDatumInTx when used with mustSpendScriptOutput does not attach datum to the tx
- Coverage Reports No Longer Working for Contract Models
- Marconi integration test intermitently fails on CI
- Improve performance of `fromOnChainTx`
- Improve performance of `validateCardanoTx`
- Improve performance of `initiateWallets`
- Improve performance of `makeTransactionBody`
- Improve `walletState` by improving comparison of `wallet`s
- Coverage Report Static Analysis Issue HOT 1
- Unable to compile minting policy
- Unable to start Plutus Playground Server HOT 2
- PAB-Nami demo error HOT 2
- Missing files in binary cache when running nix-shell for building up the Playground HOT 1
- Will state machines be adapted for Plutus V2? HOT 2
- Cannot Run nix-shell on M1 Mac in v1.0.0 HOT 2
- Control.Monad.Freer.Extras.Beam.Postgres.DbConfig(DbConfig) failed, key \"dbConfigMarconiFile\" not found HOT 1
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.