/unsigs-market-plutus

Primary LanguageHaskellApache License 2.0Apache-2.0

unsigs market plutus

Updated spacebudz to newest plutus version, embedded in the plutus-starter project.

contract.hs is split to Onchain.hs Offchain.hs Types.hs. Utility.hs is for the data needed to compile the contract.

Run the Trace

  1. Update cabal
cabal update
  1. Build the project
cabal build
  1. Use repl
cabal repl
  1. Import the Trace module
import Trace
  1. Run the Test
test

The Plutus Application Backend (PAB) example

We have provided an example PAB application in ./pab. With the PAB we can serve and interact with contracts over a web API. You can read more about the PAB here: PAB Architecture.

Here's an example of running and interacting with this contract via the API. For this it will help if you have jq installed.

  1. Build the PAB executable:
cabal build unsigs-market-pab
  1. Run the PAB binary:
cabal exec -- unsigs-market-pab

This will then start up the server on port 9080. The devcontainer process will then automatically expose this port so that you can connect to it from any terminal (it doesn't have to be a terminal running in the devcontainer).

First, let's verify that the game is present in the server:

  1. Check what contracts are present:
curl -s http://localhost:9080/api/contract/definitions | jq

Finally, also node that the PAB also exposes a websocket, which you can read about in the general PAB Architecture documentation.

Support/Issues/Community

If you're looking for support, or would simply like to report a bug, feature request, etc please do so over on the main plutus repository.

For more interactive discussion, you can join the IOG Technical Community Discord.

Thanks!