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. Keep lecture and homework questions brief and on-topic. Give full answers that clearly explain why they resolve the problem.

Filter by
Sorted by
Tagged with
2 votes
2 answers
104 views

How to payToTheScript recording the Datum hash?

As far as I understand the function Constraints.mustPayToTheScript :: forall i o. ToData o => o -> Value -> TxConstraints i o is used to command: Hey, pay some money, Value, to the script ...
kindofdev's user avatar
  • 1,284
7 votes
2 answers
173 views

Plutus pattern/technique for finding original datum preimage of TxOutDatumHash?

Every UTXO at a script address must have a TxOutDatumHash (or will be unspendable). To spend the UTXO at the validator you provide a datum and a redeemer, the script must validate with your redeemer, ...
hrpr's user avatar
  • 83
1 vote
0 answers
26 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 ...
Fermat's user avatar
  • 1,802
1 vote
1 answer
112 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 ...
Angelo Badellino's user avatar
3 votes
2 answers
60 views

Payment eUTxO input come from wallets, but what contains/forges the script eUTx0 inputs?

The person initiating a transaction to start a transaction provides one or more UTxO from their wallet, but where does the script UTxO come from? Does the initiating participant provide a script ...
nyk's user avatar
  • 31
1 vote
1 answer
109 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 ...
HeikoR's user avatar
  • 11
2 votes
1 answer
234 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 ...
deimagjas's user avatar
2 votes
1 answer
146 views

