Skip to content

Commit

Permalink
Adjust babbage script documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Jun 21, 2022
1 parent d079fb7 commit acac604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/reference/plutus/babbage-certifying-script-example.md
Expand Up @@ -4,7 +4,7 @@

For an overview of reference script usuage in the Babbage era, please see [here](babbage-script-example.md).

In this example we will delegate stake at a plutus script address to an SPO using a plutus reference script. This is achieved when we run the [register-and-deglegate-script-staking-address.sh](../../../scripts/babbage/staking-example/register-and-deglegate-script-staking-address.sh) script. Below we will outline the key parts
In this example we will delegate stake at a plutus script address to an SPO using a plutus reference script. This is achieved when we run the [register-and-deglegate-script-staking-address.sh](../../../scripts/babbage/staking-example/register-and-delegate-script-staking-address.sh) script. Below we will outline the key parts

First we create the reference script at a tx output as usual with the following transaction:

Expand Down
8 changes: 4 additions & 4 deletions doc/reference/plutus/babbage-script-example.md
Expand Up @@ -14,7 +14,7 @@ In the case where we are not using a reference input to reference another transa

### An example of using a Plutus V2 reference script

Below is an example that shows how to use a reference Plutus spending script with an inline datum and a reference minting script. Here we discuss a [shell script example of how to use a reference script to spend a tx input and a reference minting script to mint tokens](scripts/plutus/example-babbage-script-usage.sh). This is a step-by-step process involving:
Below is an example that shows how to use a reference Plutus spending script with an inline datum and a reference minting script. Here we discuss a [shell script example of how to use a reference script to spend a tx input and a reference minting script to mint tokens](../../../scripts/babbage/example-babbage-script-usage.sh). This is a step-by-step process involving:

+ the creation of the `Required Redeemer` Plutus txin script
+ the creation of the `Required Redeemer` Plutus script at a transaction output (creation of the reference script)
Expand All @@ -24,7 +24,7 @@ Below is an example that shows how to use a reference Plutus spending script wit
+ creating a read only reference tx output
+ the creation of the reference [minting script](scripts/plutus/scripts/v2) at a transaction output.

In this example we will use the [Required Redeemer](scripts/plutus/scripts/v2/required-redeemer.plutus) Plutus spending script and a [minting script](scripts/plutus/scripts/v2). In order to execute a reference Plutus spending script, we require the following:
In this example we will use the [Required Redeemer](../../../scripts/plutus/scripts/v2/required-redeemer.plutus) Plutus spending script and a [minting script](../../../scripts/plutus/scripts/v2/minting-script.plutus). In order to execute a reference Plutus spending script, we require the following:

- Collateral tx input(s) - these are provided and are forfeited in the event the Plutus script fails to execute.
- A Plutus tx output. This is the tx output that sits at the Plutus script address.
Expand Down Expand Up @@ -61,7 +61,7 @@ cabal install cardano-node
```

To start your babbage cluster, you need to run the `example/run/all.sh` shell script.
The remainder of this guide provides a brief walkthrough of the [shell script example](scripts/plutus/example-babbage-script-usage.sh) that automatically creates a reference script and spends the utxo at
The remainder of this guide provides a brief walkthrough of the [shell script example](../../../scripts/babbage/example-babbage-script-usage.sh) that automatically creates a reference script and spends the utxo at
the reference script's corresponding script address.

#### Creating a reference script at a transaction output, inline datum and
Expand Down Expand Up @@ -101,7 +101,7 @@ Firstly, we are sending ada and an inline datum to the plutus script address. Th
...
```

We have seen this before in the [plutus-spending-script-example.md](doc/reference/plutus/plutus-spending-script-example.md).
We have seen this before in the [plutus-spending-script-example.md](plutus-spending-script-example.md).

Secondly, we are creating a reference script at a tx output:

Expand Down

0 comments on commit acac604

Please sign in to comment.