All Questions
Tagged with plutus-playground plutus
53 questions
7
votes
0
answers
102
views
Developers are having dismal experience building on Cardano [closed]
When developers get into plutus playground, 10 out pf 10 expect it to work like remix, an IDE. You put a code in. You compile and deploy. And then start interacting with the dApp. All in the same ...
4
votes
3
answers
160
views
How do users interact with smart contract?
In plutus playground, there is an example called “Vesting”. In the simulation, users can interact with this smart contract by click on “vest fund” or “retrieve funds”.
Now suppose that we compile this ...
0
votes
1
answer
35
views
Plutus Playground - mustPayToTheScript - unexpected char escapes - 0 converted to \NUL, 1 to \SOH
I am having trouble with the mustPayToTheScript function - I am getting this error
Contract instance stopped with error: "WalletError (InsufficientFunds \"Total: Value (Map [(,Map [(\\\"...
1
vote
0
answers
56
views
Plutus Playground WalletError: InsufficientFunds
I am running my smart contract on the plutus-playground and getting the error below:
Contract instance stopped with error: "WalletError (InsufficientFunds \"Total: Value (Map [(,Map [(\\\&...
1
vote
1
answer
45
views
Plutus Playground parsing Wallet error: EndpointDecodeContractError
I ran the code from this plutus playground tutorial in the online playground
https://playground.plutus.iohkdev.io/doc/plutus/tutorials/basic-apps.html#
I'm getting this error when entering a number ...
1
vote
0
answers
18
views
Why can't I use the same wallet more than once in Plutus Playground?
I'm currently testing my app in the "Plutus Playground" and the simulation will not let me call an endpoint from the same contract more than once.
When I try to use the same wallet, the ...
1
vote
1
answer
57
views
Where does the PAB run?
I understand that PAB is a backend that:
provides a standardized environment in which Plutus applications run
provides disciplined state management
presents discoverable interfaces to the external ...
0
votes
1
answer
46
views
Error signer not found - txInfoSignatories
I'm trying to implement lock and withdraw of an NFT, but when I tried to check the signer on-chain with the function:
signer :: PubKeyHash
signer = case txInfoSignatories (scriptContextTxInfo ctx) of ...
0
votes
1
answer
154
views
Select only one UTxO from script address
I need to get only one UTxO from the script address, where its datum hash matches the redeemer hash. For example I have locked two UTxO with 10 Ada and the DatumHash "house" at the script ...
1
vote
1
answer
140
views
Interpreter Error (error CallStack (from HasCallStack))
Im getting an interpreter error on the Plutus playground commit 3f84ea4fe3924cb7ee614da2b22c64c02c1177e6. I get it whenever I run the purchase endpoint.
This is the error
Main.hs: This must be ...
1
vote
1
answer
103
views
On the off-chain code of homework 3 cohort 3
I was solving homework1.hs of week 3 of the third cohort and I think there is something wrong with the off-chain code of the solution given the validator. Namely the following, the off-chain part does ...
1
vote
1
answer
74
views
Smart contract configuration
Is it possible to write smart contract validator that would check:
if UTXO that contains service price information was included so only script can read what is actual price of the service.
UTXO with ...
4
votes
1
answer
124
views
How do I test the on-chain validator in Vesting.hs?
In Plutus Pioneer Program, Iteration #3, Lecture #3, Part #4 at 27:48, Lars mentions that he wrote the contract code in a way that invalid transactions will always be caught by the off-chain code. So ...
0
votes
1
answer
62
views
printSchemas error compiling in Plutus Playground
I am getting this error when I try to compile the homework for Week03 of the plutus pioneer program:
You need to import `printSchemas` in order to compile successfully, you can do this
with either
...
1
vote
1
answer
86
views
cardano-cli not showing utxo but Testnet Blockchain Explorer does
I have requested funds via Faucet, twice in fact because the first one I thought the request didn't go through but when I run:
cardano-cli query utxo --address $(cat 01.addr) --testnet-magic ...
0
votes
1
answer
50
views
Can anyone see whats wrong with my off-chain code
Im trying to create and send a utxo of tokens to a wallet through collectFromScript and I cant seem to get it to work. Can I get some help? I am trying to create a valid input for the ...
0
votes
0
answers
58
views
npm start is failing
Had worked all last week.
This week after messing around to get cabal repl working, npm start has been abending.
Screen shot attached.
Tried as suggested "GC_DONT_GC=1 npm run start" It ...
0
votes
1
answer
46
views
ConnectionError: There was a problem with the response body: Unexpected token T in JSON at position 0
I am having an issue with compiling any contracts on the local playground. It doesn't matter even when trying to compile the example contracts that are provided I keep getting this error. I have no ...
4
votes
2
answers
190
views
What documentation works with handling utxos at the Plutus Script?
I am trying to make a Plutus smart contract which takes tokens locked to the contract and then on endpoint call (purchase) sends 1 to the caller and then the rest back to the contract. I cant find a ...
0
votes
2
answers
77
views
Can I control the amount spent by a plutus Script
I know that you can use collectFromScript to take all of the value from a script but is there a way to make it so you only take 1 ADA from a Script that holds 100 ADA?
Thank you
1
vote
0
answers
28
views
Problem with Lesson 5 code on newer version
I am trying to get signed token up and running on the Plutus playground from lesson 5 and I'm running into an issue with I believe is a depreciated variable of PubKeyHash does any body know the ...
1
vote
3
answers
71
views
Seller pays the fees?
Is it always the case the seller pays the fees? Is this built in the protocol or is it possible to have buyer pay the fees?
1
vote
1
answer
42
views
Cannot find definitions of tx___ functions in English Auction script
I might be missing some thing but in the English Auction script I am unable to find the definitions of the function that starts with tx:
txOutDatumHash
txInInfoResolved
txOutValue
txInInfoResolved
....
0
votes
1
answer
24
views
Error evaluating Simulation in playground
I was finally able to run the playground and I was following exactly what the instructor was saying on the video, adding the wallets and actions but only the genesis transaction shows up when I ...
0
votes
0
answers
34
views
plutus-playground-server exits with with network error
When starting the plutus-playground-server in a nix-shell on an Ubuntu 20.04 machine (ref. step 4 in the plutus setup instructions), it terminates with the following error:
Interpreter ready
plutus-...
1
vote
2
answers
113
views
git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a for English Auction doesn't work
According to cabal.project script for the English Auction, the git branch for this plutus script is:
source-repository-package
type: git
location: https://github.com/input-output-hk/plutus-...
1
vote
2
answers
1k
views
(Solved) error:\n Variable not in scope: main :: GHC.Types.IO a0 in English Auction
I'm trying to compile the English Auction script on a local plutus-playground-client session and I'm getting this error:
error:\n Variable not in scope: main :: GHC.Types.IO a0
Any help on why ...
0
votes
1
answer
170
views
nix-build fails to build plutus or plutus-playground server/client with error: reading from file: Is a directory
I'm attempting to finish the setup for plutus pioneers cohort3 on wsl2 (Windows 10) with Ubunutu 20.04
Nix version: 2.5.1
I cloned the plutus-apps repo (and previously tried the plutus repo before ...
0
votes
1
answer
101
views
Webpack warning when starting plutus-playground-client
I am getting a warning when I run npm start on the plutus-playground-client:
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/datapool/plutus-apps/plutus-...
1
vote
1
answer
97
views
slotToEndPOSIXTime error
Firstly, when I attempt to build a repl of week01 what I get is
Then when I attempt to use slotToEndPOSIXTime I get
Any help would be greatly appreciated, thanks! Everything else works great up ...
1
vote
2
answers
285
views
nix-shell command causes error "invalid character in Base64 string"
I'm following the Plutus Env: Setup Starter Pack guideline to run a Plutus Playground Local Instance. At step 4, when running the command nix-shell, I got the error message error: invalid character in ...
0
votes
1
answer
92
views
Unable to start /plutus-apps client application
Error is occurring for MacOS 12.1 Monterey. Please, let me know, if I should include additional details.
I am going through the step noted in this document in order to setup local Plutus app: https://...
1
vote
3
answers
294
views
Error running plutus-playground-client in Linux
I have successfully installed nix, cabal and have setup the IOHK binary cache. I cloned the plutus-app repository and successfully built the Haskell packages and other artifacts with nix. Then running ...
2
votes
2
answers
112
views
(Solved) Error building Plutus Application Framework
I am trying to build the Plutus Application Framework. I'm running on Archlinux and both Nix and cabal are installed properly as far as I can tell. I have also set the IOHK Binary Caches.
However when ...
1
vote
1
answer
106
views
Error Starting plutus-playground-client
I'm having error running the plutus-playground-client. Not sure where to look, here is the complete error log. Any suggestions on how to fix?
0 info it worked if it ends with ok
1 verbose cli [
1 ...
2
votes
1
answer
72
views
Plutus pioneer program - Lecture #1 - Can't understand behaviour of transactions
Why is the second bid of wallet 2 getting ignored when I test it like this? If the first transaction of wallet 2 was also valid, then the second suceeds. I'm just curious if this is somehow expected ...
4
votes
1
answer
59
views
Choosing Ubuntu over WSL for Plutus development
I use a low end laptop as my daily driver running a WSL Ubuntu-20.04 as my platform of choice. When trying to run the plutus-playground it often crashes. Should I try using Ubuntu or any other Linux ...
2
votes
1
answer
131
views
plutus-playground-server: user error (Error evaluating simulation: JsonDecodingError
I'm following the first lecture in the plutus pioneer program but I cannot set up the local environment. The error happens when running npm start on a nix-shell after initializing the playground ...
1
vote
1
answer
85
views
Failing to set up plutus on windows
So I'm using WSL Windows 10 and I set up IOHK hashes, but everytime I run nix-shell I get following error:
build of '/nix/store/9im4jp068ykqsm4s8996px605p6zrw7q-Agda-plan-to-nix-pkgs.drv' failed. ...
2
votes
1
answer
90
views
What is the benefit of installing plutus playground locally?
In these instructions for working through the plutus pioneer program, it suggests installing the playground locally:
https://tutorials.cardanoacademy.io/plutus-pioneer-program/setting-up-plutus-...
4
votes
1
answer
145
views
Setting up Plutus environment for Apple Silicon computer
I'm trying to setup dependencies to write and test plutus contracts, but I'm worried that the dependencies may not be compatible with the M1 chip.
I have been following these instructions https://www....
6
votes
1
answer
142
views
How can you run the Plutus Playground and serve the Haddock documentation from the VSCode DevContainer?
I am still looking to settle on a dev environment for Plutus contracts.
I am thinking about using VSCode with the devcontainer, but would like to know how well it all integrates. Is it easy to have ...
6
votes
2
answers
183
views
Plutus Pioneer Cohort 2 Lecture 3
I was going through the lecture on Youtube and this is the one with Vesting example where:
wallet 1 gifts 20 ADA to wallet 2 in 2 different slots
wallet 1 gifts 10 ADA to wallet 3 in a slot
later on, ...
3
votes
1
answer
66
views
Is there any keyword to get the epoch details or stake-pool details in Plutus Smart Contract?
I am trying to write a smart contract where I can get the awards for delegators of a particular stake pool. I need to know if that is right now possible to do using Plutus, if yes, pls suggest me.
5
votes
2
answers
184
views
npm build of plutus client fails with "permission denied"
I am trying to run the Plutus playground using the Gitbook recipe (https://docs.plutus-community.com/docs/setup/WindowsWSL.html).
At step 15, the server starts fine, but trying to run the client with &...
5
votes
1
answer
421
views
What does @ prefix means?
like this:
auctionInstance = Scripts.validator @Auctioning
and Hello-world app from https://playground.plutus.iohkdev.io/tutorial/tutorials/plutus-playground.html#running-the-hello-world-app
hello = ...
7
votes
3
answers
186
views
Deriving Show Compilation Error on Plutus Playground
I seem to be getting a compilation error when I try to compile any of the example files on my local host configuration for the Plutus Playground. The error is pictured here:
And basically it seems ...
4
votes
1
answer
254
views
Writing basic validator scripts
I need someone to explain to me line by line. The code is from plutu tutorials. https://docs.cardano.org/projects/plutus/en/latest/plutus/tutorials/basic-validators.html
All the code in that page I ...
3
votes
0
answers
149
views
Using Plutus PAB for development instead of Playground
trying to migrate away from the playground and seems like PAB is the way to go. The plutus starter repository orignally seems to be the best place to start but it seems to be outdated (i.e. still ...
6
votes
2
answers
592
views
I'm having issues with nix-shell
I keep getting this error, any thoughts? I have re-downloaded nix 3 times now and it's the same error as before. Not sure if it's the profiles or channels but this is what it gives me:
'''trying https:...