Skip to main content

Questions tagged [plutus]

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

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

Plutus Relese 1.21.0.0 is causing AlwaysPass validator to fail

I recently updated my project to plutus tag-1.21.0.0 for a minting contract, the validator is: {-# INLINEABLE mkValidator #-} mkValidator :: MintScriptParameter -> MintRedeemer -> ScriptContext -...
Reeshav Acharya's user avatar
0 votes
0 answers
7 views

nix-build for Pluto takes hours -- stills haven't finished

I have installed Nix 2.20.5 in my ubuntu 22.04.4, following Readme I ran nix-build in Pluto directory. It's taking several hours(>4) in building packages,not sure hong long it will need to finish ...
user1532146's user avatar
0 votes
0 answers
4 views

Find contents of a address from script context

I’m trying to find if a particular address submitting a transaction contains a NFT. Not necessarily the transaction itself but the address in general contains the NFT. I was looking at using ...
mrsargent's user avatar
  • 121
0 votes
0 answers
21 views

Minting and spending from the same script in a single transaction

I have a state NFT token locked in an hybrid script written in Aiken. I want to : spend this NFT state to the script itself ( with a new datum which stores the new issuance state ) mint tokens I want ...
regisg's user avatar
  • 191
1 vote
1 answer
42 views

Is there any way to check reward address value?

Smart contract should allow the reward withdrawal only if all rewards are withdrawn. In other words only if the reward address will have exactly 0 lovelaces after the reward withdrawal. Is there any ...
dmitry_stas's user avatar
0 votes
0 answers
23 views

Plutus-pioneer-progra cabal build error

when I built plutus-pioneer-program lecture week2, I got the error like this /root/.cabal/store/ghc-8.10.7/cardano-crypto-praos-2.1.0.0-6256b7c51bff5ecd7a4cd62d0cae080568903ed67a7b8424037c5be2d1c7a1d9/...
Jinn Zh's user avatar
0 votes
0 answers
20 views

ADA locked on Trust - 2 delegations*( only one should be active ) - Now cant claim & reflects 2 balances

Good afternoon all I recently unstaked or attempted to unstake ada & it looked as if it was going from 1 validator to another , my problem is everything is stuck now. I cannot claim , I cannot ...
STAKEDCRYPTODANO77's user avatar
0 votes
1 answer
36 views

Examples of open source production level DApps on Cardano?

I am looking for Cardano DApps which are: Actually deployed and used on mainnet Have published their source code (at least on-chain part) Examples of non-Plutus PL used (like Plutarch, Aiken, ...) ...
uhbif19's user avatar
  • 121
0 votes
0 answers
27 views

How to analyze the Plutus budget usage?

When I run my minting policy script I get the error Command failed: transaction build Error: The following scripts have execution failures: the script for policyId 0 (in the order of the PolicyIds) ...
dmitry_stas's user avatar
0 votes
1 answer
26 views

Nix error trying to install correct GHC version for Plutus

As recommended by Haskell/Nix expert lan Burzynski, I'm trying to use Nix install the correct GHC version for Plutus as follows: nix shell nixpkgs#haskell.compiler.ghc8107BinaryMinimal nixpkgs#cabal-...
Eric's user avatar
  • 85
1 vote
0 answers
40 views

How to decouple Constr from Data

Imagine I have the following field in the Datum: { "fields": [ { "int": 3810998862 }, { "int": 18446744073709552000 ...
SR - cerra.io's user avatar
2 votes
1 answer
85 views

Loading specific Datum JSON with Map structure into Plutus type

We have a specific Datum, taken from Orcfax oracle UTXO: https://preprod.cexplorer.io/datum/9ced750ebbb2c9a9eac2e07a91525cadd3bfab23950089faa3e3a55517d1033f the part we are interested in is the very ...
SR - cerra.io's user avatar
0 votes
0 answers
32 views

In which cases Plutus compiler is producing expensive code?

I have heard a couple of times, that is hard to make Plutus produce non-costly code, and one should consider writing scripts on a level with Plutarch's help instead. Still, I never get real reasons ...
uhbif19's user avatar
  • 121
1 vote
1 answer
24 views

Asses Utxos Time In On-Chain Code

Can you assess the time a Utxo was created in on-chain code? i.e. A transaction to a smart contract that can claim only Utxos - in that contract address - sent in a specific time period?
user3755529's user avatar

15 30 50 per page
1
2 3 4 5
43