Skip to content

Commit 93f98a9

Browse files
waalgewaalge
andauthored
Use an example with indef array serialization. (#81)
This shouldn't have effected consumers consuming in the prescribed fashion. However, its probably not helpful to present an example that suggests we use a different encoding from the one we actually use. (And which we have to use because Plutus forces us to reserialize, and we use their serializer which is weird. This is still the least worse option imho.) Co-authored-by: waalge <waalge@proton.me>
1 parent 388f85d commit 93f98a9

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

docs/developer-manual/consume.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -237,30 +237,27 @@ type RationalDatum {
237237
Some example hex encoded CBOR:
238238

239239
```sample
240-
D87982D879834E4345522F464143542D4144412F331B0000019012C8CCD3D879821981951A000F4
241-
240D879821B0000019012C90F89581C694F647F6C6FEE725EAF731938613059AC560E573D9FA656
242-
0850EAB0
240+
d8799fd8799f4e4345522f43424c502d4144412f331b0000019bf6f0a165d8799f19d41d1a4a817
241+
c80ffffd8799f581c3c12f6735ef87655c5b27bced3f828d857d0a27fd20f2cda18ebf2fbffff
243242
```
244243

245-
Which can be deserialized as:
244+
Which can be deserialized as (in CBOR diagnostic notation):
246245

247246
```cbor
248-
121([
249-
121([
250-
"CER/FACT-ADA/3",
251-
1718302067923,
252-
121([
253-
33173,
254-
1000000
255-
])
247+
121_0([_
248+
121_0([_
249+
h'4345522f43424c502d4144412f33',
250+
1769374523749_3,
251+
121_0([_ 54301_1, 1250000000_2]),
252+
]),
253+
121_0([_
254+
h'3c12f6735ef87655c5b27bced3f828d857d0a27fd20f2cda18ebf2fb',
256255
]),
257-
121([
258-
1718302085001,
259-
h'694F647F6C6FEE725EAF731938613059AC560E573D9FA6560850EAB0'
260-
])
261256
])
262257
```
263258

259+
The feed id decodes to `CER/FACT-ADA/3`.
260+
264261
## Deployments
265262

266263
| Network | Link | FSP hash |

0 commit comments

Comments
 (0)