Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | support@geniusyield.co |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
GeniusYield.Scripts.Dex.PartialOrder
Description
Synopsis
- class HasPartialOrderScript a where
- partialOrderValidator ∷ (HasPartialOrderScript a, HasPartialOrderConfigAddr a) ⇒ a → GYAssetClass → GYValidator 'PlutusV2
- partialOrderValidatorHash ∷ (HasPartialOrderScript a, HasPartialOrderConfigAddr a) ⇒ a → GYAssetClass → GYValidatorHash
- data PartialOrderFeeOutput = PartialOrderFeeOutput {}
- data PartialOrderContainedFee = PartialOrderContainedFee {}
- data PartialOrderDatum = PartialOrderDatum {
- podOwnerKey ∷ PubKeyHash
- podOwnerAddr ∷ Address
- podOfferedAsset ∷ AssetClass
- podOfferedOriginalAmount ∷ Integer
- podOfferedAmount ∷ Integer
- podAskedAsset ∷ AssetClass
- podPrice ∷ Rational
- podNFT ∷ TokenName
- podStart ∷ Maybe POSIXTime
- podEnd ∷ Maybe POSIXTime
- podPartialFills ∷ Integer
- podMakerLovelaceFlatFee ∷ Integer
- podTakerLovelaceFlatFee ∷ Integer
- podContainedFee ∷ PartialOrderContainedFee
- podContainedPayment ∷ Integer
- data PartialOrderAction
Typeclass
class HasPartialOrderScript a where #
Methods
getPartialOrderValidator ∷ a → TypedScript 'ValidatorRole '[Address, AssetClass] #
Validator
partialOrderValidator ∷ (HasPartialOrderScript a, HasPartialOrderConfigAddr a) ⇒ a → GYAssetClass → GYValidator 'PlutusV2 #
partialOrderValidatorHash ∷ (HasPartialOrderScript a, HasPartialOrderConfigAddr a) ⇒ a → GYAssetClass → GYValidatorHash #
Datum
data PartialOrderFeeOutput #
Datum of the fee output.
Constructors
PartialOrderFeeOutput | |
Fields
|
Instances
data PartialOrderContainedFee #
Representation of total fees contained in the order.
Constructors
PartialOrderContainedFee | |
Fields
|
Instances
data PartialOrderDatum #
Datum specifying a partial order.
Constructors
PartialOrderDatum | |
Fields
|
Instances
Redeemer
data PartialOrderAction #
Constructors
PartialCancel | |
PartialFill Integer | |
CompleteFill |