Skip to content

Commit

Permalink
Finish test
Browse files Browse the repository at this point in the history
  • Loading branch information
Renegatto committed Sep 14, 2024
1 parent 7a3dd8d commit 38f5c2c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/OuraFilters/Auction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ module OuraFilters.Auction (spec) where

import Cardano.CEM (CEMScriptDatum)
import Cardano.CEM.Examples.Auction qualified as Auction
import Cardano.CEM.Examples.Compilation ()
import Cardano.CEM.OnChain qualified as Compiled
import Control.Arrow ((>>>))
import Control.Lens ((%~), (.~), (?~), (^.))
import Data.Aeson qualified as Aeson
import Data.Data (Proxy (Proxy))
import Data.Function ((&))
import Data.Functor (void, (<&>))
import Oura qualified
import OuraFilters.Mock qualified as Mock
import Plutus.Extras (scriptValidatorHash)
import PlutusLedgerApi.V1 qualified
import PlutusLedgerApi.V1.Value qualified as V1.Value
import PlutusTx.AssocMap qualified as AssocMap
Expand All @@ -29,8 +33,11 @@ spec =
focus $ it "Catches any Auction validator transition" \spotGarbage -> do
Oura.withOura @() (Oura.MkWorkDir "./tmp") spotGarbage \oura -> do
let
-- auction = undefined
auctionPaymentCredential = undefined
auctionPaymentCredential =
PlutusLedgerApi.V1.ScriptCredential
. scriptValidatorHash
. Compiled.cemScriptCompiled
$ Proxy @Auction.SimpleAuction
-- we want oura to monitor just payment credential, ignoring stake credentials
arbitraryStakeCredential = PlutusLedgerApi.V1.StakingPtr 5 3 2
defaultTx = Mock.arbitraryTx
Expand Down

0 comments on commit 38f5c2c

Please sign in to comment.