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.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 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 ...
0
votes
1answer
12 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 ...
0
votes
4answers
47 views

What is minimum RAM for running plutus-playground-server on Ubuntu VirtualBox?

I am facing this issues when running $ nix-build -A plutus-playground.server > error: 1 dependencies of derivation > '/nix/store/39qxl421bhkzks2zrra7vy3yl6qqhsib-zlib-lib-zlib-0.6.2.3-config.drv'...
0
votes
0answers
6 views

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

I noticed that in none of the examples on the playground the {-# INLINABLE myProgram #-} flag is used. Does the playground natively accept every function as template haskell?
0
votes
0answers
19 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 ...
0
votes
0answers
8 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 ...
2
votes
2answers
70 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 ...
0
votes
1answer
27 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 ...
3
votes
3answers
95 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 ...
1
vote
1answer
21 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, ...
0
votes
1answer
14 views

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

I'm using windows 11 wsl2 with Debian distro, and having issues starting nix-shell from plutus-apps directory. I have tried to make sure I followed all the steps to correctly set up nix, but I must ...
2
votes
1answer
197 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 ...
0
votes
1answer
23 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
1answer
20 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 ...
0
votes
2answers
36 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 ...
0
votes
0answers
11 views

Pioneer Program Discord WSL advice

I went to Discord to check out WLS advice that one of the peer pioneers gave me last night for building a laptop setup as insurance. Discord looked like I was muted or deleted. Have there been some ...
0
votes
3answers
33 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://...
0
votes
2answers
11 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 &...
0
votes
2answers
15 views

when i install nix on mac Os Monterey i'm getting zsh: command not found: nix

wondering if i'm not in the right path. Tried instructions for Monterey same thing occurred.
4
votes
0answers
35 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 ...
2
votes
2answers
114 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-...
1
vote
3answers
38 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?
0
votes
0answers
13 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
26 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 ...
0
votes
1answer
83 views

Haskell Language Server - linker error: symbol sqlite3_fts3_may_be_corrupt

When I run haskell-language-server in nix-shell in plutus-pioneer-progam i get this error. sqlite3_fts3_may_be_corrupt whilst processing object file /nix/store/jmhwwzn1yfjzlxavz16afkf1r4shmp8z-...
3
votes
2answers
27 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 ...
0
votes
2answers
23 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
14 views

Various Errors on Nix-Shell

I've been following the Vagrant setup instructions found here https://docs.plutus-community.com/docs/setup/Vagrant.html Every time I open a new terminal I get a different error when calling nix-shell. ...
2
votes
1answer
63 views

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

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 ...
1
vote
1answer
38 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 ...
1
vote
2answers
30 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
1answer
18 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
0answers
24 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/...
0
votes
1answer
51 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 ...
0
votes
1answer
13 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 ...
1
vote
3answers
64 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 ...
3
votes
2answers
61 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 ...
2
votes
1answer
23 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 = ...
1
vote
6answers
92 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 ...
0
votes
2answers
104 views

plutus-playground-client crashes on Intel Mac (Big Sur)

After setting up environment for cohort 3 of the pioneers program, running the plutus-playground-client crashes on my Intel Mac (Big Sur). I've been able to successfully set up Nix and all the code ...
0
votes
2answers
38 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 ...
0
votes
0answers
12 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
17 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 ...
3
votes
3answers
294 views

nix-shell did not create the server/client directories

I am trying to follow the instructions in https://docs.plutus-community.com/docs/setup/Ubuntu.html The nix-shell command completes without any errors. But, I cannot cd to plutus-plaground-server or ...
2
votes
1answer
23 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 ...
2
votes
0answers
27 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/...
0
votes
0answers
11 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 ...
5
votes
2answers
147 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 ...
0
votes
1answer
24 views

cabal: Error parsing project file

Just posting this here just in case anyone searches this stackexchange for this and doesn't find the answer like I did. If anyone runs into this error while doing a cabal build in the plutus-pioneer-...
1
vote
1answer
34 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 !