Questions tagged [plutus-pioneer-program]

A program to recruit and train developers in Plutus for the Cardano ecosystem. Use this tag for questions regarding the Plutus pioneer program, its lectures or homework.

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
203 views

Questioning Plutus API design decision

In Lecture 10 from the Plutus Pioneer Programm there is a replica of the Uniswap Smart Contract built on top of Plutus. It is actually part of the standard Plutus use cases Plutus Uniswap To have a ...
4
votes
0answers
37 views

Where can I find design and documentation resources on Plutus Staking smartcontracts?

When I was exploring haddock of Plutus I have found that Plutus script can have Rewarding ScriptPurpose: data ScriptPurpose = Minting CurrencySymbol | Spending TxOutRef | Rewarding ...
3
votes
5answers
121 views

What is the purpose of the `valHash :: Ledger.ValidatorHash` function in the Plutus Pioneer Program's Week 2 homework?

The homework for Week 2 involves implementing validators for two Plutus contracts. Details are here. Spoiler alert! This probably gives away the answer to Week 2's first homework problem: -- ... ...
3
votes
1answer
35 views

English Auction rejected translations are not shown

I have made a sample scenario: Start auction with a deadline of +10 slots wait for 12 slots Bid Wait for 1 slot to allow TX to be processed The third transaction is not shown - which is ...
3
votes
0answers
48 views

