Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Action
is likely the most impactful type exported, as it represents
the individual steps to be executed by the transaction generator at
the system level; however, Generator
is much more of what one thinks
of transactions themselves being. The Generator
has to do with
combining streams of the transactions one typically might think of
doing with a wallet, where the Action
level largely sees those
transactions as interchangeable, and focuses more on the variety of
things one might do with the connexion.
Synopsis
- data Action where
- SetNetworkId :: !NetworkId -> Action
- SetSocketPath :: !FilePath -> Action
- InitWallet :: !String -> Action
- StartProtocol :: !FilePath -> !(Maybe FilePath) -> Action
- Delay :: !Double -> Action
- ReadSigningKey :: !String -> !(SigningKeyFile In) -> Action
- DefineSigningKey :: !String -> !(SigningKey PaymentKey) -> Action
- AddFund :: !AnyCardanoEra -> !String -> !TxIn -> !Lovelace -> !String -> Action
- WaitBenchmark :: !String -> Action
- Submit :: !AnyCardanoEra -> !SubmitMode -> !TxGenTxParams -> !Generator -> Action
- CancelBenchmark :: !String -> Action
- Reserved :: [String] -> Action
- WaitForEra :: !AnyCardanoEra -> Action
- SetProtocolParameters :: ProtocolParametersSource -> Action
- LogMsg :: !Text -> Action
- data Generator where
- SecureGenesis :: !String -> !String -> !String -> Generator
- Split :: !String -> !PayMode -> !PayMode -> [Lovelace] -> Generator
- SplitN :: !String -> !PayMode -> !Int -> Generator
- NtoM :: !String -> !PayMode -> !NumberOfInputsPerTx -> !NumberOfOutputsPerTx -> !(Maybe Int) -> Maybe String -> Generator
- Sequence :: [Generator] -> Generator
- Cycle :: !Generator -> Generator
- Take :: !Int -> !Generator -> Generator
- RoundRobin :: [Generator] -> Generator
- OneOf :: [(Generator, Double)] -> Generator
- data PayMode where
- PayToAddr :: !String -> !String -> PayMode
- PayToScript :: !ScriptSpec -> !String -> PayMode
- data ProtocolParameterMode where
- data ProtocolParametersSource where
- data ScriptBudget where
- StaticScriptBudget :: !FilePath -> !FilePath -> !ExecutionUnits -> !Bool -> ScriptBudget
- AutoScript :: !FilePath -> !Int -> ScriptBudget
- data ScriptSpec = ScriptSpec {}
- data SubmitMode where
- LocalSocket :: SubmitMode
- Benchmark :: !TargetNodes -> !String -> !TPSRate -> !NumberOfTxs -> SubmitMode
- DumpToFile :: !FilePath -> SubmitMode
- DiscardTX :: SubmitMode
- NodeToNode :: NonEmpty NodeIPv4Address -> SubmitMode
- type TargetNodes = NonEmpty NodeIPv4Address
- newtype TxList era = TxList [Tx era]
Documentation
Action
represents the individual actions to be executed by the
tx-generator. It gets translated to
ActionM
using Env
as the
state, IOManager
as the reader, and IO
as the
monad, and further wrapped in an ExceptT
with
an Error
as the exception.
SetNetworkId :: !NetworkId -> Action |
|
SetSocketPath :: !FilePath -> Action |
|
InitWallet :: !String -> Action |
|
StartProtocol :: !FilePath -> !(Maybe FilePath) -> Action |
|
Delay :: !Double -> Action |
|
ReadSigningKey :: !String -> !(SigningKeyFile In) -> Action |
|
DefineSigningKey :: !String -> !(SigningKey PaymentKey) -> Action |
|
AddFund :: !AnyCardanoEra -> !String -> !TxIn -> !Lovelace -> !String -> Action |
|
WaitBenchmark :: !String -> Action |
|
Submit :: !AnyCardanoEra -> !SubmitMode -> !TxGenTxParams -> !Generator -> Action |
|
CancelBenchmark :: !String -> Action |
|
Reserved :: [String] -> Action |
|
WaitForEra :: !AnyCardanoEra -> Action | |
SetProtocolParameters :: ProtocolParametersSource -> Action |
|
LogMsg :: !Text -> Action |
|
Instances
Generator
is interpreted by
evalGenerator
as a series of
transactions, albeit in the form of precursors to UTxO's.
SecureGenesis :: !String -> !String -> !String -> Generator |
|
Split :: !String -> !PayMode -> !PayMode -> [Lovelace] -> Generator |
|
SplitN :: !String -> !PayMode -> !Int -> Generator |
|
NtoM :: !String -> !PayMode -> !NumberOfInputsPerTx -> !NumberOfOutputsPerTx -> !(Maybe Int) -> Maybe String -> Generator | |
Sequence :: [Generator] -> Generator |
|
Cycle :: !Generator -> Generator |
|
Take :: !Int -> !Generator -> Generator | |
RoundRobin :: [Generator] -> Generator |
|
OneOf :: [(Generator, Double)] -> Generator |
Instances
PayToAddr :: !String -> !String -> PayMode | |
PayToScript :: !ScriptSpec -> !String -> PayMode |
Instances
FromJSON PayMode Source # | |
Defined in Cardano.Benchmarking.Script.Aeson | |
ToJSON PayMode Source # | |
Defined in Cardano.Benchmarking.Script.Aeson | |
Generic PayMode Source # | |
Show PayMode Source # | |
Eq PayMode Source # | |
type Rep PayMode Source # | |
Defined in Cardano.Benchmarking.Script.Types type Rep PayMode = D1 ('MetaData "PayMode" "Cardano.Benchmarking.Script.Types" "tx-generator-2.11-inplace" 'False) (C1 ('MetaCons "PayToAddr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)) :+: C1 ('MetaCons "PayToScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptSpec) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String))) |
data ProtocolParameterMode where Source #
data ProtocolParametersSource where Source #
QueryLocalNode :: ProtocolParametersSource | |
UseLocalProtocolFile :: !FilePath -> ProtocolParametersSource |
Instances
data ScriptBudget where Source #
StaticScriptBudget :: !FilePath -> !FilePath -> !ExecutionUnits -> !Bool -> ScriptBudget | |
AutoScript :: !FilePath -> !Int -> ScriptBudget |
Instances
data ScriptSpec Source #
Instances
data SubmitMode where Source #
LocalSocket :: SubmitMode | |
Benchmark :: !TargetNodes -> !String -> !TPSRate -> !NumberOfTxs -> SubmitMode | |
DumpToFile :: !FilePath -> SubmitMode | |
DiscardTX :: SubmitMode | |
NodeToNode :: NonEmpty NodeIPv4Address -> SubmitMode |
Instances
type TargetNodes = NonEmpty NodeIPv4Address Source #
Orphan instances
Eq (SigningKey PaymentKey) Source # | |
(==) :: SigningKey PaymentKey -> SigningKey PaymentKey -> Bool Source # (/=) :: SigningKey PaymentKey -> SigningKey PaymentKey -> Bool Source # |