Skip to content

Commit 8cc7e00

Browse files
committed
Update custom contracts docs
Signed-off-by: Simon Gellis <[email protected]>
1 parent c739ed8 commit 8cc7e00

File tree

1 file changed

+5
-1
lines changed
  • doc-site/docs/tutorials/custom_contracts

1 file changed

+5
-1
lines changed

doc-site/docs/tutorials/custom_contracts/cardano.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ Cardano dApps typically have two components: off-chain and on-chain.
1616

1717
## Writing a dApp
1818

19-
First, decide on the contract which your dApp will satisfy. FireFly uses [JSON schema](https://json-schema.org/) to describe its contracts. Create a file named `contract.json`. An example is below:
19+
> **NOTE:** The source code to this dApp is also available [on GitHub](https://github.com/hyperledger/firefly-cardano/tree/main/wasm/simple-tx).
20+
21+
First, decide on the contract which your dApp will satisfy. FireFly uses [FireFly Interface Format](https://hyperledger.github.io/firefly/latest/reference/firefly_interface_format/) to describe its contracts. Create a file named `contract.json`. An example is below:
2022

2123
### Contract
2224

@@ -493,6 +495,8 @@ After connecting the WebSocket client, send a message to tell FireFly to:
493495
}
494496
```
495497

498+
> **NOTE:** Do not use `autoack` in production, as it can cause your application to miss events. For resilience, your app should instead respond with an "ack" message to each incoming event. For more details, see the [Websockets documentation](../../reference/types/subscription/#using-start-and-ack-explicitly).
499+
496500
### WebSocket event
497501

498502
After creating the subscription, you should see an event arrive on the connected WebSocket client that looks something like this:

0 commit comments

Comments
 (0)