What happened to {-# INLINABLE ____ #-}

What happened to the use of INLINABLE why don't I see it used like it was before in the Plutus pioneer program. Was their an update?
3
votes
1answer
113 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 ...
2
votes
1answer
56 views

HLS Compiler Error PPP Week01 (WSL2 + VSCode)

I'm trying to get HLS (Haskell Language Server) working in VSCode using WSL2 so I can get type hints. I've already ran through the week01 instructions so I have a working nix installation. However, ...
2
votes
1answer
30 views

How does setting up our environment for the course differ from what we'd be doing in production?

I was able to set up my development environment for the course thanks to the help from others in the discord and the guides they developed. I understand that this helps us set up the plutus ...
2
votes
0answers
23 views

How to reuse data when updating Token using StateMachine

I'm currently creating a social network-like Dapp on plutus, and I've come across something I don't understand. My Dapp, for example, is NFT(for own identity)->RFT(for sell own content)->NFT(for ...
2
votes
1answer
104 views

"bash: plutus-pab-generate-purs: command not found" issue when run plutus-playground on Ubuntu

I've followed guide for running plutus-playground . But when I npm run start on plutus-playground-client, it says 'bash: plutus-pab-generate-purs: command not found'. Please check screenshot on ...
1
vote
1answer
8 views

Incorrect Pub Key from Wallet Emulator

I am getting incorrect pubkeys by running mockWalletPaymentPubKey $ knownWallet 1 and mockWalletPaymentPubKey $ knownWallet 2 (from here https://youtu.be/ae7U_yKIQ0Y?t=1390). I checked that I am in ...
1
vote
0answers
26 views

Applycode to untyped validator, template Haskell

I am trying to learn the basics of the PlutusTx module. In this module is a function applyCode which maps the signatures CompiledCodeIn uni fun (a -> b) -> CompiledCodeIn uni fun a -> ...
1
vote
1answer
17 views

Im trying to split up a utxo in a Script into a value of 1 ada what do I do

Here is my code currently it ends up sending all of the value on the script to the caller but I only want it to send 1 ADA. How do I fix this? Is there anyway to create a smaller output to send ...
1
vote
0answers
23 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
0answers
18 views

Does the plutus playground make all defined function inlinable by defauld?

I noticed that not in all of the examples on the playground the {-# INLINABLE myProgram #-} flag is used. Does the playground natively accept every function as template haskell? Why do some examples ...
1
vote
1answer
50 views

Cabal build error

Ciao folks! I followed the instruction to build the EnglishAuction.hs contract but I am getting the following when run the cabal build command. Warning: Requested index-state 2021-10-20T00:00:00Z is ...
1
vote
1answer
38 views

Get errors when trying to generate Haddock documentation using build-and-serve-docs

On Windows 10 with WSL2 (Ubuntu) I go to plutus-apps, then run nix-shell, there after I run build-and-serve-docs from within nix-shell See image for errors.. After build I can access a documentation ...
1
vote
1answer
34 views

error: suspicious ownership or permission with nix-shell command on plutus-apps repository

Using the nix-shell command in a docker container on GitHub codespaces results in the following error: $ nix-shell --show-trace trace: To materialize project.plan-nix for cabal-install entirely, pass ...
1
vote
1answer
21 views

plutus playground simulator wait action question

When using the plutus playground simulator: I'm having trouble finding documentation on the simulator wait actions. What are the differences in functionality between the "wait for" and &...
1
vote
1answer
35 views

Plutus Cohort 3: slot count why 11 and not 14

I ran the auction exactly as shown. The slot count at the closing (after the additional wait) comes up to 14, not 11, as shown in the video. (if I add all the waits, the result is, indeed, 14). If the ...
1
vote
3answers
49 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
2answers
81 views

Error compiling Week01

I'm on commit: 41149926c108c71831cfe8d244c83b0ee4bf5c8a of the plutus-apps repo (I've also tried 7f53f18dfc788bf6aa929f47d840efa1247e11fd, doesn't seem to make a difference). When running cabal build ...
1
vote
1answer
30 views

How to create a smart contract constant variable?

I am using state machines to create a smart contract. How can I create a variable that will be defined by the user when it runs the first step of the state machine and that then can't be modified ...
1
vote
2answers
79 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
4answers
139 views

WSL2 install - plutus fails to build, unable to open db file in 'nix/var/nix/db/db.sqlite'

I'm attempting to finish the setup for plutus pioneers cohort3 on wsl2 (Windows 10) with Ubunutu 20.04. When I run the command: nix --extra-experimental-features nix-command build -f default.nix ...
1
vote
2answers
67 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 ...
1
vote
1answer
71 views

Playground client can't connect to playground server (all localhost)

I am on an Intel based iMac Pro running Big Sur (11.6.1) I have followed every variant of the local playground setup I can find (all are some version of page 2 in this document https://docs.google.com/...
1
vote
1answer
59 views

Building PAB error: attribute 'plutus-pab' in selection path 'plutus-pab' not found

I am following https://docs.plutus-community.com/docs/setup/MacOS.html I know the plutus-apps repo is newer than those docs and have downloaded it but it seems I can't build plutus-pab. When I run $ ...
1
vote
1answer
77 views

cabal fails to build plutus-core

When installing plutus starter on a Mac M1 running macOS 12.1 Monterey, the command cabal build logs the following error, even after updating cabal: Failed to build plutus-core-0.1.0.0. Build log ( /...
1
vote
1answer
52 views

WSL2 Plutus env setup - docker load error: attribute 'devcontainer' in selection path

docker load < $(nix-build default.nix -A devcontainer) error: attribute 'devcontainer' in selection path 'devcontainer' not found -bash: $(nix-build default.nix -A devcontainer): ambiguous redirect ...
1
vote
1answer
79 views

VSCode + Docker setup problems on Windows

I'm trying to setup the local enviroment by the VSCode + Docker way, because i find it easier for a newbie like me. I open the cloned repository on VSCode but when y click on the button to reopen it ...
1
vote
1answer
114 views

VSCode/Docker Setup Starter Pack problems

I'm trying to implement the 4th option of the starter pack setup using docker/vscode on my mac M1. I followed the instructions carefully from the github repository, but I'm getting errors. I'm new ...
1
vote
1answer
38 views

How do I call the amount of ADA sent to a validator script in an Integer

I am trying to create a validator function that only lets the user send ADA to the creator of the script if the user sends x amount of ADA how to I find out the amount of ADA the user sent and then ...
1
vote
0answers
33 views

Is there an established pathway yet for someone with a purely mathematical background to become a fully equipped Cardano developer? If so, what is it?

Title asks my question. I have a mathematics degree (undergrad) and have dipped a toe in the water of software development in Python, but have no clue where the optimal place to start to become an ...
1
vote
0answers
61 views

Plutus Pioneer Program Week01 : Installing plutus - Unable to start server if syncing plutus with plutus-pioneer-program version

In the plutus-pioneer-program/code/week01 folder, I got the tag as tag: ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4 The git log tag for plutus was 9879b31579d0deb863f3cdf27f93419deec3b4bb So I used git ...
0
votes
0answers
25 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
0answers
19 views

VS Code Remote VM IntelliSense Issues

I was having trouble getting Plutus running properly on Windows & WSL2, so I spun up an Ubuntu Server VM on my Proxmox server and set everything up there. I use VS Code via SSH to connect from ...
0
votes
1answer
19 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 ...
0
votes
0answers
25 views

How can I configure Ale so it finds Plutus libraries?

I'm using nvim with Ale, no particular config other than: Plug 'w0rp/ale' let g:ale_sign_error = '●' let g:ale_sign_warning = '●' It looks like works out of the box for Haskell, but cannot find ...
0
votes
0answers
28 views

week 02 - Pioneer cohort 3: Failed to build lzma-0.0.0.3

I am on week 02 of the 3rd Pioneer Cohort. I am working on a Mac Mojave; when I get to running cabal repl I get this error: Failed to build lzma-0.0.0.3. The failure occurred during the configure step....
0
votes
1answer
39 views

nix doctor --verbose [FAIL] Multiple versions of nix found in PATH, on MacOS i7

After performing a git commit tag update on plutus-apps, I restarted my computer, and ran nix doctor --verbose and got the following FAIL [FAIL] Multiple versions of nix found in PATH: /nix/...
0
votes
0answers
21 views

working on Mac: the link for 'build-and-serve-docs' did not work in terminal

Got a question here, I was working on the pioneer-course week one and trying to get this link working for 'Build-and-serve-docs' and couldn't get it to work. It did not give any error messages either. ...
0
votes
0answers
15 views

Can I defined my own TxConstraints to be validated on-chain?

Can I defined my own validation function which would be used while validating a script transaction on-chain? If so, how to go about it? For example, let's say that the function would check if a given ...
0
votes
1answer
38 views

Error on "cabal build" - Week01 - warning is in EnglishAuction.hs

My cabal build ended in a warning - yet not sure if this needs to be resolved or if build completed ? Seems like build aborted over a warning ? Below is the warning that seems to have aborted the ...
0
votes
0answers
18 views

Auction contract example with metadata

In the example of NFT Auction, I am thinking about potential scenarios where certain JSON metadata an NFT was minted with, happens to be required in some arbitrary logic within auction process (artist ...
0
votes
0answers
22 views

Not in scope: type constructor or class ‘PaymentPubKeyHash’ - Week 1 Pioneers Exercise

I'm trying to compile the week 1 code on plutus playground hosted locally, but I'm getting this error: error: Not in scope: type constructor or class ‘PaymentPubKeyHash’ | 57 | { aSeller ...
0
votes
1answer
24 views

clarifying awaitTxConfirmed behavior

Question for Plutus Pioneer cohort 3 Q&A week 1 I'm new to plutus dev and trying to clarify the behavior of awaitTxConfirmed. From the docs and other questions I've seen, it seems that the line ...
0
votes
1answer
29 views

nix-shell : getting error "Index state found was 2021-10-20T00:00:00Z and no `index-sha256` was provided."

I'm having issues starting nix-shell from the plutus-apps directory. I have followed the steps provided here: https://docs.plutus-community.com/docs/setup/WindowsCohort2.html. Below is the full output ...
0
votes
0answers
24 views

Failing to start Nix-Shell in Windows Terminal with WSL2

I'm attempting to start a nix-shell from the top of my plutus-apps repository using Zsh on Windows Terminal (I'm running Ubuntu on WSL2). This is what I see when I run nix-shell. Any idea what I ...
0
votes
1answer
22 views

English Auction Compilation Failure. Need help understanding the compile error message

UPDATE: Issue solved. Since the message appeared to me to be a timeout issue (I'm a mainframe programmer so I'm crash coursing on understanding thrown error messages on this paltform), I took a chance ...