11 votes
Accepted

What does @ prefix means?

It means type application. In this case, the function is polymorphic with the following type: logInfo :: forall a effs. Member (LogMsg a) effs => a -> Eff effs () by using TypeApplications ...
sorki's user avatar
  • 497
8 votes

I'm having issues with nix-shell

It may help to use IOHK's binary caches. You can set these up globally for your system by adding/creating these lines in /etc/nix/nix.conf: substituters = https://hydra.iohk.io https://iohk....
Matthias Sieber's user avatar
  • 1,557
8 votes
Accepted

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

It is a bug in the off-chain code. In step 3 in your example, wallet 3 bids under the minimum. This throws an error which triggers a bug that causes all subsequent bids from wallet 3 to be ignored. It ...
Travis's user avatar
  • 520
7 votes
Accepted

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

This solution https://cardano.stackexchange.com/a/6451/2758 is what finally did it for me: GC_DONT_GC=1 npm run start instead of just npm run start Heads up to anyone else seeing this issue! Edit: to ...
Woodland Pools's user avatar
6 votes
Accepted

Confused by compilation message in plutus playground (week 5 pioneer program)

The Playground needs some boilerplate added to a module: mkSchemaDefinitions ''NAMEOFYOURSCHEMA mkKnownCurrencies []
Lars Brünjes's user avatar
6 votes
Accepted

Use the week 01 Nix-shell for week 02?

Each week, you should change into the plutus-pioneer-program directory cd plutus-pioneer-program Pull the latest changes from upstream git pull View the plutus-apps git tag for the week in the cabal....
Travis's user avatar
  • 520
4 votes

What is the benefit of installing plutus playground locally?

The Plutus playground deployed on playground.plutus.iohkdev.io is often out of date and might contain bugs that are already fixed in upstream.
Marek Mahut - StakeNuts's user avatar
4 votes
Accepted

Normal buildtime for "nix-build -A plutus-playground.server"

For me it took roughly 2-4 hours on virtual box but it really depends on what environment your setting it up in. For example a virtual box will take much longer than a computer running on Linux or a ...
Floof99's user avatar
  • 472
4 votes
Accepted

Logistics of Developing Contracts

All the techniques you have learned for development on the Playground (or using the EmulatorTrace-monad) will still be valuable and relevant for Goguen. The only difference is that with Goguen, you ...
Lars Brünjes's user avatar
4 votes
Accepted

Need help installing pioneer-based code on intel Mac (Big Sur)

In step 7, there should be a 2nd line instructing you clone the plutus-apps. Change plutus.git to plutus-apps.git in step 7 to clone it, then run the playground nix-build from the top of that second ...
Hysteria's user avatar
4 votes

Where do I find correct and current git checkout?

You can find it in the Plutus Pioneer Program cabal.project file under the plutus-apps dependency entry.
Will's user avatar
  • 1,162
4 votes

(Solved) error:\n Variable not in scope: main :: GHC.Types.IO a0 in English Auction

You have to delete the module declaration at the top of the file. Try that and recompile. Lars mentions this here: https://youtu.be/K61Si6iQ-Js?t=86 P.S. I missed this originally as well!
IceColdEdge's user avatar
4 votes
Accepted

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

First of all on-chain code isn't stored in the blockchain, the hash of on-chain code is. To use on-chain validator on testnet or mainnet steps are: Compile on-chain code into plutus script Generate ...
KugisMugis's user avatar
4 votes
Accepted

Incorrect Pub Key from Wallet Emulator

mockWalletPaymentPubKey gives you the public key for a wallet. For Vesting.hs, you need to use the public key hash. Try mockWalletPaymentPubKeyHash $ knownWallet 1 instead.
Travis's user avatar
  • 520
4 votes

How do users interact with smart contract?

You can use cardano serialization lib to write a webapp using react and CSL to build transactions for your vesting contract, like those actions for vesting funds or retrieving funds. These transaction ...
Will's user avatar
  • 1,162
3 votes

Normal buildtime for "nix-build -A plutus-playground.server"

For me it's as follows: nix-build -A plutus-playground.server -> 262s nix-build -A plutus-playground.client -> 25s nix-shell -> 1715s This is after properly ...
i_know_what's user avatar
3 votes

Plutus Pioneer Program - Problem with plutus playground client

You can try configuring the timeout in cardano/plutus/plutus-playground-client/webpack.config.js devServer: { contentBase: path.join(__dirname, "dist"), compress: true, port: ...
Frank DelPidio's user avatar
3 votes

Deriving Show Compilation Error on Plutus Playground

You can run the Playground locally in Week 3 if you checkout the Plutus branch referenced in the Week03 cabal.project. See the tag option below. source-repository-package type: git location: https:...
Frank DelPidio's user avatar
3 votes

Deriving Show Compilation Error on Plutus Playground

I believe your issue is stemming from the fact that the plutus team is updating the plutus library relatively quickly, and since the code written in the plutus-pioneer-program is now a month or two ...
Isaac Padberg's user avatar
3 votes
Accepted

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

I found a solution for this that you can read in the document I wrote to setup Plutus dev environment on your local machine ( https://www.punkbit.com/hacking/plutus-developer-environment-setup-on-...
punkbit's user avatar
  • 178
3 votes
Accepted

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

GC_DONT_GC=1 disables the boehm garbage collector in nix. There are edge cases that our nix expressions can hit, which cause nix to segfault. Disabling the garbage collector in nix "fixes" ...
angerman's user avatar
  • 359
2 votes

Writing basic validator scripts

Although there may have been changes, this remains a valid question. The code shown in the question is the boilerplate code that accompanies a validator implementation for on-chain execution. A simple ...
vcwebco's user avatar
  • 480
2 votes

I'm having issues with nix-shell

There are multiple different types of nix.conf files in the $PATH, even when I made one globally. So What I initial did was replace all of them with the IOHK's binary caches, and from there it worked.
KIJIRI's user avatar
  • 687
2 votes

Test-Focused EvaluatorTrace Monad?

There are now test capabilities in the Plutus.Contract.Test module which uses the Tasty library. This is explained more fully in the unit tests section of lecture 8 of iteration 1 of the Plutus ...
Chrismo's user avatar
  • 524
2 votes

Setting up Plutus environment for Apple Silicon computer

I'm running an M1 Pro with Monterey and have everything up and running correctly, so it's definitely possible! This github guide is very useful: Cardano Plutus apps install. The new M1's use AMD ...
carleryd's user avatar
2 votes
Accepted

Choosing Ubuntu over WSL for Plutus development

WSL is a hack for running Linux programs. Plutus Playground is very stable once it is installed on a stable platform. I had hosted a playground without any issue for more than a month that too without ...
raghu's user avatar
  • 1,834
2 votes
Accepted

Plutus pioneer program - Lecture #1 - Can't understand behaviour of transactions

If I recall correctly there is some problem/bug in the playground, such that when a wallet/transaction fails, no more transactions from that wallet is accepted. But as you noted when first bid is ...
j.karlsson's user avatar
2 votes

segmentation fault when building Plutus-playground.server

Could you try running GC_DONT_GC=1 nix-build -A plutus-playground.server.
Rohit's user avatar
  • 21
2 votes
Accepted

Unable to start /plutus-apps client application

Fortunately, someone in the discord had this exact same problem. I had suggested running nix-build, but that errored out. Apparently the solution was to set this first, before running the command: ...
prodineeritecht's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible