cardano-node-emulator-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Node.Emulator

Description

This module re-export the content needed to test a contract with the node emulator.

Synopsis

Emulator contracts

data Params Source #

Instances

Instances details
Eq Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

Show Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

Generic Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

Associated Types

type Rep Params :: Type -> Type Source #

FromJSON Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

Methods

parseJSON :: Value -> Parser Params

parseJSONList :: Value -> Parser [Params]

ToJSON Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

Methods

toJSON :: Params -> Value

toEncoding :: Params -> Encoding

toJSONList :: [Params] -> Value

toEncodingList :: [Params] -> Encoding

Default Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

Methods

def :: Params

Pretty Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

Methods

pretty :: Params -> Doc ann

prettyList :: [Params] -> Doc ann

IsRunnable EmulatorM Source # 
Instance details

Defined in Cardano.Node.Emulator.Test

Methods

awaitSlot :: SlotNo -> EmulatorM ()

HasChainIndex EmulatorM Source # 
Instance details

Defined in Cardano.Node.Emulator.Test

type Rep Params Source # 
Instance details

Defined in Cardano.Node.Emulator.Internal.Node.Params

type Rep Params = D1 ('MetaData "Params" "Cardano.Node.Emulator.Internal.Node.Params" "cardano-node-emulator-1.2.0.0-1RjxyDmnwHSAn2KgGdAUXD" 'False) (C1 ('MetaCons "Params" 'PrefixI 'True) (S1 ('MetaSel ('Just "pSlotConfig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotConfig) :*: (S1 ('MetaSel ('Just "emulatorPParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PParams) :*: S1 ('MetaSel ('Just "pNetworkId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NetworkId))))
type Realized EmulatorM a 
Instance details

Defined in Cardano.Node.Emulator.Test

type Realized EmulatorM a = a

Contract helpers

emptyTxBodyContent :: TxBodyContent BuildTx BabbageEra #

knownAddresses :: [CardanoAddress] #

knownPaymentKeys :: Map PaymentPubKey PaymentPrivateKey #

knownPaymentPrivateKeys :: [PaymentPrivateKey] #

knownPaymentPublicKeys :: [PaymentPubKey] #

alwaysSucceedPolicy :: MintingPolicy Source #

someTokenValue :: AssetName -> Integer -> Value Source #

Tests