Skip to main content

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.

83 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
287 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 ...
Marco Jakob's user avatar
6 votes
0 answers
150 views

Cannot Get haskell-language-server running - duplicate symbol "sqlite3_fts3_may_be_corrupt"

hoping someone can help with this So, I would like to get the haskell-language-server running, in the context of the plutus-pioneers-program, so that in VS Code I can Ctrl+Click and view type ...
Benjamin Moore's user avatar
4 votes
1 answer
49 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
3 votes
1 answer
130 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 ...
martin's user avatar
  • 91
2 votes
0 answers
29 views

npm run start in plutus-playground-client creating npm errors

edit...I was able to get the plutus-playground-client working by using --force. How do I fix the monaco-editor dependency errors so I don't need to force it? Or do I even need to worry about it? I am ...
tamio42's user avatar
  • 121
2 votes
0 answers
78 views

Issues running Chain-index on WSL2 - fully syncing but not running the webserver

I've run into an issue with the chain-index while trying to run a PAB testnet environment. The index will start up, sync to 100%, update to new blocks, but the webserver will never start. In fact, the ...
RustyCamel's user avatar
2 votes
0 answers
28 views

About Fees in the Plutus Playground

I had been reviewing sample codes that can be run in the Plutus Playground, particularly the Vesting.hs code in Cohort #3 Week #3 of PPP. So while trying several cases in the simulation, I sometimes ...
omegafer's user avatar
  • 106
2 votes
0 answers
116 views

Optimising validators with `BuiltinData -> BuiltinData -> BuiltinData -> ()` and building tx with cardano-cli

In one of your previous classes you said that some teams are optimising their contracts with this type of validator BuiltinData -> BuiltinData -> BuiltinData -> () and I'll refer to those ...
Kaliman's user avatar
  • 160
2 votes
1 answer
357 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
2 answers
154 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
2 votes
1 answer
138 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 ...
tooLateForTown's user avatar
2 votes
0 answers
31 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 ...
user avatar
2 votes
1 answer
164 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 ...
Frankuh's user avatar
  • 21
1 vote
0 answers
11 views

redeeming from PlutusV3 script fails

