Questions tagged [plutus]
A programming language based on Haskell used to write smart contracts on the Cardano blockchain.
642
questions
6
votes
1
answer
504
views
Problem when starting a nix-shell in the plututs repo [duplicate]
I was doing the plutus pioneer program and ran into an error when starting a nix-shell at the top-level directory of the plutus-repository.
I ran into the same error on Ubuntu 20.04.2 LTS (GNU/Linux ...
10
votes
2
answers
220
views
Plutus Pioneer Program - Lecture #4 Homework - Best practice for logging errors
Below is my attempt to implement the homework assignment.
Is the way I call the endpoint twice in payTrace with minor differences appropriate?
Since payTest2 would not execute properly without ...
4
votes
1
answer
49
views
Validator getting access to delegator?
Is it possible for a validator to get access to delegator information? For example, is it possible to lock a token to be redeemable only by someone who is delegating to a specific stake pool?
...
4
votes
1
answer
65
views
Logistics of Developing Contracts
We've done a lot of development on the Plutus Playground; in what ways will the logistics of developing and deploying contracts differ in Gougen?
2
votes
1
answer
36
views
Are there guides for Router Contracts available (now or in the near future)?
Will IOHK be publishing best practice guides or common architectures? For example, in solidity it's common to have a set of "Router" contracts, to assist in upgrading the protocol in the ...
5
votes
1
answer
61
views
Validators for Asset Type
What happens / what is the defense against creating a transaction using a validator that isn't expecting an asset type?
In other words: the validator determines "Can this UTXO be spent in this ...
13
votes
2
answers
608
views
How to emulate a multi-sig transaction?
I'm working on a Plutus contract that requires multiple signatures to unlock. To do so, I've been referencing the MultiSig.hs sample contract. Now, I'm looking to create traces for testing purposes, ...
6
votes
1
answer
204
views
Plutus Pioneer Program - Lecture #1 Problem with cabal build
I ran into this dependencies error on Ubuntu when I try to build the English Auction, does anyone have an idea how to solve it ?
Please switch to using either the new project style and the new-build ...
18
votes
2
answers
356
views
How can smart contracts interact each other?
If the "context" of a smart contract can see only the transaction where it sits and its inputs-outputs, how can a smart contract interact with other smart contracts living in different ...
15
votes
3
answers
699
views
What's the difference between "on-chain" and "off-chain" in plutus smart contracts?
Smart contracts written in Plutus can be divided in two: an on-chain part and an off-chain part. What's the main difference between these two?
7
votes
2
answers
142
views
Why Strict Evaluation Operator "!" used in record definition implemented in Plutus Core?
While declaring records for use in Plutus strict operator is used like this:
data Auction = Auction
{ aSeller :: !PubKeyHash
, aDeadline :: !Slot
, aMinBid :: !Integer
, aCurrency :: !...
9
votes
3
answers
355
views
How will DApps work on Cardano?
This may been too broad of a question but I was hoping to ask a few specific questions here rather than over multiple questions. I don't think DApps are available yet but I'm sure people have started ...