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
1
vote
0answers
11 views

What is a round trip problem? and why using Unstable functions could cause it? (unstableMakeIsData)

Lecture 2 of plutus-pioneer-program, introduces unstableMakeIsData In the lecture it is advised to use the Stable version in production. Lars explains that the Unstable version does not make any ...
0
votes
1answer
24 views

Question about funds in the "burned" example

On the "burned" example*, do those burnt tokens go back to being available from the reserve and to be rewarded back to circulation or are they locked and lost forever ? If so, then is it ...
0
votes
1answer
16 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 ...
6
votes
1answer
95 views

on multiple eUTxO and the validation proces

I have an in-depth question that needs good knowledge of the ledger rules. I was thinking about how to program efficiently and design apps such that they are parallelizable, a good practice for ...
5
votes
3answers
1k views

What does "off-chain code lives in the wallet" mean?

That terminology was used in PPP3 lectures, but what does it mean? The spending transaction should follow rules of the smart contract as was answered here Can blockchain viewers read the source code ...
1
vote
2answers
36 views

What documentation works with handling utxos at the Putus Script

I am trying to make a Plutus smart contract which locks tokens to the contract and then on endpoint call sends 1 to the caller and then the rest back to the contract. I cant find a distribution model ...
1
vote
2answers
49 views

How are values in UTXO's stored

Are values in UTXO's stored in a set manner for example if 50 Tokens with metadata and 50 tokens without metadata had the same Token Name and currency symbol and were to be handed out from a script 1 ...
4
votes
1answer
45 views

Week 2 - Homework - valid validator call true/true after invalid call true/false from same wallet doesn't go through

I managed to get the homework transactions to work as expected (happy), so far so good... I also tried the following scenario which did not work. Q1: Why doesn't it work? Q2: How would it be possible ...
0
votes
2answers
33 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
4
votes
2answers
570 views

Can blockchain viewers read the source code of a smart contract if they know its address?

I'm curious, is it possible to find the source code of the validation script of a smart contract (as well as other parts) that is already on the blockchain? Or this code automatically picking up into ...
0
votes
0answers
24 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
25 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....
1
vote
1answer
65 views

Where does the `mustPayToTheScript` function gets the script address from?

On the plutus pioneer program, lesson 02, Lars shows the parameterized contracts and on the off-chain code he makes use of the mustPayToTheScript function to create the transaction. Different from ...
0
votes
1answer
35 views

new type and JSON

Working on Week 2 Homework 1, I tried to define a new type DuBool. The following is the relevant portion of the code, with the more traditional version commented out immediately above each line that ...
0
votes
1answer
15 views

Error starting /plutus-apps client and connecting to localhost macOS

Incurred an error starting /plutus-apps client and connecting to localhost: user error, Interpreter Error, CompilationErrors Short Error plutus-playground-server: user error (Error evaluating ...
0
votes
0answers
9 views

Child compilation failed [duplicate]

Hello Cardano community. This question has been asked in the community and I would like to resurface it as I am having the same problem. Ref: plutus-playground-client npm start error (MacOs Intel i7) ...
1
vote
2answers
42 views

What's the equivalent to ownPubKey in the newer version of Plutus?

In lesson 5 that they use a built in function called ownPubKey to access the wallet pubKey in the transaction on the plutus playground. This function seems to be non-existent in the newer versions of ...
3
votes
5answers
91 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: -- ... ...
1
vote
2answers
31 views

build okay locally, but fails in playground

I am trying to compile the Homework01.hs The build locally on Linux passes when I do :l src/Week02/Homework1.hs Prelude PlutusTx Ledger.Scripts> :l src/Week02/Homework1.hs [1 of 1] Compiling Week02....
0
votes
1answer
28 views

macOS Monterey i7, what is the best `nix.conf` file to use?

Does anyone have the recommended nix.conf file to use for macOS Monterey i7? Following a few different tutorials, my current .conf file looks like: build-users-group = nixbld substituters = ...
1
vote
1answer
42 views

Cannot compile parameterized mintingPolicy to Plutus

I tried compiling a solution from the examples provided in PPP Iteration #2 but got stuck. Any ideas? Code: https://github.com/ILIYANGERMANOV/cardano-smart-contracts/blob/main/ivy-token/src/MintIvy.hs ...
0
votes
1answer
54 views

Nix build error: experimental Nix feature 'nix-command' is disabled

I have this error when I try to build plutus :~/code/plutus$ nix build -f default.nix plutus.haskell.packages.plutus-core error: experimental Nix feature 'nix-command' is disabled; use '--extra-...
2
votes
3answers
69 views

Vim setup of Lars

I was wondering which Vim setup Lars uses in his video, is this perhaps natively available when we use the nix-shell? In lecture two of the third cohort his vim suggests what I guess common used ...
1
vote
0answers
22 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 ...
0
votes
2answers
31 views

Cloning the Plutus and the Plutus-Apps repositories for Plutus Pioneer Program Cohort #3

In regards to the Plutus Pioneer Program Cohort #3, do I clone the Plutus and Plutus-Apps repositories using HTTPS, an SSH key, or GitHub CLI?
1
vote
1answer
40 views

What is the GC_DONT_GC=1 variable for when running the Plutus Playground locally?

I tried to look for this but I didn't find anything specifically explaining why this fixes errors when launching Plutus Playground locally, although I definitely found instructions on how to go over ...
3
votes
0answers
26 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 ...
0
votes
1answer
26 views

Getting status of daemon-socket: Operation not permitted while invoking nix-shell (MacOs)

Plutus Pioneers Week 01 exercise. cloned the plutus-app directory edited the nix.conf file (added the iohk binaries reference) moved to the plutus-app directory After downloading, linking and ...
0
votes
1answer
37 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/...
2
votes
1answer
54 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 ...
0
votes
0answers
19 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. ...
8
votes
2answers
84 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, ...
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 ...
0
votes
1answer
46 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 ...
3
votes
2answers
48 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 ...
1
vote
1answer
37 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
31 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 ...
2
votes
1answer
51 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, ...
5
votes
1answer
233 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
0answers
20 views

Pioneer Program Discord WSL advice [closed]

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 ...
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 ...
1
vote
2answers
62 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
1answer
19 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
1answer
34 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
51 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
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
48 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 ...
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?
0
votes
1answer
36 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 ...
4
votes
1answer
51 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 ...

1
2 3 4 5