Skip to main content

Questions tagged [plutus]

A programming language based on Haskell used to write smart contracts on the Cardano blockchain.

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 ...
Hamza's user avatar
  • 130
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 ...
Matthias Sieber's user avatar
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? ...
KIJIRI's user avatar
  • 607
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?
KIJIRI's user avatar
  • 607
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 ...
KIJIRI's user avatar
  • 607
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 ...
KIJIRI's user avatar
  • 607
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, ...
bhindman's user avatar
  • 131
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 ...
Hamza's user avatar
  • 130
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 ...
Aron Neewart's user avatar
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?
Aron Neewart's user avatar
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 :: !...
raghu's user avatar
  • 1,764
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 ...
Cavenfish's user avatar
  • 496

15 30 50 per page
1
18 19 20 21
22