HLS Compiler Error PPP (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, ...
FrostByte's user avatar
5 votes
1 answer
240 views

Q&A English Auction- if a wallets under bids then provides a valid bid, why doesn't it count the second good bid?

if you set up the english auction with three wallets and do the following: Wallet 1 min bid 10 Wallet 2 bids 15 wallet 3 bids 9 wallet 3 bids 20 wallet 1 closes It will got to wallet 2 and wallet ...
noone392's user avatar
  • 263
3 votes
2 answers
62 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 ...
Nimish's user avatar
  • 31
1 vote
2 answers
66 views

PPP Cohort 3 - Q&A Week1: How are eUTXOs prioritised?

As you perform transactions on the blockchain, you generate unspent transaction outputs of various sizes. When you create a new transaction, how are the UTXOs prioritised, i.e. which ones will be used ...
BurningTactician4279's user avatar
2 votes
1 answer
46 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 &...
Tom's user avatar
  • 21
1 vote
1 answer
56 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 ...
user1867563's user avatar
1 vote
1 answer
113 views

Plutus local haddock server not working

The problem: when I run build-and-serve-docs from within a nix-shell and inside the plutus-app repository, the server runs up and on the CLI i get the message Serving HTTP on 0.0.0.0 port 8002 (http://...
FTM's user avatar
  • 294
0 votes
1 answer
71 views

Can one find the English Auction Example on the Playground somewhere?

I want to open the English Auction example. I was looking for it on the playground, but couldn't find it. Where did I go wrong? First I have checked out the commit with SHA1 hash ...
Marlo's user avatar
  • 111
1 vote
3 answers
70 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?
d_fajardo's user avatar
  • 198
0 votes
2 answers
60 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 ...
HeikoR's user avatar
  • 11
6 votes
1 answer
160 views

How do you publish on-chain code to mainnet and testnet?

I've understand that the on-chain code is stored in the blockchain through Playground module which is in sync against a local node. But how to "publish" this code to run anywhere? It's an ...
Walker Leite's user avatar
2 votes
1 answer
157 views

What is the difference between "cabal build" and "cabal repl"?

What does "cabal repl" does and how it differentiates from "cabal build"? the documentation says: loads all of the modules of the target into GHCi as interpreted bytecode But I ...
F. A's user avatar
  • 23
1 vote
1 answer
41 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 ....
d_fajardo's user avatar
  • 198
0 votes
1 answer
886 views

Localhost not displaying anything after running npm start in plutus-playground-client

I'm on a Mac running Big Sur with the intel chip. I've followed all the steps to set up the local Plutus environment as suggested by Lars in the Plutus Pioneer 3rd iteration. Next step is to get the ...
Tucker Triggs's user avatar
4 votes
1 answer
47 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 ...
Rony Shtamler's user avatar
2 votes
0 answers
82 views

Pioneer Q&A question: How does the off-chain code get passed to the Wallet for execution [closed]

In the Week 1 lectures, Lars mentions that the off-chain code is to be executed by the Wallet; this makes sense as the Wallet has access to the Private Keys that would be essential in signing the ...
Gavin Harris's user avatar
1 vote
0 answers
30 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 ...
Juanma's user avatar
  • 11
0 votes
1 answer
230 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 ...
Lucas Araujo's user avatar
2 votes
1 answer
28 views

Formatted error messages in Playground

Is there any way to get the Playground errors with proper indentations? This can help read better the issue at hand. Instead of getting one huge line: (Tx {txInputs = fromList [TxIn {txInRef = ...
LexTRX's user avatar
  • 333
2 votes
1 answer
29 views

Why don't outbid wallets always have two inputs for their next bid?

I created a bidding war in Plutus Playground between 5 wallets. Wallet 2 bids first and then is outbid by Wallet 3 and got refunded as usual. Later on when Wallet 2 went to bid again with a higher ...
Taco_Man's user avatar
3 votes
2 answers
72 views

Why can any wallet close a bid?

I setup a simple start, bid, close in Plutus Playground where the following occurs: Wallet 1 starts the bidding Wallet 2 makes a bid above the min amount Wallet 3 calls close In the end Wallet 2 ...
Taco_Man's user avatar
2 votes
2 answers
149 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 ...
nciao's user avatar
  • 251
7 votes
1 answer
160 views

Pioneer Q&A question: Where is datum actually stored?

Question for Plutus Pioneer cohort 3 Q&A week 1 I'm new to Plutus dev and trying to work out where the datum value is actually stored in a typical Plutus application. From various sources (docs/...
Steve Mason's user avatar
0 votes
1 answer
29 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 ...
Steve Mason's user avatar
1 vote
1 answer
106 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 ...
brian's user avatar
  • 11
0 votes
1 answer
34 views

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

I need help. Followed the lecture up to the compile. Got this failure : ConnectionError (HttpExceptionRequest Request { host = "localhost" port = 8080 secure = False requestHeaders = [("...
CryptoBoomer's user avatar
1 vote
1 answer
38 views

IOHK Dev Workflow

Is there a standardised workflow for testing our smart contracts (i.e. something different than copy and paste from Vim into the playground) ? All the best !
Spas Kalaydzhiyski's user avatar
1 vote
1 answer
151 views

plutus-playground-client npm start error (MacOs Intel i7)

[Updated] ✖ 「wdm」: ERROR in Error: Child compilation failed: Module not found: Error: Can't resolve '/Users/fanik/development/plutus_pioneer_program/plutus-apps/plutus-playground-client/undefined/...
Fanik Fan's user avatar
5 votes
2 answers
196 views

testing the English Auction example

I've been toying around with the English Auction example and I have two questions: After an invalid bid (less than the minimum bet set for the auction) from a wallet, a second valid bid from the same ...
Mihai Codescu's user avatar
3 votes
1 answer
95 views

Is eUTxO a generalisation of UTxO

To me it sounds like UTxO is a very specific implementation of the more general eUTxO protocol. So could eUTxO be (in theory) be used to implement UTxO? Not that one would - but just to understand the ...
tcurdt's user avatar
  • 141
0 votes
1 answer
67 views

Vim errors when setting up Plutus Environment

I'm following this guide for setting up my Plutus Environment which uses Vagrant & VirtualBox. At the step: In the Vagrantfile directory run & wait for provisioning to finish: vagrant up I ...
dibrickishaw's user avatar
0 votes
1 answer
157 views

nix-build not found inside nix-shell (Linux)

Every time I enter nix-shell, I need to execute the following command, otherwise nix-build and other nix-* commands are not found. source /home/xxx/.nix-profile/etc/profile.d/nix.sh I have added the ...
Cyrus's user avatar
  • 11
0 votes
2 answers
101 views

How to resolve npm build failure after running `GC_DONT_GC=1 npm start`?

MacOs Catalina 10.15.7 (Intel) After facing issue here, I ran the command GC_DONT_GC=1 npm run start and it build some libraries, however failed with following error (plutus-playground-server was up ...
Viktor's user avatar
  • 1
2 votes
2 answers
220 views

/bin/plutus-playground-server: No such file or directory

Can't get plutus-playground-server to start. plutus-playground-server: for development use only /nix/store/601kdlvidgan842yfklrmvpbz6a5xkf7-plutus-playground-server/bin/plutus-playground-server: line ...
ryanaverell's user avatar
0 votes
1 answer
89 views

nix-build -A plutus-playground.client Error

I am part of cohort 3 and setting up on Mac OS also (Big Sur); I am following the notes here:https://docs.plutus-community.com/docs/setup/MacOS.html Was able to complete Step 9 (build library). But on ...
Siva's user avatar
  • 1
3 votes
2 answers
195 views

npm run start in plutus-playground-client throws several "Could not find module" errors

I'm trying to run the plutus-playground-client. My OS is macOS Big Sur 11.6.2 I have set up the environment with the following steps based on the nix install instructions from: https://docs.plutus-...
Woodland Pools's user avatar
0 votes
2 answers
45 views

Is Redeemer similar to <ScriptSig> in bitcoin context?

In the (e)UTxO model, discussed in the 1st lecture of PPP#3, I am trying to understand the differences between the UTxO model of Bitcoin and the (e)UTxO model of Cardano. From what I understand, the &...
wakathi's user avatar
  • 100
3 votes
3 answers
171 views

Running week01 expressions in repl

I am new to haskell and I am trying to run a few expressions from the English Auction Contract in the repl. So if I want to run ValidatorHash "f" from the second last line of the Contract in ...
Roofi's user avatar
  • 125
0 votes
3 answers
63 views

Is nix on an Intel Mac too problematic?

After too many errors I didn't know how to fix. I removed nix, even that was difficult. The nix blog show some progress in supporting M1 Macs but there are still problems. Has anyone succeeded with ...
Gary Struthers's user avatar
0 votes
0 answers
30 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-...
Paul Gardner's user avatar
1 vote
1 answer
57 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 ...
FTM's user avatar
  • 294
0 votes
1 answer
69 views

VSCode + Docker setup problems on Mac (Intel)

I am following the steps as described in the repository, using VSCode and Docker. https://github.com/input-output-hk/plutus-starter All the dependencies looks good, but it failed on building the ...
Rogério De Leon Pereira's user avatar
0 votes
1 answer
45 views

What goes inside the block?

After going through lecture 1, where can I find out more information about what is stored in each block in blockchain ? I am guessing that all the UTxOs and the script addresses will be there, as well ...
wakathi's user avatar
  • 100

1
4
5
6 7 8