1
- cardanoTelescope <byron, shelley, allegra, mary, alonzo, babbage, conway>
1
+ telescope7 <byron, shelley, allegra, mary, alonzo, babbage, conway>
2
2
= [pastEra, pastEra, pastEra, pastEra, pastEra, pastEra, currentEra<conway>] /
3
3
[pastEra, pastEra, pastEra, pastEra, pastEra, currentEra<babbage>] /
4
4
[pastEra, pastEra, pastEra, pastEra, currentEra<alonzo>] /
@@ -7,7 +7,7 @@ cardanoTelescope<byron, shelley, allegra, mary, alonzo, babbage, conway>
7
7
[pastEra, currentEra<shelley>] /
8
8
[currentEra<byron>]
9
9
10
- cardanoNs <byron, shelley, allegra, mary, alonzo, babbage, conway>
10
+ ns7 <byron, shelley, allegra, mary, alonzo, babbage, conway>
11
11
= [6, conway] /
12
12
[5, babbage] /
13
13
[4, alonzo] /
@@ -16,28 +16,36 @@ cardanoNs<byron, shelley, allegra, mary, alonzo, babbage, conway>
16
16
[1, shelley] /
17
17
[0, byron]
18
18
19
+ ;; Blockchain types
20
+ pastEra = [bound, bound]
21
+ currentEra<st> = [bound, st]
19
22
blockno = word64
20
23
bound = [relativeTime, slotno, epochno]
21
24
coin = word64
22
- either<x, y> = [0, x] / [1, y]
23
25
epochno = word64
24
26
eraIdx = word8
25
27
hash = bstr
26
28
individualPoolStake = [stake, hash]
27
29
keyhash = bstr
28
- map<x, y> = { * x => y }
29
- maybe<x> = [] / [x]
30
30
nonce = [0] / [1, hash]
31
31
point = [] / [ slotno, hash ]
32
32
poolDistr = map<keyhash, individualPoolStake>
33
33
rational = [int, int]
34
34
relativeTime = int
35
- seq<x> = [*23 x] / [24* x] ; encoded with indefinite-length encoding
36
- set<x> = #6.258([* x])
37
35
slotno = word64
38
36
stake = rational
37
+
39
38
withOrigin<v> = [] / [v]
40
39
withOriginTH<v> = [0] / [1, v]
40
+
41
+ ;; Collections
42
+ either<x, y> = [0, x] / [1, y]
43
+ map<x, y> = { * x => y }
44
+ maybe<x> = [] / [x]
45
+ seq<x> = [*23 x] / [24* x] ; encoded with indefinite-length encoding
46
+ set<x> = #6.258([* x])
47
+
48
+ ;; Base word types
49
+ word8 = 0..255
41
50
word32 = 0..4294967295
42
51
word64 = 0..18446744073709551615
43
- word8 = 0..255
0 commit comments