plutus-ledger-0.1.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.Fee

Description

Configuring and calculating transaction fees in the emulator.

Synopsis

Documentation

data FeeConfig Source #

Datatype to configure the fee in a transaction.

The fee for a transaction is typically: 'fcConstantFee + fcScriptsFeeFactor * SIZE_DEPENDANT_SCRIPTS_FEE.

Constructors

FeeConfig 

Fields

Instances

Instances details
Eq FeeConfig Source # 
Instance details

Defined in Ledger.Fee

Show FeeConfig Source # 
Instance details

Defined in Ledger.Fee

Generic FeeConfig Source # 
Instance details

Defined in Ledger.Fee

Associated Types

type Rep FeeConfig :: Type -> Type Source #

ToJSON FeeConfig Source # 
Instance details

Defined in Ledger.Fee

FromJSON FeeConfig Source # 
Instance details

Defined in Ledger.Fee

Default FeeConfig Source # 
Instance details

Defined in Ledger.Fee

Methods

def :: FeeConfig Source #

type Rep FeeConfig Source # 
Instance details

Defined in Ledger.Fee

type Rep FeeConfig = D1 ('MetaData "FeeConfig" "Ledger.Fee" "plutus-ledger-0.1.0.0-BAhdPNOPbMF52ZvZJtxBkz" 'False) (C1 ('MetaCons "FeeConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "fcConstantFee") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Ada) :*: S1 ('MetaSel ('Just "fcScriptsFeeFactor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

calcFees Source #

Arguments

:: FeeConfig 
-> Integer

Scripts fee in lovelace

-> Ada

Fees in lovelace