Skip to content

Commit d6103f5

Browse files
committed
Use cddl socket in n2c api example cddl
1 parent ade88a4 commit d6103f5

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/api/cddl/getSystemStart.cddl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
query = 1
2-
result = [year, dayOfYear, timeOfDayPico]
1+
$query /= 1
2+
$result /= [year, dayOfYear, timeOfDayPico]
3+
34
year = bigint
45
dayOfYear = int
56
timeOfDayPico = bigint

src/api/cddl/local-state-query.cddl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ acquireFailurePointNotOnChain = 1
1818
failure = acquireFailurePointTooOld
1919
/ acquireFailurePointNotOnChain
2020

21-
query = any
22-
result = any
21+
$query = any
22+
$result = any
2323

2424
msgAcquire = [0, point]
2525
/ [8]
2626
/ [10]
2727
msgAcquired = [1]
2828
msgFailure = [2, failure]
2929
; ANCHOR: api
30-
msgQuery = [3, query]
31-
msgResult = [4, result]
30+
msgQuery = [3, $query]
31+
msgResult = [4, $result]
3232
; ANCHOR_END: api
3333
msgRelease = [5]
3434
msgReAcquire = [6, point]

0 commit comments

Comments
 (0)