| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Playground.Types
Synopsis
- data KnownCurrency = KnownCurrency {}
- adaCurrency :: KnownCurrency
- data PayToWalletParams = PayToWalletParams {
- payTo :: WalletNumber
- value :: Value
- data SimulatorWallet = SimulatorWallet {}
- data ContractCall a
- = CallEndpoint { }
- | AddBlocks { }
- | AddBlocksUntil { }
- | PayToWallet { }
- type SimulatorAction = ContractCall (Fix FormArgumentF)
- type Expression = ContractCall Value
- data Simulation = Simulation {}
- data Evaluation = Evaluation {
- wallets :: [SimulatorWallet]
- sourceCode :: SourceCode
- program :: Value
- pubKeys :: Evaluation -> [PaymentPubKeyHash]
- data EvaluationResult = EvaluationResult {}
- data CompilationResult = CompilationResult {}
- data ContractDemo = ContractDemo {}
- data FunctionSchema a = FunctionSchema {}
- data PlaygroundError
Documentation
data KnownCurrency Source #
Constructors
| KnownCurrency | |
Fields | |
Instances
data PayToWalletParams Source #
Constructors
| PayToWalletParams | |
Fields
| |
Instances
data SimulatorWallet Source #
Constructors
| SimulatorWallet | |
Fields | |
Instances
data ContractCall a Source #
Describes the mockchain requests the frontend can make of the backend. These will be mostly calls to their contract's various endpoints, but we supply a few extra special calls for the sake of easier testing and simulation.
Constructors
| CallEndpoint | Call one of the defined endpoints of your contract. |
Fields | |
| AddBlocks | Add the specified number of blocks to the mockchain before continuing. |
| AddBlocksUntil | Keep adding blocks until the mockchain reaches the
specified slot, then continue. (Note that calling
|
| PayToWallet | Make a wallet-to-wallet transfer of the specified value. |
Fields
| |
Instances
type SimulatorAction = ContractCall (Fix FormArgumentF) Source #
type Expression = ContractCall Value Source #
data Simulation Source #
The example simulations have meaningful (hard-coded) names, but, for any simulation the user creates in the playground, simulationName = "Simulation " <> show simulationId; the simulationId is simply present to ensure every simulation is created with a unique name.
Constructors
| Simulation | |
Fields | |
Instances
data Evaluation Source #
Constructors
| Evaluation | |
Fields
| |
Instances
pubKeys :: Evaluation -> [PaymentPubKeyHash] Source #
data EvaluationResult Source #
Constructors
| EvaluationResult | |
Fields
| |
Instances
data CompilationResult Source #
Constructors
| CompilationResult | |
Fields | |
Instances
data ContractDemo Source #
Constructors
| ContractDemo | |
Instances
data FunctionSchema a Source #
Constructors
| FunctionSchema | |
Fields
| |
Instances
data PlaygroundError Source #
Constructors
| CompilationErrors [CompilationError] | |
| InterpreterError InterpreterError | |
| RollupError Text | |
| OtherError String | |
| JsonDecodingError | |