This is the code of my smart contract. It basically requires exactly 3 reference inputs to pass validation. {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE ...
Reeshav Acharya's user avatar
1 vote
1 answer
139 views

User error: Caused by: [ (builtin unConstrData) (con data #187b) ] while trying to unlock tokens from contract

hi I am getting this error while trying to unlock tokens from my treasury contract it is already topp up with tokens when trying to unlock with the access token doesn't know the exact reason behind ...
Hari Krishna's user avatar
1 vote
2 answers
86 views

Error cabal build: "Failed to build lzma-0.0.0.3" even in nix-shell and also tried "sudo-apt install liblzma-dev"

I'm trying to run the command "cabal build" the Week02 code of plutus-pioneer-program but it has this error and I have tried everything but the same error keeps appear: Failed to build lzma-...
Anonymous's user avatar
1 vote
0 answers
67 views

TxOutRefNotFound when using Plutus.Contract.Wallet (getUnspentOutput)

I am trying to get a UTxO of the current wallet, use it to mint a token via the OneShotCurrency type, but I keep getting the following Error: (TxOutRefNotFound (TxOutRef {txOutRefId = ...
Will's user avatar
  • 1,162
1 vote
0 answers
51 views

setting up the PAB - could not start the plutus-chain-index

I'm trying to follow the lesson 6 of iteration 3 of the plutus-pioneer-program when trying to start che chain index trough the command (fromn the plutus-apps repository) plutus-chain-index --config ./...
Michele Nuzzi's user avatar
1 vote
2 answers
75 views

StateMachines on Testnet : How to step a client?

I want to run a statemachine on testnet. The SM runs in the emulator, and I can initialize on testnet, but if I try to make a new client it throws an error. The error comes from transition failure, ...
waalge's user avatar
  • 403
1 vote
0 answers
84 views

Plutus Pioneer Cohort 3, Mac M1 cabal build error: Failed to build small-steps-test-0.1.0.0. , symbol not found in flat namespace '_sodium_free'

I'm using MacOS Monterey with M1 chip, and trying to build plutus-app using Nix Entering $ nix-shell using the specified tag from week01 is working fine, hence I can enter into the shell. The problem ...
Dani Ihza Farrosi's user avatar
1 vote
0 answers
52 views

How Do I Deploy a Plutus Contract From the Browser?

I want the user to go to my website and enter some details into a form. This data should then be converted into an input for my parameterised smart contract (written in Plutus). I can do the website ...
KryptoKing's user avatar
1 vote
0 answers
60 views

How to use Endpoints and Schema

I doing the PPP but Lars does not cover Endpoints or schema declarations in sufficient detail. I imagine that this is a problem that Plutus devs must overcome, but I cannot find suitable documentation ...
KryptoKing's user avatar
1 vote
0 answers
78 views

Exception from validator is not shown when using cardano-serialization-lib

I have this simple validator: newtype BreedConfig = BreedConfig { feeAddr :: PubKeyHash } deriving (Generic, ToJSON, FromJSON) PlutusTx.makeIsDataIndexed ''BreedConfig [('BreedConfig, 0)] ...
CryptoDinoAdamuso's user avatar
1 vote
0 answers
106 views

Calculation cpu and memory exUnits on transaction submit is different then on transaction build?

I am trying to build a non-optimized script and during the cardano-cli build transaction I got an error: Command failed: transaction build Error: The following scripts have execution failures: the ...
zarej's user avatar
  • 449
1 vote
0 answers
90 views

How to add 'ToSchema' to Address (in Playground)?

I'm doing homework2 of week05 (cohort3). My contract runs fine in the repl, but when I try it in the playground, I'm running into an issue. It fails on this line: mkSchemaDefinitions ''NFTSchema I ...
Kurt Sys's user avatar
  • 172
1 vote
0 answers
311 views

How to Deploy / Write NFT Minting Plutus Script?

I am following through the third cohort PPP. With a week of course break, I wish to consolidate my understanding through practice. One exercise is to go through the deployment process of an NFT: ...
SIDAN Whatever's user avatar
1 vote
1 answer
69 views

Where is Week04.Monad?

Doing Week 04 of cohort 3 Plutus Pioneers here. In the repl inside the nix shell, inside ~/plutus/plutus-pioneer-program/code/week04 Watching PPP 030402 at 34:54 to about 39:59. When I do :l src/...
XiTouch's user avatar
  • 349
1 vote
1 answer
71 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 ...
CryptoDinoAdamuso's user avatar
1 vote
0 answers
25 views

cabal repl outputs a lot of changing git HEADs on plutus-pioneer-program

This is a question regarding the plutus-pioneer-program. I want to load the modules of a given week into the ghci shell. The first time I run cabal repl it takes quite a long time to download things ...
Marlo's user avatar
  • 111
1 vote
1 answer
82 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 ...
d_fajardo's user avatar
  • 198
1 vote
0 answers
84 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 -> ...
Fermat's user avatar
  • 1,892
1 vote
0 answers
53 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 ...
DavidEG's user avatar
  • 111
1 vote
0 answers
113 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....
user1867563's user avatar
1 vote
0 answers
27 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 ...
Floof99's user avatar
  • 472
1 vote
0 answers
27 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,892
1 vote
1 answer
61 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
0 answers
32 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
1 vote
1 answer
138 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
1 vote
2 answers
110 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-...
d_fajardo's user avatar
  • 198
1 vote
4 answers
636 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 ...
David Wilkins's user avatar
1 vote
2 answers
254 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 ...
Nhan Nguyen's user avatar
1 vote
1 answer
206 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/...
prodineeritecht's user avatar
1 vote
1 answer
126 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 $ ...
perezda's user avatar
  • 167
1 vote
1 answer
218 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 ( /...
DaveLind's user avatar
1 vote
1 answer
86 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 ...
Godfrey's user avatar
  • 21
1 vote
1 answer
137 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 ...
YellowBlue's user avatar
1 vote
0 answers
37 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 ...
Brody Alden's user avatar
1 vote
0 answers
71 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 ...
Amit369's user avatar
  • 11
0 votes
0 answers
5 views

Setup dev enviroment locally fails on cabal test homework

Hi i setup the dev environment according to the youtube video, "cabal update" worked, but the second command does not work for me: root@c26be85e2bf4:/workspace/code/Week02# cabal test ...
wutzebaer's user avatar
  • 691
0 votes
0 answers
25 views

Why is "Current Time" (slot) validating script logic when its interval is not contained within the deadline interval (as defined in script logic)?

I have locked my "deadline" (which is set into the future) in "POSIXTime" to the On-Chain Datum of my contract. To unlock it, I am using the "current time" (aka current ...
Basho's user avatar
  • 13