@@ -39,6 +39,10 @@ data MyContracts
39392 . Define a HasDefinitions instance for the endpoints
4040
4141```haskell
42+ import BotPlutusInterface.Types (HasDefinitions (.. ), SomeBuiltin (.. ), endpointsToSchemas )
43+ import Playground.Types (FunctionSchema )
44+ import Schema (FormSchema )
45+
4246instance HasDefinitions MyContracts where
4347 getDefinitions :: [MyContract ]
4448 getDefinitions = []
@@ -61,6 +65,13 @@ instance HasDefinitions MyContracts where
61653 . Write your main entrypoint for the application, with the preferred configurations
6266
6367``` haskell
68+ import BotPlutusInterface.Types (CLILocation (Local ), LogLevel (Debug ), PABConfig (.. ))
69+ import Cardano.Api (NetworkId (Testnet ), NetworkMagic (.. ))
70+ import Data.Aeson qualified as JSON
71+ import Data.ByteString.Lazy qualified as LazyByteString
72+ import Data.Default (def )
73+ import Servant.Client.Core (BaseUrl (BaseUrl ), Scheme (Http ))
74+
6475main :: IO ()
6576main = do
6677 protocolParams <- JSON. decode <$> LazyByteString. readFile " protocol.json"
@@ -72,6 +83,8 @@ main = do
7283 , pcChainIndexUrl = BaseUrl Http " localhost" 9083 " "
7384 , pcPort = 9080
7485 , pcProtocolParams = protocolParams
86+ , -- | Slot configuration of the network, the default value can be used for the mainnet
87+ pcSlotConfig = def
7588 , pcOwnPubKeyHash = " 0f45aaf1b2959db6e5ff94dbb1f823bf257680c3c723ac2d49f97546"
7689 , -- Directory name of the script and data files
7790 pcScriptFileDir = " ./scripts"
0 commit comments