Skip to content

Commit 8858b5d

Browse files
author
gege251
committed
Update READMEs
1 parent c8284ad commit 8858b5d

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ Supported features:
1212
- pre balance tx (adding minimum amount of tx inputs based on fee and tx output value, balancing non ada outputs)
1313
- mint tokens, and send them to arbitrary address(es)
1414
- redeem utxos from validator scripts, using the correct datum and redeemer (scripts, datums and redeemers are persisted in files for now)
15+
- use validity time ranges
16+
- waiting for slots
1517

1618
Unsupported/In development
1719

1820
- wallet integration
19-
- chain-index integration (in progress)
20-
- handling on-chain events (utxo set change, waiting for slot, etc.)
21-
- multisig
22-
- automated tests
21+
- handling on-chain events (utxo set change, etc.)
2322

2423
## How to use this?
2524

@@ -67,16 +66,24 @@ main = do
6766
protocolParams <- JSON.decode <$> LazyByteString.readFile "protocol.json"
6867
let pabConf =
6968
PABConfig
70-
{ -- Calling the cli through ssh when set to Remote
71-
pcCliLocation = Remote "11.22.33.44"
69+
{ -- Calling the cli locally or through an ssh connection
70+
pcCliLocation = Local
7271
, pcNetwork = Testnet (NetworkMagic 42)
72+
, pcChainIndexUrl = BaseUrl Http "localhost" 9083 ""
73+
, pcPort = 9080
7374
, pcProtocolParams = protocolParams
75+
, pcOwnPubKeyHash = "0f45aaf1b2959db6e5ff94dbb1f823bf257680c3c723ac2d49f97546"
7476
, -- Directory name of the script and data files
75-
pcScriptFileDir = "result-scripts"
77+
pcScriptFileDir = "./scripts"
78+
, -- Directory for the signing key file(s)
79+
pcSigningKeyFileDir = "./signing-keys"
80+
, -- Directory where the encoded transaction files will be saved
81+
pcTxFileDir = "./txs"
7682
, -- Dry run mode will build the tx, but skip the submit step
7783
pcDryRun = False
84+
, pcLogLevel = Debug
7885
, -- Protocol params file location relative to the cardano-cli working directory (needed for the cli)
79-
pcProtocolParamsFile = "./protocol.json"
86+
, pcProtocolParamsFile = "./protocol.json"
8087
}
8188
BotPlutusInterface.runPAB @MyContracts pabConf
8289
```
@@ -107,7 +114,7 @@ The fake PAB consists of the following modules:
107114
- **BotPlutusInterface.Contract** handling contract effects by creating the necessary files and calling cardano-cli commands (a few effects are mocked)
108115
- **BotPlutusInterface.PreBalance** doing some preparations so the cli can process the rest (non-ada asset balancing, addig tx inputs, adding minimum lovelaces, add signatories)
109116
- **BotPlutusInterface.CardanoCLI** wrappers for cardano-cli commands
110-
- For development purposes, I created an ssh wrapper, so I can call relay these commands through an ssh connection. This is not nice, unsafe, and pretty slow, so I'm hoping to get rid of this pretty soon.
117+
- For development purposes, I created an ssh wrapper, so I can call relay these commands through an ssh connection. This is not nice, unsafe, and pretty slow, avoid using it if you can.
111118
- **BotPlutusInterface.UtxoParser** parse the output of the `cardano-cli query utxo` command
112119
- **BotPlutusInterface.Files** functions for handling script, datum and redeemer files
113120
- **BotPlutusInterface.Types** configuration for the fake pab

examples/plutus-game/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
### plutus-helloworld
1+
### plutus-game
22

3-
This directory contains a simple "Hello World" script. There are two versions: one using an integer literal (needed because the Plutus interpreter doesn't currently accept byte string literals) and a slighly more complicated one using a bytestring parameter.
4-
5-
``plutus-helloworld'' -- very simple numeric version
6-
7-
``plutus-helloworld-bytestring'' -- more compex version using bytestring constant
3+
Simple guessing game contract to demonstrate locking and redeeming funds with datums and redeemers

examples/plutus-nft/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
### plutus-helloworld
1+
### plutus-nft
22

3-
This directory contains a simple "Hello World" script. There are two versions: one using an integer literal (needed because the Plutus interpreter doesn't currently accept byte string literals) and a slighly more complicated one using a bytestring parameter.
4-
5-
``plutus-helloworld'' -- very simple numeric version
6-
7-
``plutus-helloworld-bytestring'' -- more compex version using bytestring constant
3+
Simple NFT schema to demonstrate token minting.

0 commit comments

Comments
 (0)